//************************
// accounts menu class
//************************

// create namespace
Ext.namespace('ER.menu');

ER.menu.AccountMenu = Ext.extend(Ext.menu.Menu, {
	id: 'YourAccountMenu',
	initComponent : function() {
		Ext.apply(this, {
			items : [
				this.buildMenu()
			]
		});
		ER.menu.AccountMenu.superclass.initComponent.call(this);
	},
	buildMenu: function(){
		return [{
			text: 'Purchase Items',
			href: "http://www.equine-ranch.com/purchase.menu.php",
			menu: {
				items: [{
					text: 'The E-R Store',
					href: "http://www.equine-ranch.com/store.php"
				},{
					text: 'Current Specials',
					href: "http://www.equine-ranch.com/specials.php"
				}]
			}
		},
		'-',
		{
			text: 'Your Account',
			href: "http://www.equine-ranch.com/account.menu.php",
			menu: {
				items: [{
					text: 'Account Settings',
					href: "http://www.equine-ranch.com/editaccount.php"
				},{
					text: 'Log Out',
					href: "http://www.equine-ranch.com/logout.php"
				}]
			}
		}]
	}
});

Ext.reg('accountmenu', ER.menu.AccountMenu);
