﻿ 
self.onError = null;

currentX = currentY = 0; 

whichIt = null; 

lastScrollX = 0; lastScrollY = 0;

NS = (document.layers) ? 1 : 0;

IE = (document.all) ? 1: 0;
 

function heartBeat(objectid) {

	if(IE) { diffY = document.body.scrollTop; diffX = document.body.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;

		}	

		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(";"); 

			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;

	} 	

}
 


if(NS || IE) action = window.setInterval("heartBeat('leftbar;rightbar')", 2);
 
var rightbar;
var coupletcode;
rightbar = window.screen.width-150+20;

coupletcode = "<DIV id=leftbar style='LEFT: 16px; POSITION: absolute; TOP: 160px; VISIBILITY: hidden;' width=82>32</div><DIV id=rightbar style='right:10px; POSITION: absolute; TOP: 160px; VISIBILITY: hidden' WIDTH=102>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("leftbar").innerHTML = "<div style='width:50px;height:380px;font-size:30px;font-family:黑体;color:#FFF000;background-color:#C03927;line-height:42px;padding:0px;'><div style='margin-left:8px;margin-top:12px;'>威<br>扬<br>四<br>海<br>共<br>建<br>神<br>州</div></div>";
document.getElementById("rightbar").innerHTML = "<div style='width:50px;height:380px;font-size:30px;font-family:黑体;color:#FFF000;background-color:#C03927;line-height:42px;padding:0px;'><div style='margin-left:8px;margin-top:12px;'>龙<br>行<br>天<br>下<br>舞<br>动<br>中<br>国</div></div>";
//FLASH
//document.getElementById("leftbar").innerHTML = "<a href=#><embed src='Images/Swf/duilian.swf' width='100' height='250' quality='high' align='center' pluginspage='http:\/\/www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed></a>";
//document.getElementById("rightbar").innerHTML = "<a href=#><embed src='Images/Swf/duilian2.swf' width='100' height='250' quality='high' align='center' pluginspage='http:\/\/www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed></a>";
}
}
	InsertCouplet();
	function leftBG_DoFSCommand(command,args){
		if (command == "quit"){
			document.all.leftbar.style.visibility = "hidden";
			document.all.rightbar.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");
	}
	 

