/****************************MENU*************************************/

$(document).ready(function () {

    //On Hover Over
    function megaHoverOver() {
        $(this).find(".sub").stop().fadeTo('fast', 1).show();
    }
    //On Hover Out
    function megaHoverOut() {
        $(this).find(".sub").stop().fadeTo('fast', 0, function () {
            $(this).hide();
        });
    }
    //Set custom configurations
    var config = {
        sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)
        interval: 150, // number = milliseconds for onMouseOver polling interval
        over: megaHoverOver, // function = onMouseOver callback (REQUIRED)
        timeout: 500, // number = milliseconds delay before onMouseOut
        out: megaHoverOut // function = onMouseOut callback (REQUIRED)
    };

    $("ul.menu_HD li .sub").css({ 'opacity': '0' });
    $("ul.menu_HD li").hoverIntent(config);

});

/*****************************VALIDATION FORMULAIRES PAGES STATIQUES********************************/
$(document).ready(function () {
    $("#form1").validationEngine()
});

/*****************************AFFINAGE DETAIL********************************/

function Affin_ListeDeroulAction(id) {
    document.location.href = $('#' + id).val();
}

/*****************************MESSAGE ATTENTE********************************/

function MessageAttente() {
    $.colorbox({
        html: '<div class="MessageAttente">' + $("#myloading").html() + '<br>Chargement en cours. Merci de patienter</div>',
        initialWidth: 50,
        initialHeight: 50,
        width: 200,
        overlayClose: false,
        escKey: false,
        onLoad: function () {
            $('#cboxClose').hide();
        }
    });
}
/******************************* COLONNES EGALES */

function hauteurEgale(group) {
    tallest = 0;
    group.each(function () {
        thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}


Usage:
$(document).ready(function () {
    hauteurEgale($(".column"));
});

/* video footer + detail 
-------------------------------*/
$(document).ready(function () {

    $('.Video').click(function () {

        $('body').append('<div id="video"></div>');
        var flashVideo = $(this).attr('rel');

        $.colorbox({
            inline: true,
            href: "#video",
            initialWidth: 50,
            innerWidth: 660,
            innerHeight: 390,
            onCleanup: function () { $('#video_wrapper').remove(); $('#video').remove(); }
        });

        jwplayer("video").setup({
            autostart: true,
            controlbar: "none",
            file: "/File.aspx?FileName=" + flashVideo,
            flashplayer: "/flash/player.swf", volume: 80, width: 660, height: 390
        });

        return false;
    });
});




/* checked Adresse compte
--------------------------------*/
function CheckAdresse(Adresse1, Adresse2, Adresse3) {
    var mValid = false;
    try {
        if ($('#' + Adresse1).val() != '') { mValid = true; }
        if ($('#' + Adresse2).val() != '') { mValid = true; }
        if ($('#' + Adresse3).val() != '') { mValid = true; }
        return mValid;
    }
    catch (ex) { return false; }
}


/* Fonction de debugage InfoDev
--------------------------------*/
function InfoDev(message, cumul) { if (!$('#InfoDev').length) { $('BODY').append('<div id="InfoDev" style="position: absolute; top:0; left:0; font-size:15px;"></div>'); } cumul ? $('#InfoDev').append("<br>" + message) : $('#InfoDev').html(message); }


/* colorbox 
--------------------------------*/

function showTextLightbox(largeurBox, hauteurBox, pasDeCroixFermer) {
    $.colorbox({
        html: $('#DIV2_LigneArticleCommentaire').html(),
        maxWidth: '80%', maxHeight: '80%',
        onCleanup: function () { $('#DIV2_LigneArticleCommentaire').remove(); }
    });
}
function hideLightbox() { $.colorbox.close(); }

/* mini panier
--------------------------------*/
$(document).ready(function () {
    $('#mini_panier').qtip({
        content: $("#mini_panier_detail", this).html(),
        style: { width: { max: 420 }, background: '#fbfaf6', border: 'none' },
        position: { corner: { target: 'bottomRight', tooltip: 'topRight' }, adjust: { x: -8, y: -5} },
        hide: { fixed: true }
    });
    $('#bloc_panier').hover(function () { //quand on arrive sur la zone on update le panier au cas ou il a ete rempli
        $('#mini_panier').qtip("api").updateContent($("#mini_panier_detail", this).html());
        if ($("#mini_panier_detail").html().length > 25) { $('#lbl_005').qtip("api").updateWidth(410); }
    });
});


/* Fonction ShowBlocIdentification
--------------------------------*/
function ShowBlocIdentification(montrer) {
    var cacher = '';
    (montrer == 'old') ? cacher = 'new' : cacher = 'old';
    $('#r_compte_' + montrer).attr('checked', 'checked');
    $('#r_compte_' + cacher).removeAttr('checked');
    $('#a_compte_' + montrer).addClass('checked');
    $('#a_compte_' + cacher).removeClass('checked');
    $('#div_compte_' + cacher).fadeOut('slow');
    $('#div_compte_' + montrer).fadeIn('slow');
}

/* desincription newsletter
--------------------------------*/
$(document).ready(function () { $('.desinscription_newsletter a').colorbox({ iframe: true, innerWidth: 450, innerHeight: 250 }); });

/* Par contexte
--------------------------------*/

$(document).ready(function () {
    var contexte = $("#H_MEM_CONTEXTE").val();
    switch (contexte) {

        case "Accueil": /*############################ CONTEXTE ACCUEIL ###################################*/

            /******Caroussel******/
            $('#AccueilSlide').tinycarousel({ pager: true, display: 1, interval: true });


            /****** boite a onglets ******/
            $("#bloc_accueil_onglet_menu").facileTabs2({ targetElements: ".bloc" });
            $("#bloc_accueil_onglet_content").tinycarousel2({ display: 5 });







            break;
        case "View": /*############################### CONTEXTE VIEW ######################################*/

            /******Infobule sur bouton panier inactif ou choix taille ******/
            $('.ajout_panier span[tooltip], .ajout_liste_cadeau a[tooltip], .ajout_panier_disable[tooltip]').each(function () {
                $(this).qtip({
                    content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
                    style: { tip: true, border: { radius: 5 }, name: 'dark' }, // Give it a crea mstyle to make it stand out
                    position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'} }
                });
            });

            /****** Affichage Grille/Liste ******/

            $('#affichage a').click(function () {

                if ($.cookie('affichage') == 'vignette') {
                    $.cookie('affichage', 'liste', { expires: 10 });
                    $(this).addClass("list");
                    $('#bloc_list_article').removeClass("gridview").addClass("listview");
                }

                else if ($.cookie('affichage') == 'liste') {
                    $.cookie('affichage', 'vignette', { expires: 10 });
                    $(this).removeClass("list");
                    $('#bloc_list_article').removeClass("listview").addClass("gridview");
                }

                else {
                    $.cookie('affichage', 'liste', { expires: 10 });
                    $(this).addClass("list");
                    $('#bloc_list_article').removeClass("gridview").addClass("listview");
                }
                return false;


            });

            $(document).ready(function () {

                if ($.cookie('affichage') == 'vignette')
                { $('#bloc_list_article').removeClass("listview").addClass("gridview"); }

                else if ($.cookie('affichage') == 'liste')
                { $('#bloc_list_article').removeClass("gridview").addClass("listview"); }
            });

            /****** Ancre Douce ******/

            $('a[href*=#]')
			.not('a[href=#]')
			.bind('click', function () {
			    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
			        var $target = $(this.hash);
			        $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
			        if ($target.length) {
			            var targetOffset = $target.offset().top;
			            $('html,body').animate({ scrollTop: targetOffset }, "normal");

			            return false;
			        }
			    } 
			});

            /********** Suppression tableau caracteriqtiques ****************/

            $("#caracteristiques .texte").each(function () {
                if ($(this).html().length < 2) {
                    $('#caracteristiques').remove();
                }
            });

            /********** Suppression encart Voir aussi ****************/

            $("#voir_aussi .texte").each(function () {
                if ($(this).html().length < 2) {
                    $('#voir_aussi').remove();
                }
            });

            /****** Boite à onglets ******/

            $(".bloc_DA_onglet_content").each(function (i) { if ($(this).html().length < 10) { $(this).parent().remove(); } }); //enlever contenus vides	
            $(".bloc_DA_onglet_content div[id^='sub_'] > div[id^='lbl_'] > div[id^='lbl_']").each(function (i) { if ($(this).html().length < 10) { $(this).parent().parent().parent().parent().remove(); } }); //enlever contenus vides

            /******Suppression des menus ******/
            $('.bloc_DA_onglet').each(function () {
                var str = this.id;
                var nbr = str.substring(14, 15);
                $(".bloc_DA_onglet_menu").find("ul > li:eq(" + nbr + ")").addClass("full");
            });


            $("#bloc_DA_onglet_content0").each(function () {
                if ($(this).html().length < 2) {
                    $('#bloc_DA_descriptif .text_court').append('<a href="#bloc_DA_onglet0">en savoir +</a>');
                }
            });


            /****** Caroussel ******/
            $("#slide_fils").tinycarousel({ display: 5 });
            $("#slide_freres").tinycarousel({ display: 5 });
            $("#slide_cousins").tinycarousel({ display: 5 });
            $("#bloc_DA_vignettes").tinycarousel({ display: 3, viewport: '#detailArticl_Galr', overview: '#detailArticl_Galr ul' });


            /****** zoom ICI et zoom XL ******/
            lancerGallery();


            break;
        case "PageStatique": /*####################### CONTEXTE PAGES SATTIQUES ###########################*/



            $("ul.notes-echelle").addClass("js");
            $("ul.notes-echelle li").addClass("note-off");

            $("ul.notes-echelle input").focus(function () {
                $(this).parents("ul.notes-echelle").find("li").removeClass("note-focus");
                $(this).parent("li").addClass("note-focus");
                $(this).parent("li").nextAll("li").addClass("note-off");
                $(this).parent("li").prevAll("li").removeClass("note-off");
                $(this).parent("li").removeClass("note-off");
            }).blur(function () {
                $(this).parents("ul.notes-echelle").find("li").removeClass("note-focus");
                if ($(this).parents("ul.notes-echelle").find("li input:checked").length == 0) {
                    $(this).parents("ul.notes-echelle").find("li").addClass("note-off");
                }
            }).click(function () {
                $(this).parents("ul.notes-echelle").find("li").removeClass("note-checked");
                $(this).parent("li").addClass("note-checked");
                $('#FORM_NOTE').val($(this).val());
            });

            $("ul.notes-echelle li").mouseover(function () {
                $(this).nextAll("li").addClass("note-off");
                $(this).prevAll("li").removeClass("note-off");
                $(this).removeClass("note-off");
            });

            $("ul.notes-echelle").mouseout(function () {
                $(this).children("li").addClass("note-off");
                $(this).find("li input:checked").parent("li").trigger("mouseover");
            });

            $("ul.notes-echelle input:checked").parent("li").trigger("mouseover");
            $("ul.notes-echelle input:checked").trigger("click");



            break
        case "Identification": /*##################### CONTEXTE IDENTIFICATION ############################*/

            /****** suivi commande ******/
            var $numSuiviCommandes = 0;
            $('#suivi-commandes tr').each(function () {
                if ($(this).hasClass('ligne-exp')) $numSuiviCommandes = 0;
                else {
                    $numSuiviCommandes += 1;
                    if ($numSuiviCommandes / 2 != Math.round($numSuiviCommandes / 2)) $(this).addClass('impair')
                }
            });

            $('#suivi-commandes .sc_detail_tab:first').slideToggle('slow').prev('.commande').toggleClass('open');
            $('#suivi-commandes .commande').click(function () {
                if ($(this).next('.sc_detail_tab').is(':hidden')) $('#suivi-commandes .sc_detail_tab:visible').slideToggle('slow').prev().removeClass('open');
                $(this).toggleClass('open').next('.sc_detail_tab').slideToggle('slow');
                return false;
            });

            /****** suivi devis ******/
            $('.sd_detail').click(function () {
                var $tab1 = $(this).parent().parent().parent().parent('#suivi_devis_liste');
                $tab1.next('.sd_detail_tab').slideToggle('slow');
                return false;
            });

            /****** sauvegarde panier ******/

            $('.sv_detail').click(function () {
                var $tab1 = $(this).parent().parent().parent().parent('#sauvegarde_panier_liste');
                $tab1.next('.sv_detail_tab').slideToggle('slow');
                return false;
            });

            /****** login (nouveau et ancien compte) ******/
            if ($('#r_compte_old').attr('checked') == true) {
                $('#div_compte_new').hide(); $('#a_compte_old').addClass('checked');
            }
            else {
                $('#div_compte_old').hide(); $('#a_compte_new').addClass('checked');
            }

            $('#a_compte_old').click(function () { ShowBlocIdentification('old') });
            $('#a_compte_new').click(function () { ShowBlocIdentification('new') });

            /****** liste de souhaits ******/
            $('#bloc_list_souhaits .commentaire .txt').each(function () {
                if ($(this).html().length < 2) { $(this).html('<span class="AjouterCommentaire">Ajouter un commentaire....</span>'); }
            });
            $('#bloc_list_souhaits .enlever').each(function (i) {
                $(this).qtip({
                    content: "supprimer de la liste",
                    show: 'mouseover',
                    hide: 'mouseout',
                    position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'} },
                    style: { border: { width: 2, radius: 5, color: '#333' }, tip: true, background: '#333', color: '#fff' }
                });
            });

            /******Infobule sur bouton panier inactif ou choix taille ******/
            $('.ajout_panier_disable[tooltip]').each(function () {
                $(this).qtip({
                    content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
                    style: { tip: true, border: { radius: 5 }, name: 'dark' }, // Give it a crea mstyle to make it stand out
                    position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'} }
                });
            });
            break
        case "AfficheResultatRechercheAvancee": /*#### CONTEXTE RECHERCHE #################################*/

            /******Caroussel******/
            $("#slide_panier").tinycarousel({ display: 5 });


            break
        case "ValidationPanier": /*################### CONTEXTE PANIER ####################################*/

            /******Point Relais Horaires ******/
            $(document).ready(function () {
                $('#gk_listerelais .horaire').each(function (i) {
                    $(this).qtip({
                        content: "<div class='BulleKiala'>" + $('#gk_listerelais p').eq(i).html() + "</div>",
                        show: 'mouseover',
                        hide: 'mouseout',
                        position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'} },
                        style: { border: { width: 2, radius: 5, color: '#BAB3B3' }, tip: true, width: '400' }
                    });
                    $(this).click(function () { return false });
                });
            });

            /******Liste point relais Kiala deplacement******/
            $(document).ready(function () {

                if ($('#KIALA')) {

                    $('#grille_kiala').insertAfter('#KIALA');
                }

                if ($('#SOCOLISSIMO')) {
                    $('#info_socolissimo').insertAfter('#SOCOLISSIMO');
                    $('#btn_socolissimo').insertAfter('#SOCOLISSIMO');
                }

            });

            /******Caroussel******/
            $("#slide_panier").tinycarousel({ display: 5 });


            break
        default: /*################################## AUTRES #############################################*/



    }
});



/* liste de souhaits
--------------------------------*/
function OnSucceeded_AjaxAjoutCommentaireWebLigne(result) {
    var Tab = result.split('~#~');
    var mParamRetour = Tab[0];
    var mResult = Tab[1];
    if (mResult != '') { document.getElementById('commentaire_commentaire_' + mParamRetour).innerHTML = mResult; } else { document.getElementById('commentaire_commentaire_' + mParamRetour).innerHTML = '<span class="AjouterCommentaire">Ajouter un commentaire....</span>' }
    document.getElementById('commentaire_modification_' + mParamRetour).style.display = 'none';
    document.getElementById('commentaire_commentaire_' + mParamRetour).style.display = 'block';
}

function OnFailed_AjaxAjoutCommentaireWebLigne(error) {
    //alert('La méthode Ajax à causé une erreur : ' + error.get_message());
}

/******message lien entete******/
$(document).ready(function () {
    $('#lien-general-liste[tooltip]').each(function () {
        $(this).qtip({
            content: $(this).attr('tooltip'), // Use the tooltip attribute of the element for the content
            style: { tip: true, border: { radius: 5 }, name: 'dark' }, // Give it a crea mstyle to make it stand out
            position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'} }
        });
    });
});

/*************************************************************************/
function OnSucceeded_AjaxEnvoiMail(result) {
    var Tab = result.split('~#~');
    var mParamRetour = Tab[0];
    var mResult = Tab[1];
    if (mParamRetour == "DEVIS") {
        document.getElementById('form_demande_form').style.display = 'none';
        document.getElementById('form_demande_ok').style.display = 'block';
    }
}

function OnFailed_AjaxEnvoiMail(error) {
    alert('La méthode Ajax à causé une erreur : ' + error.get_message());
}

/*********************************** PARRAINAGE */
  
function AjaxAjoutParrainage(vEmail, vNom, vCommentaire) {
    PageMethods.AjaxAjoutParrainage(vEmail, vNom, vCommentaire, OnSucceeded_AjaxAjoutParrainage, OnFailed_AjaxAjoutParrainage);
}

function OnSucceeded_AjaxAjoutParrainage(vResult) {

    // on enleve tous les messages d'erreur
    $('.parrainage_erreur').each(function () { $(this).remove(); });

    if (vResult.match(/ERREUR#/g)) {
        // ajout du message d'erreur
        $('#parrainage').append('<div class="parrainage_erreur">' + vResult.replace(/ERREUR#/g, '') + '</div>');
    } else {
        // désactivation des input et des boutons
        $('#parrainage input').each(function () { $(this).attr("disabled", true); });
        $('#parrainage button').each(function () { $(this).replaceWith('<span class="picto"></span>'); });

        // ajout d'une nouvelle ligne de saisie (5 lignes max)
        var mNextID = parseInt(($('#parrainage input').length / 2) + 1);
        if (mNextID <= 5) {
            var mHTML = '';
            mHTML += '<tr>';
            mHTML += '<td><input type="text" name="parrain_nom' + mNextID + '" id="parrain_nom' + mNextID + '" /></td> ';
            mHTML += '<td><input type="text" name="parrain_mail' + mNextID + '" id="parrain_mail' + mNextID + '" /></td> ';
			mHTML += '<td><textarea id="parrain_commentaire' + mNextID + '" name="parrain_commentaire' + mNextID + '" rows="1" cols="20">Votre message</textarea></td> ';
			mHTML += '<td><input class=button3 onclick="AjaxAjoutParrainage($(\'#parrain_mail' + mNextID + '\').val(), $(\'#parrain_nom' + mNextID + '\').val(),$(\'#parrain_commentaire' + mNextID + '\').val());return false;" value=Ajouter type=button></td> ';
			mHTML += '</tr>';
            $('#parrainage .liste table tbody').append(mHTML);
        }
    }
}
function OnFailed_AjaxAjoutParrainage(vResult) { alert(vResult); }

function ArticleAjoutPanierExpressTrue() {
    document.getElementById('retourAjoutPanierExpress').innerHTML = '<span>L\'article a été ajouté au panier</span>';
}

function ArticleAjoutPanierExpressFalse() {
    document.getElementById('retourAjoutPanierExpress').innerHTML = '<strong>L\'article n\'a pas été ajouté au panier</strong>';
}

/*********************************** SO COLISSIMO */

function SoColissimoLiberte() { SoColissimoRecherche(); return false; }

function SoColissimoRecherche() {
    var adresse = '';
    var typePoints = '';

    if ($('#SoAdresseInput').length > 0) adresse = $('#SoAdresseInput').val();
    if ($('#SoCheckCityssimo:checked').length > 0) typePoints += 'C';
    if ($('#SoCheckPoste:checked').length > 0) typePoints += 'P';
    if ($('#SoCheckCommercant:checked').length > 0) typePoints += 'M';

    $.colorbox({ html: '', initialWidth: 50, initialHeight: 50, maxWidth: '80%', maxHeight: '80%', onComplete: PageMethods.AjaxSoColissimoRecheche(adresse, typePoints, OnSucceeded_SoColissimoRecherche, OnFailed_SoColissimoRecherche) });
}

function SoColissimoCheckMobile() {
    var mobile = $('#SoMobile').val();
    $('#SoMobileErreur').html('&nbsp;');
    var regex = new RegExp(/^(06|07)[0-9]{8}/gi);

    if (mobile.length == 0) {
        $('#SoMobileErreur').html('<span class="SoMobileKO">&nbsp; Votre mobile est obligatoire !</span>');
        return false;
    }
    else if (mobile.indexOf('06') != 0 && mobile.indexOf('07') != 0) {
        $('#SoMobileErreur').html('<span class="SoMobileKO">&nbsp; Votre mobile doit commencer par 06 ou 07 !</span>');
        return false;
    }
    else if (!regex.test(mobile)) {
        $('#SoMobileErreur').html('<span class="SoMobileKO">&nbsp; Votre mobile ne doit contenir que des chiffres !</span>');
        return false;
    }
    else if (mobile.length != 10
            || mobile == '0606060606' || mobile == '0707070707' || mobile == '0600000000' || mobile == '0700000000'
            || mobile == '0611111111' || mobile == '0622222222' || mobile == '0633333333' || mobile == '0644444444'
            || mobile == '0655555555' || mobile == '0677777777' || mobile == '0688888888' || mobile == '0699999999'
            || mobile == '0711111111' || mobile == '0722222222' || mobile == '0733333333' || mobile == '0744444444'
            || mobile == '0755555555' || mobile == '0777777777' || mobile == '0788888888' || mobile == '0799999999'
            || mobile == '0612345678' || mobile == '0712345678') {
        $('#SoMobileErreur').html('<span class="SoMobileKO">&nbsp; Votre mobile doit comporter 10 chiffres &agrave; suivre !</span>');
        return false;
    } else {
        $('#SoMobileErreur').html('<span class="SoMobileOK">&nbsp; Votre mobile a &eacute;t&eacute enregistr&eacute;.</span>');
        PageMethods.AjaxSoColissimoEnregistreMobile(mobile, doNothing, doNothing);
        return true;
    }
}
function doNothing(nothing) {
    //alert(nothing);
}

function SoColissimoRechercheCityssimo() {
    if (SoColissimoCheckMobile())
        $.colorbox({ html: '', maxWidth: '90%', maxHeight: '90%', onComplete: PageMethods.AjaxSoColissimoRecheche('', 'C', OnSucceeded_SoColissimoRecherche, OnFailed_SoColissimoRecherche) });
}
function SoColissimoRecherchePoste() {
    if (SoColissimoCheckMobile())
        $.colorbox({ html: '', maxWidth: '90%', maxHeight: '90%', onComplete: PageMethods.AjaxSoColissimoRecheche('', 'P', OnSucceeded_SoColissimoRecherche, OnFailed_SoColissimoRecherche) });
}
function SoColissimoRechercheCommercant() {
    if (SoColissimoCheckMobile())
        $.colorbox({ html: '', maxWidth: '90%', maxHeight: '90%', onComplete: PageMethods.AjaxSoColissimoRecheche('', 'M', OnSucceeded_SoColissimoRecherche, OnFailed_SoColissimoRecherche) });
}

function SoColissimoSelectionneDomicile(isRendezVous) {
    if (isRendezVous == '0' || SoColissimoCheckMobile())
        PageMethods.AjaxSoColissimoSelectionneDomicile(isRendezVous, OnSucceeded_SoColissimoSelectionneDomicile, OnFailed_SoColissimoSelectionneDomicile);
}
function SoColissimoSelectionnePointRetrait(identifiantPoint) { PageMethods.AjaxSoColissimoSelectionnePointRetrait(identifiantPoint, OnSucceeded_SoColissimoSelectionnePointRetrait, OnFailed_SoColissimoSelectionnePointRetrait); }


function OnSucceeded_SoColissimoRecherche(vResult) { $.colorbox({ html: ' ', innerWidth: '900', innerHeight: '735', onComplete: function () { $.colorbox({ html: vResult, innerWidth: '900', innerHeight: '735' }); } }); }
function OnFailed_SoColissimoRecherche(erreur) { $.colorbox({ html: ' Une erreur est survenue, veuillez réessayer' }); }

function OnSucceeded_SoColissimoSelectionnePointRetrait(vResult) { document.location.href = '/panier-confirmation.aspx'; }
function OnFailed_SoColissimoSelectionnePointRetrait(erreur) { document.location.href = '/panier-confirmation.aspx'; }
function OnSucceeded_SoColissimoSelectionneDomicile(vResult) { document.location.href = '/panier-confirmation.aspx'; }
function OnFailed_SoColissimoSelectionneDomicile(erreur) { document.location.href = '/panier-confirmation.aspx'; }
function colorboxFermerVisible() { $('#cboxClose').css({ top: 0, right: 0, 'background-image': 'url(Image/SoColissimo/fermer.gif)', width: 69, 'background-position': '0 0 ' }) }



