	
	// Equal height function
	(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
			$(this).height(tallest).css("overflow","visible");
		});
	}
	})(jQuery);
	
	
	
	
	// Figure out what directory we are in and activate THAT menu tab
	
	$(function() {

		var docPath = document.location.pathname;
		
		var temp = new Array();
		temp = docPath.split('/');
		
		//alert("[" + docPath + "]" + "-(" + temp[0] + ")" + "(" + temp[1] + ")" + "(" + temp[2] + ")");
		
		switch(temp[1]){
		
			case 'rooms' : 		$('#nav-example-01 a').addClass('selected'); break;
			case 'about' : 		$('#nav-example-02 a').addClass('selected'); break;
			case 'spa' : 		$('#nav-example-03 a').addClass('selected'); break;
			case 'breakfast' : 	$('#nav-example-04 a').addClass('selected'); break;
			case 'locations' :  $('#nav-example-05 a').addClass('selected'); break;
			case 'policies' : 	$('#nav-example-06 a').addClass('selected'); break;
		}
		
		
		
		
		// Other page init functionality goes here
		
		// Animate the area image
		$('#area').animate({opacity: "0"}).animate({opacity: "1"}, 1200)
		
		
		// Adjust these column heights
		//$(".equal").equalHeights();

		
		return false;


		
	});

        