function initEcAd() {
document.all.AdLayer1.style.posTop = -200;
document.all.AdLayer1.style.visibility = 'visible'
document.all.AdLayer2.style.posTop = -200;
document.all.AdLayer2.style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
MoveRightLayer('AdLayer2');
}
function MoveLeftLayer(layerName) {
var x = 0;
var y = 200;// 左侧广告距离页首高度
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 = parseInt(y)");
eval("document.all." + layerName + ".style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 20);
}
function MoveRightLayer(layerName) {
var x = 0;
var y = 200;// 右侧广告距离页首高度
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);
}

document.write("<div id=AdLayer1 style='position: absolute;visibility:hidden;z-index:1'></div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><a href='http://sighttp.qq.com/cgi-bin/check?sigkey=72d35736d0c176d22c5cb2d5e212099d423d7db58c2c9640345dc2e8b237c71c25585ff9bf726ac0d13081c9f5384f63a5deb2a196e7b9ac395661934ecb26073ba74131705e927220c9ca16946bd72343727d71652169bbbb8abc7ff2d53d54d0cb2a848c551c1dd3dfc2f6ad6da49d'; target=_blank; onclick='var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=72d35736d0c176d22c5cb2d5e212099d423d7db58c2c9640345dc2e8b237c71c25585ff9bf726ac0d13081c9f5384f63a5deb2a196e7b9ac395661934ecb26073ba74131705e927220c9ca16946bd72343727d71652169bbbb8abc7ff2d53d54d0cb2a848c551c1dd3dfc2f6ad6da49d';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;'><img border='0' SRC='/kf.jpg' alt='经艺装饰'></a></div>");
initEcAd()

// JavaScript Document