$(document).ready(function(){
	$('#slides').cycle();
	$("a.more > p").append('<img src="/images/styles/more.png" alt="more arrow"/>');
	
	//form controls
	$("input,textarea").focus(function(){
	$(this).val("");
	}); 

	$("input,textarea").blur(function(){
	if (this.value=="") {
		this.value = this.defaultValue;
	}
	});
   	//video controls for home page
	$("#video-thumb").click(function(){
	   $("#video").show(); 
	});
	$("#closer").click(function(){
	   $("#video").hide(300); 
	}); 
	
}); 



//tab control 
$(function () {
    var tabContainers = $('#tabContent > div');
    
    $('#tabContent ul#tabs a').click(function () {
        tabContainers.hide().filter(this.hash).show();
        
        $('#tabContent ul#tabs a').removeClass('current');
        $(this).addClass('current');
        
        return false;
    }).filter(':last').click();
});


//reveal accommodations div when link is clicked

$('a[name="accommodations"]').click(function(){
	$('div #accommodations').show("slow");
});
$('div #accommodations').click(function(){
	$(this).hide("slow");
});

//settings for slideshow
$.fn.cycle.defaults = { 
    timeout:       4000,  // milliseconds between slide transitions (0 to disable auto advance) 
    speed:         1000,  // speed of the transition (any valid fx speed value) 
    next:          null,  // id of element to use as click trigger for next slide 
    prev:          null,  // id of element to use as click trigger for previous slide 
    before:        null,  // transition callback (scope set to element to be shown) 
    after:         null,  // transition callback (scope set to element that was shown) 
    height:       '324', // container height 
    sync:          1,     // true if in/out transitions should occur simultaneously 
    fit:           0,     // force slides to fit container 
    pause:         1,     // true to enable "pause on hover" 
    delay:         0,     // additional delay (in ms) for first transition (hint: can be negative) 
    slideExpr:     null   // expression for selecting slides (if something other than all children is required) 
};  

//form controls
$("input,textarea").focus(function(){
$(this).val("");
}); 

$("input,textarea").blur(function(){
if (this.value=="") {
	this.value = this.defaultValue;
}
}); 




