(function($){  
$.fn.bounceMenu = function(){
	if($.browser.msie){
		
		if($.browser.versionNumber == 7){
			$("#tabella img").each(function(){ 
				$(this).attr('style','filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+$(this).attr('src')+'\', sizingMethod=\'scale\');')
			});
		}
	}
	
	$(this).mouseover( 
		function(){
			if(this.bounce) return false;
			this.bounce = true;
			$('.bounce',this).animate({top:"-=30"}, {duration: 500, easing: 'easeInOutCirc'}).animate({top:"+=30"}, 1000, 'easeOutBounce',function(){})
			$('.shadow',this).animate({width:"-=50",left:"+=30",height:'88'}, {duration: 500, easing: 'easeInOutCirc'}).animate({width:"+=50",left:"-=30",height:'88'}, 1000, 'easeOutBounce');
			$(this).animate({opacity:1},1500,'linear',function(){this.bounce = false;})
			
	});
}
})(jQuery); 