isDOM = (document.getElementById) ? 1 : 0;
isIE = (document.all) ? 1 : 0;
isNS = (document.layers) ? 1 : 0;
heartBeatID = null;

function onWinLoad()
{ 
  if (document.all['elRightMenu'])
  {
	document.all['elRightMenu'].style.pixelTop = 130; 
	startBeat();
  }
};

function startBeat()
{
	heartBeatID = setInterval("heartBeat()",10);
}

// STALKER CODE START
self.onError=null;

currentY = 0;  
lastScrollY = 0;

function heartBeat() {
	if(isIE) { diffY = document.body.scrollTop; }
    else if(isNS) { diffY = self.pageYOffset; }
	else if(isDOM) { diffY = self.pageYOffset;	}

	if(diffY != lastScrollY) {
               	percent =  .1 * (diffY - lastScrollY);

                if(percent > 0) percent = Math.ceil(percent);
                else percent = Math.floor(percent);

				if(isIE) 
				{
					document.all['elRightMenu'].style.pixelTop += percent;
				}
				
                lastScrollY = lastScrollY + percent;
    }
	
}
// STALKER CODE END

if(isIE) 
{
	window.onresize = startBeat; 
	window.onload = onWinLoad;
}



