// 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 popUp(theURL,winName,width,height)	{
	widthStage=screen.width;
	heightStage=screen.height;
	larghezza=width;
	altezza=height;
	x=(widthStage/2)-(larghezza/2);
	y=(heightStage/2)-(altezza/2);
	window.open(theURL,winName,"scrollbars=no,menubar=no,resizable=no,width="+larghezza+",height="+altezza+",left="+x+",top="+y+",status=no,location=no,toolbar=no");
}
function popUpYes(theURL,winName,width,height)	{
	widthStage=screen.width;
	heightStage=screen.height;
	larghezza=width;
	altezza=height;
	x=(widthStage/2)-(larghezza/2);
	y=(heightStage/2)-(altezza/2);
	window.open(theURL,winName,"scrollbars=yes,menubar=no,resizable=no,width="+larghezza+",height="+altezza+",left="+x+",top="+y+",status=no,location=no,toolbar=no");
}

function ApriGestioneOrdini(theURL,winName,width,height)	{
	widthStage=screen.width;
	heightStage=screen.height;
	larghezza=width;
	altezza=height;
	x=(widthStage/2)-(larghezza/2);
	y=(heightStage/2)-(altezza/2);
	window.open(theURL,winName,"resizable=yes,width="+larghezza+",height="+altezza+",left="+x+",top="+y+",status=no,location=no,toolbar=no");
}