// *****************
// menu function
// special version for IE 6 (and lower, untested)
// from http://www.javascriptkit.com/javatutors/navigator.shtml 
var isIE = /MSIE (\d+\.\d+);/.test(navigator.userAgent);
var IEVersion = new Number(RegExp.$1);

function showMenu(menuNumber) { 
	hideAllMenus(); 
	document.getElementById('s'+menuNumber).style.visibility='visible'; 
	if (isIE && IEVersion == 7){
		
		document.getElementById('header').style.height='600px';
		document.getElementById('container').style.marginTop='-425px';
	
	}
	if (IEVersion < 7){
		document.getElementById('s'+menuNumber).style.display='block';
	}
}

function hideAllMenus() { 
	for (counter=1; counter<=5; counter++) { 
		document.getElementById('s'+counter).style.visibility='hidden'; 
	}
	if (isIE && IEVersion == 7){
		
			
			document.getElementById('header').style.height='175px';
			document.getElementById('container').style.marginTop='0px';
		
		
	}
	if (IEVersion < 7){
		for (counter=1; counter<=5; counter++) { 
		document.getElementById('s'+counter).style.display='none'; 
		}
	}
}


window.onload=function(){
	hideAllMenus();
	// this bit can go into an IE6 only stylesheet if we make one
	/*if (isIE && IEVersion <= 7){
		document.getElementById('container').style.margin='0px';
	}
*/}
document.onclick=hideAllMenus; 

// **********************
// JavaScript Document
//window.onload=hideAllMenus;

