$(document).ready(function() {

	
	function mycarousel1_initCallback(carousel) {
		$('div#gallery a.next-btn').bind('click', function() {
			carousel.next();
			return false;
		});

		$('div#gallery a.prev-btn').bind('click', function() {
			carousel.prev();
			return false;
		});

	};
	
	function mycarousel2_initCallback(carousel) {
		$('div#revo-shows a.next-btn').bind('click', function() {
			carousel.next();
			return false;
		});

		$('div#revo-shows a.prev-btn').bind('click', function() {
			carousel.prev();
			return false;
		});

	};
	
	$("div#gallery div.mycarousel").jcarousel({
			scroll: 3,
			initCallback: mycarousel1_initCallback,	
			buttonNextHTML: null,
			buttonPrevHTML: null
		});
	
	
	$("div#revo-shows div.mycarousel").jcarousel({
			scroll: 1,
			initCallback: mycarousel2_initCallback,	
			buttonNextHTML: null,
			buttonPrevHTML: null
		});
	
	$("div#sidebar div#accordian").accordion();
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'light_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
	});
		
	$('div#slideshow').cycle({ 
		fx: 'fade',
		speed : 3000
	});

	
	$("#banner .wrapper").cycle({fx:'fade', slideExpr: 'div.slide', timeout: 5000});
	
});

