/* 
	Some jQuery scripts 
*/
$(function(){
	// fixes for the suckerfish removing itself when other navs are roller over	
	$('#nav_location').hover(function(){
		$('#nav_plans ul').hide();			
	}, function () {
		$('#nav_plans ul').show();
	});	
	
	$('#nav_plans').hover(function(){
		$('#nav_location ul').hide();			
	}, function () {
		$('#nav_location ul').show();
	});	
	
	// set the custom classes for the front page giving the first 2 paragraphs their style
	$(".page-id-5 p").each(function(i,n) {
		$(this).addClass("frontpage_headline_" + (i+1));
	});
	
	// set the custom start numbers for the Ammenities page
	$(".page-id-7 #content ul > li").each(function(i, n) {
		$(this).prepend("<span>" + (i+1) + ".</span> ");
	});
	
	// set the custom classes for the headlines on the Ammenities page
	$(".page-id-7 h3").each(function(i,n) {
		$(this).addClass("amenities_headline_" + (i+1));
	});
	
	// set the custom classes for the headlines on the Features page
	$(".page-id-8 h3").each(function(i,n) {
		$(this).addClass("features_headline_" + (i+1));
	});

	
// Simple show hide gallery 
// http://www.webdesignerwall.com/demo/jquery/
	$("#text_column h3 a").click(function(){
		var largePath = $(this).attr("href");
		var largeAlt = $(this).attr("title");
		
		$("#largeImg").attr({ src: largePath, alt: largeAlt });
		
		$("h3 em").html(" (" + largeAlt + ")"); return false;
	});
});
