// menu_items.js file
// comments block here

//Get hold of virtual dir via the window.location.pathname
var strPath = window.location.pathname;
var nIndex1 = strPath.indexOf("/");
var nIndex2 = strPath.indexOf("/", nIndex1 + 1);
var strVirtualDir = strPath.substring(nIndex1 + 1, nIndex2);

var MENU_ITEMS =[
	["Research Tools", null,
		["Research Pathways", null,
			["Getting Started", "/" + strVirtualDir + "/pathways/pathway1/pathway1.jsp"],
			["Family and Local History", "/" + strVirtualDir + "/pathways/pathway2/pathway2.jsp" ],
			["Koorie People and Places", "/" + strVirtualDir + "/pathways/pathway3/pathway3.jsp"],
			["Finding Records at PROV", "/" + strVirtualDir + "/pathways/pathway4/pathway4.jsp" ],
			["Further Research Resources", "/" + strVirtualDir + "/pathways/pathway5/pathway5.jsp" ],
                    ["Exhibitions and Online Learning", "/" + strVirtualDir + "/pathways/pathway6/pathway6.jsp" ]
		],
		["PROVguides", null,
                        ["Subject List", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daProvGuideList&componentLabel=Guides&breadcrumbPath=Home/Access the Collection/PROVGuides&sort=title" ],
                        ["Numerical List", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daProvGuideList&componentLabel=Guides&breadcrumbPath=Home/Access the Collection/PROVGuides&sort=id" ]
                ],
		
	],
	["Searching", null, 
		["Simple Search", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daSimpleSearch&componentLabel=Simple Search&breadcrumbPath=Home/Access the Collection/Simple Search" ],
		["Advanced Search", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daAdvancedSearch&componentLabel=Advanced Search&breadcrumbPath=Home/Access the Collection/Advanced Search" ],
		["Find by Number", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daFindByNumber&componentLabel=Find By Number&breadcrumbPath=Home/Access the Collection/Find By Number" ],
		["Search within a Series", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daSearchWithinSeries&componentLabel=Search Within Series&breadcrumbPath=Home/Access the Collection/Search Within Series" ],
		["Browse the Collection", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daBrowse&componentLabel=Browse The Collection&breadcrumbPath=Home/Access the Collection/Browse the Collection" ]
	],
	["Ordering", null, 
		["Direct Order", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daDirectOrder&componentLabel=Direct Order&breadcrumbPath=Home/Access the Collection/Direct Order" ],
		["Wills and Probate", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daWillsOrder&componentLabel=Wills and Probate&breadcrumbPath=Home/Access the Collection/Wills and Probate" ],
		["Inquests", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daInquestOrder&componentLabel=Inquests&breadcrumbPath=Home/Access the Collection/Inquests" ],
                ["My Orders", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daMyOrders&componentLabel=My Order&breadcrumbPath=Home/Access the Collection/My Orders" ],
	],
	["My Details", null, 
                ["My Orders", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daMyOrders&componentLabel=My Order&breadcrumbPath=Home/Access the Collection/My Orders" ],
		["My Account Details", "/" + strVirtualDir +"/component/daPublicBaseContainer?component=daUserDetails&componentLabel=My Account Details&userType=public&mode=update&breadcrumbPath=Home/Access the Collection/My Account Details" ],
                ["Reset My Password", "/" + strVirtualDir + "/component/daPublicBaseContainer?component=daResetPword&componentLabel=Reset password&source=menu&breadcrumbPath=Home/Access the Collection/Reset My Password" ],   
                
	],
	[login_state(), "javascript:log_in_out()" ],
        ["Help", "javascript:showHelp('/" + strVirtualDir + "/help/helpMain/helpMain.jsp')"],
];

 
	
	
	
	
	
