//
// 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.
//
// Additions and changes for CymbelineObservatory.org.uk
// by C.Longthorn, June 2009
//

// Decide if the names are links or just the icons
USETEXTLINKS = 1  //replace 0 with 1 for hyperlinks

// Decide if the tree is to start all open or just showing the root folders
STARTALLOPEN = 0 //replace 0 with 1 to show the whole tree

HIGHLIGHT = 1

foldersTree = gFld("<i>Home</i>", "../HomeFrame.html")
  foldersTree.treeID = "Funcs"
  aux1 = insFld(foldersTree, gFld("About Me", "../About Me/AboutMe.html"))
      insDoc(aux1, gLnk("R", "Location", "../About Me/Location/Location.html"))
      insDoc(aux1, gLnk("R", "Contact Me", "../About Me/Contact Me/ContactMe.html"))
  aux1 = insFld(foldersTree, gFld("Observatory", "../Observatory/observatory.html"))
	  insDoc(aux1, gLnk("R", "Original Build", "../Observatory/Original Build/album/index.html"))
	  insDoc(aux1, gLnk("R", "New Shutters", "../Observatory/New Shutters/album/index.html"))
          insDoc(aux1, gLnk("R", "Fibreglass Dome", "../Observatory/Fibreglass Dome/album/index.html"))
  aux1 = insFld(foldersTree, gFld("Equipment", "javascript:parent.op()"))
	  insDoc(aux1, gLnk("R", "Current", "../Equipment/Current/equipment.html"))
	  insDoc(aux1, gLnk("R", "Old Stuff", "../Equipment/Old Stuff/equipment.html"))
          aux2 = insFld(aux1, gFld("Projects", "../Equipment/Projects/Projects.html"))
            insDoc(aux2, gLnk("R", "Crayford Focuser", "../Equipment/Projects/Crayford Focuser/CrayfordFocuser.html"))
			insDoc(aux2, gLnk("R", "LX200 Motorised Focuser", "../Equipment/Projects/LX200MotorisedFocuser/LX200MotorisedFocuser.html"))
  aux1 = insFld(foldersTree, gFld("Observations", "../Observations/index.html"))
          aux2 = insFld(aux1, gFld("Deep Sky", "../Observations/Deep Sky/Deep Sky.html"))
            insDoc(aux2, gLnk("B", "Latest", "../Observations/Deep Sky/Latest/album/index.html"))
	    insDoc(aux2, gLnk("B", "Previous", "../Observations/Deep Sky/Previous/album/index.html"))
          aux2 = insFld(aux1, gFld("Solar System", "../Observations/Solar System/Solar System.html"))
            insDoc(aux2, gLnk("B", "Latest", "../Observations/Solar System/Latest/album/index.html"))
	    insDoc(aux2, gLnk("B", "Previous", "../Observations/Solar System/Previous/album/index.html"))
  insDoc(foldersTree, gLnk("B", "Blog", "../Weblog/index.php"))	// this is the only one that opens in a new window or tab
  insDoc(foldersTree, gLnk("R", "Links", "../Links/Links.html"))
  insDoc(foldersTree, gLnk("R", "Site History", "../Site History/SiteHistory.html"))
  insDoc(foldersTree, gLnk("R", "Credits", "../Credits/Credits.html"))

  // If your tree instead of the regular http links has "javascript:function(arg)"
  // links, and the type of the argument is string, special care is needed regarding
  // the quotes and double quotes. Please use exactly the same kind of 
  // quotes or double quotes used in this example (they change from folder to document).
  // Use the exact same number of backslashes for escaping the (double)quote 
  // characters, and pay attention not only to the (double)quotes surrouding the 
  // strings, but also to any (double)quote characters inside of that string

  // If you are going to use a frameless layout, you will need to move the functions 
  // exampleFunction and windowWithoutToolbar to the main page and change
  // parent.functionname to window.functionname in this file

  ////Note the "S" target in the first argument of gLnk
  //aux1 = insFld(foldersTree, gFld("<i>javascript:</i> links", "javascript:parent.op()"))
  //    //Use \" to delimit your string arguments and \\\" inside 
  //	  insDoc(aux1, gLnk("S", "Window w/o bars", "javascript:parent.windowWithoutToolbar(\\\'http://www.treeview.net/treemenu/demopics/beenthere_tuscany.gif\\\', 410, 415)"))
  //    //Use \\\' to delimit your string arguments and \\\\\\' inside
  //	  //Double quote characters (") are not allowed in the string argument
  //	  insDoc(aux1, gLnk("S", "A <i>js:</i> doc", "javascript:parent.exampleFunction(\\\'Special care with: &quot; and \\\\\\'\\\')"))
  //	  //Single quote characters (') are not allowed in the string argument but you can replace them with &#39;
  //	  aux2 = insFld(aux1, gFld("A <i>js:</i> folder", "javascript:parent.exampleFunction(\"Take special care with: \\\" and &#39;\")"))


