
	var Account = Class.create();

	Account.prototype = {
		initialize:function(){},
	
		confirmPlanChange: function(planName, fee, isYearlyBilling) {
			var str = (isYearlyBilling) ? 'yearly' : 'monthly';
		
			if(confirm("Are you sure that you want to change your plan to the '" + planName + "' plan?\n The " + str + " fee on this plan is US$ " + fee + '.'))
				return true;
			else
				return false;
		},
	
		personalizedUrlStatusChange: function(newStatus) {
			if(newStatus == 1 && !$('personalizedUrlValueContainer').visible())
				Effect.BlindDown('personalizedUrlValueContainer', {duration:0.3});
			else if($('personalizedUrlValueContainer').visible())
				Effect.BlindUp('personalizedUrlValueContainer', {duration:0.3});
		},
		
		showPane: function(el) {
			$$('.accountPane').each(function(openedPane) {
				if(openedPane.visible())
				{
					openedPane.previous('h2').removeClassName('opened');
					Effect.BlindUp(openedPane, {duration:0.3, queue:'end'});
				}
			});
			
			if(!$(el).up('h2').next('.accountPane').visible())
			{
				$(el).up('h2').addClassName('opened');
				Effect.BlindDown($(el).up('h2').next('.accountPane'), {duration:0.3});
			}
				
		}
	};

	var account = new Account();
