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("rightFloater").style.top=parseInt(document.getElementById("rightFloater").style.top)+percent+"px";
//document.getElementById("rightFloater2").style.top=parseInt(document.getElementById("rightFloater2").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}

function chg(m){
var n=m;
if(n==1){
 document.all("rightFloater").style.left=-150;
 n=0;
 }
 else{
  document.all("rightFloater").style.left=0;
   n=1;
 }
}

rightFloaterDIV="<div id='rightFloater' style='position:absolute;top:100px;right:0px; cursor:pointer;font-size:12px;border-width:0px;border-style:none; width:170px'  onmouseout='chg(1)' onmouseover='chg(0)'><iframe id='frm' src='movepic.html'  scrolling='No' frameborder='0' width='185' height='260' ></iframe></div>";

document.write(rightFloaterDIV);
 document.all("rightFloater").style.left=-150;



window.setInterval("heartBeat()",1);
