$(document).ready(function(){
	function highlightCurrent(curr, next, opts) {
		var index = opts.currSlide;
		$('.home-slider a').removeClass("current");
		
		switch(index)
		{
		case 0:
			$('.spot0').addClass("current");
			break;
		case 1:
			$('.spot1').addClass("current");
			break;
		case 2:
			$('.spot2').addClass("current");
			break;
		}
	}
	
	$('#home-slide').cycle({
		fx:			'fadeZoom',
	    timeout:	7000, 
	    speed:		1000,
	    pause:		1,
	    after:		highlightCurrent
	});
	
	$('.spot0').hover(function() {
	    $('#home-slide').cycle(0);
	    return false;
	});
	
	$('.spot1').hover(function() {
	    $('#home-slide').cycle(1);
	    return false;
	});
	
	$('.spot2').hover(function() {
	    $('#home-slide').cycle(2);
	    return false;
	});
	
	
});