var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;function openPopup(u, n, r, l, m, sc, st, t, f, d, w, h, c, left, top) {   if (c == "yes") {      top = (screen.height - h) / 2;      left = (screen.width - w) / 2;   }   window.open(u, n, "directories=no,resizable=" + r + ",location=" + l + ",menubar=" + m + ",scrollbars=" + sc + ",status=" + st + ",toolbar=" + t + ",fullscreen=" + f + ",dependent=" + d + ",width=" + w + ",height=" + h + ",top=" + top + ",left=" + left);}function mtwsb(n, d, s, b) {   location.href = 'mailto:' + n + '@' + d + '?subject=' + s + '&body=' + b;}$(function() {   $('a.rechImgAS').click(function() {      if (IE6) {         $('#codeAntiSpam').val('reload');         $('input[name="contacter"]').click();      }      else {         $('#imgAntiSpam').attr('src', $(this).attr('href') + '&type=imgas&k=' + (Math.random() * 100000));      }      return false;   });   $('input').each(function(i, e) {      if (e.type != "submit" && e.parentNode.className != "commandes") {         return;      }      $(e).hover(function() {         $(this).addClass("over");      }, function() {         $(this).removeClass("over");      });   });   $('.action a.popup').each(function(i, e) {      e.href = e.href.indexOf('?') == -1 ? '?mode=popup' : e.href + '&mode=popup';   });   if (!$.fn.colorbox) {      $('.action a.popup').click(function() {         openPopup(adr, 'popup', 'yes', 'no', 'yes', 'yes', 'yes', 'no', 'no', 'no', 645, 600, 'yes');         return false;      });   }   else {      $('.action a.popup').each(function(i, e) {         e.href = e.href.replace('mode=popup', 'mode=colorbox');      }).colorbox({         innerWidth: 645,         innerHeight: 610,         iframe: true,         opacity: .7      });   }   $('.action a.imprimer').click(function () {      if (!$(this).hasClass('popup')) {         window.print();      }   });   $('.action a.favoris').click(function () {      var tarea = document.createElement('textarea');      tarea.innerHTML = $('title').html();      var nomSite = tarea.value;      var urlSite = window.location;      if (window.external) {         if (window.sidebar) {            window.sidebar.addPanel(nomSite, urlSite, "");         }         else {            window.external.AddFavorite(urlSite, nomSite);         }      }      if (   document.all          && navigator.userAgent.indexOf('Win') < 0) {         alert("COMMAND + B pour ajouter  " + nomSite + " à vos favoris !");      }      if (document.layers) {         alert("CTRL + D pour ajouter " + nomSite + " à vos favoris !");      }      if (navigator.userAgent.indexOf('Opera') != -1) {         alert("CTRL + T pour ajouter " + nomSite + " à vos favoris !");      }   });   var tailleCourante = 0;   var tailleMin = -4;   var tailleMax = 4;   var pas = 2;   $('.action a.augmenter').click(function () {      if (tailleCourante == tailleMax) {         return;      }      tailleCourante += pas;      changerFontSize(pas);   });   $('.action a.diminuer').click(function () {      if (tailleCourante == tailleMin) {         return;      }      tailleCourante -= pas;      changerFontSize(-pas);   });   function changerFontSize(valeur) {      var rules = document.styleSheets[0].rules||document.styleSheets[0].cssRules;      for (var r = 0 ; r < rules.length; r++) {         if (!rules[r].selectorText) continue;         if (   rules[r].style.cssText.toLowerCase().indexOf("font-size") != -1             && parseInt(rules[r].style.fontSize) != 1) {            rules[r].style.fontSize = parseInt(rules[r].style.fontSize)               + parseInt(valeur) + "px";         }      }   }      $('a[rel="lytebox"]').removeAttr('rel').colorbox({opacity: .7});   $('a[rel^="lytebox["]').colorbox({opacity: .7});   $('a[rel="lyteframe"]').each(function(i,e){e.href = e.href.replace('mode=popup', 'mode=colorbox');}).removeAttr('rel').colorbox({opacity: .7, iframe:true, innerWidth: 645, innerHeight: 610});   $('a[rel^="lyteframe["]').each(function(i,e){e.href = e.href.replace('mode=popup', 'mode=colorbox');}).colorbox({opacity: .7, iframe:true, innerWidth: 645, innerHeight: 610});   $('a[rel^="lyteshow["]').colorbox({opacity: .7, slideshow:true});});