jQuery(function($) {
	$('#slides').slides({
				preload: true,
				preloadImage: 'img/loading.png',
				play: 8000,
				pause: 3500,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-300
					},10);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},1000);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},1000);
				}
			});

	$('#quote .title').hover(function(){
		$('#quote #quote_form').stop(true, true).slideDown(400);
	}, function(){
		$('#quote #quote_form').slideUp(400);
	});
	$('.spot').css({'cursor': 'pointer'});
	$('.spot').click(function(){
		var link = $(this).children('h2').children('a').attr('href');
		window.location = (link);
	});
	
});	
