function ff(id){ 
			return document.getElementById(id);
		}

		var timeOut = null;
		var left;
		var t;
		var inicial;
		var final = 123456789;
		var idCorre = 'max';

		function stopScroll(){
			self.clearTimeout(timeOut);
		}
		function move(inicial, amt){
			
			left = Math.round(parseInt(ff(idCorre).scrollLeft));
			inicial = Math.round(parseInt(inicial));
			amt = Math.round(parseInt(amt));
			//ELASTICO
			//t=Math.round(left+=(inicial+=((amt-left-inicial)*3)/10));
			//FREIO
			t = left+(amt-left)*.3; 
			//DIRETO
			//t = amt;
			//ff(idCorre).scrollLeft=Math.round(t);
			ff(idCorre).scrollLeft = Math.round(t);
			
			if(final != t){
				final = t;
				timeOut = self.setTimeout('move('+inicial+','+amt+')',1);
			}else{
				stopScroll();
			}
			//timeOut = self.setTimeout('move('+inicial+','+amt+')',45);
			
		}
		function direita(amt){
			stopScroll();
			var inicial = 0;
			amt = Math.round(parseInt(ff(idCorre).scrollLeft+amt));
			move(inicial, amt);
		}
		function esquerda(amt){
			stopScroll();
			var inicial = 0;
			amt = Math.round(parseInt(ff(idCorre).scrollLeft-amt));
			move(inicial, amt);
		}
// Java Document
