$().ready(function() {
	$('#headercart').hover(
		function() {
			$('#headercartinfo').slideDown();
		}, function() {
			$('#headercartinfo').slideUp();
		}
	);
	
	if (!$.browser.msie)
		$('#magasinnancy').css('opacity', 0);
	
	$('#headernancylink').hover(
		function() {
			if ($.browser.msie)
				$('#magasinnancy').show();
			else
				$('#magasinnancy').stop().show().animate({'opacity' : 1}, 500);
		}, function() {
			if ($.browser.msie)
				$('#magasinnancy').hide();
			else
				$('#magasinnancy').stop().animate({'opacity' : 0}, 500, function() {$(this).hide()});
		}
	);

	$('#warrantytext').hide();
	
	$('.warrantylink').click(function() {
		if($('#warrantytext').is(':visible'))
		{
			var html = $(this).next().html();

			$('#warrantytext').stop(true, true).slideUp(300, function(){
				if ($('#warrantytext').html() != html)
				{
					$('#warrantytext').html(html).slideDown();
				}	
			});

		}
		else
		{
			var html = $(this).next().html();
			$('#warrantytext').html(html).stop(true, true).slideDown();
		}

		return false;
	});
	
	$('.meilleurprixtext', $(this)).animate({'opacity' : 0}, 0);

	$('.meilleurprix').hover(function() {
		$('.meilleurprixtext', $(this)).show().stop().animate({'opacity' : 1}, 300);
	}, function() {
		$('.meilleurprixtext', $(this)).stop().animate({'opacity' : 0}, 300, function() {$(this).hide()});
	});
});
