$(function(){
	$('img[src$=.png]').ifixpng();
	$(".lightbox").fancybox({'titlePosition'  : 'inside'});
	$('#blocTextAvecImg').jScrollPane();
	$('#blocTextSansImg').jScrollPane();
	$('#listeScroll').jScrollPane();	
	$('#listeScroll2').jScrollPane();	
	$('#blocTextProposons').jScrollPane();
	$('#blocTextProposonsArt').jScrollPane();
	$('#blocTextProposonsLoi').jScrollPane();
	$('#scrollPlan').jScrollPane();
	
	$(".cartouche").dropShadow({left: 4,top: 3});

	
	/*$('#header #menu table td a').mouseenter(function(){
		 $(this).parent('td').animate({
			backgroundPosition: "0 0"
		},250);
	}).mouseleave(function(){
		 //console.log("leave : "+ $(this));
		 $(this).parent('td').animate({
			backgroundPosition: "0px 200px"
		},250);
	});*/
	if ($.browser.msie && ($.browser.version < '7.0')) {
	  var noMenuEffect = 1;
	}
	
	if(!noMenuEffect){
		$('img.fadeQui').hover(function () {
		this.src = 'images/mep/menu/01-quiRollover.png';
	  }, function () {
		this.src = 'images/mep/menu/01-qui.png';
	  });
	
		$('img.fadeProposons').hover(function () {
		this.src = 'images/mep/menu/02-proposonsRollover.png';
	  }, function () {
		this.src = 'images/mep/menu/02-proposons.png';
	  });
		
	  $('img.fadeActus').hover(function () {
		this.src = 'images/mep/menu/03-actusRollover.png';
	  }, function () {
		this.src = 'images/mep/menu/03-actus.png';
	  });
		
		$('img.fadePartenaires').hover(function () {
		this.src = 'images/mep/menu/04-partenairesRollover.png';
	  }, function () {
		this.src = 'images/mep/menu/04-partenaires.png';
	  });
		
		$('img.fadeContact').hover(function () {
		this.src = 'images/mep/menu/05-contactsRollover.png';
	  }, function () {
		this.src = 'images/mep/menu/05-contacts.png';
	  });
	}
	
});
