//
// 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
USEICONS = 0
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("<b>Home page</b>", "index.php")
  foldersTree.treeID = "Frameless"
  aux1 = insFld(foldersTree, gFld("About Us", "javascript:undefined"))
      insDoc(aux1, gLnk("S", "Company", "company.php"))
      insDoc(aux1, gLnk("S", "Map", "map.php"))
      insDoc(aux1, gLnk("S", "Job opportunities", "jobs.php"))
  aux1 = insFld(foldersTree, gFld("Products", "product.php"))
  aux1 = insFld(foldersTree, gFld("Solutions", "javascript:undefined"))
    aux2 = insFld(aux1, gFld("View by products Type", "javascript:undefined"))
      insDoc(aux2, gLnk("S", "Automotive", "solution.php?type=Automotive"))
      insDoc(aux2, gLnk("S", "Industrial", "solution.php?type=Industrial"))
      insDoc(aux2, gLnk("S", "Computer", "solution.php?type=Computer"))
	  insDoc(aux2, gLnk("S", "Consumer", "solution.php?type=Consumer"))
    aux2 = insFld(aux1, gFld("View by Function", "javascript:undefined"))
      insDoc(aux2, gLnk("S", "Accessories", "solution2.php?func=Accessories"))
      insDoc(aux2, gLnk("S", "Equipment", "solution2.php?func=Equipment"))
	  insDoc(aux2, gLnk("S", "Fixtures", "solution2.php?func=Fixtures"))
	  insDoc(aux2, gLnk("S", "Automation", "solution2.php?func=Automation"))
	  insDoc(aux2, gLnk("S", "Functional Tester", "solution2.php?func=Functional Tester"))
	  insDoc(aux2, gLnk("S", "ICT fixture", "solution2.php?func=ICT fixture"))
	  insDoc(aux2, gLnk("S", "Jig", "solution2.php?func=Jig"))
	  insDoc(aux2, gLnk("S", "System", "solution2.php?func=System"))
	  insDoc(aux2, gLnk("S", "Spare Parts", "solution2.php?func=Spare Parts"))
  aux1 = insFld(foldersTree, gFld("Service", "service.php"))
  aux1 = insFld(foldersTree, gFld("Download", "download.php"))
  aux1 = insFld(foldersTree, gFld("Contact us", "contact.php"))