	 /* Fucntion toggleLayer
		* Author: Robbie Smith
		* Date: 2/2/2009 7:42 PM
		* input: div id
		* output: sets the target div to on or off
		* purpose: show or hide content most commonly found in news articles when the "Read More..." concept is needed
		**/
		
function toggleLayer(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		if (style2.display == "none") {
			style2.display = "";
		} else {
			style2.display = "none";	
		}
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		if (style2.display == "none") {
			style2.display = "";
		} else {
			style2.display = "none";	
		}
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		if (style2.display == "none") {
			style2.display = "";
		} else {
			style2.display = "none";	
		}
	}
}

	 /* Fucntion toggleLayerTo
		* Author: Robbie Smith
		* Date: 2/2/2009 7:43 PM
		* input: div id and what to set the layer to (possible inputs are block and none
		* output: sets the target div to given layer.
		* purpose: show or hide content 
		* difference from above: this is used for multiple areas are shown and hidden, like tabbed browsing, or switching layers out
		**/

function toggleLayerTo(whichLayer, to) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = to;
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = to;
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = to;
	}
}
