//
// Copyright (c) 2006 by Conor O'Mahony.
// For enquiries, please email GubuSoft@GubuSoft.com.
// Please keep all copyright notices below.
// Original author of TreeView script is Marcelino Martins.
//
// This document includes the TreeView script.
// The TreeView script can be found at http://www.TreeView.net.
// The script is Copyright (c) 2006 by Conor O'Mahony.
//
// You can find general instructions for this file at www.treeview.net.
//

USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
ICONPATH = 'scripts/icons/'
WRAPTEXT = 1
PRESERVESTATE = 1

//
// The following code constructs the tree.  This code produces a tree that looks like:
// 
// Tree Options
//  - Expand for example with pics and flags
//    - United States
//      - Boston
//      - Tiny pic of New York City
//      - Washington
//    - Europe
//      - London
//      - Lisbon
//  - Types of node
//    - Expandable with link
//      - London
//    - Expandable without link
//      - NYC
//    - Opens in new window
//

foldersTree = gFld("Home", "index.htm")
  foldersTree.treeID = "MarlandMain"
	insDoc(foldersTree, gLnk("S", "About", "family/about.htm"))
 	aux1 = insFld(foldersTree, gFld("History", "javascript:undefined"))
      	insDoc(aux1, gLnk("S", "Origins", "family/origin.htm"))
      	insDoc(aux1, gLnk("S", "In print", "family/histories_in_print.htm"))
      	aux2 = insFld(aux1, gFld("Early Marlands", "javascript:undefined"))
    		aux3 = insDoc(aux2, gLnk("S", "Lancashire", "history/marland_of_marland.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Surrey", "history/merland_of_banstead.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Somerset", "history/merland_of_orchardleigh.htm"))
      	insDoc(aux1, gLnk("S", "Biographies", "family/notable_marlands.htm"))
      	insDoc(aux1, gLnk("S", "Heraldry", "family/heraldry.htm"))
      	insDoc(aux1, gLnk("S", "Marlandia", "family/marlandia.htm"))
  	aux1 = insFld(foldersTree, gFld("Where they were", "javascript:undefined"))
      	insDoc(aux1, gLnk("S", "In the Census", "family/distribution.htm"))
      	aux2 = insFld(aux1, gFld("Maps", "javascript:undefined"))
    		aux3 = insDoc(aux2, gLnk("S", "Parishes", "maps/parishes-map.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "SE Lancs", "maps/bainesSE-LAN-1824.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Longdendale", "maps/stockdale-mottram-1794.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Ashton", "maps/baines-ashton-1824.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Rochdale", "maps/fishwick-rochdale.htm"))
  		  	aux3 = insFld(aux2, gFld("Speed", "javascript:undefined"))
	      		insDoc(aux3, gLnk("S", "Lancs", "maps/speed-lancs-1610.htm"))
	      		insDoc(aux3, gLnk("S", "Surrey", "maps/speed-surrey-1610.htm"))
	      		insDoc(aux3, gLnk("S", "Somerset", "maps/speed-somerset-1610.htm"))
      	insDoc(aux1, gLnk("S", "Locations", "family/marlandplaces.htm"))
  	aux1 = insFld(foldersTree, gFld("Parish records", "javascript:undefined"))
    	aux2 = insDoc(aux1, gLnk("S", "Parish map", "maps/parishes-map.htm"))
    	aux2 = insDoc(aux1, gLnk("S", "Parish list", "family/parish-list.htm"))
    	aux2 = insFld(aux1, gFld("Baptisms", "javascript:undefined"))
			aux3 = insFld(aux2, gFld("Ashton", "javascript:undefined"))
	      		insDoc(aux3, gLnk("S", "St Michl", "vital_records/AuL-bap1595-1720.htm"))
				insDoc(aux3, gLnk("S", "Others", "vital_records/AuLdau-bap.htm"))
    	aux2 = insFld(aux1, gFld("Marriages", "javascript:undefined"))
			aux3 = insFld(aux2, gFld("Ashton", "javascript:undefined"))
	      		insDoc(aux3, gLnk("S", "St Michl", "vital_records/AuL-mar1595-1837.htm"))
				insDoc(aux3, gLnk("S", "Others", "vital_records/AuLdau-mar.htm"))
    		aux3 = insDoc(aux2, gLnk("S", "Bolton", "vital_records/BOLton-mar.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Bury", "vital_records/BURy-mar.htm"))
    		aux3 = insFld(aux2, gFld("Deane", "javascript:undefined"))
      			insFld(aux3, gFld("St Mary", "vital_records/DEAne-mar.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/DEAdau-mar.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Eccles", "vital_records/ECCles-mar.htm"))
    		aux3 = insFld(aux2, gFld("Leigh", "javascript:undefined"))
      			insFld(aux3, gFld("St Mary", ""))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/LEIdau-mar.htm"))
  		  	aux3 = insDoc(aux2, gLnk("S", "Leyland", "vital_records/LEYland-mar1870-1910.htm"))
    		aux3 = insFld(aux2, gFld("Manchester", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "Cathedral", "vital_records/MANcath-mar.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/MANdau-mar.htm"))
    		aux3 = insDoc(aux2, gLnk("S", "Middleton", "vital_records/MIDdleton-mar.htm"))
    		aux3 = insFld(aux2, gFld("Mottram", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St Michl", "vital_records/MOT-mar1838-1870.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/MOTdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Oldham", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St Mary", "vital_records/OLDham-mar1837-1900.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/OLDdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Preston", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St John", "vital_records/PRestoN-mar1837-1900.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/PRNdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Prestwich", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St Mary", "vital_records/PREstwich-mar1837-1900.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/PREdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Rochdale", "javascript:undefined"))
      			insFld(aux3, gFld("St Chad", ""))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/ROCdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Saddleworth", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St Chad", "vital_records/SADdleworth-mar.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/SADdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Stockport", "javascript:undefined"))
      			insDoc(aux3, gLnk("S", "St Mary", "vital_records/STO-mar1837-1900.htm"))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/STOdau-mar.htm"))
    		aux3 = insFld(aux2, gFld("Wigan", "javascript:undefined"))
      			insFld(aux3, gFld("All Saints", ""))
	      		insDoc(aux3, gLnk("S", "Others", "vital_records/WIGdau-mar.htm"))
    		aux3 = insDoc(aux2, gLnk("S", "Outliers", "vital_records/outlying-mar.htm"))
    	aux2 = insFld(aux1, gFld("Burials", "javascript:undefined"))
			aux3 = insFld(aux2, gFld("Ashton", "javascript:undefined"))
	      		insDoc(aux3, gLnk("S", "St Michl", "vital_records/AuL-bur1596-1719.htm"))
				insDoc(aux3, gLnk("S", "Others", "vital_records/AuLdau-bur.htm"))
    	aux2 = insFld(aux1, gFld("SE England", "javascript:undefined"))
      		insDoc(aux2, gLnk("S", "Banstead", "vital_records/BAN-PR.htm"))
  	aux1 = insFld(foldersTree, gFld("BMD Registry", "javascript:undefined"))
      	insDoc(aux1, gLnk("S", "Births", "vital_records/GRO-births1.htm"))
      	insDoc(aux1, gLnk("S", "Marriages", "vital_records/GRO-marriages1837-1850.htm"))
  	aux1 = insFld(foldersTree, gFld("Documents", "javascript:undefined"))
      	insDoc(aux1, gLnk("S", "Wills/admons", "archives/will-list.htm"))
      	insDoc(aux1, gLnk("S", "Service", "archives/A2Adocuments-service.htm"))
      	insDoc(aux1, gLnk("S", "Court/land", "archives/A2Adocuments-other.htm"))
  	aux1 = insFld(foldersTree, gFld("Memorials", "javascript:undefined"))
      	insDoc(aux1, gLnk("S", "Ashton", "family/AuL-memorials.htm"))
      	insDoc(aux1, gLnk("S", "Hollinwood", "family/Hollinwood-memorials.htm"))
    insDoc(foldersTree, gLnk("S", "Forum", "family/forum.htm"))
  	aux1 = insFld(foldersTree, gFld("Gatherings", "javascript:undefined"))
		insDoc(aux1, gLnk("S", "Information", "family/gatherings.htm"))
      	insDoc(aux1, gLnk("S", "2002", "gatherings/gathering2002.htm"))
      	insDoc(aux1, gLnk("S", "2004", "gatherings/gathering2004.htm"))
      	insDoc(aux1, gLnk("S", "2005", "gatherings/gathering2005.htm"))
      	insDoc(aux1, gLnk("S", "2006", "gatherings/gathering2006.htm"))
      	insDoc(aux1, gLnk("S", "2007", "gatherings/gathering2007.htm"))
  	aux1 = insFld(foldersTree, gFld("Albums", "javascript:undefined"))
		insDoc(aux1, gLnk("S", "Album 1", "gallery/album1.htm"))
      	insDoc(aux1, gLnk("S", "Album 2", "gallery/album2.htm"))
      	insDoc(aux1, gLnk("S", "Album 3", "gallery/album3.htm"))
      	insDoc(aux1, gLnk("S", "Album 4", "gallery/album4.htm"))
      	insDoc(aux1, gLnk("S", "Album 5", "gallery/album5.htm"))
    insDoc(foldersTree, gLnk("S", "Links & sources", "family/links.htm"))