// JavaScript Document


		var globalObject;
		ElementToScroll = function(elementId){ // onload="oneElement=new ElementToScroll(elementID)"

			this.thisElement=document.getElementById(elementId); 

			
			this.aktiv=1; //integer for window.setInterval() sets scrolling ON || OFF
			
			
			this.step=3; // scroll by this ========== SEE this.setOptions()
			this.speed=80; // window.setInterval('',this.speed) ========== SEE this.setOptions()
		
			
			this.setOptions = function(step,speed){
			
				if(step){
					this.step=step;
				}


				if(speed){
					this.speed=speed;
				}
			
			}
			
			
			// function to scroll horizontal - call with this.aktiv=window.setInterval() onEvent - don't forget to clearInterval on other event
			this.scrollHorizontal = function(direction){
				this.thisElement.scrollLeft+=this.step*direction;
			}



			// function to scroll vertical - call with this.aktiv=window.setInterval() onEvent - don't forget to clearInterval on other event
			this.scrollVertical = function(direction){
				this.thisElement.scrollTop+=this.step*direction;
			}
		}
		
