//var action=window.setInterval("heartBeat()",5);
var action;
        self.onError=null;

        currentX = currentY = 0;
        whichIt = null;
        lastScrollX = 0; lastScrollY = 0;

        NS = (document.layers) ? 1 : 0;
        IE = (document.all) ? 1: 0;

        function heartBeat() {

                if(IE) { diffY = document.body.scrollTop; diffX =
document.body.scrollLeft; }
            if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }

                if(diffY != lastScrollY) {
                        percent = .1 * (diffY - lastScrollY);
                        if(percent > 0) percent = Math.ceil(percent);
                        else percent = Math.floor(percent);
                        if(IE) document.all.slide.style.pixelTop+= percent;
                        if(NS) document.slide.top += percent;
                        lastScrollY = lastScrollY + percent;
            }
                if(diffX != lastScrollX) {
                        percent = .1 * (diffX - lastScrollX);
                        if(percent > 0) percent = Math.ceil(percent);
                        else percent = Math.floor(percent);
//                        if(IE) document.all.slide.style.pixelLeft += percent;
//                        if(NS) document.slide.left += percent;
                        if(IE) document.all.slide.style.pixelLeft = 16;
                        if(NS) document.slide.left = 16;
                        lastScrollX = lastScrollX + percent;
                }
        }

function init(){action=window.setInterval("heartBeat()",5);}
function destroy(){action=window.clearInterval(action);}