//MEH: I've edited this as problem with relative links, if this file used by pages at different levels
//wr is our web root - that is, the root directory
//Online javascript can work it out by using location.host (returns part before the /)
//For file, you will need to edit the file line below with the locatin you use
//For the actual links, make sure to put in the initial wr as below followed by the FULL path; for http and https you'll also need to specify the protocol

var wr
switch (window.location.protocol) {
    case "http:":
        wr = window.location.protocol + "//" + location.host + "/";
        break
    case "https:":
        wr = window.location.protocol + "//" + location.host + "/";
        break
    case "file:":
        //edit this line with the root you use
        wr = "D:/Work/drafts_content/drafts_content/drafts/";
        break
    default:
        wr = location.host + "/";
        break
}

var anylinkmenuhome = { divclass: 'anylinkmenu', inlinestyle: 'width:150px; background:#FDD271', linktarget: '_self'} //First menu variable. Make sure "anylinkmenu<*>" is a unique name!
anylinkmenuhome.items=[
// No items as yet
]

var anylinkmenuabout = { divclass: 'anylinkmenu', inlinestyle: 'width:150px; background:#FDD271', linktarget: '_self'} //Second menu variable. Same precaution.
anylinkmenuabout.items=[
	["Background", "" + wr + "about/background/index.html"],
	["Mission and Vision", "" + wr + "about/mission/index.html"],
	["Collaborations", "" + wr + "about/collaborations/index.html"] //no comma following last entry!
]


var anylinkmenupeople = { divclass: 'anylinkmenu', inlinestyle: 'width:150px; background:#FDD271', linktarget: '_self'} //Second menu variable. Same precaution.
anylinkmenupeople.items = [
//no comma following last entry!
]

var anylinkmenuprogramme = { divclass: 'anylinkmenu', inlinestyle: 'width:150px; background:#FDD271', linktarget: '_self'} //Second menu variable. Same precaution.
anylinkmenuprogramme.items = [
	["Building", "" + wr + "programmes/building/index.html"],
	["Community", "" + wr + "programmes/community/index.html"],
	["Research", "" + wr + "programmes/research/index.html"],
	["Training", "" + wr + "programmes/training/index.html"] //no comma following last entry!
]

var anylinkmenunews = { divclass: 'anylinkmenu', inlinestyle: 'width:150px; background:#FDD271', linktarget: '_self'} //Second menu variable. Same precaution.
anylinkmenunews.items = [
	//["Here and Now", "" + wr + "news/current/index.html"],
	//["Archive", "" + wr + "news/archive/index.html"],
	//["Arts and Minds Publications", "" + wr + "news/publications/index.html"] //no comma following last entry!
]


var anylinkmenureports = { divclass: 'anylinkmenu', inlinestyle:'width:150px; background:#FDD271', linktarget: '_self'} //First menu variable. Make sure "anylinkmenu<*>" is a unique name!
anylinkmenureports.items = [
// No items as yet
]




var anylinkmenucontact = { divclass: 'anylinkmenu', inlinestyle:'width:150px; background:#FDD271', linktarget: '_self'} //First menu variable. Make sure "anylinkmenu<*>" is a unique name!
anylinkmenucontact.items = [
// No items as yet
]


