/**
 * General Script Definitions.
 *
 * @package  DriverGear
 * @version 0.1
 **/

/**
 * Globals
 **/
var GLOBAL		= {
	SPLASH				: {
		
	}
};

/**
 * Dispatch
 **/
function dispatch(id)
{
	switch(id)
	{
		case 'cart':
			loadCart();
			break;
		case 'search':
			loadSearch();
			break;
		case 'splash':
			loadSplash();
			break;
		case 'productDetail':
			loadProduct();
			break;
	}
}

/**
 * General functionality
 **/
 


/**
 * Section loaders
 **/
function loadSplash()
{
	// Splash feature slideshow
	// NOTE: Use "delay" and "speed" parameters to control cycle delay (in milliseconds) and transition speed.
	$('#splash_slideshow').cycle({
		delay:  4000, 
    	speed:  500
	});
}
