jQuery(document).ready(function($) {	
	$('#pricingContent').tabs({ fx: { opacity: 'toggle' } });
	$.scrollTo( '#mansionLogo', 500 );   	
	$('a[href*="#hotelPricing"]').click(function () {top.location="/hotel/pricing/";}); 
	$('a[href*="#packages"]').click(function () {top.location="/pricing/packages/";}); 
	//$('a[href*="#packages"]').click(function () {$('#pricingContent').tabs('select',6)}); 
	$('#memberRentalPackages .contentCol tr td:first-child').addClass("cellHeadLine");
	$('#equipment .contentCol tr td:first-child').addClass("cellHeadLine");
	$('#dining .contentCol tr td:first-child').addClass("firstCol");
	
	//ZEBRA STRIPING	
	$(".stripeMe tr, .quan tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
	$(".stripeMe tr:odd, .quan tr:odd").addClass("alt");

	//toggle package rooms
	$('.roomsList').hide();
	$(".roomsInPackage a").click(function () {$(this).parent().find(".roomsList").toggle('fast');return false;}); 



	$("#packages .contentAccordion").accordion({
		alwaysOpen: false,
		autoHeight: false,
		collapsible:true, //needed for jQuery UI
		active: ".selected",
		header: "a.accordianLink",
		clearStyle: true //possibly unnecessary		
	}).change(function(){$(".didYouKnow p").hide();});


	
});




function parseURLParams(){
	//UNUSED
	var p = unescape($.getURLParam("p"));
	if(p !="null"){
		$('#pricingContent').tabs('select', 6);
		$("#packages .contentAccordion").accordion("activate", p);
		LOG('yo');
	}
}

