
			var speed=1;
			var loop, timer;

			function makeObj(id,nest){
				var d = document;
				this.ie = d.all ? 1 : 0
				this.ns = d.layers ? 1 : 0
				this.dom = d.getElementById ? 1 : 0

				this.id = id;
			    nest=(!nest) ? '':'document.'+nest+'.';
				this.el = this.dom ? d.getElementById(this.id) : this.ie ? d.all[this.id] : this.ns ? d.layers[this.id]:0 ;
				this.css=this.dom?d.getElementById(this.id).style:this.ie?d.all[this.id].style:this.ns?eval(nest+'document.'+this.id):0;
				this.scrollHeight=this.ns?this.css.document.height:this.el.offsetHeight;
				this.clipHeight=this.ns?this.css.clip.height:this.el.offsetHeight;
				this.scrollWidth=this.ns?this.css.document.width:this.el.offsetWidth;
				this.clipWidth=this.ns?this.css.clip.width:this.el.offsetWidth;
				this.up=goUp;this.down=goDown;this.left=goLeft;this.right=goRight;
				this.x = this.css.left; this.y = this.css.top;
				this.moveIt=moveIt;
			    this.obj = this.id + "Object";
			    eval(this.obj + "=this");
			    return this;
			}

			function moveIt(x,y){
				this.x=x;this.y=y;
				this.css.left=this.x;
				this.css.top=this.y;
			}

			function goDown(move){
			    var fChildsHeight = 0;
			    for (i = 0; i < this.el.childNodes.length; i++) {
			     if (this.el.childNodes[i].tagName && this.el.childNodes[i].tagName.toLowerCase() == 'div') {
                    fChildsHeight += this.el.childNodes[i].offsetHeight;
			     }
			    }

				if(this.y>- (fChildsHeight - container.clipHeight + 40)){
					this.moveIt(this.x,this.y-move);
					if(loop) setTimeout(this.obj+".down("+move+")",speed);
				}
			}

			function goUp(move){
				if(this.y<0){
				this.moveIt(this.x,this.y-move);
				if(loop) setTimeout(this.obj+".up("+move+")",speed);
				}
			}

			function goLeft(move){
				if(this.x>-this.scrollWidth+container.clipWidth){
					this.moveIt(this.x-move,this.y);
					if(loop) setTimeout(this.obj+".left("+move+")",speed);
				}
			}

			function goRight(move){
				if(this.x<0){
					this.moveIt(this.x-move,this.y);
					if(loop) setTimeout(this.obj+".right("+move+")",speed);
				}
			}

	function scrollV(speed){
		if(loaded){
			loop=true;
			if(speed>0) scroll.down(speed);
			else scroll.up(speed);
		}
	}

	function scrollH(speed){
		if(loaded){
			loop=true;
			if(speed>0) scroll.left(speed);
			else scroll.right(speed);
		}
	}

	function noScroll(){
		loop=false;
		if(timer) clearTimeout(timer);
	}

	var loaded;
   	var num;
	var container;
	var scroll;

	function scrollInit(containerId, scrollId) {
			container = new makeObj(containerId);
			scroll = new makeObj(scrollId, containerId);
			container.css.visibility = 'visible';
			loaded=true;
		}