/*
	Copyright:  Hybrid Forge 2010. All Rights Reserved.
	Author: 	Jeremy Smereka (www.hybridforge.com)
	Date: 		June 2010
 
	Info: 		jQuery Customization for Refine
-----------------------------------------------------------------------------*/


jQuery(document).ready(function($) {

	/* Misc. EASING Functions
	----------------------------------------*/
	$.easing.custom = function (x, t, b, c, d) { 
		var s = 1.70158;  
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
	}	
	$.easing.easeInOutQuint = function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	}

	/* Banner Rotations
	----------------------------------------*/
	$('.wrapper-img').cycle({ 
		fx:					'fade', 					// name of transition effect (or comma separated names, ex: fade,scrollUp,shuffle) 
		speed: 				1000,							// speed of the transition (any valid fx speed value)
		easing:				'easeInOutQuint',				// easing method for both in and out transitions 
		cleartypeNoBg: 		true,
		timeout:			5000,							// milliseconds between slide transitions (0 to disable auto advance)
		pause:				true,							// true to enable "pause on hover"
		sync:				true							// true if in/out transitions should occur simultaneously
	});


});
