var myScrooller = {
	divWith : 0,
	theDiv : '',
	theleft : 0,
	thetop : 0,
	windowHeight : 0,
	init: function(divId, divW, contentWidth){
		if(document.getElementById(divId)){
			this.theDiv = document.getElementById(divId);
			this.contentWidth = contentWidth;
			if (parseInt(navigator.appVersion)>3) {
				if (navigator.appName=="Netscape") {
					winW = window.innerWidth;
					layerW = this.theDiv.style.width;
					this.windowHeight = window.innerHeight;
				}
				if (navigator.appName.indexOf("Microsoft")!=-1) {
					winW = document.body.offsetWidth;
					layerW = this.theDiv.style.width;
					this.windowHeight = document.body.offsetHeight;
				}
				this.theleft = (winW / 2) - (layerW / 2)+(this.contentWidth / 2)
				this.beginMove();
			}
		}
	},
	beginMove: function(){
		var self = this;
		//window.setInterval(self.moveDiv, 1000, self);
		interval=setInterval(function() {self.moveDiv()}, 20);
	},
	moveDiv: function(self){
	 	this.thetop = this.getScrollXY();
	 	if(this.thetop[1] < this.windowHeight){
			this.theDiv.style.left = this.theleft+'px'; 
			this.theDiv.style.top = (this.thetop[1]+10)+'px'; 
		}
	},
	getScrollXY: function() {
	  var scrOfX = 0, scrOfY = 0;
	  if( typeof( window.pageYOffset ) == 'number' ) {
	    //Netscape compliant
	    scrOfY = window.pageYOffset;
	    scrOfX = window.pageXOffset;
	  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	    //DOM compliant
	    scrOfY = document.body.scrollTop;
	    scrOfX = document.body.scrollLeft;
	  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
	    //IE6 standards compliant mode
	    scrOfY = document.documentElement.scrollTop;
	    scrOfX = document.documentElement.scrollLeft;
	  }
	  return [ scrOfX, scrOfY ];
	}
}