lastScrollY = 0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{}
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("leftDiv").style.top = parseInt(document.getElementById("leftDiv").style.top)+percent+"px";
document.getElementById("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;

}

window.setInterval("heartBeat()",1);



document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:160px;height:600px;position:absolute;z-index:10;}");
document.writeln(".itemFloat{width:160px;height:auto;line-height:5px}");
document.writeln("<\/style>");

document.writeln("<div id=\"leftDiv\" style=\"top:40px;left:5px\">");


document.writeln("<div id=\"left1\" class=\"itemFloat\">");
if(window.location.href.match(/\/download\/$/)){
document.writeln('<a href="http://jp.seafight.bigpoint.com/?aid=2989&aig=14&aip=" target=_blank><img src="/gg/img/seafight_banner_160x600_0_0_0_ja_13.gif" border=0 /></a>');
}else{
document.writeln('<a href="http://jp.darkorbit.bigpoint.com/?aid=2989&aig=22&aip=" target=_blank><img src="/gg/img/darkorbit_banner_160x600_0_0_ja.gif" border=0 /></a>');
}
document.writeln("<\/div>");

document.writeln("<\/div>");
document.writeln("<div id=\"rightDiv\" style=\"top:40px;right:5px\">");

document.writeln("<div id=\"right2\" class=\"itemFloat\">");
if(window.location.href.match(/\/download\/$/)){
document.writeln('<a href="http://jp.farmerama.bigpoint.com/?aid=2989&aig=171&aip=" target=_blank><img src="/gg/img/crazyfarmer_banner_160x600_0_0_ja_01.gif" border=0 /></a>');
}else{
document.writeln('<a href="http://jp.seafight.bigpoint.com/?aid=2989&aig=14&aip=" target=_blank><img src="/gg/img/seafight_banner_160x600_0_0_ja_09.gif" border=0 /></a>');
}
document.writeln("<\/div>");

document.writeln("<\/div>");
