/* jQuery for Winnipeg MiniStorage
 * by Outcome3 - http://www.outcome3.com
 ----------------------------------------------------*/

$(document).ready(function() {

	/* Cycle for Advertisments
 	--------------------------------------------------*/
	$('#rotating-ad').cycle({
		random:		1,
		timeout:	0
	});

	/* Cycle for Storage Tips
	--------------------------------------------------*/
	$('#rotating-storagetip').cycle({
		random:		1,
		timeout:	0
	});
	
	/* Cycle for Images on Home Page
	 -------------------------------------------------*/	
	$('#testimonial-carousel').cycle({
    	speed:  	'slow', 
		timeout:	10000, /* Time before next object */
		next:   	'#testimonial-carousel', /* Makes Object Clickable for Navigation */
		pause:		1, /* Pauses slideshow on mouse hover */
		fx:     	'fade',
		random:  	1 /* Randomizes item so user doesn't always see same thing every page load/refresh */
	});

	/* Cycle for Testimonials on Home Page
 	--------------------------------------------------*/
	$('#photograph-carousel').cycle({
		speed:		'fast',
		timeout:	0,
		next:		'#photograph-carousel img',
		fx:			'fade',
		random: 0
	});

	/* Adds Pointer Cursor for above cycle navigation when user has js Enabled
	 * Prevents "links" that don't do anything when JS is turned off...
	 ------------------------------------------------------------------------*/
	$('#testimonial ul li .quote').addClass('faux-link');
	$('#photographs ul li .photo').addClass('faux-link');

});

