
	swapImages =new Array();
	
	var isGallery=0;
	
	var polarisArr = new Array;

jQuery(document).ready(function() {
     jQuery('#topimg').cycle({ 
        fx:      'fade',
        continuous:true,
        timeout: 6000,
        speed: 2000
    }); 
    
 		

	});



jQuery(document).ready(function() {
 resizeBoxes("#spotRow1 .resortSpot");
 
 resizeBoxes("#spotRow2 .resortSpot");
});	



function appendImages(galleryId){
	
	var arrLength=topImages.length;
	//alert(arrLength);
	for(i=0;i<arrLength;i++){
		jQuery("#fpGallery").append(topImages[i]);

	}
	
}

function setMinMax(input){

 		jQuery("#dtm_end").datepicker('option', 'minDate', new Date(jQuery("#dtm_start").datepicker( 'getDate' )));
 		
 		//$("#dtm_start").datepicker('option', 'maxDate', new Date($("#dtm_end").datepicker( 'getDate' )));
 	}

	
	function shControls(myDo){
		//alert(myDo);
	if(myDo == 1){
		//show
		 jQuery('.controls').fadeTo("slow",1);
	}else{
		//hide
				 jQuery('.controls').fadeTo("slow",0.5);

	}
}

//alert("omg");

function myConsole(doThis,message){
	
//	console.warn(message);

}