jQuery.noConflict();

/*
 * General DOM ready statemenets
 */
jQuery(function($) {
	
	$('#nav ul').parent('li').hover(function(){ $(this).addClass('hovered') }, function(){ $(this).removeClass('hovered') });
	
	$('#banner-inner').cycle({
		timeout: 15000,
		speed: 2000,
		next: '.next',
		prev: '.prev',
		fx: 'scrollBothWays'
	});
	
	var $slideshow = $('#slideshow');
	var $img = $('img', $slideshow).clone();
	$slideshow.empty().append($img)
	$img.each(function(){
		var $this = $(this);
		$this.css({
			'margin-left': -$this.width()/2,
			'margin-top': -$this.height()/2
		})
	});
	$slideshow.cycle();
	
	
	//Team List
	$('#team-list a').each(function(){
		var $el = $(this);
		var $text = $('.text', $el);
		var height = $text.outerHeight();
		$text.css('bottom', -height);
		
		$el.mouseenter(function(){
			if (!$text.is(':animated')) { 
				$text.animate({
					'bottom': '0'
				});
			}
		})
		.mouseleave(function(){
			$text.animate({
				'bottom': -height
			});
		});
	});		
	
	
});