
 
$j=jQuery.noConflict();
 
// Use jQuery via $j(...)
$j(document).ready(function(){

	var Nom = navigator.appName;
	var Version = navigator.appVersion;
	
	if(Version == "5.0 (Macintosh; fr)"){
		$j(".galerie").css("margin-left", '374px');
	}
		
	$j('#menu-menu_pages').children().click(function(event) {
		event.preventDefault();
		var id = $j(this).attr("id");

		switch (id) {
		  case 'menu-item-8': 
			  	if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {
					$j("#selector").stop().animate({
						backgroundPosition: '7px'
					}, "slow", function(){
						window.location.href = "http://www.asso-arborescence.fr";
					});
				}
				else {
					$j("#selector").stop().animate({
						backgroundPosition: "8px"
					}, "slow", function(){
						window.location.href = "http://www.asso-arborescence.fr";
					});
				}
			  break;
		
		  case 'menu-item-20': 
			  if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {
			  	$j("#selector").stop().animate({
			  		backgroundPosition: '106px'
			  	}, "slow", function(){
			  		window.location.href = "http://www.asso-arborescence.fr/association/historique";
			  	});
			  }
			  else {
			  	$j("#selector").stop().animate({
			  		backgroundPosition: "110px"
			  	}, "slow", function(){
			  		window.location.href = "http://www.asso-arborescence.fr/association/historique";
			  	});
			  }
			
		  break;
		  case 'menu-item-65': 
		  	 if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {
			 	$j("#selector").stop().animate({
			 		backgroundPosition: '233px'
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/actions-et-ressources/actions";
			 	});
			 }
			 else {
			 	$j("#selector").stop().animate({
			 		backgroundPosition: "241px"
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/actions-et-ressources/actions";
			 	});
			 }
			
		  break;
		  case 'menu-item-1565':
		  
		   	 if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {
			 	$j("#selector").stop().animate({
			 		backgroundPosition: '375px'
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/ecodrome/presentation";
			 	});
			 }
			 else {
			 		 	$j("#selector").stop().animate({
			 		backgroundPosition: '380px'
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/ecodrome/presentation";
			 	});
			 }
			
		  break;
		  case 'menu-item-74':
		  
		   	 if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {
			 	$j("#selector").stop().animate({
			 		backgroundPosition: '450px'
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/galerie/photos";
			 	});
			 }
			 else {
			 	$j("#selector").stop().animate({
			 		backgroundPosition: '460px'
			 	}, "slow", function(){
			 		window.location.href = "http://www.asso-arborescence.fr/galerie/photos";
			 	});
			 }
			
		  break;
		 }
	});	$j('#logo-arborescence').click(function(event) {		if (Version.indexOf("Macintosh") != -1 && Version.indexOf("Chrome") == -1 && Version.indexOf("Safari") == -1) {					$j("#selector").stop().animate({						backgroundPosition: '7px'					}, "slow", function(){						window.location.href = "http://www.asso-arborescence.fr";					});				}				else {					$j("#selector").stop().animate({						backgroundPosition: "8px"					}, "slow", function(){						window.location.href = "http://www.asso-arborescence.fr";					});				}	});
	$j('.more > a').click(function(event) {
		event.preventDefault();
		var page = $j('#content').attr("class");
		var href = $j(this).attr("href");
		$j("form").attr("action", href);
		$j("form").submit();
	
	});
	
	$j('.post_title').click(function(event) {
		event.preventDefault();
		var page = $j('#content').attr("class");
		var href = $j(this).attr("href");
		$j("form").attr("action", href);
		$j("form").submit();
	
	});	
	
	 $j('.galerie-presentation img').hover(
	  function () {
	  	 $j(this).animate({
						 'opacity' : 1,
					}, "fast", function(){});
	  }, 
	  function () {
	 	 $j(this).animate({
						 'opacity' : 0.9,
					}, "fast", function(){});
	  });
	
});


 










