function initEcAd() {
document.write("<style>"
+"A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}"
+"A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}"
+"</style>")
//document.all.AdLayer1.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=300 id=leftFF ALIGN=> <PARAM NAME=movie VALUE="+l_url+"> <PARAM NAME=quality VALUE=high><PARAM NAME=wmode VALUE=transparent> <EMBED id=leftFFG src="+l_url+" quality=high wmode=transparent  WIDTH=100 HEIGHT=300 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
//document.all.AdLayer2.innerHTML = "<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 WIDTH=100 HEIGHT=300 id=leftFF ALIGN=> <PARAM NAME=movie VALUE="+r_url+"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent><EMBED id=youFFG src="+r_url+" quality=high wmode=transparent  WIDTH=100 HEIGHT=300 NAME=you ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer></EMBED></OBJECT>";
document.all.AdLayer1.innerHTML = "<a href=http://www.sdxnw.gov.cn/ad/fanglei.asp?qxr=21 target=_blank><img src=ad/mingdangonggao.jpg border=0></a><br><div align=right><a href=javascript:closelayer('AdLayer1');closelayer('AdLayer2');  style='text-decoration:none;color:#000000;font-size:12px'>¹Ø±Õ</a></div>";
document.all.AdLayer2.innerHTML = "<a href=http://www.sdxnw.gov.cn/ad/fanglei.asp?qxr=22 target=_blank><img src=ad/huanzhenggonggao.jpg border=0></a><br><div align=right><a href=javascript:closelayer('AdLayer1');closelayer('AdLayer2'); style='text-decoration:none;color:#000000;font-size:12px'>¹Ø±Õ</a></div>"
//document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.posTop = -20;
document.all.AdLayer1.style.visibility = 'visible'
//document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.posTop = -20;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 0;
var y = 250;
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posLeft = x");
//setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 0;
var y = 250;
var diff = (document.body.scrollTop + y - document.all.AdLayer2.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = y");
eval("document.all." + layerName + ".style.posRight = x");
//setTimeout("MoveRightLayer('AdLayer2');", 20);
}
function closelayer(layerName){
	eval("document.all." + layerName + ".style.visibility = 'hidden'");
}
document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'>32</div>"
	+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'>32</div>");

initEcAd()
