//document.onclick=mnHIDE;
isOpera = 0;
isOpera6 = 0;
isOpera7 = 0;
isOpera8 = 0;
isOpera9 = 0;
isNetscape4 = 0;
isMozilla = 0;
isDOM=(document.getElementById)?1:0;//DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
isOpera=isOpera5=(window.opera && isDOM)?1:0;//Opera 5+
isOpera6=(isOpera && window.print)?1:0; //Opera 6+
isOpera7=(isOpera && document.readyState)?1:0 ;//Opera 7+
isMSIE=(document.all && document.all.item && !isOpera)?1:0; //Microsoft Internet Explorer 4+
isMSIE5=(isDOM && isMSIE)?1:0; //MSIE 5+
isNetscape4=(document.layers)?1:0; //Netscape 4.*
isMozilla=(isDOM && navigator.appName=="Netscape")?1:0; //Mozilla eee Netscape 6.*

var t2="";//timeOut;
var mn=document.getElementById("mn_2");
var mn_cur='';
var oo=0;
nav=navigator.userAgent;k=nav.indexOf("Opera");if(k>-1){oo=1}//Opera
function mnHIDE(){
	mn.style.display="none";
	//document.getElementById("td_"+mn_cur).className="menu_off";
	mn_cur="";
}
function mnHIDE_2(){
	t2=setTimeout("mnHIDE()",30);
}
function mnSHOW(n){
	clearTimeout(t2);
	if(mn_cur != n){
		if(mn_cur!=''){document.getElementById("td_"+mn_cur);}
		document.getElementById("td_"+n);
		w = document.body.clientWidth;
		mn_cur = n;
		mn.style.display="none";		
		mn=document.getElementById("mn_"+n);
		if(navigator.appName=="Netscape" || oo==1){
			obj=document.getElementById("td_"+n);
			
			x = 0;
			while(obj)
			{
				x = x + obj.offsetLeft;
				obj = obj.offsetParent;
			}
			x = x-2;
		
		}else{
		
			x=event.x-event.offsetX-2;
			x = x+document.body.scrollLeft;
		}

		mn.style.left=x;
		mn.style.top=40;
		mn.style.display="block";
}	}

function mnHOLD(){
	clearTimeout(t2);
	//document.getElementById("td_"+mn_cur).className="menu_on";
}

function on1(a){
document.getElementById('menu_'+a).className='mn_a';
}
function off1(a){
document.getElementById('menu_'+a).className='mn';
}
