

    //		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 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('<embed src="' + GetImgPath + Path4par3 + Name4par3 + '" quality="high" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + Width4par3 + '" height="' + Height4par3 + '"/>');
    //		document.write('</object>');
    //		
    //		}

    function IntegrationFlash(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="objetFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflas h.cab#version=9,0,0,0" align="absmiddle" width="' + Width4par3 + '" height="' + Height4par3 + '">\n' +
		    '<param name="movie" value="' + GetImgPath + Path4par3 + Name4par3 + '">\n' +
		    '<param name="quality" value="high">\n' +
		    '<param name="play" value="true">\n' +
		    '<param name="wmode" value="opaque">\n' +
		    '<param name="allowScriptAccess" value="always" />' +
		    '<param name="flashvars" value="&macFirefox=' + mf + '" />' +
		    '<embed src="' + GetImgPath + Path4par3 + Name4par3 + '" flashvars="macFirefox=' + mf + '" allowScriptAccess="always" wmode="opaque" width="' + Width4par3 + '" height="' + Height4par3 + '" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></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="objetFlash" 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="objetFlash" 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 IntegrationFlashVOD(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 noembedTxt = 'Vod gratuite et Musique gratuite sur Cdiscount.com.<br/>Comment télécharger un film et télécharger une vidéo gratuitement grâce au service de video on demand 100% gratuit de Cdiscount ?<br/>Pour télécharger sur l’interface VOD de Cdiscount vous avez besoin d’une configuration minimale de votre PC : Système d’exploitation Windows 2000 ou supérieur, processeur cadencé au minimum à 1 GHz et mémoire vive de 512 Mo ou plus, Espace disque, Carte graphique équipée de 64 Mo de mémoire ou plus, Moniteur avec une résolution de 800 x 600 pixels, Carte son, Connexion internet haut débit avec une bande passante de 512 Kbps minimum en réception.<br/>Vous avez également besoin du navigateur Internet Explorer version 5.5 ou supérieure et du lecteur Windows Media Player version 9 ou supérieur. Actuellement seuls ces logiciels assurent une bonne gestion des DRM qui permettent de contrôler la juste utilisation du fichier sur un temps limité. Ce contrôle est indispensable car les vidéos sont visibles seulement 72 heures après leur téléchargement.<br/>Pour télécharger un film vous devez aussi avoir un minimum de 2 Go de libre sur votre disque dur. Vous devez également vérifier la taille réservée sur le disque pour les fichiers temporaires dans les options de votre navigateur Internet Explorer. Nous vous conseillons « 1500 Mo ». <br/>La compatibilité de votre navigateur avec le service de VOD passe aussi par l\'installation d\'extensions ou "plug-in", qui nécessite l\'ouverture de fenêtres « pop-up ». Pour lancer le téléchargement, vous devez donc vérifier que vous n\'avez pas un module anti "pop-up" activé sur votre ordinateur. Vous pouvez autoriser temporairement les "pop-up".<br/>La VOD sur Cdiscount.com c’est le meilleur du cinéma et de la musique chez soi, gratuitement et légalement !';

        //
        var code = '' +
		'<object id="objetFlash" 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' +
		'<noembed>' + noembedTxt + '</noembed>\n' +
		'</object>';
        document.write(code);
    }


    function IntegrationFlashPdtsFin(GetImgPathPdts, PathPdts, NamePdts, HeightPdts, WidthPdts) {
        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="' + 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 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 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>');
    }


    function IntegrationFlashYaplukaReglette(GetImgPath, PathFlash, NameFlash, HeightFlash, WidthFlash, MontantTTC, SiteID, PartnerID, ServerRoot) 
    {
        document.write('<object id="objetFlash" type="application/x-shockwave-flash" data="' + GetImgPath + PathFlash + NameFlash + '" 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="opaque"/>');
        document.write('<param name="allowscriptaccess" value="always" />');
        document.write('<param name="flashvars" value="montantttc=' + MontantTTC.replace(",", ".") + '&partnerID=' + PartnerID + '&siteID=' + SiteID + '&serverRoot=' + ServerRoot + '" />');
        //document.write('<embed src="' + GetImgPath + PathFlash + NameFlash + '" flashvars="montantttc=' + MontantTTC.replace(",", ".") + '&partnerID=' + PartnerID + '&siteID=' + SiteID + '&serverRoot=' + ServerRoot + '" wmode="transparent" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' + WidthFlash + '" height="' + HeightFlash + '"/>');
        document.write('</object>');
    }


    function IntegrationFlashCCLReglette(GetImgPath, PathFlash, NameFlash, HeightFlash, WidthFlash, MontantTTC, SiteID, PartnerID, ServerRoot, EnableInput, RessourcesRoot, RessourcesPath, RessourcesName) {
        document.write('<object id="flashCCL" name="flashCCL" type="application/x-shockwave-flash" data="' + GetImgPath + PathFlash + NameFlash + '" width="' + WidthFlash + '" height="' + HeightFlash + '">');
        document.write('<param name="movie" value="' + GetImgPath + PathFlash + NameFlash + '" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="wmode" value="opaque"/>');
        document.write('<param name="allowscriptaccess" value="always" />');
        document.write('<param name="flashvars" value="enable_input=' + EnableInput + '&productPrice=' + MontantTTC.replace(",", ".") + '&partnerID=' + PartnerID + '&siteID=' + SiteID + '&root=' + ServerRoot + '&ressourcesRoot=' + RessourcesRoot + '&ressourcesPath=' + RessourcesPath + '&ressourcesName=' + RessourcesName + '" />');
        //document.write('<param name="flashvars" value="enable_input=' + EnableInput + '&productPrice=' + MontantTTC.replace(",", ".") + '&partnerID=' + PartnerID + '&siteID=' + SiteID + '&root=' + ServerRoot + '&resxRoot=' + RessourcesRoot + '&resxName=' + RessourcesName + '" />');
        document.write('</object>');
    }

    function LinkMoreInformationsCCL(Root, price) { 
        window.open(Root + '/Payment/CCLPopUp.aspx?price=' + price, '', 'width=720, height=700, toolbar=no, menubar=no, scrollbars=yes');
    }


    function buildRateObject(pDuration, pNominalRate, pEffectiveRate) {
        this.duration = pDuration;
        this.nominalRate = pNominalRate;
        this.effectiveRate = pEffectiveRate;
    }
