$(function() {   var base = $('#menus'), timer, timer2, time = 500;   if (base.length == 0) {      return;   }   base.children('a').mouseover(function () {      cacher();      var n = getMenuDeroulant(this);      if (n === false) {         return;      }      n.show();      setWidth(n);      timer3 = setTimeout(setOpacity, 0);   }).mouseout(function () {      timer = setTimeout(cacher, 0);      timer3 = setTimeout(unsetOpacity, 0);   });   base.children('div').mouseover(function () {      timer3 = setTimeout(setOpacity, 0);      cacher();      $(this).show();      setWidth(this);   }).mouseout(function () {      timer3 = setTimeout(unsetOpacity, 0);      timer = setTimeout(cacher, 0);   });   base.children('div>a').mouseover(function () {      timer3 = setTimeout(setOpacity, 0);   }).mouseout(function () {      //timer3 = setTimeout(unsetOpacity, time);   });   function setWidth(m) {      $(m).css('width', '200px');   }   function setOpacity() {      if (!IE6) {         $('#centre #contenus').css('opacity', '0.3');      }   }   function unsetOpacity() {      if (!IE6) {         $('#centre #contenus').css('opacity', $.browser.msie && $.browser.version!="9.0" ? 'normal' : '1');      }   }   function getMenuDeroulant(n) {      n = $(n).next();      if (IE6) {         while (n.is('shape')) {            n = n.next();         }      }      return n.is('div') ? n : false;   }   function cacher() {      $('div', base).hide();      if (timer) {         clearTimeout(timer);      }   }});$(function() {   var base = $('#accueil .menus'), menus = [], timer, timer2, time = 500;   if (base.length == 0) {      return;   }   base.children('a').mouseover(function () {      cacher();      var n = getMenuDeroulant(this);      if (n === false) {         return;      }      n.show();      setWidth(n);   }).mouseout(function () {      timer = setTimeout(cacher, 0);   });   base.children('div').mouseover(function () {      cacher();      $(this).show();      setWidth(this);   }).mouseout(function () {      timer = setTimeout(cacher, 0);   });   function setWidth(m) {      $(m).css('width', '200px');   }   function getMenuDeroulant(n) {      n = $(n).next();      if (IE6) {         while (n.is('shape')) {            n = n.next();         }      }      return n.is('div') ? n : false;   }   function cacher() {      $('div', base).hide();      if (timer) {         clearTimeout(timer);      }   }});
