function scrollObject(id){
this.domel=document.getElementById(id);
this.speed=30; // smaller is faster
this.pause=6000; // bigger is longer
var flagIE=(this.domel.currentStyle)?true:false;
var x=0;
if(flagIE){x=this.domel.offsetHeight;}
else{
	x+=parseInt(window.getComputedStyle(this.domel,null).getPropertyValue('height'),10);
	x+=parseInt(window.getComputedStyle(this.domel,null).getPropertyValue('padding-top'),10);
	x+=parseInt(window.getComputedStyle(this.domel,null).getPropertyValue('padding-bottom'),10);
	x+=parseInt(window.getComputedStyle(this.domel,null).getPropertyValue('border-top-width'),10);
	x+=parseInt(window.getComputedStyle(this.domel,null).getPropertyValue('border-bottom-width'),10);
}
this.scrtop=x;
this.scrtopbot=x;
this.scrtoptop=-x;
var obj=this;
this.scrMove=function(){
	if(obj.scrtop<obj.scrtoptop){obj.scrtop=obj.scrtopbot;}
	else{--obj.scrtop;}
	obj.domel.style.top=obj.scrtop+'px';
	var x;
	if(obj.scrtop!=0){x=obj.speed;}
	else{x=obj.pause;}
	setTimeout(obj.scrMove,x);
};
this.scrMove();
}
