function content_switch() {
	var thisid = '';
	var thisdiv = '';
	var result = '';
	
	var content_layers = document.getElementsByTagName("div");
	for (var i = 0; i <= (content_layers.length - 1); i++) {
		thisid = content_layers[i].id
		result = thisid.match(/content_layer_(.+)/);
		if (result != null) {
			// Check to see if this div's id matches any of the arguments.
			// If there's a match, this div will be toggled "On", otherwise "Off".
			var arg_match = 0;
			for (var j = 0; j <= (arguments.length - 1); j++) {
				if (thisid == ('content_layer_' + arguments[j])) {
					arg_match++;
				}
			}
			
			thisdiv = document.getElementById(thisid);
			var tempahrefid = 'layer_link_' + result[1];	// result[1] is the (matched) portion of the regex above
			var thisahref = document.getElementById(tempahrefid);
			if (arg_match > 0) {
				thisdiv.style.display = "inline";
//				if (thisahref != null) {
//					thisahref.style.background = "url('http://www.ku.edu/~test/ua_prototype/all_pages/box_black.gif') no-repeat 0 0.5em";
//				}
			} else {
				thisdiv.style.display = "none";
//				if (thisahref != null) {
//					thisahref.style.background = "url('http://www.ku.edu/~test/ua_prototype/all_pages/box_grey.gif') no-repeat 0 0.5em";
//				}
			}
			
		} // if (result != null)
	} // for (var i = 0...)
} // function content_switch

// ----------------------------------------------------------------------------

