﻿
image_btn_src = "cc.jpg";
image_src = "aa.jpg";

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
{/*Netscape stuff*/}
//alert(diffY);
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;
//alert(lastScrollY);
}
//
window.setInterval("heartBeat()",1);
//-->
//鍏抽棴鎸夐挳
function close_left1(){
    left1.style.visibility='hidden';
}
function close_left2(){
    left2.style.visibility='hidden';
}
function close_right1(){
    right1.style.visibility='hidden';
}
function close_right2(){
    right2.style.visibility='hidden';
}
//style
document.writeln("<style type=\"text\/css\">");
document.writeln("#leftDiv,#rightDiv{width:100px;margin:0px;background:#653101; padding:0px;position:absolute;}");
document.writeln(".itemFloat{width:100px;height:auto;margin:0px; padding:0px;}");
document.writeln(".itemFloat img a{margin:0px; padding:0px;}");
document.writeln("<\/style>");
//left
document.writeln("<div id=\"leftDiv\" style=\"top:140px;margin-left:55px\">");
//------left start
//---L0
document.writeln("<div id=\"left0\" class=\"itemFloat\" align='right'>");
document.writeln("<div href=\"#\" onclick=\"document.getElementById('leftDiv').style.display='none';\"><img border='0' src='"+image_btn_src+"'/></div>");
document.writeln("<\/div>");


//---L1

//---L2
document.writeln("<div id=\"left2\" class=\"itemFloat\">");
document.writeln("<img src='"+image_src+"' width='296'/>");
document.writeln("<\/div>");
//------left end
document.writeln("<\/div>");
