$(document).ready(function() {
	
	// Homepage Image Cycle (Attractions)
	$('#img_slider').cycle({
		fx: 'scrollHorz',
		timeout: 6000,
		speed: 1500,
		pause: 1,
		next: '#slider_control_right',
		prev: '#slider_control_left'
	});
	/*
	$('#bottom_slider').cycle({
		fx: 'scrollHorz',
		speed: 8000,
		speedIn: 0,
		speedOut: 0,
		continuous: 1,
		pause: 1,
		next: '#bottom_control_right',
		prev: '#bottom_control_left'
	});
	*/
	//Footer carousel
	/*
	$('#bottom_slider').jCarouselLite({
		btnNext: "#bottom_control_right",
		btnPrev: '#bottom_control_left',
		visible: 4,
		auto: 100,
		speed: 5000
	});
	*/
	
	$("div#make_me_scroll").smoothDivScroll({ 
			scrollingHotSpotLeft: "div#bottom_control_left",
			scrollingHotSpotRight: "div#bottom_control_right",
			scrollableArea: "div#bottom_slider",
			scrollWrapper: "div#slider_wrapper",
			autoScroll: "onstart", 
			autoScrollDirection: "backandforth", 
			autoScrollStep: 1, 
			autoScrollInterval: 15,
			visibleHotSpots: ""
	});

	
	// Form input behavior
	
	$('input[type=text]').focus(function() {
		$(this).css('backgroundColor', '#DEDEDE');
		$(this).css('borderColor', '#DEDEDE');
	});
	$('input[type=text]').blur(function() {
		$(this).css('backgroundColor', '#CCC');
		$(this).css('borderColor', '#CCC');
	});
	
	$('.rounded_gray input[type=text]').focus(function() {
		$(this).css('backgroundColor', '#999');
	});
	$('.rounded_gray input[type=text]').blur(function() {
		$(this).css('backgroundColor', '#333');
	});
	
	$('textarea').focus(function() {
		$(this).css('backgroundColor', '#DEDEDE');
		$(this).css('borderColor', '#DEDEDE');
	});
	$('textarea').blur(function() {
		$(this).css('backgroundColor', '#CCC');
		$(this).css('borderColor', '#CCC');
	});
	
	//SHOW ALL button behavior
	$('div#dir_showall').click(function(){
		$("#directory_table_filter input").focus().val('');
		$("#directory_table_filter input").trigger('keyup');
	});
	
});
