	var tm;
	
	screenWidth=window.screen.width;
	leftBlankWidth=(screenWidth-778)/2;

	layerStyleright = leftBlankWidth+140;

	function popmenu(){
		var obj = document.getElementById( "entermenu" );
		var objspan = document.getElementById( "enter" );
		var arrayspan = getoffset( objspan );
		oRect = objspan.getBoundingClientRect();
		obj.style.visibility = "";
		obj.style.left = arrayspan[1];
		obj.style.top = arrayspan[0] + objspan.offsetHeight;
		hiddenentermenu();//鼠标在其他位置时过一秒菜单消失
	}
	
	function getoffset(e){ 
		var t=e.offsetTop; 
		var l=e.offsetLeft; 
		while(e=e.offsetParent)
		{ 
			t+=e.offsetTop; 
			l+=e.offsetLeft; 		
		} 
		var rec = new Array(1);
		rec[0] 	= t;
		rec[1]	= l;
		return rec
	}
	
	function hiddenentermenu(){
		clearTimeout(tm);
	    tm = setTimeout( "hhide()",1000 );
	}
	function hhide(){
		var obj = document.getElementById( "entermenu" );
		obj.style.visibility = "hidden";
	}