//funzioni per generare il flash antiblocco explorer

//FUNZIONE BASE

function creaFlash(file,w,h,ver,wmode) { 

//parametri:
//[file],[larghezza],[altezza],[versione player],[wmode: default|transparent|opaque]

txt ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
txt += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ver+',0,0,0" ';
txt += 'width="'+w+'" height="'+h+'" title="">';
txt += '<param name="movie" value="'+file+'" />';
txt += '<param name="quality" value="high" />';
txt += '<param name="wmode" value="'+wmode+'" />';
txt += '<embed src="'+file+'" quality="high" ';
txt += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';
txt += 'width="'+w+'" height="'+h+'" ';
txt += 'wmode="'+wmode+'" ';
txt += '></embed></object></body>';

document.write(txt); 

} 


//FUNZIONE AVANZATA

function creaFlash_adv(file,w,h,ver,wmode,scale,align,salign) { 

//parametri:
//[file],[larghezza],[altezza],[versione player],[wmode: default|transparent|opaque],
//[scale: default|noborder|exactfit|noscale],[html align: default|left|right|top|bottom],
//[flash align: default(center,center)|t(center,top)|b(center,bottom)|lt(left,top)|lb(left,bottom)|rt(right,top)|rb(right,bottom)]

txt ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
txt += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ver+',0,0,0" ';
txt += 'width="'+w+'" height="'+h+'" title="" align="'+align+'">';
txt += '<param name="movie" value="'+file+'" />';
txt += '<param name="quality" value="high" />';
txt += '<param name="salign" value="'+salign+'" />';
txt += '<param name="scale" value="'+scale+'" />';
txt += '<param name="wmode" value="'+wmode+'" />';
txt += '<embed src="'+file+'" quality="high" ';
txt += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';
txt += 'width="'+w+'" height="'+h+'" ';
txt += 'align="'+align+'" ';
txt += 'salign="'+salign+'" ';
txt += 'scale="'+scale+'" ';
txt += 'wmode="'+wmode+'" ';
txt += '></embed></object></body>';

document.write(txt); 

} 



