/**
* Assign the view handler
*/

viewHandler = Account;

/**
* Creates a new object with methods used by the Account page
*
* @author				Matt Gifford
* @copyright			2008 Timeshifting Interactive Limited
*/
function Account()
	{
	// Step 1. Define Properties

	var _instance = this;



	// Step 2. Define Public Methods

	/**
	* Sets up the initial page state and event handlers
	*/
	this.init = function()
		{
		// Call generic page init method
		this.base.init.call(this);
		}


	/**
	* Toggles the settings items
	*
	* @param		obj		The anchor clicked on
	*/
	this.accountSettingsToggle = function(obj)
		{
		var settingItem = obj.parentNode.parentNode;
		if (settingItem.className.indexOf('collapsed') != -1)
			{
			settingItem.className = settingItem.className.replace('collapsed', 'expanded');
			}
		else
			{
			settingItem.className = settingItem.className.replace('expanded', 'collapsed');
			}
		}
	}
