window.addEvent('domready', function() {
   var MenuGauche = $('menu-gauche');
   MenuGauche.getElements('.menu-inactif').each(function(unLi){
      unLi.addEvent('mouseenter', function(){
         unA = unLi.getElement('a');
         unLi.setStyle('background-position', '8px 9px');
         unA.tween('color', '#103501');
      });
      unLi.addEvent('mouseleave', function(){
         unA = unLi.getElement('a');
         unLi.tween('background-position', '1px 9px');
         unA.tween('color', '#fff');
      });
      unLi.addEvent('click', function(){
         unAHref = unLi.getElement('a').get('href');
         window.location = unAHref;
      });
   });
   
   var MenuHaut = $('menu');
   MenuHaut.getElements('.menu-inactif').each(function(unLi){      
      unLi.addEvent('mouseenter', function(){
         unA = unLi.getElement('a');
         unLi.tween('background-color', '#4c832b');
         unA.tween('color', '#fff');
      });
      unLi.addEvent('mouseleave', function(){
         unA = unLi.getElement('a');
         unLi.tween('background-color', '#216704');
         unA.tween('color', '#88b26b');
      });
      unLi.addEvent('click', function(){
         unAHref = unLi.getElement('a').get('href');
         window.location = unAHref;
      });
   });
   
   /**
    *antispam
   **/
   if($('special')){ $('special').setStyle('display','none'); };
   
   if($('activite-droite')){
      var inputSelect = $('activite-select');
      inputSelect.addEvent('change', function(){
         var valeurSelect = inputSelect.get('value');
         var page = 'inc/tarifs.php?num=' + valeurSelect;
         $('activite-resultat').load(page);
      });
   };
   
   /**
   *Flash
   **/
   
   var obj = new Swiff('flash/BANDEAU.swf', {      
      width: 615,
      height: 167,
      container: 'flash',
      params: {wMode: 'opaque'}      
   });
   var obj = new Swiff('flash/NIDS.swf', {      
      width: 186,
      height: 670,
      container: 'nid-visuel-gauche',
      params: {wMode: 'opaque'}      
   });
   var obj = new Swiff('flash/DESIN.swf', {      
      width: 186,
      height: 282,
      container: 'desinsect-visuel-gauche',
      params: {wMode: 'opaque'}      
   });
   var obj = new Swiff('flash/DEMOUSSAGE.swf', {      
      width: 186,
      height: 119,
      container: 'demoussage-visuel-gauche',
      params: {wMode: 'opaque'}      
   });
   var obj = new Swiff('flash/DERATISATION.swf', {      
      width: 186,
      height: 101,
      container: 'derat-visuel-gauche',
      params: {wMode: 'opaque'}      
   });
   var obj = new Swiff('flash/INFECT.swf', {      
      width: 186,
      height: 128,
      container: 'desinfect-visuel-gauche',
      params: {wMode: 'opaque'}      
   });
});
