

//"Copyright (c) 2003-2007 Goodform Development Pty Ltd (ABN:72 108 903 395). 
//Unauthorised use or duplication is strictly prohibited and is a violation of applicable laws. All rights reserved."




oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=120  
oCMenu.rows=0 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/"
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=139
oCMenu.level[0].height=20 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=-1
oCMenu.level[0].offsetY=-1
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="right"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2 + 30
oCMenu.level[1].height=oCMenu.level[0].height
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
//oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetX=-1
oCMenu.level[1].offsetY=-1
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="right" 



/* Start Menu Creation */
// makeMenu ('ID', 'parentID', 'Name', 'Address');
oCMenu.makeMenu('MetersLoads', '', 'Meters & Loads', '')
	oCMenu.makeMenu('Meters', 'MetersLoads', 'Meters', '')
		oCMenu.makeMenu('ViewMeter', 'Meters', 'View a Meter', 'viewMeter.php')
		oCMenu.makeMenu('ListAllMeters', 'Meters', 'List All Meters & Loads', 'meterLoadListing.php?orderby=1&order=asc')
		oCMenu.makeMenu('ListAllElectricityMeters', 'Meters', 'List Electricity Meters', 'meterElectricityListing.php')
		oCMenu.makeMenu('ListAllGasMeters', 'Meters', 'List Gas Meters', 'meterGasListing.php')
		oCMenu.makeMenu('ListAllPotableWaterMeters', 'Meters', 'List Potable Water Meters', 'meterPotableListing.php')
		oCMenu.makeMenu('ListAllBoreWaterMeters', 'Meters', 'List Bore Water Meters', 'meterBoreListing.php')
		oCMenu.makeMenu('AddNewMeter', 'Meters', 'Add New Meter', 'addMeterWizardStart.php?')
		//oCMenu.makeMenu('AddNewLoad', 'Meters', 'Add New Load', 'addLoadWizardStart.php?')
		//oCMenu.makeMenu('DisplayCitectReading1', 'Meters', 'Graphing Citect Readings', 'realtime_reading_citect.php?')	
		oCMenu.makeMenu('MeterReport', 'Meters', 'View Meter Report', 'meter_report3.php')
		oCMenu.makeMenu('ListDisconnectedMeter', 'Meters', 'List Disconnected Meter', 'meterLoadListing_dis.php')
	oCMenu.makeMenu('Loads', 'MetersLoads', 'Loads', '')
		oCMenu.makeMenu('ViewLoad', 'Loads', 'View a Load', 'viewLoad.php')
		oCMenu.makeMenu('ListAllLoad', 'Loads', 'List All Loads', 'loadListing.php?orderby=1&order=asc')
		oCMenu.makeMenu('ListAllElectricityLoad', 'Loads', 'List Electricity Loads', 'loadElectricityListing.php')
		oCMenu.makeMenu('ListAllGasLoad', 'Loads', 'List Gas Loads', 'loadGasListing.php')
		oCMenu.makeMenu('ListAllPotableWaterLoads', 'Loads', 'List Potable Water Loads', 'loadPotableListing.php')
		oCMenu.makeMenu('ListAllBoreWaterLoads', 'Loads', 'List Bore Water Loads', 'loadBoreListing.php')
		oCMenu.makeMenu('ListAllLoadLog','Loads','List All Load Log','loadLogListing.php');
		//oCMenu.makeMenu('ListLoadStatus', 'Loads', 'List Load Status', 'loadStatusListing.php')
		oCMenu.makeMenu('AddNewLoad', 'Loads', 'Add New Load', 'addLoadWizardStart.php?')
		oCMenu.makeMenu('SearchLoad', 'Loads', 'Search for Load', 'loadSearch.php')
		//oCMenu.makeMenu('DisplayCitectReading2', 'Loads', 'Graphing Citect Readings', 'realtime_reading_citect.php?')
	
oCMenu.makeMenu('MeteringSets', '', 'Metering Sets', '')
	oCMenu.makeMenu('ViewMeteringSets', 'MeteringSets', 'View General Metering Set', 'viewMeterSet.php')
	//oCMenu.makeMenu('ViewAllMeteringSets', 'MeteringSets', 'List all Metering Sets', 'meterSetListing.php')
	oCMenu.makeMenu('AddMeteringSets', 'MeteringSets', 'Add General Metering Set', 'addMeterSet.php')
oCMenu.makeMenu('Customers', '', 'Customers', '')
	oCMenu.makeMenu('ListAllCustomers', 'Customers', 'List All Customers', 'customerListing.php?')
	oCMenu.makeMenu('ListRecoveryCustomers', 'Customers', 'List Recovery Customers', 'customerRecoveryListing.php')
	oCMenu.makeMenu('ListCommercialCustomers', 'Customers', 'List Commercial Customers', 'customerCommercialListing.php')
	oCMenu.makeMenu('AddNewCustomer', 'Customers', 'Add New Customer', 'addCustomerWizardStart.php?')
	oCMenu.makeMenu('viewCustomersReport', 'Customers', 'viewCustomersReport', 'viewCustomersReport.php')
oCMenu.makeMenu('Accounts', '', 'Accounts', '')
	oCMenu.makeMenu('ListAllAccounts', 'Accounts', 'List All Accounts', 'accountListing.php?')
	oCMenu.makeMenu('AddNewAccount', 'Accounts', 'Add New Account', 'addAccountWizardStart.php?')
oCMenu.makeMenu('Buildings', '', 'Buildings', '')
	oCMenu.makeMenu('ListAllBuildings', 'Buildings', 'List All Buildings', 'buildingListing.php?')
	oCMenu.makeMenu('AddNewBuilding', 'Buildings', 'Add New Building', 'addBuildingWizardStart.php?')
oCMenu.makeMenu('Miscellaneous', '', 'Miscellaneous', '')
	oCMenu.makeMenu('Suppliers', 'Miscellaneous', 'Suppliers', 'supplierListing.php?')
	oCMenu.makeMenu('Zones', 'Miscellaneous', 'Zones', 'zoneListing.php?')
	oCMenu.makeMenu('Campuses', 'Miscellaneous', 'Campuses', 'campusListing.php?')
	oCMenu.makeMenu('GasHeatingValue', 'Miscellaneous', 'Gas Heating Value', 'gasHeatingValueListing.php?')
	oCMenu.makeMenu('RateProfiles', 'Miscellaneous', 'Rate Profiles', '')
		oCMenu.makeMenu('ListAllRateProfiles', 'RateProfiles', 'List All Rate Profiles', 'rateProfileListing.php?')
		oCMenu.makeMenu('AddNewRateProfile', 'RateProfiles', 'Add New Rate Profile', 'addRateProfileWizardStart.php?')
oCMenu.makeMenu('DataEntry', '', 'Data Entry', '')
	oCMenu.makeMenu('DataEntryMeterReadings', 'DataEntry', 'Meter Readings', 'dataEntryMeterReadings.php?')
	oCMenu.makeMenu('accountConsumptionEntry', 'DataEntry', 'Account Consumption', 'accountConsumptionEntry.php?')
	oCMenu.makeMenu('DataEntryMeterReadingsCSV', 'DataEntry', 'Meter Readings CSV', 'dataEntryMeterReadingsCSV.php?')
	oCMenu.makeMenu('Customer Payment', 'DataEntry', 'Customer Payment', 'dataEntryPayment.php?')
oCMenu.makeMenu('Reports', '', 'Reports', '')
	oCMenu.makeMenu('RunSheets', 'Reports', 'Report Server', 'http://08emweb01.facilities.unsw.edu.au/businessobjects/enterprise115/')
	oCMenu.makeMenu('ExportCSV', 'Reports', 'Export Citect CSV', 'extractCSV.php')

oCMenu.makeMenu('SystemSettings', '', 'System Settings', 'systemSettings.php')
	oCMenu.makeMenu('ManagePermission', 'SystemSettings', 'Manage User Permissions', 'permissionListing.php')
	oCMenu.makeMenu('AddNewContacts', 'SystemSettings', 'Add New User', 'addUserWizardStart.php?')
	oCMenu.makeMenu('Manage Users', 'SystemSettings', 'Manage Users', 'userListing.php?')
	oCMenu.makeMenu('PasswordUpdate', 'SystemSettings', 'Password Update', 'chpass.php')
	oCMenu.makeMenu('CustomerMeterReportSetting', 'SystemSettings', 'Customer Meter Report Setting', 'customerMeterReportSetting.php')

oCMenu.makeMenu('Search', '', 'Keyword Search', 'keywordListing.php')

oCMenu.makeMenu('Consumption','','Consumption','')
	oCMenu.makeMenu('ConsumptionCalculate','Consumption','Calculate Consumption','consumptionCalculate.php')
	oCMenu.makeMenu('ConsumptionListing','Consumption','List Consumption','consumptionListing.php')

oCMenu.makeMenu('LoginHistory','','Login History','loginLogListing.php')

oCMenu.makeMenu('RealTimeMonitoring','','Real Time Monitoring','')
	oCMenu.makeMenu('DisplayCitectReading2', 'RealTimeMonitoring', 'Graphing Citect Readings', 'realtime_reading_citect.php?')
	oCMenu.makeMenu('DisplayCitectReadingMD', 'RealTimeMonitoring', 'Graphing Citect MD', 'realtime_reading_citect_MD.php?')
	oCMenu.makeMenu('DetectFaultyMeter', 'RealTimeMonitoring', 'Detect Faulty Meter', 'detect_faulty_meter.php')

oCMenu.makeMenu('Home', '', 'Home', '/')
	
oCMenu.construct()
