// heritagemapen.js
//---------------------------------------------------- Heritage Map ---
function Menu(ref,father,path,shortlabel,label,note,address,figure) {
	this.ref = ref;
	this.father = father;
	this.path = path;
	this.shortlabel = shortlabel;
	this.label = label;
	this.note = note;
	this.address = address;
	this.figure = figure;
}

var i, ia, ib, ic, id;
var intMenuSMax;
var fathernodeA, fathernodeB, fathernodeC, objectfather;
var setpathA, setpathB;
var showall, pathB, pathC;

//create main menu objects - level A,  Menu A
var intMenuAMax = 0;
var MenuA = new Array();
// father must be blank
MenuA[MenuA.length] = new Menu(0, 0, "", "", "", "", "");
MenuA[MenuA.length] = new Menu("A1", "", "", "Events &amp; News", "Events and News", "Community celebration announcements and news bulletin of events just concluded.", "/events/index.html", "events201.gif");
MenuA[MenuA.length] = new Menu("A2", "", "", "Places &amp; History", "Places and History", "About special places of singular thematic interest and/or their little-known history.", "/placeshistory/index.html", "places201.gif");
MenuA[MenuA.length] = new Menu("A3", "", "", "Culture &amp; Traditions", "Culture and Traditions", "Culture and traditions of southern Italy; the fabric of history and social life for special people.", "/culture/index.html", "culture201.gif");
MenuA[MenuA.length] = new Menu("A4", "", "", "Communities", "Communities", "The activities of community groups sharing cultural and ancestral interests from southern Italy: ARPA and ASRV.", "/orgs/index.html", "orgs201.gif");
MenuA[MenuA.length] = new Menu("A5", "", "", "Calendar", "Calendar", "Calendar, saint days and catholic celebrations.", "/calendar/index.html", "calendar201.gif");
intMenuAMax = MenuA.length-1;

//create son menu objects
var MenuS = new Array();
//-----A1-----B11-----C111
//               -----C112
//       -----B12-----C121
//               -----C122
//-----A2-----B21-----C211
//               -----C212
//       -----B22-----C221
//               -----C222
//father must come from reference
//path: choose level, then pick number from father
//ref: pick rpath and include a sequential number 1-9.
//ref,father,path,shortlabel,label,note,address,figure
MenuS[MenuS.length] = new Menu(0, 0, "", "", "", "", "");
MenuS[MenuS.length] = new Menu("B21", "A2", "B2", "Alberobello", "Alberobello", "A town memorable for its extensive constructions of ancient stone dwellings (trulli).", "/placeshistory/alberobello/index.html", "alberobello201.gif");
MenuS[MenuS.length] = new Menu("B22", "A2", "B2", "All Saints Church", "All Saints Church", "A beautiful Roman-style church a thousand year old.", "/placeshistory/allsaintschurch/index.html", "ognissanti201.gif");
MenuS[MenuS.length] = new Menu("B23", "A2", "B2", "Capurso", "Capurso", "Historical protrait of Capurso.", "/placeshistory/capurso/index.html", "capurso201.gif");
MenuS[MenuS.length] = new Menu("B24", "A2", "B2", "Castel del Monte", "Castel del Monte", "Photos of this singular castle with its octagonal geometric proportions.", "/placeshistory/casteldelmonte/index.html", "castelmonte201.gif");
MenuS[MenuS.length] = new Menu("B25", "A2", "B2", "Puglia", "Puglia", "Portrait of Puglia.", "/placeshistory/puglia/index.html", "puglia201.gif");
MenuS[MenuS.length] = new Menu("B26", "A2", "B2", "Stone Dwellings", "Stone Dwellings", "Singular ancient stone dwellings: pagliai e trulli.", "/placeshistory/stonedwellings/index.html", "stone201.gif");
MenuS[MenuS.length] = new Menu("B27", "A2", "B2", "Valenzano", "Valenzano", "History, photos, and other tidbits about Valenzano.", "/placeshistory/valenzano/index.html", "valenzano201.gif");
MenuS[MenuS.length] = new Menu("C211", "B21", "C21", "Alberobello", "Photo Album of Alberobello", "", "/placeshistory/alberobello/trullitown/index.html", "alberobello202.gif");
MenuS[MenuS.length] = new Menu("C221", "B22", "C22", "Photos", "Photos of All Saints Church", "Photos of the All Saints Church, old and recent, with comments.", "/placeshistory/allsaintschurch/churchalbum/index.html", "ognissanti202.gif");
MenuS[MenuS.length] = new Menu("C222", "B22", "C22", "History", "History by Francesco Cal&egrave;", "Brief history of All Saints Church in Valenzano, by Francesco Cal&egrave;.", "/placeshistory/allsaintschurch/historybycale/index.html", "ognissanti203.gif");
MenuS[MenuS.length] = new Menu("C231", "B23", "C23", "Capurso History", "Capurso History", "History, photo gallery, and tidbits about Capurso and its peole.", "/placeshistory/capurso/capursohistory/index.html", "capurso204.gif");
MenuS[MenuS.length] = new Menu("C241", "B24", "C24", "Castel del Monte", "Castel del Monte Photo Album", "", "/placeshistory/casteldelmonte/castel/index.html", "castelmonte202.gif");
MenuS[MenuS.length] = new Menu("C251", "B25", "C25", "Puglia", "Puglia", "", "/placeshistory/puglia/pugliaportrait/index.html", "puglia203.gif");
MenuS[MenuS.length] = new Menu("C261", "B26", "C26", "Stone Dwellings", "Stone Dwellings of Puglia", "Pagliai, Trulli", "/placeshistory/stonedwellings/stone/index.html", "stone201.gif");
MenuS[MenuS.length] = new Menu("C271", "B27", "C27", "Valenzano History", "Valenzano History by Lino DiTuri", "", "/placeshistory/valenzano/historydituri/index.html", "valhistory211.gif"); 
MenuS[MenuS.length] = new Menu("C272", "B27", "C27", "Satellite Photo", "Photo from a Satellite ~1991", "", "/placeshistory/valenzano/satellite/index.html", "valsatellite215.gif");
MenuS[MenuS.length] = new Menu("C273", "B27", "C27", "Snowfall 1993", "Photos from 1993 Snowfall", "", "/placeshistory/valenzano/snow93/index.html", "valneve214.gif");
MenuS[MenuS.length] = new Menu("C274", "B27", "C27", "Historical Photos", "Historical Photos of Valenzano", "A collection of historical photos of Valenzano.", "/placeshistory/valenzano/fotohistory/index.html", "valalbum212.gif");
MenuS[MenuS.length] = new Menu("C275", "B27", "C27", "Photo Album &acute;02", "Photo Album 2000-02", "Photo album 2000-02 by Mike Bellomo.", "/placeshistory/valenzano/fotoalbum02/index.html", "valalbum120.gif");

MenuS[MenuS.length] = new Menu("B31", "A3", "B3", "All Saints Fair", "All Saints Fair", "", "/culture/allsaintsfair/index.html", "fiera201.gif");
MenuS[MenuS.length] = new Menu("B32", "A3", "B3", "Good Friday", "Good Friday", "", "/culture/goodfriday/index.html", "venerdi202.gif");
MenuS[MenuS.length] = new Menu("B33", "A3", "B3", "Nativity", "Nativity", "", "/culture/nativity/index.html", "nativity201.gif");
MenuS[MenuS.length] = new Menu("B34", "A3", "B3", "St. Rocco", "St. Rocco", "", "/culture/srocco/index.html", "srocco201.gif");
MenuS[MenuS.length] = new Menu("C311", "B31", "C31", "Fair", "Allsaints Fair", "Allsaints fair on Nov. 1 in Valenzano.", "/culture/allsaintsfair/fair/index.html", "fiera211.gif");
MenuS[MenuS.length] = new Menu("C312", "B31", "C31", "Fair 1652", "Allsaints Fair of 1652", "An historical reference about Allsaints fair fron 1652.", "/culture/allsaintsfair/fair1652/index.html", "fiera212.gif");
MenuS[MenuS.length] = new Menu("C313", "B31", "C31", "Fair 1998", "Allsaints Fair of 1998", "Allsaints fair from 1998.", "/culture/allsaintsfair/fair1998/index.html", "fiera213.gif");
MenuS[MenuS.length] = new Menu("C314", "B31", "C31", "Fair History", "History of allsaints Fair by F. Cal&egrave;", "History of Allsaints fair in Valenzano.", "/culture/allsaintsfair/historybycale/index.html", "fiera214.gif");
MenuS[MenuS.length] = new Menu("C321", "B32", "C32", "Misteri", "Misteri Procession in Valenzano", "Misteri procession on Good Friday in Valenzano.", "/culture/goodfriday/misteri/indexit.html", "venerdi212.gif");
MenuS[MenuS.length] = new Menu("C322", "B32", "C32", "Chants", "Chants", "Traditional Good Friday Chants and Prayers in Valenzano", "/culture/goodfriday/chants/index.html", "venerdi211.gif");
MenuS[MenuS.length] = new Menu("C341", "B34", "C34", "Cult", "St. Rocco Cult", "Cult of St. Rocco and the 2000 Jubilee.", "/culture/srocco/roccosanto/indexit.html", "sroccocult211.gif");
MenuS[MenuS.length] = new Menu("C342", "B34", "C34", "St. Rocco 2000", "St. Rocco 2000", "St. Rocco celebration 2000 in Valenzano.", "/culture/srocco/srocco2000/indexit.html", "sroccofeast212.gif");

MenuS[MenuS.length] = new Menu("B41", "A4", "B4", "Pugliesi in America", "Regional Association of Pugliesi in America &mdash; ARPA", "The umbrella organization for Pugliesi in the Chicago area, united behind the St. Nicholas stendard.", "/orgs/arpa/index.html", "arpa202.gif");
MenuS[MenuS.length] = new Menu("B42", "A4", "B4", "St. Rocco of Valenzano", "Association St. Rocco of Valenzano", "Valenzanesi in the Chicago area celebrate their patron saint and their hometown heritage.", "/orgs/asrv/index.html", "asrv201.gif");
MenuS[MenuS.length] = new Menu("C411", "B41", "C41", "ARPA 2001", "ARPA 2001", "", "/orgs/arpa/arpa01/index.html", "");
MenuS[MenuS.length] = new Menu("C412", "B41", "C41", "ARPA 2000", "ARPA 2000", "", "/orgs/arpa/arpa00/index.html", "");
MenuS[MenuS.length] = new Menu("C413", "B41", "C41", "ARPA 1999", "ARPA 1999", "", "/orgs/arpa/arpa99/index.html", "");
MenuS[MenuS.length] = new Menu("C414", "B41", "C41", "ARPA 1998", "ARPA 1998", "", "/orgs/arpa/arpa98/index.html", "");
MenuS[MenuS.length] = new Menu("C421", "B42", "C42", "ASRV 2001", "ASRV 2001", "", "heritage/orgs/asrv/asrv01/index.html", "");
MenuS[MenuS.length] = new Menu("C422", "B42", "C42", "ASRV 2001", "ASRV 2000", "", "/orgs/asrv/asrv00/index.html", "");
MenuS[MenuS.length] = new Menu("C423", "B42", "C42", "ASRV 2001", "ASRV 1999", "", "/orgs/asrv/asrv99/index.html", "");
MenuS[MenuS.length] = new Menu("C424", "B42", "C42", "ASRV 2001", "ASRV 1998", "", "/orgs/asrv/asrv98/index.html", "");

MenuS[MenuS.length] = new Menu("B51", "A5", "B5", "Saints Calendar", "Saints Calendar", "Calendar of Roman Catholic saints and celebrations.", "/calendar/saints/index.html", "snicola.gif");

intMenuSMax = MenuS.length-1;

//---------------------------------------------------- END Heritage Map ---

