// JavaScript Document

$(document).ready(function(){ 

	// Set the active tab
	$("#tab-nav-plans").addClass("ui-tabs-selected")
	$('#plan-list > ul').tabs();

/*
	// Populate the dynamic content
	$.get("plans.xml", {}, function(xml){
		$('plan',xml).each(function(i) {
			var sName = $(this).find("name").text();
			var sPrice = $(this).find("price").text();
			var sDesc = $(this).find("description").text();
			$("<li id='plan" + i + "'></li>").click( function () {
				$("#plan-list > ul > li").removeClass("active");
				$(this).addClass("active");
				$("#plan-content").html("<h2>" + sPrice + "</h2>" + "<p>" + sDesc + "</p>");
				return false;
			}).appendTo("#plan-list > ul").html("<a href='#'>" + sName + "</a>");
		});
		$("#plan0").trigger("click");		
	});
*/

	$("#terms-content").hide();
	$("#terms-lnk").click( function () {
		$("#terms-content").toggle( );
		return false;
	});

});
