// divcss5 css www.divcss5.com
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 = 5;
var y = 10;// 左侧广告距离页首高度 CSS自学www.divcss5.com
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 = 5;
var y = 10;// 右侧广告距离页首高度 divcss5 www.divcss5.com
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 ></div>"
+"<div id=AdLayer2 style='position: absolute;visibility:hidden;z-index:1'><a href='tencent:\/\/message\/?uin="+Cookie("qqkf")+"'><img src=\"\/nc\/templets\/nsjold\/images\/qqkf.gif\"  alt=\"QQ\" border=0 \/><\/a></div></div>");
initEcAd()

// JavaScript Document
