// JavaScript Document
/*You have permission from Brawley Web Designs to use this Javascript
on your PERSONAL website. This permission is granted only if
this comment is left, intact (within the Javascript program),
and the Javascript coding is left unchanged, except where
you insert your URLs.
Thank you
Brawley Web Designs
http://www.brawleywebdesign.com
*/
	self.onError=null;
        currentX = currentY = 0;
	lastScrollX = 0; lastScrollY = 0;
        NS = (document.layers) ? 1 : 0;
	IE = (document.all) ? 1: 0;

	function Engine() {

		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.floater.style.pixelTop += percent;
					if(NS) document.floater.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.floater.style.pixelLeft += percent;
			if(NS) document.floater.left += percent;
			lastScrollX = lastScrollX + percent;
		}
	}

	function checkFocus(x,y) {
	tbx = document.floater.pageX;
	tby = document.floater.pageY;
	tbwidth = document.floater.clip.width;
	tbheight = document.floater.clip.height;
	if( (x > tbx && x < (tbx+tbwidth)) && (y > tby && y < (tby+tbheight))) return true;
	else return false;
	}
if(NS || IE) action = window.setInterval("Engine()",1);