function resetCSS(){
	for(i = 0; i <= 3; i++){
		eval ("document.getElementById('" + "menu" + i + "').style.backgroundColor" + " = '" + "white" + "'") 
		eval ("document.getElementById('" + "menu" + i + "').style.color" + " = '" + "black" + "'") 
	}
}
function selectCSS(el_id, CSS_val) { 
	for(i = 0; i <= 3; i++){
		eval ("document.getElementById('" + "menu" + i + "').style.backgroundColor" + " = '" + "white" + "'") 
		eval ("document.getElementById('" + "menu" + i + "').style.color" + " = '" + "black" + "'") 
	}
	eval ("document.getElementById('" + "menu" + el_id + "').style.backgroundColor" + " = '" + CSS_val + "'") 
	eval ("document.getElementById('" + "menu" + el_id + "').style.color" + " = '" + "white" + "'") 
} 
	var delay_hide=6000

	function resetit(e){
	if (document.all&&!menuobj.contains(e.toElement))
	delayhide=setTimeout("showit(-1)",delay_hide)
	else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
	delayhide=setTimeout("showit(-1)",delay_hide)
	}
	
	function clear_delayhide(){
	if (window.delayhide)
	clearTimeout(delayhide)
	}
	
	function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
	}
	
	function showit(which){
	clear_delayhide()
	if (which==-1){
		thecontent=""
		resetCSS()
	}
	else {
		thecontent = submenu[which]
		selectCSS(which,'#069966')
	}
	if (document.getElementById||document.all)
	menuobj.innerHTML=thecontent
	else if (document.layers){
	menuobj.document.write(thecontent)
	menuobj.document.close()
	}
	}