$(document).ready(function(){

      $('img[@src$=.png]').ifixpng();
      $('#banner').ifixpng();
      $('.trans').ifixpng();
      $('.carte_comm').ifixpng();



      $(".sousmenu:not(.selected)").hide();
      $(".racine").mouseover(function(){

         var cible=$("+ .sousmenu",this);
         testvis=$("+ .sousmenu:visible",this);

         if(testvis.size()==0){
            $(".sousmenu:visible").hide();
            cible.show();

         }
      });

      $("#contenu, #banner, #body, #trans_close_g, #trans_close_d").mouseover(function(){
         $(".sousmenu").hide();
      })

      $(".info_addfav").hide();
      $(".adfav").mouseover(function(){
         var cible=$("+ .info_addfav",this);
         testvis=$("+ .info_addfav:visible",this);
         if(testvis.size()==0){
            $(".info_addfav:visible").hide();
            cible.show();
         }
      });
      $(".adfav").mouseout(function(){
         $(".info_addfav").hide();
      })



});

var orig;
orig = 12;

function setFont(sz) {
   var sz;
   if (!document.all && !document.getElementById)
      return;
   //alert("orig = " + orig + " sz = " + sz);
   if (    ( orig <=20 || sz <= 0)
       && ( orig >=11  || sz >= 0)  ) {
      orig+=sz;
      if ( orig != 16 ) {
         window.document.body.style.fontSize=orig+'px';
         var sit = document.getElementsByTagName("LI");
         sizeTag(sit);
         var sit = document.getElementsByTagName("P");
         sizeTag(sit);
         var sit = document.getElementsByTagName("TD");
         sizeTag(sit);
         var sit = document.getElementsByTagName("A");
         sizeTag(sit);
      }
      // Save the current size
      //setCookie("adeccofr_fontsize",orig);
   }
}

function sizeTag(elem) {
   var elem;
   for (x=0;x<elem.length;x++) {
      elem.item(x).style.fontSize=orig+'px';
   }
}

function ResetLayout() {
   //deleteCookie("adeccofr_fontsize");
   document.location.reload();
}


