function menuSroll(e) {
	$(e).animate({backgroundPosition: '0px -50px'},250);
	$(e).animate({backgroundPosition: '-500px -500px'},1);
	$(e).animate({backgroundPosition: '-500px 500px'},1);
	$(e).animate({backgroundPosition: '0px 50px'},1);
	$(e).animate({backgroundPosition: '0px 0px'},250);
}
//$(document).ready(function() {
//	$('#banner').cycle({
//			fx: 'fade'
//	});
// Datepicker
//				$('#datepicker').datepicker({
//					inline: true
//				});
//});


$(document).ready(function() {
	setTimeout("animation()",300);
	$('.text-performer-read-more').hide();
	$('.performer-read-more').click(function(){
		$('#text-' + $(this).attr('id')).slideToggle({duration: 1000, easing: 'easeOutBounce'});
		$(this).innerHTML = "Hide";
//		alert();
	});
	
	$.datepicker.regional['en-GB'] = {
		dateFormat: 'dd/mm/yy'
	}
	$.datepicker.setDefaults($.datepicker.regional['en-GB']);
	$.timepicker.setDefaults($.timepicker.regional['en-GB']);
	$('#form-book-time').datetimepicker({
		inline: true,
		ampm: true,
		hourMin: 9,
		showMinute: false,
		timeFormat: 'hh:mm tt'
	});
	$('#performers').tabs({
		selected: 1
	});
	$('#performers, .ui-tabs-nav').removeClass('ui-corner-all');
	
	function cycleOnBefore(){
		var index = $(this).index();
		var carousel = $('#image-gallery .thumbs').data('jcarousel');
		if(carousel){
			console.log('Current Index: ' + index);
			console.log('Last Carousel Index: ' + carousel.last);
			carousel.scroll(index, false);
		}
	}
	
	$('#image-gallery .cycle').cycle({
		fx: 'fade',
		pager: '#image-gallery .thumbs',
		pagerAnchorBuilder: function(idx, slide){
			return '#image-gallery .thumbs .thumb:eq(' + idx + ') a';
		},
		before: cycleOnBefore
	});
	
	
	
	$('#image-gallery .thumbs').jcarousel({
		wrap: 'circular'
	});
	
	$('#flyer').fancybox({
		autoScale: true,
		autoDimensions: true,
		centerOnScroll: true,
		showCloseButton: false
	});
});
		
function animation(){
	$("#animation_message").animate({top: '30px' }, {queue:false, duration:600, easing:'easeOutBounce'});
	

}
			
	

