// JavaScript Document
      var max = 0;
      var current = 0;
      
      $(document).ready(function() {
      tourne();
      $('.button, ul.icons li').hover(
      function() { $(this).addClass('ui-state-hover'); },
      function() { $(this).removeClass('ui-state-hover'); }
      );
      
      url = document.location.href;
      url = url.replace('http://dev13.equideclic.fr/fr/','');
      url = url.replace('http://www.equitop.com/fr/','');
      if(url.indexOf("?")!=-1) url = url.substr(0,url.indexOf("?"));
      $("a").each(function(i){
      if($(this).attr('href')==url) {$(this).addClass('selected');}
      });

      }); 
      
     function tourne() {

      $(".accueil_promotion").each(function(i){
      if(i==current) $(this).show();
      else $(this).hide();
      max=i;
      });

      if(current==max) current=0;
      else current=current+1;

      setTimeout("tourne()",5000);

      }

