// JavaScript Document


    //-- 左边导航，鼠标经过和离开效果 Start --//
    var suffix;
	function left_over(obj){
	   if(obj.id!=suffix)
	   obj.className = "left_menu_over";
	}
	function left_out(obj){
	   if(obj.id!=suffix)
	   obj.className = "left_menu_out";
	}
	
	var   fname=location.pathname;  
	fname  = fname.substr(fname.lastIndexOf('/')+1);
	suffix = fname.substr(0,fname.lastIndexOf('.'));  //取得文件后缀
    //-- 左边导航，鼠标经过和离开效果 End --//


<!--
	if(document.getElementById(suffix)!=null){
		document.getElementById(suffix).className="left_menu_over";
	}

    //-- 在线ＱＱ，跟随滚动条上下移动 Start --//
	
	function moveRightEdge(ObjName) {
		var Obj = document.getElementById(ObjName);
		var yMenuTo = GetScrollTop();
		timeoutNextCheck = 0;
		Obj.style.marginTop =  yMenuTo + "px";
		setTimeout ('moveRightEdge("'+ ObjName + '")',timeoutNextCheck);	
	}

	var w3c=(document.getElementById)? true: false;
	var agt=navigator.userAgent.toLowerCase();
	var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));
	function IeTrueBody(){
		return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
	}
	function GetScrollTop(){
		return ie ? IeTrueBody().scrollTop : window.pageYOffset;
	}
	
	
	
	function LRHeight(){      //-- 控制id=left与id=right的高度 --//
		if(document.getElementById("left")!=null && document.getElementById("right")!=null){
			document.getElementById("left").style.height=(document.getElementById("right").clientHeight)+"px";
		}
	}
	LRHeight();




	if(window.navigator.userAgent.indexOf("Firefox")!=-1 && (location.pathname == "/index.asp" || location.pathname == "/")){
		fHeight("usrname");
		fHeight("usrpass");
		fHeight("usrverify");
		fHeight("u_name");
		fHeight("level");
	}
    
	function fHeight(inputID){
	   if(document.getElementById(inputID)!=null){ document.getElementById(inputID).style.height="15px";}
	}

    //以下代码功能是：让Firefox支持innerText
	function isIE(){ //ie?
	   if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)
		return true;
	   else
		return false;
	}
	
	if(!isIE()){ //firefox innerText define
	   HTMLElement.prototype.__defineGetter__("innerText",
		function(){
		 var anyString = "";
		 var childS = this.childNodes;
		 for(var i=0; i<childS.length; i++) {
		   if(childS[i].nodeType==1)
		     anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;
		   else if(childS[i].nodeType==3)
		     anyString += childS[i].nodeValue;
		 }
		 return anyString;
		}
	   );
	   HTMLElement.prototype.__defineSetter__(     "innerText",
		function(sText){
		 this.textContent=sText;
		}
	   );
	}


	
	

   function openwindow( url, winName, width, height){
		window.open(url,'iebook','height=425, width=685, toolbar=no , menubar=no, scrollbars=no, resizable=no, location=no, status=no');
	}
 function openwindow999( url, winName, width, height){
		window.open(url,'iebook','height=480, width=700, toolbar=no , menubar=no, scrollbars=no, resizable=no, location=no, status=no');
	}
	
	
var intervalId = null; 
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){ 
  this.stayTime=nStayTime*2000 || 10000; 
  this.maxHeigth=nMaxHth || 445; 
  this.minHeigth=nMinHth || 1; 
  this.state=sState || "down" ; 
  var obj = document.getElementById(id); 
  if(intervalId != null)window.clearInterval(intervalId); 
  function openBox(){ 
   var h = obj.offsetHeight; 
   obj.style.height = ((this.state == "down") ? (h + 15) : (h - 15))+"px"; 
    if(obj.offsetHeight>this.maxHeigth){ 
    window.clearInterval(intervalId); 
    intervalId=window.setInterval(closeBox,this.stayTime); 
    } 
    if (obj.offsetHeight<this.minHeigth){ 
    window.clearInterval(intervalId); 
    obj.style.display="none"; 
    } 
  } 
  function closeBox(){ 
   slideAd(id,this.stayTime,"up",nMaxHth,nMinHth); 
  } 
  intervalId = window.setInterval(openBox,10); 
} 	
	
	
//-->

