$(document).ready(function(){
	// Slideshow
	if($('.home-slideshow-slides').length) {
		$('.home-slideshow-slides').cycle({
			timeout: 4000,
			speed: 2000,
			pause:  0, // 1 is on, pasues on hover, 0 is off
			next: '.next',
			prev: '.prev'
		});
		
		$('a.pause').click(function(){
			$('.home-slideshow-slides').cycle('pause');
			$('a.pause').hide();
			$('a.play').show();
			return false;
		});
		
		$('a.play').click(function(){
			$('.home-slideshow-slides').cycle('resume');
			$('a.pause').show();
			$('a.play').hide();
			return false;
		});
	}
	
	// Show nav on hover
	if($('.home-slideshow').length) {
		$('.home-slideshow').hover(
		function(){
			$('.slideshow-nav').show();
		}, function(){
			$('.slideshow-nav').fadeOut('slow');
		});
	}
	
	// Tagline Slideshow
	$('#tagline').cycle({
		timeout: 7000,
		speed: 2000,
		pause:  1, // 1 is on, pasues on hover, 0 is off
		random: 1 // loads items in random order
	});
});
