// funzione per caricare gli swf senza blocco
function generatorflash(versione,larghezza,altezza,allineamento,nomefile,menu,coloreSfondo,traspSfondo,qualita) {

var N1;
	
	N1=('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + versione + '"WIDTH="' + larghezza + '" HEIGHT="' + altezza + '" align="' + allineamento + '">');
	N1= N1+ ('<PARAM NAME="movie" VALUE="' + nomefile + '">'); 			//Nome del file
	N1= N1+ ('<PARAM NAME="menu" VALUE=False>');						//Visibilità del menu - true (visible) - false (invisibile)
	N1= N1+ ('<PARAM NAME="bgcolor" VALUE="' + coloreSfondo + '"> ');	//Colore dello sfondo - es. #000000 (nero)
	N1= N1+ ('<PARAM NAME="wmode" VALUE="' + traspSfondo + '"> ');		//Trasparenza dello sfondo - normal (normale) - opaque (opaco) - transparent (trasparente)
	N1= N1+ ('<PARAM NAME="quality" VALUE="' + qualita + '">');			//Qualita del file - low (bassa) - medium (media) - high (alta) - best (migliore)
	N1= N1+ ('<PARAM NAME="allowScriptAccess" VALUE="sameDomain"> ');	//Sicurezza - non toccare

	N1= N1+ ('<embed src="' + nomefile + '" WIDTH="' + larghezza + '" HEIGHT="' + altezza + '" align="' + allineamento + '" bgcolor="' + coloreSfondo + '" wmode="' + traspSfondo + '" menu="' + menu + '" quality="' + qualita + '" TYPE="application/x-shockwave-flash"');
	N1= N1+ ('PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></OBJECT>')

	document.write(N1);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function PrintSchedaProdotto()
{
	var strOptions = "toolbar=no,location=no,menubar=no,scrollbars=no,resizable=yes,width=130,height=35,left=0,top=0";
	//strOptions += "scrollbars=yes,resizable=yes,width=650,height=500,left=0,top=0";
	var strWinHTML = document.getElementById('divSchedaProdPrintArea').innerHTML;
	var strWinHTML_Nascosto = document.getElementById('LegendaIconeStampa').innerHTML;
	var winprint=window.open("", "", strOptions);
	
	winprint.document.open();
	winprint.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
	winprint.document.write('<link href="/intranet/common/css/styleScheda.css" rel="stylesheet" type="text/css" />');
	winprint.document.write('<link href="/common/css/printScheda.css" rel="stylesheet" type="text/css" />');
	winprint.document.write('<div id="contentSchedaProdMainLeft">');
	winprint.document.write(strWinHTML);
    winprint.document.write(strWinHTML_Nascosto);
	winprint.document.write('</div>');
	winprint.document.close();
	winprint.print();
	winprint.close();
	
}

function InviaFormSceltaIcona(filter,tx_codice,id_attacco,id_navigazione,id_ico)
{
    document.sceltaIcona.filter.value = filter;
    document.sceltaIcona.tx_codice.value = tx_codice;
    document.sceltaIcona.id_attacco.value = id_attacco;
    document.sceltaIcona.idNav.value = id_navigazione;
    document.sceltaIcona.idIco.value = id_ico;
    document.sceltaIcona.submit();
}
var popup3Dobj;

function downloadAccordo()
{
	location.href = "/secrecy_agreement.pdf";
}

try {
$("a.Big.but3D.italian").ready(function() {  
	$("a.Big.but3D.italian").click(function () {
		popup3Dobj = document.createElement("div");
		$(popup3Dobj).addClass("popup3D").html("Per ricevere i modelli 3D dei nostri articoli scaricate l'\"<a href='#' onclick='downloadAccordo()'>accordo di segretezza</a>\", compilatelo in ogni sua parte e ritornatecelo via fax al numero <b>+39 0341 653250</b>.<br><br> N.B. La compilazione dell'\"accordo di segretezza\" &egrave; necessaria solo in occasione della prima richiesta di modelli 3D; successivamente sar&agrave; sufficiente inviarci una e-mail all'indirizzo <a href='mailto:tech@aagstucchi.it'>tech@aagstucchi.it</a> od un fax al numero +39 0341 653250 indicando i files 3D richiesti ed il formato in cui si desidera riceverli tra quelli disponibili (.igs; .stp; .sat).");
		$(popup3Dobj).html($(popup3Dobj).html() + "<br><br><a class='download' onclick='downloadAccordo()' href='#'>Download accordo di segretezza</a>");
		$(popup3Dobj).html($(popup3Dobj).html() + "<br><br><a class='close' onclick='$.modal.close();' href='#'>Chiudi</a>");
		$(popup3Dobj).modal(
			{onOpen: function (dialog) {
			  dialog.overlay.fadeIn('slow', function () {
			    dialog.container.slideDown('slow', function () {
			      dialog.data.fadeIn('slow');
			    });
			  });
			}}
		);
	});
});

$("a.Big.but3D.english").ready(function() {  
	$("a.Big.but3D.english").click(function () {
		popup3Dobj = document.createElement("div");
		$(popup3Dobj).addClass("popup3D").html("To receive the 3D models of our articles, please download our \"<a href='#' onclick='downloadAccordo()'>Secrecy Agreement</a>\", fill it in and send it back by fax at <b>+39-0341-653250</b>.<br><br>N.B. You have to fill in our Secrecy Agreement only for your first 3D models request. After that, you have just to send your new request by e-mail at <a href='mailto:tech@aagstucchi.it'>tech@aagstucchi.it</a> or by fax at +39-0341-653250, indicating the 3D files as well as the format you need (.igs; .stp; .sat).");
		$(popup3Dobj).html($(popup3Dobj).html() + "<br><br><a class='download' onclick='downloadAccordo()' href='#'>Download Secrecy Agreement</a>");
		$(popup3Dobj).html($(popup3Dobj).html() + "<br><br><a class='close' onclick='$.modal.close();' href='#'>Close</a>");
		$(popup3Dobj).modal(
			{onOpen: function (dialog) {
			  dialog.overlay.fadeIn('slow', function () {
			    dialog.container.slideDown('slow', function () {
			      dialog.data.fadeIn('slow');
			    });
			  });
			}}
		);
	});
});
} catch(e) {}