
	var state1 = 0; 
	var state2 = (screen.height-180)/2; 
	var stateBASE = 10; 
	var stateSpeed = 200;
	var stateScrollSpeed = 10;

	var stmnTimer;
   	

	function stateMenu(){
		
		var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
		stmnStartPoint = parseInt(document.getElementById('popfrm').style.top, 10);
		stmnEndPoint = document.documentElement.scrollTop + state2;
		if (stmnEndPoint < state1) stmnEndPoint = state1;

		stmnRefreshTimer = stateSpeed;

		if ( stmnStartPoint != stmnEndPoint ) {
			stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
			document.getElementById('popfrm').style.top = parseInt(document.getElementById('popfrm').style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount);
			stmnRefreshTimer = stateScrollSpeed;
		}

		stmnTimer = setTimeout ("stateMenu();", stmnRefreshTimer);
	}


   	//document.write("<div id=\"popfrm\" style=\" left:"+(screen.width-400)/2+"px; top:"+(screen.height-160)/2+"px; WIDTH:400px; HEIGHT:160px; position:absolute; \"><iframe src=\"/chinese/newsInfo.aspx\" frameborder=\"0\" scrolling=\"no\" id=\"popupFrame\" name=\"popupFrame\"  style=\" WIDTH:400px; HEIGHT:160px; \"></iframe></div>")
   	document.write("<div id=\"popfrm\" style=\" display:none; left:"+(screen.width-400)/2+"px; top:"+(screen.height-180)/2+"px; WIDTH:400px; HEIGHT:180px; position:absolute; \"><iframe src=\"/chinese/newsInfo.aspx\" frameborder=\"0\" scrolling=\"no\" id=\"popupFrame\" name=\"popupFrame\"  style=\" WIDTH:400px; HEIGHT:180px; \"></iframe></div>")
	//showTimeout();
	
	document.getElementById('popfrm').style.top = document.documentElement.scrollTop + stateBASE;
	stateMenu();


	function showFrame(){
		document.getElementById('popfrm').style.display = "";
	}
	
    function closeFrame()
	{
		document.getElementById('popfrm').style.display = "none";
	}	
	
	function showTimeout(stime){
   		window.setTimeout("showFrame();" ,stime);
    }
    
    
    
