//Home Menu
	var mycarousel_itemList = [
		{url: 'imagenes/cumpleanios.png', title: 'Festeja tu cumple en Thaler', href:'cumpleanios'},
		{url: 'imagenes/juegos.png', title: 'jugá y ganá fabulosos premios', href:'juegos'},
		{url: 'imagenes/eventos.png', title: 'noches de diversión en thaler', href:'eventos'},
		{url: 'imagenes/bowling.png', title: 'cuantos strike haces?', href:'bowling'},
		{url: 'imagenes/tragos.png', title: 'Sorprende a tus amigos!', href:'chef'}
	];
	
	function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt){
		// The index() method calculates the index from a
		// given index who is out of the actual item range.
		var idx = carousel.index(i, mycarousel_itemList.length);
		carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
	};
	
	function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt){
		carousel.remove(i);
	};
	
	/**
	 * Item html creation helper.
	 */
	function mycarousel_getItemHTML(item){
		return '<a href="' + item.href + '"><img src="' + item.url + '" width="310" height="255" alt="' + item.title + '" border="0" /></a>';
	};
	/*
	jQuery(document).ready(function() {
		jQuery('#menu').jcarousel({
			//easing: 'BounceEaseOut',
			animation: 500,
			auto: 5,
			scroll: 1,
			initCallback: mycarousel_initCallback,
			wrap: 'circular',
			itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
			itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback}
		});
	});
	
	});*/
	
	function mycarousel_initCallback(carousel){
		// Disable autoscrolling if the user clicks the prev or next button.
		carousel.buttonNext.bind('click', function() {
			carousel.startAuto(0);
		});
	 
		carousel.buttonPrev.bind('click', function() {
			carousel.startAuto(0);
		});
	 
		// Pause autoscrolling if the user moves with the cursor over the clip.
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};
	
	jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	};
