function content_switch() {
	var thisid = '';
	var thisdiv = '';
	var result = '';
	var all = 0;
	
	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++;
				}
				if (arguments[j] == 'all') {
					arg_match++;
					all++;
				}
			}
			
			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://static.askadmissions.net/ku/vaimages//box_black.gif') no-repeat 0 0.6em";
					thisahref.style.font = "bold 0.8em Verdana, Geneva, Arial, Helvetica, sans-serif";
					thisahref.style.color = "#000";
				}
			} else {
				if (all == 0) {
					thisdiv.style.display = "none";
					if (thisahref != null) {
						thisahref.style.background = "url('http://static.askadmissions.net/ku/vaimages//box_grey.gif') no-repeat 0 0.6em";
						thisahref.style.font = "normal 0.8em Verdana, Geneva, Arial, Helvetica, sans-serif";
						thisahref.style.color = "#003a74";
					}
				} // if (all == 0)
			} // if (arg_match > 0)
			
		} // if (result != null)
	} // for (var i = 0...)
} // function content_switch

function ignoreSpaces(string) 
{
	var temp = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	temp += splitstring[i];
	return temp;
}

