$(document).ready(function() {

	$('.popup_detail').hide();
	$('.popup_picto').mouseover(function(event){
		var ww=$(window).width();
		var wh=$(window).height();
		
		$('.popup_detail').hide();
		var thisalt = this.alt;
		$('.popup_detail').css("right",ww/2-370);
		$('.popup_detail').css("bottom",wh-460);
		switch(this.alt){
			case '0': $('div.popup_detail:eq(0)').show('slow'); break;
			case '1': $('div.popup_detail:eq(1)').show('slow'); break;
			case '2': $('div.popup_detail:eq(2)').show('slow'); break;
			case '3': $('div.popup_detail:eq(3)').show('slow'); break;
			case '4': $('div.popup_detail:eq(4)').show('slow'); break;
		};
	});
	
	$('.popup_picto').mouseleave(function(event){
		$('.popup_detail').hide('slow');
		event.stopPropagation();
	});
	
	$('.popup_prix').hide();
	$('.popup_info').mouseover(function(event){
		var ww=$(window).width();
		var wh=$(window).height();
		
		$('.popup_prix').hide();
		var thisalt = this.alt;
		$('.popup_prix').css("right",ww/2-370);
		$('.popup_prix').css("bottom",wh-460);
		$('.popup_prix p').css("font-size",14);
		$('.popup_prix p').css("line-height",'normal');
		$('div.popup_prix').show('slow');
	});
	
	$('.popup_prix').mouseleave(function(event){
		$('.popup_prix').hide('slow');
		event.stopPropagation();
	});
});

