
	
	function DoAgain()
{
    
     $("#rond").animate({top:"8px", left:"-4px" }, 1400 )
	 .animate({top:"6px",left:"2px" }, 900 )
	 .animate({top:"12px",left:"0px" }, 1200 )
	 .animate({top:"4px",left:"-2px" },1400,DoAgain);
	 
	
	 $("#rond2").animate({top:"-4px", left:"-4px" }, 900 )
	 .animate({top:"6px",left:"8px" }, 1400 )
	 .animate({top:"1px",left:"2px" }, 900 )
	 .animate({top:"4px" ,left:"-5px"},1100,DoAgain);

}

$(document).ready(function() {
///////////////////////////////////////////////////////	


DoAgain();

			//$("ul#topnav li").find("span").animate({opacity: 0.85}); //Show the subnav
		
			$("ul#topnav li").hover(function() { //Hover over event on list item
				$(this).css({ 'background' : 'url(images/current.png) no-repeat center top'}); //Add background color and image on hovered list item
				$(this).find("span").show(); //Show the subnav
			} , function() { //on hover out...
				$(this).css({ 'background' : 'none'}); //Ditch the background
				$(this).find("span").hide(); //Hide the subnav
			});
			
		$("ul#equipe li.gauche a[title]").tooltip(
			{
		   position: ['center', 'center'],
		   offset:  	[-25, 120]
			});	
			
		$("ul#equipe li.droite a[title]").tooltip(
			{
		   position: ['center', 'center'],
		   offset:  	[-25, -120]
		   });	
		   
////////////////////////////// e-titres//////

		
	////////////////  par défaut ///////////	

	 $('ul#econtenu li#ecoute').show();

////////////////////// quand on arrive depusi une page intérieure /////////////

	if(window.location.hash)
	
	{
	var elien = window.location.hash;
	 $('ul#econtenu li').hide();
	 $('ul#philo li a.change').removeClass("on");
	 $('ul#econtenu li#'+elien).show();
	 $('ul#philo li a[href='+ elien +']').addClass("on");
		}
		
		
	
		
///////////////  philo
	 
 
 
 	$('a.change').live("click", function(){
	var monlien = $(this).attr('href');
	
	$('ul#philo li a.change').removeClass("on");
	$(this).addClass("on");
	 $('ul#econtenu li').hide();
     
	 $('ul#econtenu li#'+monlien).show();
		return false;
    });
 
 $('a.title').live("click", function(){
	 var elien = this.hash;
	 $('ul#econtenu li').hide();
	 $('ul#philo li a.change').removeClass("on");
	 $('ul#econtenu li#'+elien).show();
	 $('ul#philo li a[href='+ elien +']').addClass("on");
    });
 

 
 
 
 ///////////////////////////////////////

 
	  $("a.sponsoring").fancybox({
				
				'overlayShow'	: true,
				'overlayOpacity'		: 0,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
	  
				 
			   $("a.popup").fancybox({
				'overlayShow'	: true,
				'overlayOpacity'		: 0,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'


			});
			   
			      $("a.pop").fancybox({
				'overlayShow'	: true,
				'overlayOpacity'		: 0,
				'transitionIn'	: 'elastic',
				'titlePosition' 		: 'inside',
				'transitionOut'	: 'elastic'

			});
			   
			   
			   	//////// fonction pour les changement de couleur sur les cantons au passage de la souris
	$(".button").bind({
				  mouseenter: function(){
					$(this).attr("src",$(this).attr("src").replace('-btn','-hover'));
					$(".change").attr("src",$(".change").attr("src").replace('-btn','-hover'));

				  },
				  mouseleave: function(){
					$(this).attr("src",$(this).attr("src").replace('-hover','-btn'));
					$(".change").attr("src",$(".change").attr("src").replace('-hover','-btn'));
				  }
			});
	
	

			   
	
/////////////////////////////////////////////////	
		});
