$(document).ready(function() {
	//document.getElementById('NL_box').innerHTML="<span>Inscrivez-vous</span> � notre lettre d'information";
	$("a.thickbox, a[rel='lightbox']").fancybox({'hideOnContentClick': false,imageScale : true}); 
	$("a#box_ami").fancybox({frameWidth : 300,frameHeight : 200}); 
	if(document.all){$("a#box_fav").click(function(){window.external.AddFavorite(location.href, document.title);});
	}else{$("a#box_fav").fancybox({'hideOnContentClick': true,frameWidth : 400,frameHeight : 100});}
			
	
	
	$('#bulles a').tooltip({ showURL: false, positionLeft: true, top:30,left:30 })
	
	// Application des border-radius pour IE
	if(!$.support.borderRadius) {
		$('#tooltip').corner('12px cc:#666666');
	}
	
	
	$('#footer').css({'height':'5px'});
	$('#btnFooter').click(function() { 
		if($('#footer').height()<6) {
   			$('#footer').stop().animate({ 'height': '140px' }, 250);
			$('#btnFooter').html('Masquer la navigation');
			$('#btnFooter').css({'backgroundImage':'url(gifs/btn-footer-out.png)'});
		}
		else {
   			$('#footer').stop().animate({ 'height': '5px' }, 250);
			$('#btnFooter').html('Afficher la navigation');
			$('#btnFooter').css({'backgroundImage':'url(gifs/btn-footer.png)'});
		}
  		return false;
   	});
	
	function replaceElement() {
		var b=$('body').height();
		var c=$('#container').height();
		if(b>c) {
			var h=(b-447)+'px';
			$('#container').css({'minHeight':h});
		}
	}
	
	replaceElement();
	
	$(window).resize(function() {
		replaceElement();						  
	});
	
	
	$('.vignette').hover(function() {
		$(this).stop().animate({'height':'166px'});
		},function(){
			$(this).stop().animate({'height':'35px'});
	});
	
	$('input').blur(function(){
							 $(this).css({'color':'#000000'});
							
							 });
	$('textarea').blur(function(){
							 $(this).css({'color':'#000000'});
							
							 });
	

});


      

