// JavaScript Document

function showhide(id){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		if (obj.style.display == "none"){ 
			obj.style.display = ""; 
		} else { 
			obj.style.display = "none"; 
		} 
	} 
}
function showhide2(id,onoff){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		if (onoff == 1) { obj.style.display = ""; } 
		if (onoff == 0) { obj.style.display = "none"; } 
	} 
}
function movenav(id){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		if (obj.style.position == "fixed"){ 
			obj.style.position = "absolute"; 
		} else { 
			obj.style.position = "fixed"; 
		} 
	} 
}
function navfloat(id,onoff){ 
	if (document.getElementById){ 
		obj = document.getElementById(id);
		if (onoff == 0){ obj.style.position = "absolute"; }
		if (onoff == 1){ obj.style.position = "fixed"; }
	} 
}
function aboutshow(id){ 
	if (document.getElementById){ 
		var x, section1, section2;
		var sections = new Array();
		sections[0] = "history";
		sections[1] = "misvis";
		sections[2] = "beliefs";
		sections[3] = "quality";
		sections[4] = "awards";
		
		for (x in sections)
		{
			section1 = sections[x]+"1";
			section2 = sections[x]+"2";
			obj = document.getElementById(section1);
			obj.style.display = "none";
			obj = document.getElementById(section2);
			obj.style.display = "none";
		}

		obj = document.getElementById(id+"1");
		obj.style.display = "";
		obj = document.getElementById(id+"2");
		obj.style.display = "";
	} 
}
function servshow(id){ 
	if (document.getElementById){ 
		var sections = new Array();
		var loop = new Boolean(true);
		var count = 1;
		
		while(loop)
		{
			try
			{
				obj = document.getElementById("a"+count);
				obj.style.display = "none";
				count++;
			} catch (e) {
				loop = false;
			}
		}
		
		obj = document.getElementById("gen");
		obj.style.display = "none";

		obj = document.getElementById(id);
		obj.style.display = "";
	} 
}
