// GALERIES PHOTOS FICHES PAGES
$(document).ready(function(){
    //$(".img1").hide();
	//$(".im1").mouseover();
	//$(".img2").css("display","none");
	$(".external").attr("target","_blank");
	//$("a.iframe").fancybox(); /* Using custom settings */ 
	//Fade image
		$("a img").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads
		$("a img").hover(function(){
			$(this).fadeTo("fast", 0.7); // This should set the opacity to 100% on hover
		},function(){
			$(this).fadeTo("fast", 1.0); // This should set the opacity back to 60% on mouseout
		});

	//galerie1
	$("div#gal1 .img2").hide();
	$("#g1 .im2").mouseover(function (){$("div#gal1 .img2").show();});
	$("#g1 .im2").mouseout(function (){$("div#gal1 .img2").hide();});
	$("div#gal1 .img3").hide();
	$("#g1 .im3").mouseover(function (){$("div#gal1 .img3").show();});
	$("#g1 .im3").mouseout(function (){$("div#gal1 .img3").hide();});
	$("div#gal1 .img4").hide();
	$("#g1 .im4").mouseover(function (){$("div#gal1 .img4").show();});
	$("#g1 .im4").mouseout(function (){$("div#gal1 .img4").hide();});
	$("div#gal1 .img5").hide();
	$("#g1 .im5").mouseover(function (){$("div#gal1 .img5").show();});
	$("#g1 .im5").mouseout(function (){$("div#gal1 .img5").hide();});
	$("div#gal1 .img6").hide();
	$("#g1 .im6").mouseover(function (){$("div#gal1 .img6").show();});
	$("#g1 .im6").mouseout(function (){$("div#gal1 .img6").hide();});
	$("div#gal1 .img7").hide();
	$("#g1 .im7").mouseover(function (){$("div#gal1 .img7").show();});
	$("#g1 .im7").mouseout(function (){$("div#gal1 .img7").hide();});
	$("div#gal1 .img8").hide();
	$("#g1 .im8").mouseover(function (){$("div#gal1 .img8").show();});
	$("#g1 .im8").mouseout(function (){$("div#gal1 .img8").hide();});
	$("div#gal1 .img9").hide();
	$("#g1 .im9").mouseover(function (){$("div#gal1 .img9").show();});
	$("#g1 .im9").mouseout(function (){$("div#gal1 .img9").hide();});
	$("div#gal1 .img10").hide();
	$("#g1 .im10").mouseover(function (){$("div#gal1 .img10").show();});
	$("#g1 .im10").mouseout(function (){$("div#gal1 .img10").hide();});
	$("div#gal1 .img11").hide();
	$("#g1 .im11").mouseover(function (){$("div#gal1 .img11").show();});
	$("#g1 .im11").mouseout(function (){$("div#gal1 .img11").hide();});
	$("div#gal1 .img12").hide();
	$("#g1 .im12").mouseover(function (){$("div#gal1 .img12").show();});
	$("#g1 .im12").mouseout(function (){$("div#gal1 .img12").hide();});
	$("div#gal1 .img13").hide();
	$("#g1 .im13").mouseover(function (){$("div#gal1 .img13").show();});
	$("#g1 .im13").mouseout(function (){$("div#gal1 .img13").hide();});
	$("div#gal1 .img14").hide();
	$("#g1 .im13").mouseover(function (){$("div#gal1 .img13").show();});
	$("#g1 .im13").mouseout(function (){$("div#gal1 .img13").hide();});
	$("div#gal1 .img14").hide();
	$("#g1 .im14").mouseover(function (){$("div#gal1 .img14").show();});
	$("#g1 .im14").mouseout(function (){$("div#gal1 .img14").hide();});
	$("div#gal1 .img15").hide();
	$("#g1 .im15").mouseover(function (){$("div#gal1 .img15").show();});
	$("#g1 .im15").mouseout(function (){$("div#gal1 .img15").hide();});
	$("div#gal1 .img16").hide();
	$("#g1 .im16").mouseover(function (){$("div#gal1 .img16").show();});
	$("#g1 .im16").mouseout(function (){$("div#gal1 .img16").hide();});
	
	//galerie2
	$("div#gal2 .img2").hide();
	$("#g2 .im2").mouseover(function (){$("div#gal2 .img2").show();});
	$("#g2 .im2").mouseout(function (){$("div#gal2 .img2").hide();});
	$("div#gal2 .img3").hide();
	$("#g2 .im3").mouseover(function (){$("div#gal2 .img3").show();});
	$("#g2 .im3").mouseout(function (){$("div#gal2 .img3").hide();});
	$("div#gal2 .img4").hide();
	$("#g2 .im4").mouseover(function (){$("div#gal2 .img4").show();});
	$("#g2 .im4").mouseout(function (){$("div#gal2 .img4").hide();});
	$("div#gal2 .img5").hide();
	$("#g2 .im5").mouseover(function (){$("div#gal2 .img5").show();});
	$("#g2 .im5").mouseout(function (){$("div#gal2 .img5").hide();});
	$("div#gal2 .img6").hide();
	$("#g2 .im6").mouseover(function (){$("div#gal2 .img6").show();});
	$("#g2 .im6").mouseout(function (){$("div#gal2 .img6").hide();});
	$("div#gal2 .img7").hide();
	$("#g2 .im7").mouseover(function (){$("div#gal2 .img7").show();});
	$("#g2 .im7").mouseout(function (){$("div#gal2 .img7").hide();});
	$("div#gal2 .img8").hide();
	$("#g2 .im8").mouseover(function (){$("div#gal2 .img8").show();});
	$("#g2 .im8").mouseout(function (){$("div#gal2 .img8").hide();});

	//galerie3
	$("div#gal3 .img2").hide();
	$("#g3 .im2").mouseover(function (){$("div#gal3 .img2").show();});
	$("#g3 .im2").mouseout(function (){$("div#gal3 .img2").hide();});
	$("div#gal3 .img3").hide();
	$("#g3 .im3").mouseover(function (){$("div#gal3 .img3").show();});
	$("#g3 .im3").mouseout(function (){$("div#gal3 .img3").hide();});
	$("div#gal3 .img4").hide();
	$("#g3 .im4").mouseover(function (){$("div#gal3 .img4").show();});
	$("#g3 .im4").mouseout(function (){$("div#gal3 .img4").hide();});
	$("div#gal3 .img5").hide();
	$("#g3 .im5").mouseover(function (){$("div#gal3 .img5").show();});
	$("#g3 .im5").mouseout(function (){$("div#gal3 .img5").hide();});
	$("div#gal3 .img6").hide();
	$("#g3 .im6").mouseover(function (){$("div#gal3 .img6").show();});
	$("#g3 .im6").mouseout(function (){$("div#gal3 .img6").hide();});
	$("div#gal3 .img7").hide();
	$("#g3 .im7").mouseover(function (){$("div#gal3 .img7").show();});
	$("#g3 .im7").mouseout(function (){$("div#gal3 .img7").hide();});
	$("div#gal3 .img8").hide();
	$("#g3 .im8").mouseover(function (){$("div#gal3 .img8").show();});
	$("#g3 .im8").mouseout(function (){$("div#gal3 .img8").hide();});

	//galerie4
	$("div#gal4 .img2").hide();
	$("#g4 .im2").mouseover(function (){$("div#gal4 .img2").show();});
	$("#g4 .im2").mouseout(function (){$("div#gal4 .img2").hide();});
	$("div#gal4 .img3").hide();
	$("#g4 .im3").mouseover(function (){$("div#gal4 .img3").show();});
	$("#g4 .im3").mouseout(function (){$("div#gal4 .img3").hide();});
	$("div#gal4 .img4").hide();
	$("#g4 .im4").mouseover(function (){$("div#gal4 .img4").show();});
	$("#g4 .im4").mouseout(function (){$("div#gal4 .img4").hide();});
	$("div#gal4 .img5").hide();
	$("#g4 .im5").mouseover(function (){$("div#gal4 .img5").show();});
	$("#g4 .im5").mouseout(function (){$("div#gal4 .img5").hide();});
	$("div#gal4 .img6").hide();
	$("#g4 .im6").mouseover(function (){$("div#gal4 .img6").show();});
	$("#g4 .im6").mouseout(function (){$("div#gal4 .img6").hide();});
	$("div#gal4 .img7").hide();
	$("#g4 .im7").mouseover(function (){$("div#gal4 .img7").show();});
	$("#g4 .im7").mouseout(function (){$("div#gal4 .img7").hide();});
	$("div#gal4 .img8").hide();
	$("#g4 .im8").mouseover(function (){$("div#gal4 .img8").show();});
	$("#g4 .im8").mouseout(function (){$("div#gal4 .img8").hide();});

	//galerie5
	$("div#gal5 .img2").hide();
	$("#g5 .im2").mouseover(function (){$("div#gal5 .img2").show();});
	$("#g5 .im2").mouseout(function (){$("div#gal5 .img2").hide();});
	$("div#gal5 .img3").hide();
	$("#g5 .im3").mouseover(function (){$("div#gal5 .img3").show();});
	$("#g5 .im3").mouseout(function (){$("div#gal5 .img3").hide();});
	$("div#gal5 .img4").hide();
	$("#g5 .im4").mouseover(function (){$("div#gal5 .img4").show();});
	$("#g5 .im4").mouseout(function (){$("div#gal5 .img4").hide();});
	$("div#gal5 .img5").hide();
	$("#g5 .im5").mouseover(function (){$("div#gal5 .img5").show();});
	$("#g5 .im5").mouseout(function (){$("div#gal5 .img5").hide();});
	$("div#gal5 .img6").hide();
	$("#g5 .im6").mouseover(function (){$("div#gal5 .img6").show();});
	$("#g5 .im6").mouseout(function (){$("div#gal5 .img6").hide();});
	$("div#gal5 .img7").hide();
	$("#g5 .im7").mouseover(function (){$("div#gal5 .img7").show();});
	$("#g5 .im7").mouseout(function (){$("div#gal5 .img7").hide();});
	$("div#gal5 .img8").hide();
	$("#g5 .im8").mouseover(function (){$("div#gal5 .img8").show();});
	$("#g5 .im8").mouseout(function (){$("div#gal5 .img8").hide();});
	
	//galerie6
	$("div#gal6 .img2").hide();
	$("#g6 .im2").mouseover(function (){$("div#gal6 .img2").show();});
	$("#g6 .im2").mouseout(function (){$("div#gal6 .img2").hide();});
	$("div#gal6 .img3").hide();
	$("#g6 .im3").mouseover(function (){$("div#gal6 .img3").show();});
	$("#g6 .im3").mouseout(function (){$("div#gal6 .img3").hide();});
	$("div#gal6 .img4").hide();
	$("#g6 .im4").mouseover(function (){$("div#gal6 .img4").show();});
	$("#g6 .im4").mouseout(function (){$("div#gal6 .img4").hide();});
	$("div#gal6 .img5").hide();
	$("#g6 .im5").mouseover(function (){$("div#gal6 .img5").show();});
	$("#g6 .im5").mouseout(function (){$("div#gal6 .img5").hide();});
	$("div#gal6 .img6").hide();
	$("#g6 .im6").mouseover(function (){$("div#gal6 .img6").show();});
	$("#g6 .im6").mouseout(function (){$("div#gal6 .img6").hide();});
	$("div#gal6 .img7").hide();
	$("#g6 .im7").mouseover(function (){$("div#gal6 .img7").show();});
	$("#g6 .im7").mouseout(function (){$("div#gal6 .img7").hide();});
	$("div#gal6 .img8").hide();
	$("#g6 .im8").mouseover(function (){$("div#gal6 .img8").show();});
	$("#g6 .im8").mouseout(function (){$("div#gal6 .img8").hide();});

//galerie7
	$("div#gal7 .img2").hide();
	$("#g7 .im2").mouseover(function (){$("div#gal7 .img2").show();});
	$("#g7 .im2").mouseout(function (){$("div#gal7 .img2").hide();});
	$("div#gal7 .img3").hide();
	$("#g7 .im3").mouseover(function (){$("div#gal7 .img3").show();});
	$("#g7 .im3").mouseout(function (){$("div#gal7 .img3").hide();});
	$("div#gal7 .img4").hide();
	$("#g7 .im4").mouseover(function (){$("div#gal7 .img4").show();});
	$("#g7 .im4").mouseout(function (){$("div#gal7 .img4").hide();});
	$("div#gal7 .img5").hide();
	$("#g7 .im5").mouseover(function (){$("div#gal7 .img5").show();});
	$("#g7 .im5").mouseout(function (){$("div#gal7 .img5").hide();});
	$("div#gal7 .img6").hide();
	$("#g7 .im6").mouseover(function (){$("div#gal7 .img6").show();});
	$("#g7 .im6").mouseout(function (){$("div#gal7 .img6").hide();});
	$("div#gal7 .img7").hide();
	$("#g7 .im7").mouseover(function (){$("div#gal7 .img7").show();});
	$("#g7 .im7").mouseout(function (){$("div#gal7 .img7").hide();});
	$("div#gal7 .img8").hide();
	$("#g7 .im8").mouseover(function (){$("div#gal7 .img8").show();});
	$("#g7 .im8").mouseout(function (){$("div#gal7 .img8").hide();});
	
	//galerie8
	$("div#gal8 .img2").hide();
	$("#g8 .im2").mouseover(function (){$("div#gal8 .img2").show();});
	$("#g8 .im2").mouseout(function (){$("div#gal8 .img2").hide();});
	$("div#gal8 .img3").hide();
	$("#g8 .im3").mouseover(function (){$("div#gal8 .img3").show();});
	$("#g8 .im3").mouseout(function (){$("div#gal8 .img3").hide();});
	$("div#gal8 .img4").hide();
	$("#g8 .im4").mouseover(function (){$("div#gal8 .img4").show();});
	$("#g8 .im4").mouseout(function (){$("div#gal8 .img4").hide();});
	$("div#gal8 .img5").hide();
	$("#g8 .im5").mouseover(function (){$("div#gal8 .img5").show();});
	$("#g8 .im5").mouseout(function (){$("div#gal8 .img5").hide();});
	$("div#gal8 .img6").hide();
	$("#g8 .im6").mouseover(function (){$("div#gal8 .img6").show();});
	$("#g8 .im6").mouseout(function (){$("div#gal8 .img6").hide();});
	$("div#gal8 .img7").hide();
	$("#g8 .im7").mouseover(function (){$("div#gal8 .img7").show();});
	$("#g8 .im7").mouseout(function (){$("div#gal8 .img7").hide();});
	$("div#gal8 .img8").hide();
	$("#g8 .im8").mouseover(function (){$("div#gal8 .img8").show();});
	$("#g8 .im8").mouseout(function (){$("div#gal8 .img8").hide();});
	
  });