/////////////////////////////////////////////////////////
// fourthmeal.js
// Taco Bell - Fourthmeal
//
// author: Rayman Wong
// contact: rayman.wong@gmail.com
// created on: 8/29/2011
// last modified: 8/29/2011
//
// dependencies: 
// jQuery (1.4.2), jQuery UI (1.8.14)
//
// comments: 
/////////////////////////////////////////////////////////

var discoverCarousel;

$(document).ready( function(){
	//setupCarousel();
	//* tbtip custom plugin
	if (showTip){
		$('area[alt][class!=popup][class!=link]').tbtip({
			boundary: '.subbrandFeature',
			posX: 20
		});
	};
	//*/
	
	var config = {
		scroll: 1,
		visible: 1,
		auto: 0,
		animation: "slow",
		easing: "easeInOutCubic",
		wrap: "circular",
		itemFallbackDimension: 920
	};
	
	if (onlyOne){
		config = {
				scroll: 1,
				visible: 1,
				auto: 0,
				buttonNextHTML: null,
				buttonPrevHTML: null,
				animation: "slow",
				easing: "easeInOutCubic",
				wrap: "circular",
				itemFallbackDimension: 920
			};
	};
	discoverCarousel = setupCarousel($('.subbrandFeature'), config);
});


/*function setupCarousel(){
	discoverCarousel = $('.subbrandFeature').jcarousel({
		scroll: 1,
		visible: 1,
		auto: 0,
		buttonNextHTML: null,
		buttonPrevHTML: null,
		itemFallbackDimension: 920
	});
}*/

