//*********************
// ranch ops menu class
//*********************

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

ER.menu.ROMenu = Ext.extend(Ext.menu.Menu, {
	id: 'RanchOpsMenu',
	initComponent : function() {
		Ext.apply(this, {
			items : [
				this.buildMenu()
			]
		});
		ER.menu.ROMenu.superclass.initComponent.call(this);
	},
	buildMenu: function(){
		return [{
			text: 'Ranch Areas',
			href: "http://www.equine-ranch.com/ranchareas.menu.php",
			menu: {
				items: [{
					text: 'Main Ranch',
					href: "http://www.equine-ranch.com/ranch.php"
				},{
					text: 'Vet &amp; Farrier',
					href: "http://www.equine-ranch.com/reports.php"
				},{
					itemId: 'TransactionsWindow',
					text: 'Recent Transactions',
					href: "http://www.equine-ranch.com/recenttrans.php"
				},{
					text: 'Feed Room',
					href: "http://www.equine-ranch.com/feedroom.php"
				},{
					text: 'Stabling Arrangements',
					href: "http://www.equine-ranch.com/stabling.php"
				},{
					text: 'Management',
					href: "http://www.equine-ranch.com/manage.php"
				},{
					text: 'The Bunkhouse',
					href: "http://www.equine-ranch.com/bunkhouse.php"
				},{
					text: 'Order Custom Pictures',
					href: "http://www.equine-ranch.com/custompicorder.php"
				}]
			}
		},
		'-',
		{
			text: 'Horse Acquisitions',
			href: "http://www.equine-ranch.com/acquisitions.menu.php",
			menu: {
				items: [{
					text: 'Import Foreign Bred',
					href: "http://www.equine-ranch.com/import.php"
				},{
					text: 'Purchase Local Stock',
					href: "http://www.equine-ranch.com/nativebred.php"
				},{
					text: 'Order Custom Import',
					href: "http://www.equine-ranch.com/customorder.php?type=custom"
				},{
					text: 'Order Iyudaliha Import',
					href: "http://www.equine-ranch.com/customorder.php?type=special"
				},{
					text: 'Order CoD Import',
					href: "http://www.equine-ranch.com/customorder.php?type=cod"
				}]
			}
		},
		'-',
		{
			text: 'Reference Guides',
			href: "http://www.equine-ranch.com/references.menu.php",
			menu: {
				items: [{
					itemId: 'DNAGuideWindow',
					text: 'DNA Guide',
					href: "http://www.equine-ranch.com/colorchart.php"
				},{
					itemId: 'CrossbreedingChartWindow',
					text: 'Crossbreeding Guide',
					href: "http://www.equine-ranch.com/crossbreeding.php"
				},{
					text: 'Discipline Guide',
					href: "http://www.equine-ranch.com/discguide.php"
				},{
					text: 'Glossary',
					href: "http://www.equine-ranch.com/voxknowledge/glossary.php"
				}]
			}
		}]
	}
});

Ext.reg('ranchopsmenu', ER.menu.ROMenu);
