var imgs=new Array();
imgs[0]="../img_prodotti/apal.jpg";
imgs[1]="../img_prodotti/apal_biflusso.jpg";
imgs[2]="../img_prodotti/apal_tangenziale_250.jpg";
imgs[3]="../img_prodotti/apal_vigneto_250.jpg";
imgs[4]="../img_prodotti/bufera.jpg";
imgs[5]="../img_prodotti/bufera_vigneto.jpg";
imgs[6]="../img_prodotti/export.jpg";
imgs[7]="../img_prodotti/mustang.jpg";
imgs[8]="../img_prodotti/mustang_biflusso.jpg";
imgs[9]="../img_prodotti/mvigneto.jpg";
imgs[10]="../img_prodotti/mtangenziale.jpg";
imgs[11]="../img_prodotti/turbobufera.jpg";
imgs[12]="../img_prodotti/turbomustang.jpg";
imgs[13]="../img_prodotti/ecomustag.jpg";
imgs[14]="../img_prodotti/diserb_01.jpg";
imgs[15]="../img_prodotti/diserb_02.jpg";
imgs[16]="../img_prodotti/dubijet3.jpg";
imgs[17]="../img_prodotti/barra_a_croce.jpg";
imgs[18]="../img_prodotti/barra_interfilare.jpg";
var cpt=0;
function changeimages()
{
	var d =	document.getElementById("ima")
	if (d!=null)
	{
		d.src=imgs[cpt];
		cpt++;
		if(cpt>=imgs.length) cpt=0;
		setTimeout("changeimages()",1200);
	}
}

function apri(obj) {
  var d=document.getElementById(obj).style;
  if (d.display=="none" || d.display=="") d.display="block";
  else d.display="none";
}

function apri_IE(obj) {
  var d=obj.nextSibling.style;
  if (d.display=="none" || d.display=="") d.display="block";
  else d.display="none";
}

function chiudi(obj) {
  obj.style.display="none";
}


function openWin (image)
{
	window.open('../../img_prodotti/' + image,"Dettaglio","status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no");
}

// Set the horizontal and vertical position for the popup
PositionX = 100;
PositionY = 100;
// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth  = 500;
defaultHeight = 500;
// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = true;
// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function popImage(imageURL,imageTitle)
{
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}
}

			<!--
				function MM_findObj(n, d) { //v4.01
				var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
				d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
				if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
				for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
				if(!x && d.getElementById) x=d.getElementById(n); return x;
				}

				function MM_validateForm() { //v4.0
				var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
				for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
					if (val) { nm=val.name; if ((val=val.value)!="") {
				      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        				if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve contenere un valore valido.\n';
      				} else if (test!='R') { num = parseFloat(val);
        				if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        				if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          				min=test.substring(8,p); max=test.substring(p+1);
          				if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    					} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' è obbligatorio.\n'; }
  					} if (errors) alert('Si sono verificati i seguenti errori:\n'+errors);
  				document.MM_returnValue = (errors == '');
				}
			//-->
