<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function foto(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>ARRIGONI4X4</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+imageName+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function movie(swf) {
	newWindow = window.open("","newWindow","width=456,height=342,left=100,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>ARRIGONI4X4</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"WIDTH=100% HEIGHT=100%>');
	newWindow.document.write('<PARAM NAME=movie VALUE="'+swf+'.swf"><PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="'+swf+'.swf" quality=high bgcolor=#FFFFFF  WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash"');
	newWindow.document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}

function pdf(pdf,titolo) {
	var w = (window.screen.width-600)/2;
	var h = (window.screen.height-500)/2;
	newWindow = window.open("","finestra","width=430,resizable=yes,height=500,left=3,top=3");
	newWindow.document.open();
	newWindow.document.write('<html><head><title>Arrigoni 4x4 ::: Area DownLoads :::</title></head><frameset framespacing="0" border="0" rows="50,*" frameborder="0">'); 
	newWindow.document.write(' <frame name="intestazione" scrolling="no" noresize target="principale" src="'+titolo+'.htm">');
	newWindow.document.write('<frame name="principale" src="'+pdf+'"></frameset></html>');
	newWindow.document.close();
	newWindow.focus();
}

function pdf2(pdf,titolo) {
	var w = (window.screen.width-600)/2;
	var h = (window.screen.height-500)/2;
	newWindow = window.open("","finestra","width="+((screen.width-50))+",resizable=yes,height=500,left=23,top="+((screen.height-500)/2)+"");
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+titolo+'</title></head><frameset framespacing="0" border="0" rows="50,*" frameborder="0">'); 
	newWindow.document.write(' <frame name="intestazione" scrolling="no" noresize target="principale" src="'+titolo+'.htm">');
	newWindow.document.write('<frame name="principale" src="'+pdf+'.pdf"></frameset></html>');
	newWindow.document.close();
	newWindow.focus();
}

function carica(swf) {
	if (window.screen) {
  	largo = parseInt(screen.availWidth*0.8);
  	alto = parseInt(screen.availHeight*0.66);
	document.write('<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD>\n');
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH='+largo+' HEIGHT='+alto+' id="passFlash">');
	document.write('<PARAM NAME=movie VALUE="'+swf+'.swf"><PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false>\n <EMBED src="'+swf+'.swf" quality=high menu=false bgcolor=#FFFFFF WIDTH='+largo+' HEIGHT='+alto+' Name="passFlash" swLiveconnect=true id="passFlash" TYPE="application/x-shockwave-flash"');
	document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></TD></TR></TABLE></BODY>');	
}
}

function getIt(marca,modello,testi,marc,modell) {
	window.document.passFlash.SetVariable("modello", modello);
	window.document.passFlash.SetVariable("marca", marca);
	window.document.passFlash.SetVariable("testi", modello);
	window.document.passFlash.SetVariable("modell", modell);
	window.document.passFlash.SetVariable("marc", marc);
}

function apriti2006(marca,modello) {window.open("http://nts03:8080/arrigoni/Prezzo.jsp?marca="+marca+"&modello="+modello+"&lst=11&dsc=S&dsp=S","listino","resizable=yes,scrollbars=yes,width=150,height=150,left=0,top=0");
}
function apriti(marca,modello) {window.open("http://82.88.196.114:8080/pandora/Prezzo.jsp?marca="+marca+"&modello="+modello+"&lst=11&dsc=S&dsp=S&az=001",""+modello+"","resizable=yes,scrollbars=yes,width=150,height=150,left=0,top=0");
}


function car6(swf,marca) {
	if (window.screen) {
  	largo = parseInt(screen.availWidth*0.8);
  	alto = parseInt(screen.availHeight*0.66);
	document.write('<TABLE WIDTH="100%" HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD>\n');
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH='+largo+' HEIGHT='+alto+' id="passFlash">');
	document.write('<PARAM NAME=movie VALUE="'+swf+'.swf?chiave='+marca+'"><PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false>\n <EMBED src="'+swf+'.swf?chiave='+marca+'" quality=high menu=false bgcolor=#FFFFFF WIDTH='+largo+' HEIGHT='+alto+' Name="passFlash" swLiveconnect=true id="passFlash" TYPE="application/x-shockwave-flash"');
	document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></TD></TR></TABLE></BODY>');	
}
}

function cargo(swf,largo,alto) {
	document.write('<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH='+largo+' HEIGHT='+alto+' id="passFlash">');
	document.write('<PARAM NAME=movie VALUE="'+swf+'.swf"><PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false>\n <EMBED src="'+swf+'.swf" quality=high menu=false bgcolor=#FFFFFF WIDTH='+largo+' HEIGHT='+alto+' Name="passFlash" swLiveconnect=true id="passFlash" TYPE="application/x-shockwave-flash"');
	document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>');	
}

function carigo(swf,marca,lingua,largo,alto,inglese,italiano) {
	if (window.screen) {
	document.write('<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH='+largo+' HEIGHT='+alto+' id="passFlash">');
	document.write('<PARAM NAME=movie VALUE="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'&inglese='+inglese+'&italiano='+italiano+'"><param name=WMode value=Transparent><PARAM NAME=quality VALUE=best> <param name="allowScriptAccess" value="sameDomain" /> <PARAM NAME=menu VALUE=false>\n <EMBED src="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'&inglese='+inglese+'&italiano='+italiano+'" quality=best wmode=Transparent menu=false bgcolor=#FFFFFF WIDTH='+largo+' HEIGHT='+alto+' Name="passFlash" allowScriptAccess=sameDomain swLiveconnect=true id="passFlash" allowScriptAccess="sameDomain" TYPE="application/x-shockwave-flash"');
	document.write('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT></center>');	
}
}

function popup(path,nome,w,l){
		var popupWidth = w;
		var popupHeight= l;
		var leftPos = screen.width/2-popupWidth/2;
		var topPos = screen.Height/2-popupHeight/2;
		var settings = "resizeable=no, scrollbars=yes, left="+leftPos+", top="+topPos+", width="+popupWidth+", height="+popupHeight
		var myPopup = window.open(path, nome,settings);
		myPopup.focus();
}

function aprito(modello,lingua) {
window.open("listino.asp?modello="+modello+"&lang="+lingua+"",""+modello+"","resizable=yes,status=yes,scrollbars=yes,menubar=yes,width=150,height=150,left=0,top=0");
}

function apricat(modello,lingua) {
window.open("catalogo.asp?marca="+modello+"&lang="+lingua+"",""+modello+"","resizable=yes,status=yes,menubar=yes,scrollbars=yes,width=820,height="+((screen.height*2)/2.4)+",left=0,top=0");
}

function resize() { 
	window.resizeTo(document.picture.width+35,screen.availHeight);
	window.moveTo(0, 0);

}
function resizo() { 
	window.resizeTo(document.picture.width+40,document.picture.height+65);
	window.moveTo(0, 0);
}

function sottoporta() {
		var today = new Date();
		var year = today.getFullYear(); 
		document.write('© 1980-'+year+' Arrigoni 4x4');
}
function fotoDiV(che) {
	document.getElementById("FotoSquadra").style.visibility = "visible";
	document.getElementById('FotoSquadra').style.padding = '0px';
	document.getElementById("FotoSquadra").style.borderWidth = "1px";
	document.getElementById("FotoSquadra").style.borderColor = "#ebebeb";
	document.getElementById("FotoSquadra").style.borderStyle = "solid";
	document.getElementById('FotoSquadra').style.top = '20px';
	document.getElementById('FotoSquadra').style.left = '20px';
	document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="img/chiudi.gif" border="0" title=":: Chiudi ::"></a></div><img src="'+che+'" border="01">';
	}
	function Map(che) {
	document.getElementById("FotoSquadra").style.visibility = "visible";
	document.getElementById('FotoSquadra').style.padding = '0px';
	document.getElementById("FotoSquadra").style.borderWidth = "1px";
	document.getElementById("FotoSquadra").style.borderColor = "#ebebeb";
	document.getElementById("FotoSquadra").style.borderStyle = "solid";
	document.getElementById('FotoSquadra').style.top = '20px';
	document.getElementById('FotoSquadra').style.left = '20px';
	document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="img/chiudi.gif" border="0" title=":: Chiudi ::"></a></div><iframe id="Calendario" width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.it/maps?f=q&amp;source=s_q&amp;hl=it&amp;geocode=&amp;q=Via+A.+Meucci,4++20040+Burago+di+Molgora+Monza+e+Brianza,+Lombardia&amp;sll=45.590107,9.384727&amp;sspn=0.017599,0.033088&amp;ie=UTF8&amp;hq=&amp;hnear=Via+A.+Meucci,+4,+20040+Burago+di+Molgora+Monza+e+Brianza,+Lombardia&amp;ll=45.590107,9.384727&amp;spn=0.007208,0.013733&amp;z=16&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.it/maps?f=q&amp;source=embed&amp;hl=it&amp;geocode=&amp;q=Via+A.+Meucci,4++20040+Burago+di+Molgora+Monza+e+Brianza,+Lombardia&amp;sll=45.590107,9.384727&amp;sspn=0.017599,0.033088&amp;ie=UTF8&amp;hq=&amp;hnear=Via+A.+Meucci,+4,+20040+Burago+di+Molgora+Monza+e+Brianza,+Lombardia&amp;ll=45.590107,9.384727&amp;spn=0.007208,0.013733&amp;z=16&amp;iwloc=A" style="color:#0000FF;text-align:left" target="_blank">Visualizzazione ingrandita della mappa</a></small>';
	}
	
	function chiudi_maggio() {
	document.getElementById("FotoSquadra").style.visibility = "hidden";
	}
	
	function imgLoadingError(n) {
document.images[n].src="img/non-disponibile.jpg";
	}
	
	/*  Menu scelta Ganci traino -- 11 Lug. 2011   */
	
function scelta(lingua) { 
var marchio = document.getElementById("marchio")
if(marchio.value!=""){
window.location="?marchio="+marchio.value+"&lang="+lingua;
}else{
window.location="mod=ok&lang="+lingua;
}
}

function scelta1(lingua) { 
var modello = document.getElementById("modello")
var marchio = document.getElementById("marchio")
if(modello.value!=""){
window.location="?marchio="+marchio.value+"&modello="+modello.value+"&lang="+lingua;
}else{
if(marchio.value!=""){
window.location="?marchio="+marchio.value+"&lang="+lingua;
}
}
}

function scelta2(lingua) { 
var anno = document.getElementById("anno")
var modello = document.getElementById("modello")
var marchio = document.getElementById("marchio")
if(anno.value!=""){
window.location="?marchio="+marchio.value+"&modello="+modello.value+"&anno="+anno.value+"&lang="+lingua;
}else{
if(marca.value!=""){
window.location="?marchio="+marchio.value+"&modello="+modello.value+"&lang="+lingua;
}
}
}

function scelta3(lingua) { 
if(form1.ref.value!=""){
window.location="towbars-catalogue.php?ref="+form1.ref.value+"&lang="+lingua;
}else{
window.location="towbars-catalogue.php";
}
}
//-->	
	
