function animateIn(){
		$('.speechbubble').animate({"top": "350px", opacity: 1}, "slow");
		$('.speechbubble').fadeIn('slow');
}

$(document).ready(function() {	
	
	//$('.navigation a').css( {backgroundPosition: "182px 0"} );
	$('.navigation li:not(.current_page_item) a').mouseover(function(){
		$(this).stop().animate({backgroundPosition:"0px 0px"}, {duration:200})
	});
	$('.navigation li:not(.current_page_item) a').mouseout(function(){
		$(this).stop().animate({backgroundPosition:"182px 0"}, {duration:300, complete:function(){
			$(this).css({backgroundPosition: "182px 0"})
		}})
	});
	
	//$('.speechbubble').css( {display: "none"} );
	$('.speechbubble').css({"top": "370px"});
	$('.speechbubble').css({"opacity": "0"});

	setTimeout ( animateIn, 500 ); 
	
	$('.slideshowImages').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 6000,
		speed:   500,
		cleartypeNoBg: true
	});
	$('.captions').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 6000,
		speed:   500,
		cleartypeNoBg: true
	});
	
	$('.nextImage').click(function() {
		$('.slideshowImages').cycle('next');
		$('.captions').cycle('next');
	});	
	$('.prevImage').click(function() {
		$('.slideshowImages').cycle('prev');
		$('.captions').cycle('prev');
	});	
 });



