$(function(){
	
	animateHover($('#top-contact'));
	
});

function animateHover(items, h) {
	items.each(function(){
		var $this = $(this);
		var hover = $this.find(h ? h : '.hover');
		
		//hover.css({display:'block',opacity:0});
		hover.fadeTo(0,0);
		
		$this.hover(function(){
			hover.stop().fadeTo(300,1);
		},function(){
			hover.stop().fadeTo(300,0);
		});
	});
}

