// JavaScript Document
jQuery(document).ready(function(){
	jQuery(".tabbed-button").click(function(){
		jQuery(".tabbed-courses").hide(); //hide div with .tabbed-course class
		var current_tab = jQuery(this);
		var current_tab_id = jQuery(current_tab).attr("id"); //create var for the select tab
		jQuery("#"+current_tab_id+"-content").show();//Show the current tab div with + "-content" id	
		jQuery(".active_tab_image").removeClass("active_tab_image"); //when a tab is clicked remove the active button
		jQuery(current_tab).addClass("active_tab_image"); //add active button to clicked button
	});
});

jQuery(document).ready(function() {
	jQuery('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	jQuery(document).ready(function() {
		jQuery('#mycarousel').jcarousel({
			scroll: 1,
			auto: 5,
			wrap: 'both'
		});
		
		jQuery('#attractions').jcarousel({
			scroll: 1,
			auto: 5,
			wrap: 'both'
		});
		
		jQuery('#your-limerick').jcarousel({
			scroll: 1,
			wrap: 'both'						
		});
	
	});
});

