/* imagenavigation */

$(function(){
	$("#topFeature").imageNavigation({
		time:6000,
		animationTime:500,
		rolloverTime: 0,
		rolloutTime: 500
	});
});

/* imagecaptions */

$(document).ready(function(){
	$('.captionBox').hover(function(){
		$(".caption", this).stop().animate({bottom:'0px'},{queue:false,duration:200});
	}, function() {
		$(".caption", this).stop().animate({bottom:'-50px'},{queue:false,duration:500});
	});
});

/* jcarousel */

function carousel_initCallback(carousel){
	// Pause autoscrolling if the user moves with the cursor over the clip.
	carousel.clip.hover(function() {
		carousel.stopAuto();
	}, function() {
		carousel.startAuto();
	});
};

$(document).ready(function() {
	$('#performanceSlider').jcarousel({
		auto: 4,
		wrap: 'circular',
		animation: 1500,
		buttonPrevHTML: 'disabled',
		buttonNextHTML: 'disabled',
		initCallback: carousel_initCallback
	});
});

