// execute when DOM ready
jQuery(document).ready(function() {

	// homepage testimonials cycle
	jQuery('body.home #clients-list').cycle({
		fx: 'fade',
		pause: 1, // true to enable "pause on hover" 
		random: 1,
		timeout: 10000
	});
		
	// homepage slider
	// Using multiple unit types within one animation.
	jQuery("#expand").click(function (){
		jQuery("#ws360-rightcorner").animate({ 
			width: "950px"
		}, 750, "linear", 
			function(){
				jQuery("#ws360-content").removeClass('hide');
				jQuery("#ws360-content").fadeIn(250);
			}
		);
		jQuery("#expand").addClass('hide');
		jQuery("#collapse").removeClass('hide');
	});
	jQuery("#collapse").click(function (){
		jQuery("#ws360-content").fadeOut(500, function(){
			jQuery("#ws360-content").addClass('hide');
			jQuery("#ws360-rightcorner").animate({ 
				width: "100px"
			}, 750, "linear");
		jQuery("#collapse").addClass('hide');
		jQuery("#expand").removeClass('hide');
		});
	});	
	
}); 