(function($) {

  
  $(document).ready( function() {

	/* gestion des zooms images*/
	$('a').each( function() {
		if($(this).attr('class') == "fancybox"){
			$(".fancybox").fancybox({ 'overlayShow': false });	
		}
	});	
	
	/* gestion du champ de précision dans le formulaire*/
	
  if($('#autres').attr('checked') != true){
    $('.precision').hide();
  }
	$('.precision').prev('.radio').click(function(){
		if($(this).children('input').attr('checked') != true){
			$('.precision').prev().children('input').attr({'checked':'checked'});
			$('.precision').slideDown(200);
		}
	});
	$('#connu_par p:not(.precision) + p:not(.precision)').prev().click(function(){
    $('.precision').slideUp(200);
	});
	/* ------------------------------------------ */
	
	/*centrage vertical des images des blocs gallery*/
	/*$('.paysage img').each(function() {
		$('#visuels li').css({'display':'block'});
		$('#visuels li a').css({'display':'block'});
		var decay = 5;
		var margin = (parseInt($(this).parent().css('height').replace(/px/, ""))/2)-($(this).height()/2);
		$(this).css({'margin-top':margin-decay+'px'});
		if (!$.browser.msie) {
			$(this).parent().css({'height':parseInt($(this).parent().css('height').replace(/px/, ""))-margin+decay+'px'});
		}
	});*/
	/* ------------------------------------------ */
	
  });

})(jQuery);


