//self.onError = null;

currentX = currentY = 0; 

whichIt = null; 

lastScrollX = 0; lastScrollY = 0;

NS = (document.layers) ? 1 : 0;

IE = (document.all) ? 1: 0;


<!-- STALKER CODE -->

function heartBeat(objectid) {

	if(IE) { diffY = document.documentElement.scrollTop; diffX = document.documentElement.scrollLeft; }

	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	

	if(diffY != lastScrollY) {

		percent = .1 * (diffY - lastScrollY);

		if(percent > 0) percent = Math.ceil(percent);

		else percent = Math.floor(percent);

		if(IE) {

			objectid = objectid.split(";"); 

			//for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;
			for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;

		}	

		if(NS) {

			objectid = objectid.split(";"); 

			for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).top += percent; 

		}	

		lastScrollY = lastScrollY + percent;

	}

	if(diffX != lastScrollX) {

		percent = .1 * (diffX - lastScrollX);

		if(percent > 0) percent = Math.ceil(percent);

		else percent = Math.floor(percent);

		if(IE) {

			objectid = objectid.split(";"); 
//				alert(eval("document.all."+objectid[0]).style.pixelLeft);
			for (i = 0; i < objectid.length; i++)
			{
				eval("document.all."+objectid[i]).style.pixelLeft += percent;
			}
		}	

		if(NS) {

			objectid = objectid.split(";"); 

			for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left += percent; 			

		}	

		lastScrollX = lastScrollX + percent;

	} 	

}

<!-- /STALKER CODE -->



if(NS || IE) action = window.setInterval("heartBeat('leftbar;rightbar;leftbara')", 2);

<!--//close-->
var rightbar ;
var topbar ;
var coupletcode;
//rightbar = window.screen.width-150+20;
topbar = window.screen.height/4;
if(window.screen.width>1024)
{
	rightbar = (window.screen.width-952)/2-105;	
}
else
{
	rightbar = 0;
}

//alert(window.screen.width-952);
//alert(rightbar);
var centerdot = window.screen.width / 2;

coupletcode = "<DIV id=leftbar style='LEFT: 16px; POSITION: absolute; TOP: 103px; VISIBILITY: hidden;' width=82>32</div>";
coupletcode += "<DIV id=rightbar style='right:"+rightbar+"px; POSITION: absolute; TOP: "+topbar+"px; VISIBILITY: hidden' WIDTH=102>32</div>";
coupletcode += "<DIV id=leftbara style='left:16px; POSITION: absolute; top:466px; VISIBILITY: hidden' WIDTH=81>32</div>";


if (window.screen.width>=1024)
{
document.write(coupletcode);
}

function InsertCouplet()
{
if (window.screen.width>=1024){	
document.getElementById("leftbar").style.visibility = "visible";
document.getElementById("rightbar").style.visibility = "visible";
document.getElementById("leftbara").style.visibility = "visible";
document.getElementById("leftbar").innerHTML = '';

document.getElementById("rightbar").innerHTML = '<img src=http://www.yipiw.com/templates/systemadmin/images/loading.gif>';

document.getElementById("leftbara").innerHTML = "&nbsp;";
}
}
	InsertCouplet();
	function leftBG_DoFSCommand(command,args){
		if (command == "quit"){
			document.all.leftbar.style.visibility = "hidden";
			document.all.rightbar.style.visibility = "hidden";
			document.all.leftbara.style.visibility = "hidden";
		}
	}
	function rightBG_DoFSCommand(command,args){
		leftBG_DoFSCommand(command,args);
	}
	<!--
	if (document.all){
		document.write("<Script language=\"JavaScript\" For=\"rightB\" Event=\"FSCommand(command,args)\">\n");
		document.write("	leftBG_DoFSCommand(command,args);\n");
		document.write("</Script>\n");
		document.write("<Script language=\"JavaScript\" For=\"leftB\" Event=\"FSCommand(command,args)\">\n");
		document.write("	rightBG_DoFSCommand(command,args);\n");
		document.write("</Script>\n");
	}
	//-->

//Kangk last edited 20070416
function ClosebarAll(){
	document.all.leftbar.style.visibility = "hidden";
	document.all.rightbar.style.visibility = "hidden";
	document.all.leftbara.style.visibility = "hidden";
}
function CloseLeft()
{
	document.all.leftbar.style.visibility = "hidden";
}
function CloseRight()
{
	document.all.rightbar.style.visibility = "hidden";
}
