// JavaScript Document
var rightbar;
var coupletcode;
rightbar = window.screen.width-122;

coupletcode = "<style>.d{color:#f00;font-size:12pt;line-height:18px;} .dd{color:#900;font-size:12pt;line-height:20px;}.ddd{color:green;font-size:12pt;line-height:18px;}</style>";
coupletcode += "<DIV id=rightbar1 style='LEFT: " + rightbar + "px; POSITION: absolute; top: 150px; VISIBILITY: hidden; padding-top:15px; background-color:#DAEDFC;font-weight:bold; width:100px; height:70px; text-align:center;'>32</div>";
coupletcode += "<DIV id=rightbar2 style='LEFT: " + rightbar + "px; POSITION: absolute; top: 350px; VISIBILITY: hidden; padding-top:15px; background-color:#DAEDFC;font-weight:bold; width:100px;height:70px;text-align:center;'>32</div>";

if (window.screen.width>=1024){
	document.write(coupletcode);
}

function InsertCouplet(){
	if (window.screen.width>=1024){	
		document.getElementById("rightbar1").style.visibility = "visible";
		document.getElementById("rightbar2").style.visibility = "visible";
		
		document.getElementById("rightbar1").innerHTML = "<a href=\"http:\/\/www.magnetic.com.cn\/en\/smyx\/hctd\/rzyhc\/rzyhc4.php#cz\" target=\"_blank\"><span class='d' onMouseOver=\"className='dd'\" onMouseOut=\"className='d'\">Supplies</span><p /><span style='color:#000;'>magnetic</span></a>";
		document.getElementById("rightbar2").innerHTML = "<a href=\"http:\/\/www.magnetic.com.cn\/en\/smyx\/quick\/dylx.php\" target=\"_blank\"><span class='ddd' onMouseOver=\"className='dd'\" onMouseOut=\"className='ddd'\"><font>Production<br />Details</font></span><br /><span style='color:#000;'>magnetic</span></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);
}

function move(){
	var rightbar1Obj = document.getElementById("rightbar1");
	var rightbar2Obj = document.getElementById("rightbar2");
	rightbar1Obj.style.top = document.body.scrollTop + 150 + 'px';
	rightbar2Obj.style.top = document.body.scrollTop + 350 + 'px';
}
window.onscroll = move;

<!--
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");
}
//-->
