/* ---------------------------------------------------------------------------------------
Author: 		Chris Satterthwaite
Updated: 		August.20.2010
Updated By: 	Sean Langlands
--------------------------------------------------------------------------------------- */
/* Start The document Ready function
--------------------------------------------------------------------------------------- */
$(document).ready(function(){

/* Form Script
--------------------------------------------------------------------------------------- */
	$('input, textarea, select').focus(function(){
		$(this).addClass("over");
		}).blur(function(){
		$(this).removeClass("over");
	});
	
/* Zebra Lists
--------------------------------------------------------------------------------------- */
	$("#menu-area-guide li:even").css("background-color", "#e8e8e8");
	
/* Toggle Area Guide Menu
--------------------------------------------------------------------------------------- */
	$('.area_guide_btn').toggle(function() {
 		 $('#area-guide-nav').slideDown('slow');
	}, function() {
 		$('#area-guide-nav').slideUp('slow');
	});
	
/* Callout Animation
--------------------------------------------------------------------------------------- */
	var fadeDuration = 150; //time in milliseconds
      
     $('.callout').hover(function() {
        $(this).animate({ bottom: '10' }, fadeDuration);
     }, function() {
        $(this).animate({ bottom: '0' }, fadeDuration);       
     });
	 
/* Slogan Animation
--------------------------------------------------------------------------------------- */
	$('#header').cycle({
		fx: 'fade',
		timeout: 5500
	});

/* Fancybox
--------------------------------------------------------------------------------------- */
	$("a[title=Virtual Tour]").fancybox({
		'width' : 770,
		'height' : 635,
		'type' : 'iframe',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayOpacity' : 0.5,
		'titleShow' : false,
		'scrolling' : 'no',
		'autoScale' : false
	});
	
	$("a[rel='lightbox']").fancybox({
		'titleShow' : false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
	
/* Datepicker
--------------------------------------------------------------------------------------- */
	$("#date_from").datepicker({ showOn: 'focus', dateFormat: 'yy-mm-dd' });

/* End the Document Ready Function
------------------------------------------------------------------------------------ */
});
