//$("#teamsmenu li a:contains('Snow')").addClass('teamsnow');

$(document).ready(function(){
  	jQuery('#teamsmenu').accordion({ 
		active: false, 
		header: '.headerlink', 
		navigation: true, 
		event: 'mouseover', 
		autoHeight: false, 
		animated: 'bounceslide' 
	});

	$('#teams td').hover(function() {
		$(this).find('div').animate({bottom:'0px'},200);
	}, function(){
		$(this).find('div').animate({bottom:'-35px'},200);
	});

	var h = $('div.teamoverlay').height();
	var t = $('#TeamHeader').height();
	$('div.teamoverlay')
		.css({'opacity' : 0, 'top' : t+'px', 'visibility' : 'visible'})
		.delay(1000)
		.animate({top: (t-20-h)+'px', opacity: 1}, 'slow');	
});
$.fn.delay = function(time, callback){
	// Empty function:
	jQuery.fx.step.delay = function(){};
	// Return meaningless animation, (will be added to queue)
	return this.animate({delay:1}, time, callback);
}
$(function() {
	$('#teamtabs > ul').tabs({ fx: { height: 'toggle', opacity: 'toggle' } });
});
