function addFlash(path,larghezza,altezza,transp,variabili,name){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+larghezza+'" height="'+altezza+'" id="'+name+'">');
	document.write('<param name="bgcolor" value="#EDEDED">');
	document.write('<param name="movie" value="'+path+'">');
	document.write('<param name="quality" value="high">');
	if(transp=='yes'){
		document.write('<param name="wmode" value="transparent">');
	};
	if(variabili!=''){
		document.write('<param name="flashvars" value="'+variabili+'">');
	};
	document.write('<embed src="'+path+'" quality="high" width="'+larghezza+'" height="'+altezza+'" name="'+name+'" type="application/x-shockwave-flash"  ');
	if(transp=='yes'){
		document.write('wmode="transparent" ');
	};
	if(variabili!=''){
		document.write('flashvars="'+variabili+'" ');
	};		   
	document.write('pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>');
};

$(document).ready(function(){
		$(".dettcorso").colorbox({iframe:true, width:"80%", height:"80%"});
		$("a[rel='foto']").colorbox();
		$(".dettfooter").colorbox({iframe:true, width:"80%", height:"80%"});
				
		//Example of preserving a JavaScript event for inline calls.
		
	});
