// JavaScript Document

//self.onError = null ;
currentY = 0 ;  
diffY=0;
whichIt = null ;           
lastScrollY = 0 ;
NS = (document.layers) ? 1 : 0 ;
IE = (document.all) ? 1: 0 ;

function heartBeat()
{

        if(IE) { diffY = document.documentElement.scrollTop;
		}
        else{ diffY = window.pageYOffset}
      
        if(diffY != lastScrollY)
        {
                percent = .1 * (diffY - lastScrollY) ;
                if (percent > 0) { percent = Math.ceil(percent) } else { percent = Math.floor(percent) } ;


		if(lastScrollY>100)
		{
                
				//alert(document.getElementById('left').offsetHeight);
				document.getElementById("left").style.top = lastScrollY+percent+"px";
                
        }
		lastScrollY = lastScrollY + percent ;
		}
}

function init()
{
        if (navigator.appName == "Netscape")
        {
                layerRef = "document.layers" ;
                styleSwitch = "" ;
                visibleVar = "show" ;
        }
        else
        {
                layerRef = "document.all" ;
                styleSwitch = ".style" ;
                visibleVar = "visible" ;
        }
        window.setInterval ("heartBeat()", 1) ;
}

