//************************
// market place menu class
//************************

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

ER.menu.CourtyardMenu = Ext.extend(Ext.menu.Menu, {
	id: 'CourtyardMenu',
	initComponent : function() {
		Ext.apply(this, {
			items : [
				this.buildMenu()
			]
		});
		ER.menu.CourtyardMenu.superclass.initComponent.call(this);
	},
	buildMenu: function(){
		return [{
			text: 'Interact',
			href: "http://www.equine-ranch.com/interact.menu.php",
			menu: {
				items: [{
					text: 'The Commons',
					href: "http://www.equine-ranch.com/commons/",
					hrefTarget: '_blank'
				},{
					text: 'The Mailbox',
					href: "http://www.equine-ranch.com/mailbox.php"
				},{
					text: 'The Grapevine',
					handler: launchChat
				}]
			}
		},
		'-',
		{
			text: 'The Neighbors',
			href: "http://www.equine-ranch.com/commons/index.php?action=mlist",
			hrefTarget: '_blank'
		}]
	}
});

Ext.reg('courtyardmenu', ER.menu.CourtyardMenu);
