$(document).ready(function() {
	$("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			 
			});
		}
	
	 
	$("div#panel").css({height: 86});
	
	$('.panel_button').hide();
	
	$('#title-form').click(
		function(){		
			if ($(this).hasClass('active')){
				$("div#panel")
					.animate({
						height: "86px"
					});
				
				$(this).toggleClass("active");	
			}
			else{
				$("div#panel")
					.animate({
						height: "450px"
					});
				$(this).toggleClass("active");
			}
		}
	).css('cursor','pointer');
	
	$('#catalogue_contenu div:first-child').click(function(){
				var url = $(this).find('p a:first').attr('href');
				window.location = url;
				
	}).css('cursor','pointer');
});



