var s;                                                                                        // liste des articles
var urlDivLocalPrice;                                                             // url de la div localprice avec ou sans resa (affectee dans manage-connexion)
var idUnivers;
var titleUnivers;
var multiLangCatNameRayon;                                        // Nom multilangue de l univers
var idRayon;
var titleRayon;
var idSsRayon;
var idFamille;
var urlRayon;
var idXitiUniversOrRayon;
var ie=document.all                                                                 //script execute sur IE ou non
var ns6=document.getElementById && !document.all     //script execute sur FF ou non
var curX = "" ;                                                                             //position X de la souris
var curY = "" ;                                                                             //position Y de la souris
var timeMasque = "" ;                                                              //la variable correspondant au setTimeout de la fonction masque()
var ratioImg = 2 ;                                                                      //rapport entre largeur de la grande image et largeur de la petite image ici 800 et 400
var ratioDiv = '';                                                                         //rapport entre largeur de la div contenant la grande image et celle contenant la petite image
var img = '';                                                                                //div contenant l'image en 400*400
var debLargeur = '';                                                                 // position gauche de 'img' en abscisse
var finLargeur = '';                                                                    // position droite en abscisse
var debLongueur = '';                                                             // position haute en ordonnee
var finLongueur = '';                                                                // position basse en ordonnee
var positionPointeur = 412.5;                                               //la position du pointeur est arbitraire et permet d’optimiser au maximum l’affiche du zoom
var zoom = '';                                                                            // div contenant l'image 800*600
var productNotExistInStore = false;                                    // Boolean indiquant si le modele existe ou non dans le magasin sur lequel le client est connecte.
var affichagePsd = false;                                                      // Boolean indiquant si le bouton affiche correspond a celui renvoyant vers la popup productStoresDisponibility ou a celui renvoyant vers la popup de prix et stock local

/* Appellee a la fin de la page modele pour afficher les blocs adequats ne dependant pas du cookie */
function showBlocModeleClassic() {
    // Boolean pour savoir si le modele existe pour le magasin en cours
    productNotExistInStore = false;

    /*On cache le titre avis oxylane et le lien retour haut
    ils s affichent au click sur l onglet*/
    hideBloc("titreAvis");
    hideBloc("retourPageAvis");

    /*logo fin de collection*/
    if (etape==3 || etape==7 || etape==8)
        showBloc('cartoucheFdCollection'); 
    
    // Si 1 seul article force la selection de cet article  
    s=document.getElementById('listeArticles');    
    if (s.options.length==2) {                 						
        s.selectedIndex=1;
    }
    /* si la liste contient au plus un article ou si nous sommes dans le cas centrale et que les prix sont homogenes alors on cache la liste des articles */        
   if (s.options.length<3 || cacheListeArticles && !casmagasin){
        hideBloc('selectionProduit');
    }
    else {
        var params = window.location.search;
        var paramToSearch = 'articleValue';
        if(params.indexOf(paramToSearch) != -1){
            var selectValue = params.substr(params.indexOf(paramToSearch) + paramToSearch.length + 1);
            for(var i=1;i<s.options.length && s.selectedIndex==0;i++)
                if(s[i].value == selectValue) s.selectedIndex = i;
        }
    }

     // Affichage du contenu de l onglet taille et coloris 
    if (s.options.length>1 || (color !='')) {
        showBloc('tailleContenuOnglet'); 
        showBloc("ongletTaille");
        if (ongletActif==''){
            ongletActif="ongletTaille";
            hideBloc("titreTaille");
        }
    }
    else{
        hideBloc("ongletTaille");
    }
    
    //si le produit n est pas autorise a s afficher on cache les blocs adequats
    if (desactiveAffichageProduit =="Y"){
        if(window.location.search.indexOf('?emailing=')==-1){
            hideBloc ("blocPrixTpsReel");
            hideBloc ("blocPrix");
            productNotExistInStore = true;
            return false;
        }
    }
    
    // si les concepts du produit ne sont pas des liages,on cache le texte decouvrez  le site
    if(!lienConcept)
        hideBloc ("titreDecouvrez");	         

    //gestion d Alsolia
    if (getSwitchSite('ALSOLIA'))
        getAlsolia();
        
    /*gestion des vignettes a gauche de la photo du produit*/
    if(existeGaucheproduit)
        changeBlocClass("photoProduit","photoproduit options");
    
    // Affichage du bloc gris (vente en ligne) si au moins un des criteres est satisfait
    if ((boolKoodza == "true" || (urlBuyOnline != "" && (_siteNumber == "4809998" || _passion == "true" ))) && getSwitchSite('KOODZA')) showBloc("blocAchatLigne");

      // gestion des avis oxylane
    if (getSwitchSite('AVIS') && getBlocHtml('marquePassion')=='true'){
        showBloc("ongletOxylaneAvis");
        showBloc("blocOxylaneAvis");
        showBloc("oxylaneAvis");
        showBloc("oxylaneRecapAvis");
        showBloc("oxylaneFullAvis");        
        if (ongletActif==''){
        ongletActif="ongletOxylaneAvis";
        hideBloc("titreAvis");
        }
        if(window.location.href.indexOf("#AVIS") != -1){
            document.getElementById('ongletAvis').onclick();
            document.location.href = document.location.href;
        }
    }
    else{
        hideBloc("ongletOxylaneAvis");
        hideBloc("blocOxylaneAvis");
        hideBloc("oxylaneAvis");
        hideBloc("oxylaneRecapAvis");
        hideBloc("titreAvis");
        hideBloc("retourPageAvis");
    }
     // colore en bleu le premier onglet par defaut
    changeBlocClass(ongletActif,"actif");
    
    // date de la veille
    var dateVeille=getDateVeilleEnFonctionDuFormat(formatDate);
    setBlocByHtml("date",dateInfoLegale+" "+dateVeille+".");
     if (affichePrixRouge){
        changeBlocClass("prixModele_"+_modelId,"prixRouge");
    }

    // Si rayon different de "optique" et marque differente de Aptonia, alors on peut afficher le couple picto + lien marque
    var myBrand = "";    
    var tmp = document.getElementById("logoMarqueCourante");
    if (tmp) myBrand = tmp.title;
    
    // temporaire : les produits Tribord sous le rayon natation changent de marque pour Nabaiji
    if (multiLangCatNameRayon == "swimming" && myBrand == "TRIBORD") {
        var blocDroit = document.getElementById('blocdroit-produit-descri');
        var lienMarque = document.getElementById('lienMarqueCourante');
        var logoMarqueOld = document.getElementById('logoMarqueCourante');
        var logoMarqueNew = new Image();
        logoMarqueNew = createElement_img("logoMarqueCourante","logo",logoMarqueOld.src.replace('marque-asset_302537.jpg','marque-asset_16530589.jpg'),logoMarqueOld.alt,"","","");
        logoMarqueNew.title = 'NABAIJI';
        if(lienMarque && _siteNumber == "55813"){
            lienMarque.href = "http://www.nabaiji.com/FR/";
            lienMarque.replaceChild(logoMarqueNew,logoMarqueOld);
        }
        else if(lienMarque) blocDroit.childNodes[0].replaceChild(logoMarqueNew,lienMarque);
        else blocDroit.childNodes[0].replaceChild(logoMarqueNew,logoMarqueOld);
        showBloc("lienMarqueCourante");
        showBloc("logoMarqueCourante");
    }
    else{
        if (multiLangCatNameRayon != "optical" || myBrand != "APTONIA") {
            showBloc("logoMarqueCourante");
            showBloc("lienMarqueCourante");
        }
    }

    // Gestion de la doc associee
    if (getSwitchSite('DOCUMENTS_ASSOCIES') && typeof docsAssociesNb != "undefined") {
        // Localisation des dates
        for (var k=1; k < docsAssociesNb +1 ; k++) {
            oDocDate = document.getElementById('daDate_'+k)
            if (oDocDate) {
                var sDate = oDocDate.firstChild.nodeValue;
                var titi = getDateAuFormat(formatDate,sDate.substring(0,2),sDate.substring(3,5),sDate.substring(6));
               oDocDate.firstChild.nodeValue = getDateAuFormat(formatDate,sDate.substring(0,2),sDate.substring(3,5),sDate.substring(6));
            }
        }
        // Affichage
        if (docsAssociesNb > 0) showBloc('docsAssocies');
    }

}
  
/************************************************************************************************************************************************************/          			
// Dans le cas ou le cookie est null (cas centrale ou si local_stock=false), 
// cette fonction met a jour le cartouche prix avec le prix de l article selectionne
function ouvreDivOuMajPrix() {
    if (s.value!='' && cookieMagasin==null) {               
                // Cas centrale                   
                loadArticle(_client, _siteNumber, _centralNumber, null, s.value, _language);                  
    }
    else if(affichagePsd){
        hideBloc('boutonPsdOnclick');
        hideBloc('articleSelectionIndispo');
        hideBloc('articleIndispo');
        showBloc('boutonPrixTpsreelOnclick');
        affichagePsd = false;
    }
    gestionBoutonPrixTpsReel();
}

/*********************************************************************************************************************************************************/
// Fonction qui construit notre objet IAjaxProcess pour pouvoir recuperer le titre de l univers et du rayon dans un XML
function loadUniversRayon() {
    urlFamillePath = rootPath+urlFamille+'path.xml';   
    loaded = false;
    var func = function (xmlHttp, httpStatus) {
        oGlobalXml = xmlHttp.responseXML;
        if(oGlobalXml!=null) {
            var root = oGlobalXml.documentElement;
            var cs = root.childNodes;
            var l = cs.length;
            for (var i = 0; i < l; i++) {
                    if (cs[i].tagName == "Famille"){
                        // Titre de l univers
                        titleUnivers = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Univers'),'userTitle');           
                       if (titleUnivers==null) {
                            titleUnivers = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Univers'),'title');
                       }
                        // Nom multilangue du rayon
                        multiLangCatNameRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'multilingualCategoryName');
                       //  Titre du rayon
                       titleRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'userTitle');
                       if (titleRayon==null) {
                            titleRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'title');
                       }
                       // Tag externe univers ou rayon 
                       idXitiUniversOrRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'tag_xiti');           
                       if (idXitiUniversOrRayon==null) {
                           idXitiUniversOrRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Univers'),'tag_xiti');
                        }  
                        idUnivers = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Univers'),'id'); 
                        idRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'id');
                        idSsRayon = getChildNodeValue(getChild(getChild(cs[i], 'path'),'SousRayon'),'id');
                        idFamille = getChildNodeValue(cs[i],'id');
                        urlRayon=getChildNodeValue(getChild(getChild(cs[i], 'path'),'Rayon'),'url');      
                    }
            }
            loaded = true;
        }
    };
    var oProcess = new IAjaxProcess(urlFamillePath, func);	
    oProcess.run();
}
/****************************************************************************************************************************************************************/
// on appelle la fonction qui va charger la bonne vente complementaire (rayon - famille - modele)
function _loadedUniversRayon() {
    if (loaded) { 
        setBlocByHtml('nomRayon', titleRayon);
        document.getElementById('urlRayon').href = rootPath+urlRayon;    
        displayVC();
    }
    else {	         
                window.setTimeout('_loadedUniversRayon()', 10);
    } 
}
/****************************************************************************************************************************************************************/
// Une fois le titre et l id xiti du rayon ou univers recuperes en ajax (fonction loadUniversRayon) on affecte les parametres pour xiti dans le div blocXiti
// declare dans la page modele
// xiti_s et xiti_p2 sont renseignees dans le xsl modele
// idXitiUniversOrRayon et titleRayon sont renseignes dans la fonction loadUniversRayon
// la fonction calculateXiti se trouve dans xtcore.js
function _loadedXiti() {
    if (loaded) {  
        // Recup des donnees manquantes
        xtn2 = idXitiUniversOrRayon;
        xtpage = xtTraiter(titleRayon+xiti_p2);
        xtidmod = "2";
        
        // Lancement hit Xiti
        xt_init();
        
        // Pour ClickZone
        if (xtclzone>0) {xtNodesload();} 
    }
    else {
        window.setTimeout("_loadedXiti()", 10);
    }
}
/****************************************************************************************************************************************************************/
//  Permet de fournir a Webtrends certains elements pour la page modele
function _loadedWebtrends() {
    if (loaded) {
        try {
            dcsMultiTrack('WT.cg_n', titleUnivers, 'WT.cg_s', titleRayon, 'WT.z_family', webtrends_family, 'WT.z_model', webtrends_model);
        } catch(err) {}
    }
    else window.setTimeout("_loadedWebtrends()", 10);
}
/****************************************************************************************************************************************************************/
//  Permet de fournir a Google Analytics certains elements pour la page modele
function _loadedGoogleAnalytics() {
    if (loaded) {
        googleanalytics_path = '/' + titleUnivers + '/' + titleRayon + '/' + googleanalytics_path + ' /';
        try {
            pageTracker._trackPageview(googleanalytics_path);
        } catch(err) {}
    }
    else window.setTimeout("_loadedGoogleAnalytics()", 10);
}
/**********************************************************************************************************************************************************/
var compt1="",temps1=100, calque1="";

//fonction permettant de montrer le texte d alsolia au survol de la souris
function bulle_on(calque1) 
{
    if (compt1 != ""){
        clearTimeout(compt1)
    }
    showBloc(calque1);
}

/****************************************************************************************************************************************************/
//fonction permettant de cacher le texte d alsolia 
function bulle_off(calque1)
{
    compt1=setTimeout("bulle_tempo('"+calque1+"')",temps1);
}

/***********************************************************************************************************************************************/
function bulle_tempo(calque1)
{
    hideBloc(calque1);
}

/***********************************************************************************************************************************************/
//fonction permettant de changer la couleur de 1 ligne sur 2
//id : identifiant du bloc
// onglet : nom de l onglet auquel le contenu appartient 
function changeCouleur(id,onglet){
    if (onglet){
        changeBlocClass(id,"fondcolor");
        onglet=false;
    }
    else{
        onglet=true;
    }
    return onglet;
}

/*************************************************************************************************************************************************/
//fonction permettant d afficher les BU avec images
function setBlocImgBU(){
    var stringARetourner='';
    var valeur='';
    if (tabImg.length>0){
          document.write ('<div class="visuels mt10" id="blocImgs">ssss</div>');
        for (i=0;i<tabImg.length;i++){
            if (i %3 == 0){
                lapos =  tabImg[i].substring(tabImg[i].indexOf("_")+1,tabImg[i].length);
                changeBlocClass("int_"+lapos,"blocsImagesBoth");
            }
            valeur += document.getElementById(tabImg[i]).innerHTML;
        }
        setBlocByHtml("blocImgs", valeur);
    }
}

/********************************************************************************************************************************************************/
// fonction permettant de changer la couleur de longlet au click de celui-ci
function changeCouleurOnglet(id){
 changeBlocClass(ongletActif,"onglet");
   if (ongletActif =='ongletOxylaneAvis' )
      changeBlocClass('oxyAvis',"oxy");
  ongletActif=id;
  changeBlocClass(ongletActif,"actif");   
}

/***********************************************************************************************************************************************/
// fonction qui affiche le bouton J achete en ligne et definit le lien vers"urlBuyOnline
function activeBuyOnline(titreLien,url,sBrandCurrent,sbrandsIncluded) {
    var boutonKoodza;

    var bBrandOk = true;

    // Test filtrage a la marque
    if (typeof sBrandCurrent != 'undefined' && typeof sbrandsIncluded != 'undefined') {
        if (sbrandsIncluded != '') {
            var reg=new RegExp(sBrandCurrent,"gi");
             if (sbrandsIncluded.match(reg) == null) bBrandOk = false;
        }
    }

    if (url && bBrandOk && (_siteNumber == '4809998' || _passion == 'true' ) ) {
        urlBuyOnline = url;
        if (boutonKoodza = document.getElementById("boutonKoodza")) {
            boutonKoodza.title = titreLien;
            setHref('boutonKoodza',urlBuyOnline);
         }
     }

}

/***********************************************************************************************************************************************/
//fonction de zoom sur la grande photo
function showZoomImg()   {
    var imgcourante = document.getElementById('ZoomImg');
    var source = imgcourante.src;
    if (source) {
        var sourceZoom = source.replace("gd-","");
        window.open("sizeAndColors.html?image="+source,"","width=970, height=620, location=0, titlebar=0, status=0, menubar=0" );
        }
    else {
        window.open("sizeAndColors.html","","width=970; height=620, location=0, titlebar=0, status=0, menubar=0");
        }
} 

/***********************************************************************************************************************************************/
// fonction permettant de remplacer la grande photo par la photo de la vignette sur laquelle on a clique
function ZoomIt(id) {
    var CetteSrc = document.getElementById(id).src;
    document.getElementById('ZoomImg').src=CetteSrc.replace("pt-asset","gd-asset");
}

/***********************************************************************************************************************************************/
// fonction permettant de remplacer la grande photo par une photo disposant d une version HD lors du clique sur le picto HD
function ZoomItHD(img) {
    if (img) document.getElementById('ZoomImg').src=img.replace("pt-asset","gd-asset");
}

/***********************************************************************************************************************************************/
// [Modele Zoom] fontion permettant d afficher directement sur la page zoom la photo qui a ete cliquee sur la fiche produit
function zoomChargePhotoPrincipale(pictPath){
    var params = getUrlParameters() ;
    if(params[0][1] && params[0][1] != ""){
        var urlImage = decodeURI(params[0][1]) ;
        urlImage = urlImage.replace("gd-","");
        setSrc("main-photo", urlImage) ;
        
        var reg1=new RegExp('asset.*.jpg');
        zoomSwitchBetweenFlashAndPicture(urlImage.match(reg1).toString(), pictPath);        
    }
}


/***********************************************************************************************************************************************/
// [Modele Zoom] fontion permettant d afficher soit la photo classique du modele ou le flash
function zoomSwitchBetweenFlashAndPicture(pictName, pictPath) {
    var pictId = getBlocHtml(pictName+'_is_hd');
    var div;
    var mainPhoto = document.getElementById('main-photo');
    var blocZoom = document.getElementById("bloczoom");

    if (pictId == "true") {
        if(div = document.getElementById('picture-main'))
            div.id = 'picture-zoom';
            
        blocZoom.style.display = 'block';
        mainPhoto.onmouseover =  function(){masque();};
        mainPhoto.onmouseout = function(){desactiveMasque();};
        
        zoom =  document.getElementById("zoom");
        zoom.style.backgroundImage="url("+pictPath+'/h1-'+pictName+")"; // image HD
        
        var largeurImg = document.getElementById("contain-main-photo").clientWidth;
        var largeurImgZoom = document.getElementById("zoom").clientWidth;
        ratioDiv = largeurImg / largeurImgZoom;

        calculOffsets();
        window.onresize = function(){calculOffsets();}; // recalcul de la position de la div en abscisse lors du redimensionnement de la fenêtre
              
        if(curX == "" && curY == "")
            document.onmousemove = positioncurseur ; //on lance le calcul du positionnement de la souris
    }
    else {
       if(div = document.getElementById('picture-zoom'))
                div.id = 'picture-main';
        blocZoom.style.display = 'none';        
        mainPhoto.onmouseover = "";
        mainPhoto.onmouseout = "";    
    }
}
 
/***********************************************************************************************************************************************/
 /* Permet de bouger l'image HD en fonction de l'image SD
 * Cette fonction utilise la position du curseur curX et curY
*/
function masque() {
    timeMasque = setTimeout("masque()",10);
    var bgX = ((curX - debLargeur)/ratioDiv)*-ratioImg + 200; //position du background en abscisse (1.2625 est le rapport entre la largeur de la div de la photo en 400*400 et la div de celle en 800*800 : 505/400)
    var bgY = curY*-ratioImg + 400; //position du background en ordonnee
   bgY = bgY + ietruebody().scrollTop*ratioImg; //position du background en ordonnee + positionnement du scroll
   zoom.style.backgroundPosition = bgX+"px "+bgY+"px";
}

/***********************************************************************************************************************************************/
//Calcul la position en abscisse de la div de gauche contenant l'image en 400*400
function calculOffsets(){
    img = document.getElementById("contain-main-photo"); 
    debLargeur = img.offsetLeft; 
    while(img.offsetParent){
        img = img.offsetParent;
        debLargeur += img.offsetLeft;
    }
}

/***********************************************************************************************************************************************/
// Permet de detruire l'appel a la fonction masque
function desactiveMasque(){
    clearTimeout(timeMasque) ;
}

/***********************************************************************************************************************************************/
// Permet de remplir la div popup-productNotExist par le contenu de la page du même nom
function loadPopupProductNotExist(pneStoreNumber, pneStoreUrl, pneStoreName, pneModelId) {
    _loadPopupProductNotExist(pneStoreNumber, pneStoreUrl, pneStoreName, pneModelId, POST_LOAD_PNE_FUNCTION);
}

/*********************************************************************************************************************************************************/
// Charge la page du produit non existant et lance la fonction de post associee
function _loadPopupProductNotExist(_pneStoreNumber, _pneStoreUrl,  _pneStoreName, _pneModelId, _localFunc) {
    var func = function (xmlHttp, httpStatus) {
        oGlobalText = xmlHttp.responseText;
        if(oGlobalText != null) {
            setBlocByHtml('popup-product-not-exist',xmlHttp.responseText);
        }
        
        if (_localFunc != null) {
            try {
                _localFunc(httpStatus, _pneStoreNumber, _pneStoreUrl, _pneStoreName, _pneModelId);
            } catch (e) {
                return false;
            }
        }
        
    return true;
    };

    //Lancement du processus
    var oProcess = new IAjaxProcess(urlProductNotExist, func);
    oProcess.run();
    return true;
}

/*********************************************************************************************************************************************************/
// Gere l affichage de la popup du produit non existant
var POST_LOAD_PNE_FUNCTION = function postLoadPne(httpStatus, theStoreNumber, theStoreUrl, theStoreName, theModelId) {
    if(httpStatus != null && httpStatus==200) {
        if(desactiveAffichageProduit == 'N'){
            // Si body2 renseigne dans la rubrique, on l affiche seul
            var body2 = document.getElementById("pne-body2");
            if (body2) {
                // Maj des tags places dans le texte
                var txt = body2.innerHTML;
                txt = txt.replace("#store_name", '<span style="color:#00B4F1;">'+magasin+'</span>');
                txt = txt.replace("#mod_ref", '<span style="color:#00B4F1;">'+theModelId+'</span>');
                body2.innerHTML = txt;
    
                // Recuperation des infos magasin
                getStoreInfos(theStoreUrl,POST_LOAD_PNE_STOREINFOS_FUNCTION);
    
                // Affichage
                showBloc("pne-body2");
            }
            else showBloc("pne-body1");
        }
        else{
            if(cookieMagasin != null){
                var txt = getBlocHtml('pne-comm2');
                txt = txt.replace("#store_name", magasin);
                setBlocByHtml('pne-comm2',txt);
                showBloc("pne-comm2");
            }
            else showBloc("pne-comm1");
            document.getElementById('pneCloseLink').onclick = '';
            setHref('pneCloseLink',rootPath + urlFamille);
        }
        // Affichage de la popup produit non existant 			
        show_filter('filter');			
        show_popup('popup-product-not-exist');
    }
    else document.location.href = rootPath + urlFamille;
}

/*********************************************************************************************************************************************************/
// Gere l affichage de la popup du produit non existant
var POST_LOAD_PNE_STOREINFOS_FUNCTION = function postLoadPneSi(httpStatus, theFlow) {
    if(httpStatus != null && httpStatus==200 && theFlow != "") {
        // Coordonnees du magasin
        var coordMag=theFlow.substr(theFlow.indexOf('<div class="coord">'));
        coordMag = coordMag.substring(0,coordMag.indexOf('</div>'));
        
        var infosSup = '';
        // Infos supplementaires
        if(theFlow.indexOf('<div class="infosupp">') != -1){
            infosSup = theFlow.substr(theFlow.indexOf('<div class="infosupp">'));        
            infosSup = infosSup.substring(0,infosSup.indexOf('</div>'));
        }
        
        if (coordMag != "") setBlocByHtml("coordMag",coordMag);
        if (infosSup != "") setBlocByHtml("infosSup",infosSup);
    }
 }
 
/***********************************************************************************************************************************************/
//fonction pour afficher tous les avis Oxylane
function showAllAvis(_sUrl)   {
    if (_sUrl != "") openNewWindow (_sUrl + '?avis', 'avis', 'width=990, height=700, scrollbars=yes, resizable=yes');
} 