function content_switch_dot() {
	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 = "";
				if (thisahref != null) {
					thisahref.style.background = "url('http://www2.ku.edu/~silc/Danforth/images/icons/box_black.gif') no-repeat 0 0.5em";
					thisahref.style.font = "bold 1em Arial, Helvetica, sans-serif";
					thisahref.style.color = "#000";
				}
			} else {
				thisdiv.style.display = "none";
				if (thisahref != null) {
					thisahref.style.background = "url('www2.ku.edu/~silc/Danforth/images/icons/box_grey.gif') no-repeat 0 0.5em";
					thisahref.style.font = "normal 1em Arial, Helvetica, sans-serif";
					thisahref.style.color = "#0049ae";
				}
			}
			
		} // if (result != null)
	} // for (var i = 0...)
} // function content_switch_dot

function content_switch_arrow() {
	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 = "";
				if (thisahref != null) {
					thisahref.style.background = "url('http://www2.ku.edu/~silc/Danforth/images/icons/arrow_down.gif') no-repeat 0 0.3em";
					thisahref.style.font = "bold 1em Arial, Helvetica, sans-serif";
					thisahref.style.color = "#000";
					thisahref.style.lineHeight = "1.3";
				}
			} else {
				thisdiv.style.display = "none";
				if (thisahref != null) {
					//thisahref.style.background = "url('') no-repeat 0 0.6em";
					thisahref.style.background = "url('') no-repeat 0 0.5em";
					thisahref.style.font = "normal 1em Arial, Helvetica, sans-serif";
					thisahref.style.color = "#0049AE";
					thisahref.style.lineHeight = "1.3";
				}
			}
			
		} // if (result != null)
	} // for (var i = 0...)
} // function content_switch_arrow
