		$(document).ready(function(){	
			$(".bloc_fiche_body_zoom").hide();
			//$(".visuel_princ").hide();		
			$(".visuel_princ2").hide();		
			$(".descriptif_marque").hide();
			$(".visuel_princ:first").show();
			$(".visuel_princ2:first").show();
			$(".barre_outil_visuel li:last").addClass("last");
			$(".barre_outil_visuel2 li:last").addClass("last");
			$(".rubrique_photo_video_bottom .intro_article:last").css("margin","0");
			$(".bloc_visuel").hide();		
			$(".bloc_visuel:first").show();
			$(".zone_texte_rubrique .mea_push:last").css("margin","0")
			//$("#slider").easySlider({});
			//$("#slider_lunette").easySlider({});
			PEPS.rollover.init();
			
			$('.info_produit').css('font-size', 11);
			
			$('.infos_pratiques .bloc_commun #adresse a.Horaires').click(function(){
				$(this).parent().hide();
				$('.infos_pratiques .bloc_commun #horraires').show();
				return false
				
			})
			
			$('.infos_pratiques .bloc_commun #horraires a.Horaires').click(function(){
				$(this).parent().hide();
				$('.infos_pratiques .bloc_commun #adresse').show();
				return false
			})
      // Navigation deroulante
      $('#barre_sup li.headlink:not(.last)').hover(
        function() { $('ul', this).css('display', 'block'); },
        function() { $('ul', this).css('display', 'none'); });

		$('#topmenu li.headlink').hover(
			function() { $(this).addClass('over'); },
			function() { $(this).removeClass('over'); });
			
      // Marque_hover
	  $(".page_liste_marque .marque").mouseover(function(){
		$(this).css('cursor','pointer')
		$(this).find('table').hide();
		$(this).find('.descriptif_marque').show();									  
	})
	  
	  $(".page_liste_marque .marque").mouseout(function(){
		$(this).find('.descriptif_marque').hide();									  
		$(this).find('table').show();
	})

	//block MEAVISUEL
	$('.zone_texte_rubrique .mea_push').mouseover(function() {
		$(this).css('cursor','default');
		$(".bloc_visuel").hide();		
		var c = $(this).attr('class');
		c = c.split(' ');
		$('.bloc_image_over div.'+c[0]).show();
	});	



      var elementsToControl = $('.info_produit, .bloc_article h1, .bloc_article h2, .bloc_article h3, .bloc_article h4, .bloc_article h5, .bloc_article h6, .bloc_article dt, .bloc_article dd, .bloc_article p, .bloc_article li, .temoignage h3, .bloc_liste_marque p, .temoignage li ');
      // Reset Font Size
      $(".resetFont").click(function(){
	      elementsToControl.css('font-size', '');
	      return false;
      });
      // Increase Font Size
      $(".increaseFont").click(function(){
        elementsToControl.each(function(){
            var currentFontSize = $(this).css('font-size');
            var currentFontSizeNum = parseFloat(currentFontSize, 10);
            var newFontSize = Math.ceil(currentFontSizeNum*1.2);  
            $(this).css('font-size', newFontSize);
        });
        return false;        
      });
      // Decrease Font Size
      $(".decreaseFont").click(function(){
        elementsToControl.each(function(){
            var currentFontSize = $(this).css('font-size');
            var currentFontSizeNum = parseFloat(currentFontSize, 10);
            var newFontSize = Math.floor(currentFontSizeNum*0.8);
    		if (newFontSize < 2) {
    			newFontSize = 2;
    		}    
    		$(this).css('font-size', newFontSize);
		});
        return false;
      });






	$('.zone_interactive .barre_outil_visuel .changement_visuel').mouseover(function() {
		$(".visuel_princ").hide();
		var d = $(this).parent().attr('class');
		d = d.split(' ');
		$('.zone_interactive .block_gallerie_big div.'+d[0]).fadeIn(200);
		return false;
	});
	
	$('.bloc_fiche_body_zoom .barre_outil_visuel2 .changement_visuel').mouseover(function() {
		$(".visuel_princ2").hide();
		var d = $(this).parent().attr('class');
		d = d.split(' ');
		$('.bloc_fiche_body_zoom .block_gallerie_big2 div.'+d[0]).fadeIn(200);
		return false;
	});

	$('.zone_interactive .block_gallerie_big a').click(function() {
		$('.bloc_fiche_body').hide();
		$('.bloc_fiche_body_zoom').show();
		return false;
	});

	$('.block_gallerie_big2 a').click(function() {
		$('.bloc_fiche_body_zoom').hide();
		$('.bloc_fiche_body').show();
		return false;
	});






    fixIE();


});	
		
		PEPS = {};
      
		  PEPS.rollover =
		  {
			 init: function()
			 {
				this.preload();
				
				$(".ro").hover(
				   function () { $(this).attr( 'src', PEPS.rollover.newimage($(this).attr('src')) ); },
				   function () { $(this).attr( 'src', PEPS.rollover.oldimage($(this).attr('src')) ); }
				);
			 },
			 
			 preload: function()
			 {
				$(window).bind('load', function() {
				   $('.ro').each( function( key, elm ) { $('<img>').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
				});
			 },
			 
			 newimage: function( src ) { return src.substring( 0, src.search(/(\.[a-z]+)/) ) + '_o' + src.match(/(\.[a-z]+)/)[0]; },
			 oldimage: function( src ){ return src.replace(/_o/, ''); }
		  };


function fixIE() {
   var items2 = $('.search-newsletter-block').each(function(){
      $(this).css('width', $(this).css('width'));
   });
}

