// JavaScript Document
<!--
	var clipTop = 0;
	var clipWidth = 123;
	var clipBottom = 140;
	var topper = 10;
	var lyrheight = 0;
	var time,amount,theTime,theHeight,DHTML;
	var upEnabled = false;
	var downEnabled = true;
	var dir;
	
	function init(){
		DHTML = (document.getElementById || document.all || document.layers)
		if (!DHTML) return;
		var x = new getObj('product_testo');
		if (document.layers)
		{
			lyrheight = x.style.clip.bottom;
			lyrheight += 30;
			x.style.clip.top = clipTop;
			x.style.clip.left = 0;
			x.style.clip.right = clipWidth;
			x.style.clip.bottom = clipBottom;
		}
		else if (document.getElementById || document.all)
		{
			lyrheight = x.obj.offsetHeight;
			x.style.clip = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';
		}
		if(parseInt(lyrheight) > 140){
			var scrollLayer = new getObj('product_arrows');
			scrollLayer.style.visibility = 'visible';
		}
	}
	
	function scrollayer(layername,amt,tim, direction){
		if (!DHTML) return;
		thelayer = new getObj(layername);
		if (!thelayer) return;
		amount = amt;
		theTime = tim;
		dir = direction
		realscroll();
	}
	
	function realscroll(){
		if (!DHTML) return;
		clipTop += amount;
		clipBottom += amount;
		topper -= amount;
		if(clipTop <= 0){		//swap images
			upEnabled = false;
			document.getElementById('arrowUp').src="gfx/arrow-up_disabled.gif";
		}else{
			upEnabled = true;
			dir=='up'?document.getElementById('arrowUp').src="gfx/arrow-up_over.gif":document.getElementById('arrowUp').src="gfx/arrow-up.gif";
		}
		if(clipBottom >= lyrheight + 20){
			downEnabled = false;
			document.getElementById('arrowDown').src="gfx/arrow-down_disabled.gif";
		}else{
			downEnabled = true;
			dir=='down'?document.getElementById('arrowDown').src="gfx/arrow-down_over.gif":document.getElementById('arrowDown').src="gfx/arrow-down.gif";
		}
		if (clipTop < 0 || clipBottom > lyrheight + 20)
		{
			clipTop -= amount;
			clipBottom -= amount;
			topper += amount;
			return;
		}
		if (document.getElementById || document.all)
		{
			clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';
			thelayer.style.clip = clipstring;
			thelayer.style.top = topper + 'px';
		}
		else if (document.layers)
		{
			thelayer.style.clip.top = clipTop;
			thelayer.style.clip.bottom = clipBottom;
			thelayer.style.top = topper;
		}
		time = setTimeout('realscroll()',theTime);
	}
	
	function stopScroll(){
		if (time) clearTimeout(time);
		upEnabled?document.getElementById('arrowUp').src="gfx/arrow-up.gif":document.getElementById('arrowUp').src="gfx/arrow-up_disabled.gif";
		downEnabled?document.getElementById('arrowDown').src="gfx/arrow-down.gif":document.getElementById('arrowDown').src="gfx/arrow-down_disabled.gif";
	}
	
	function getObj(name){
	  if (document.getElementById)
	  {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	  }
	  else if (document.all)
	  {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	  }
	  else if (document.layers)
	  {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	  }
	}
//-->