/* codename : putterfish */
$().ready(function(){
	
	$('#menu li a').append('<span class="hover"></span>');
	
	if(!jQuery.support.opacity){
		$('.hover','#menu li a').hide();
	}
	
	$('#menu li a').hover(function() {
		
		if(jQuery.support.opacity){
			// Stuff that happens when you hover on + the stop()
			$('.hover', this).stop().animate({
				'opacity': 1
				}, 300, 'easeOutSine');
		}
		else{
			$('.hover', this).stop().fadeIn();
		}
		
	},function() {
		if(jQuery.support.opacity){
			// Stuff that happens when you unhover + the stop()
			$('.hover', this).stop().animate({
				'opacity': 0
				}, 500, 'easeOutExpo');
		}
		else{
			$('.hover', this).stop().fadeOut();
		}
			
	});
	
	
	// lien shop
	if($('.shop').length > 0){
			$('.shop').append('<span class="hover"></span>');
	
				if(!$.support.opacity){
					$('.hover','.shop').hide();
				}
				
				$('.shop').hover(function() {
					
					if($.support.opacity){
						// Stuff that happens when you hover on + the stop()
						$('.hover', this).stop().animate({
							'opacity': 1
							}, 1000, 'easeOutSine');
					}
					else{
						$('.hover', this).stop().fadeIn();
					}
					
				},function() {
					if($.support.opacity){
						// Stuff that happens when you unhover + the stop()
						$('.hover', this).stop().animate({
							'opacity': 0
							}, 2000, 'easeOutExpo');
					}
					else{
						$('.hover', this).stop().fadeOut();
					}
					
			});
	}
	
});
