// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
function scriviflash_banner (nomeflash,cartella_flash,nomenoflash,cartella_noflash,w,h,indirizzo,variabili,tipo,message,div_type){
	if(variabili!=''){variabili1='&'+variabili;}else{variabili1='';}
if (!useRedirect) {    // if dynamic embedding is turned on
	if(hasRightVersion) {  // if we've detected an acceptable version
		passaggio='?indirizzo='+indirizzo+'&target='+tipo;
		//alert(cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1);
		var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="movie" VALUE="'+cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1+'">'
		+ '<PARAM NAME="wmode" VALUE="transparent">'
		+ '<PARAM NAME="quality" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="true">'
		+ '<embed src="'+cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1+'"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'WMODE="transparent"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
	
		document.write(oeTags);   // embed the flash movie
		}
	else{  
		// flash is too old or we can't detect the plugin
		// NOTE: height, width are required!
		if(div_type==0){
			if(indirizzo==''){	
				var alternateContent = '<IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0">';
				}
			else{
				if(tipo==''){
					var alternateContent = '<A HREF="'+indirizzo+'"><IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0"></A>';
					}
				else{
					var alternateContent = '<A HREF="'+indirizzo+'" TARGET="'+tipo+'"><IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0"></A>';
					}
				}
			document.write(alternateContent);  // insert non-flash content
			}
		if(div_type==1){
			PrintDivOverImg_01(w,h,cartella_noflash+'/'+nomenoflash+'.jpg',message);
			}
		}
	}
}


// In this section we set up the content to be placed dynamically on the page.
// Customize movie tags and alternate html content below.
function scriviflash_banner_name (name,nomeflash,cartella_flash,nomenoflash,cartella_noflash,w,h,indirizzo,variabili,tipo,message,div_type){
	if(variabili!=''){variabili1='&'+variabili;}else{variabili1='';}
if (!useRedirect) {    // if dynamic embedding is turned on
	if(hasRightVersion) {  // if we've detected an acceptable version
		passaggio='?indirizzo='+indirizzo+'&target='+tipo;
		//alert(cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1);
		var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" name="'+name+'" id="'+name+'">'
		+ '<PARAM NAME="movie" VALUE="'+cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1+'">'
		+ '<PARAM NAME="wmode" VALUE="transparent">'
		+ '<PARAM NAME="quality" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="true">'
		+ '<embed src="'+cartella_flash+'/'+nomeflash+'.swf'+passaggio+variabili1+'"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'MENU="false"'
		+ 'WMODE="transparent"'
		+ 'TYPE="application/x-shockwave-flash"  name="'+name+'"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
	
		document.write(oeTags);   // embed the flash movie
		}
	else{  
		// flash is too old or we can't detect the plugin
		// NOTE: height, width are required!
		if(div_type==0){
			if(indirizzo==''){	
				var alternateContent = '<IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0">';
				}
			else{
				if(tipo==''){
					var alternateContent = '<A HREF="'+indirizzo+'"><IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0"></A>';
					}
				else{
					var alternateContent = '<A HREF="'+indirizzo+'" TARGET="'+tipo+'"><IMG SRC="'+cartella_noflash+'/'+nomenoflash+'.jpg" HEIGHT="'+h+'" WIDTH="'+w+'" BORDER="0"></A>';
					}
				}
			document.write(alternateContent);  // insert non-flash content
			}
		if(div_type==1){
			PrintDivOverImg_01(w,h,cartella_noflash+'/'+nomenoflash+'.jpg',message);
			}
		}
	}
}
