// JavaScript Document

function setShowHide() {
	/* hide all show hide sections */
	var myTags=document.getElementsByTagName("div");
		for (var i=0; i< myTags.length; i++) {
		 var myTag = myTags[i]; 
		 if (myTag.className == "showHide"){
			 myTag.style.display = "none";
		 }
	}
}


function switchShowHide(ref) {
	/* switches between showing and hiding a section */
	var myTag=document.getElementById(ref);
	if (myTag.style.display =="none") {
		myTag.style.display="block";
	} else {
		myTag.style.display = "none";
	}
}


function openInNewWindow (sHref) {
	/*
	window.open accepts the following attributes:
	width, height, top, left, location, menubar, resizable, scrollbars, status, titlebar, toolbar
	*/
	var sAttributes = "";
	if (arguments.length > 1) {
		sAttributes = arguments[1];
	}
	myWindow = window.open(sHref,"_blank",sAttributes);
	myWindow.focus();
 }