﻿ 
	var run=0;	
	var show=0;	
	var s;
	var i = 0;
	var j = 100;
	var h;
	function $(d){return document.getElementById(d);}
	
	function   openwin1(obj)   
	{   
		var u = obj.value;
		showModalDialogScreenCenter(u,'450','550');
		obj.click();   
	} 
	
	function menuRow()	
	{			
	  	show=1;
	  	run=1;	
	 	menu.style.pixelTop-=5;	
	  	if(menu.style.pixelTop>0)	
			setTimeout('menuRow();','5');
	  	else	
	    	run=0;	
	}
	
	function menuShow()	
	{		
	  	if(!run&&!show)	
	  	{	
	   		menu.style.visibility='visible';	
			menup.style.visibility='visible';	
	   		menu.style.pixelTop=200;
	   		menu.style.pixelHeight=150;	   
	   		menuRow();	   
	   		var trData=document.getElementById("data");
			trData.style.display="none";
			var div = document.getElementById("item");
		//	div.style.top="504px";
	  	}	
	}
	
	function menuHide()	
	{
	  	if(!run&&show)	
	  	{	
		    menu.style.visibility='hidden';	
			menup.style.visibility='hidden';
		    show=0;
			var trData=document.getElementById("data");
			trData.style.display="block";
			var div = document.getElementById("item");
		//	div.style.top="410px";		
	  	}	
	}
	
	//function oneNEW(){
	
			//if(s){clearInterval(s);}
			//document.getElementById('searchResultDiv').style.filter = "Alpha(Opacity=0)";
			//document.getElementById('searchResultDiv').style.display="block";
		//	var pos = getPosition(cur_tr);
			//document.getElementById('searchResultDiv').style.top=55;
			//document.getElementById('searchResultDiv').style.left=700;			
   			//s = setInterval(change_show,1);
	//}
		
	//function change_show(){
	   //var obj = $("searchResultDiv");
	   //i=i+5; //逐渐显示速度
	   //obj.style.filter = "Alpha(Opacity=" + i + ")"; //透明度逐渐变小
	   //obj.style.opacity = i/100; //兼容FireFox
	  // if(i>=100){
		 //   clearInterval(s);
		//    i=0;
	   //}
	//}
	
	
	//function change_hidden(){
   		//var obj = $("searchResultDiv");
   		//j=j-5; //逐渐消失速度
   		//obj.style.filter = "Alpha(Opacity=" + j + ")"; //透明度逐渐变大
   		//obj.style.opacity = j/100; //兼容FireFox
   		//if(j<=0){
    	//	clearInterval(h);
   			//obj.style.display="none";
    	//	j=100;
    	//	obj.style.display="none";
   		//}
	//}
		
	//获取对象相对文档的绝对位置
	//function getPosition(e){
		//var left = 0;
		//var top  = 0;
		//while (e.offsetParent){
			//left += e.offsetLeft;
		//	top  += e.offsetTop ;
		//	e     = e.offsetParent;
		//}
	
		//left += e.offsetLeft ;
		//top  += e.offsetTop  ;
	
		//return {x:left, y:top};
	//}
	//鼠标移开事件
	//function oneOLD(){
		//h = setInterval(change_hidden,1);
	//}
		
	document.onmousewheel=function()	
	{	
		status=event.wheelDelta;
	}
   
	function   openwin()   
	{   
		showModalDialogScreenCenter('Appeal.jsp?___t_m___='+new Date(),'560','600');  
	} 
	
	function   openReport()   
	{   
		showModalDialogScreenCenter('Report.jsp?___t_m___='+new Date(),'560','600');
	} 
