
		
		function IntegrationFlash (GetImgPath,Path4par3,Name4par3,Height4par3,Width4par3)
		{
		//Ancienne version du player
		//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,30,0" width="' + Width4par3 + '" height="' + Height4par3 + '">');
		document.write('<object id="flashobject" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" align="absmiddle" width="' + Width4par3 + '" height="' + Height4par3 + '">');
		document.write('<param name="movie" value="' + GetImgPath + Path4par3 + Name4par3 + '" />');
		document.write('<param name="quality" value="high" />');		
		document.write('<param name="play" value="true">');
		document.write('<param name="wmode" value="opaque"/>');
		document.write('<param name="ALLOWSCRIPTACCESS" value="always">');
		document.write('<embed src="' + GetImgPath + Path4par3 + Name4par3 + '" quality="high" wmode="opaque" ALLOWSCRIPTACCESS="always" type="application/x-shockwave-flash" ALLOWSCRIPTACCESS="samedomain" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + Width4par3 + '" height="' + Height4par3 + '"/>');
		document.write('</object>');	
		}
		
		
		 function IntegrationFlashCCLReglette(GetImgPath, PathFlash, NameFlash, HeightFlash, WidthFlash, MontantTTC, SiteID, PartnerID, ServerRoot, EnableInput, ResxRoot, ResxName)
		 {
		 
		 var code = '' +
		' <object id="flashCCL" height="136" width="315" data="http://i4.cdiscount.com/imagesok/credit/ccl/reglette_v2_fp.swf" type="application/x-shockwave-flash" name="flashCCL">\n' +
		'	<param value="http://i4.cdiscount.com/imagesok/credit/ccl/reglette_v2_fp.swf" name="movie"/>\n' +
		'	<param value="high" name="quality"/>\n' +
		'	<param value="opaque" name="wmode"/>\n' +
		'	<param value="always" name="allowscriptaccess"/>\n' +
		'	<param value="enable_input=false&productPrice='+MontantTTC/100+'&partnerID=CCL&siteID=100&root=http://217.109.56.46&ressourcesRoot=http://www.cdiscount.com&ressourcesPath=/include/xml/&ressourcesName=FinancingMessages.xml" name="flashvars"/>\n' +

		
		' </object>';
		 document.write(code);
			
		 }
		
		function IntegrationFlashYaplukaReglette (GetImgPath,PathFlash,NameFlash,HeightFlash,WidthFlash,Prix)
		{
		var code = '' +
		'<object id="flashobjectYapluka" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflas h.cab#version=9,0,28,0" align="absmiddle" width="' + WidthFlash + '" height="' + HeightFlash + '">\n' +
		'<param name="movie" value="' + GetImgPath + PathFlash + NameFlash + '">\n' +
		'<param name="quality" value="high">\n' +
		'<param name="bgcolor" value="#8E9BA1">\n' +
		'<param name="wmode" value="transparent">\n' +
		'<param name="allowFullScreen" value="true">\n' +
		'<param name="allowScriptAccess" value="always" />' +
		'<param name="flashvars" value="&montantttc='+Prix+'" />' +
		'<embed src="' + GetImgPath + PathFlash + NameFlash + '" flashvars="montantttc='+Prix+'" allowFullScreen="true" allowScriptAccess="always" wmode="transparent" width="' + WidthFlash + '" height="' + HeightFlash + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#8E9BA1"></embed>\n' +
		'</object>';
		document.write(code);
		}
		
		//Integration flash special PA 
		function IntegrationFlashPA (GetImgPath,Path4par3,Name4par3,Height4par3,Width4par3)
		{
		//Ancienne version du player
		//document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,30,0" width="' + Width4par3 + '" height="' + Height4par3 + '">');
		document.write('<object id="flashobjectPA" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"  align="absmiddle" width="' + Width4par3 + '" height="' + Height4par3 + '">');
		document.write('<param name="movie" value="' + GetImgPath + Path4par3 + Name4par3 + '" />');
		document.write('<param name="quality" value="high" />');		
		document.write('<param name="play" value="true">');
		document.write('<param name="wmode" value="Window"/>');
		document.write('<embed src="' + GetImgPath + Path4par3 + Name4par3 + '" quality="high" wmode="Window" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + Width4par3 + '" height="' + Height4par3 + '"/>');
		document.write('</object>');
		
		}
		
		function IntegrationFlash9(GetImgPath,Path4par3,Name4par3,Height4par3,Width4par3)
		{
		// detection de la combinaison mac et firefox
		var a = navigator.userAgent.toLowerCase();
		var ff = (a.indexOf("firefox") != -1);
		var mac = (a.indexOf("mac") != -1);
		var mf = ff && mac;
		//
		var code = '' +
		'<object id="flashobject9" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflas h.cab#version=9,0,28,0" align="absmiddle" width="' + Width4par3 + '" height="' + Height4par3 + '">\n' +
		'<param name="movie" value="' + GetImgPath + Path4par3 + Name4par3 + '">\n' +
		'<param name="quality" value="high">\n' +
		'<param name="bgcolor" value="#8E9BA1">\n' +
		'<param name="wmode" value="transparent">\n' +
		'<param name="allowFullScreen" value="true">\n' +
		'<param name="allowScriptAccess" value="always" />' +
		'<param name="flashvars" value="&macFirefox='+mf+'" />' +
		'<embed src="' + GetImgPath + Path4par3 + Name4par3 + '" flashvars="macFirefox='+mf+'" allowFullScreen="true" allowScriptAccess="always" wmode="transparent" width="' + Width4par3 + '" height="' + Height4par3 + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#8E9BA1"></embed>\n' +
		'</object>';
		document.write(code);
		}
		
		
		
		function IntegrationFlashPdtsFin (GetImgPathPdts,PathPdts,NamePdts,HeightPdts,WidthPdts)
		{		
		document.write('<object id="flashobjectFin" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,30,0" width="' + WidthPdts + '" height="' + HeightPdts + '">');
		document.write('<param name="movie" value="' + GetImgPathPdts + PathPdts + NamePdts + '" />');
		document.write('<param name="quality" value="high" />');		
		document.write('<param name="play" value="true">');
		document.write('<param name="wmode" value="opaque"/>');
		document.write('<embed src="' + GetImgPathPdts + PathPdts + NamePdts + '" quality="high" wmode="opaque"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + WidthPdts + '" height="' + HeightPdts + '"/>');
		document.write('</object>');
		
		}

        function IntegrationFlashVP(NamePdts,HeightPdts,WidthPdts)
		{		
		document.write('<object id="flashobjectVP" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,30,0" width="' + WidthPdts + '" height="' + HeightPdts + '">');
		document.write('<param name="movie" value="' + NamePdts + '" />');
		document.write('<param name="quality" value="high" />');		
		document.write('<param name="play" value="true">');
		document.write('<embed src="'+ NamePdts + '" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + WidthPdts + '" height="' + HeightPdts + '"/>');
		document.write('</object>');
		
		}

        function IntegrationFlashTransparent (GetImgPath,PathFlash,NameFlash,HeightFlash,WidthFlash)
		{
		document.write('<object id="flashobjectTransparent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=5,0,30,0" width="' + WidthFlash + '" height="' + HeightFlash + '">');
		document.write('<param name="movie" value="' + GetImgPath + PathFlash + NameFlash + '" />');
		document.write('<param name="quality" value="high" />');		
		document.write('<param name="play" value="true">');
		document.write('<param name="wmode" value="transparent"/>');
		document.write('<embed src="' + GetImgPath + PathFlash + NameFlash + '" wmode="transparent" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + WidthFlash + '" height="' + HeightFlash + '"/>');
		document.write('</object>');
		}