$(function() {  
  $(document).ready(function() {

//jquery lightbox
 $('a.lightbox').lightBox();
//

////////////////////////////////////////
 $("img").lazyload({
     placeholder : "img/grey.gif",       
     effect      : "fadeIn"
 });

///////////////////////////////////////////
//FADING
// OPACITY OF BUTTON SET TO 50%
$(".highlight").css("opacity","0.8");
 
// ON MOUSE OVER
$(".highlight").hover(function () {
 
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
 
// ON MOUSE OUT
function () {
 
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.8
}, "slow");
});
    
 ///////////////////////////////////////////      
//slider des photos
		 $( "#slider_1" ).accessNews({
	         headline : "Photographies",
	         speed : "slow",//slow, normal
			 slideBy : 7
	     });
//slider des vignettes panoramiques spheriques		
		 $( "#slider_2" ).accessNews({
	         headline : "Panoramiques sphériques",
	         speed : "slow",//slow, normal
			 slideBy : 4
	     });
       
//////////////////////////////////////////////////////
//slider accueil
    $('#s4').cycle({ 
     
      fx:       'fade', 
      timeout:  12000, 
      speed : "3000",
      next:   '#next3', 
      prev:   '#prev3' 
    });  
//FIN slider pub accueil
//////////////////////////////////////////////
//slider haut page par defaut
    $('.s5').cycle({ 
      fx:       'scrollHorz', 
      timeout:  5000, 
      pause: true,
      speed : "1000",
      next:   '.next_sliderhaut', 
      prev:   '.prev_sliderhaut' 
    });   

  
//expand box page internet
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head").click(function() {
      $(this).next(".msg_body").slideToggle(600);
    });
//FIN expand box page internet

//expand box page diaporama
    //hide the all of the element with class msg_body
    $(".msg_body1").hide();
    //toggle the componenet with class msg_body
    $(".msg_head1").click(function() {
      $(this).next(".msg_body1").slideToggle(600);
    });
//FIN expand box page diaporama




  });       
});


