﻿
self.onError = null;
currentX = currentY = 0; 
whichIt = null; 
lastScrollX = 0; lastScrollY = 0;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat(objectid) {
    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) {
            objectid = objectid.split(";"); 
            for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelTop += percent;
        }    
        if(NS) {
            objectid = objectid.split(";"); 
            for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).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) {
            objectid = objectid.split(";"); 
            for (i = 0; i < objectid.length; i++) eval("document.all."+objectid[i]).style.pixelLeft += percent;
        }    
        if(NS) {
            objectid = objectid.split(";"); 
            for (i = 0; i < objectid.length; i++) eval("document."+objectid[i]).left += percent;             
        }    
        lastScrollX = lastScrollX + percent;
    }     
}
<!-- /STALKER CODE -->
if(NS || IE) action = window.setInterval("floater1;floater2", 1);
//if (IE){
////    document.write("<DIV id='floater' style='LEFT: 0px; TOP: 5px; POSITION: absolute; WIDTH: 80; VISIBILITY: visible; Z-INDEX: 10;filter: Alpha(Opacity=88)'><a href='http://bns.23city.com/' target='_blank'><IMG src='Upload/"+document.getElementById("bottom1_leftImage").value+"' height='140' width='120' border='0'></a></DIV>");
////    document.write("<DIV id='floater1' style='right: 0px; TOP: 5px; POSITION: absolute; WIDTH: 80; VISIBILITY: visible; Z-INDEX: 10; filter: Alpha(Opacity=88)'><a href='http://bns.23city.com/' target='_blank'><IMG src='Upload/"+document.getElementById("bottom1_rightImage").value+"' height='140' width='120' border='0'></a></DIV>");
//    document.write("<DIV id='floater' style='LEFT: 0px; TOP: 70px; POSITION: absolute; WIDTH: 80; VISIBILITY: visible; Z-INDEX: 10;filter: Alpha(Opacity=88)'><IMG src='Upload/"+document.getElementById("bottom1_leftImage").value+"' height='140' width='107' border='0'></DIV>");
//    document.write("<DIV id='floater1' style='right: 0px; TOP: 70px; POSITION: absolute; WIDTH: 80; VISIBILITY: visible; Z-INDEX: 10; filter: Alpha(Opacity=88)'><IMG src='Upload/"+document.getElementById("bottom1_rightImage").value+"' height='140' width='117' border='0'></DIV>");
//}    
//if (NS){
//    document.write("<layer id=myleft top=5 width=80 height=80></layer>");
//}

