
function posaBanner(srcBanner)
{
	txt = "";
	//if (flashinstalled == 2 && flashversion >=7){	//Hi ha flash instalat
	if (flashinstalled == 2){
		var str = new String(srcBanner);
		var pos = str.lastIndexOf(".");
		str = str.substring(0,pos) +  ".swf";	//"str" es el nom amb la ruta del flash

		txt += '<OBJECT id="banner" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"                                              ';
		txt += '	height="180" width="510" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">                                                                              ';
		txt += '	<PARAM NAME="Src" VALUE="'+str+'">                                                                                                                     ';
		txt += '	<PARAM NAME="WMode" VALUE="Transparent">                                                                                                                    ';
		txt += '	<PARAM NAME="Quality" VALUE="High">                                                                                                                         ';
		txt += '	<PARAM NAME="Menu" VALUE="0">                                                                                                                               ';
		txt += '	<embed name="banner" src="'+str+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  ';
		txt += '		type="application/x-shockwave-flash" width="510" height="180" swliveconnect="true" wmode="transparent">                                                                     ';
		txt += '	</embed>                                                                                                                                                    ';
		txt += '</OBJECT>																																						';
	}
	else{	//NO hi ha flash instalat
		txt += '<img src="'+srcBanner+'">';
	}

	document.write(txt);
}


