// Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
// This script may be used and changed freely as long as this msg is intact
// Visit http://getElementById.com/ for more free scripts and tutorials.
// Script featured at SimplytheBest.net http://simplythebest.net/scripts/
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");


// the above only appears to control items in div layer "cont", and can only
// control one instance of it.
// Since I'm using two instance of the same kind of script, I needed to make 
// two functions for it. Below is the second one and has been named 
// "SwitchMenu2" and it controls div layer "cont2"

function SwitchMenu2(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont2").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");