$(document).ready(function () {

	//Begin jquery calender stuff
	function saturdayFilter(date) {
		return (date.getDay() != 6) ? [false, ''] : [true, '']; 
	}
	function noFilter(date) {
	  return [true, ''];
	}
   
   
	if($("#strCheckin").datepicker) {
			$("#strCheckin").datepicker({showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true, beforeShowDay: saturdayFilter});
			$("#strCheckin1").datepicker({showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true, beforeShowDay: saturdayFilter});
		$("#strCheckin2").datepicker({showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true, beforeShowDay: noFilter});
	}
	 
	//Begin thumb image hover
	$('#be-details-thumbs a').hover(
	  function () {
	     $('#be-details-main-image img').attr('src', $(this).attr('href'));
	  },
	  function () {
	     $('#be-details-main-image img').attr('src', $('#be-details-thumbs a:first').attr('href'));
	  }
	);
	
	$('#photo-gallery ul').PikaChoose({
		showCaption: false,
		autoPlay: true,
		speed: 6000,
		IESafe: true,
		thumbOpacity: 1.0
	});
	
/* 	$('a[rel="gallery"], .pika-stage > a').colorbox({photo: true, fixed: true}); */
   
});

function sendToFriend(newin) {
		mywindow=window.open(newin,"mywindow","resizeable=yes,scrollbars=yes,width=350,height=545 top=250,left=250");
		window.mywindow.focus();
	}
	
function printBrochure(newin) {
		mywindow=window.open(newin,"mywindow","resizeable=yes,scrollbars=yes,width=800,height=565 top=50,left=50");
		window.mywindow.focus();
	}
	
function show_hide(field) {
	if (document.getElementById(field).style.display == 'block') document.getElementById(field).style.display = 'none'
	else if (document.getElementById(field).style.display == 'none') document.getElementById(field).style.display = 'block'
}
