
/*
clientSide@stuntLab.com Sunday, August 26, 2001 4:25:14 PM
This script only works with browsers that implement the document.all collection and the onmousemove event. Users of other browsers should experience nothing.
*/
	theOffsetY=0;
	theOffsetX=0;
	contentStartPositionX='notSet';
	contentStartPositionY='notSet';
	scrollBodyInit=0;
	function scrollBody(){
		if(document.all){
			if(!scrollBodyInit){
				with(document.body){
					onselectstart=returnFalse;
					style.cursor="move";
				}
				scrollBodyInit=1
			}
			if(event.button==1){
				if(!theOffsetY){
					theOffsetY=event.clientY;
				}
				if(!theOffsetX){
					theOffsetX=event.clientX;
				}
				doScroll(event.clientX,event.clientY)
			}else{
				theOffsetY=0;
				theOffsetX=0;
				contentStartPositionY='notSet';
				contentStartPositionX='notSet';
			}
		}
	}
	function toggleDragScroll(){
		if(document.all){
			if(document.body.onmousemove){
				with(document.body){
					onmousemove=null;
					onselectstart=null;
					style.cursor="auto";
				}
			}else{
				with(document.body){
					onmousemove=scrollBody;
					onselectstart=returnFalse;
					style.cursor="move";
				}	
			}
		}
	}	
	function returnFalse(){
		return false;
	}
	function doScroll(theX,theY){
		if(contentStartPositionY=='notSet'){
			contentStartPositionY=document.body.scrollTop;
		}
		if(contentStartPositionX=='notSet'){
			contentStartPositionX=document.body.scrollLeft;
		}
		var theNewPositionY = contentStartPositionY+theOffsetY-theY;
		var theNewPositionX = contentStartPositionX+theOffsetX-theX;
		scrollTo(theNewPositionX,theNewPositionY);
	}