//
// 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
ICONPATH = '/images/icons/'
PAGENAME = "MaintLineCard.php"

//
// 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>Line Card</b>", "javascript:parent.op()")
  foldersTree.treeID = "Frameless"

  aux1 = insFld(foldersTree, gFld("All Manufacturers", "LineCard.php?ID=All&Desc=All Manufacturers"))
  aux1 = insFld(foldersTree, gFld("Decorative", ""))
    aux2 = insFld(aux1, gFld("Chandeliers/Pendants", "LineCard.php?ID=38&Desc=Decorative - Chandeliers/Pendants"))
    aux2 = insFld(aux1, gFld("Ceiling", "LineCard.php?ID=39&Desc=Decorative - Ceiling"))
    aux2 = insFld(aux1, gFld("Sconces", "LineCard.php?ID=40&Desc=Decorative - Sconces"))

aux1 = insFld(foldersTree, gFld("Controls", ""))
    aux2 = insFld(aux1, gFld("Dimming/Theatrical", "LineCard.php?ID=1&Desc=Controls - Dimming/Theatrical"))
    aux2 = insFld(aux1, gFld("Low Voltage Switching", "LineCard.php?ID=2&Desc=Controls - Low Voltage Switching"))
    aux2 = insFld(aux1, gFld("Occupancy Sensors", "LineCard.php?ID=3&Desc=Controls - Occupancy Sensors"))
    aux2 = insFld(aux1, gFld("Smart Systems", "LineCard.php?ID=4&Desc=Controls - Smart Systems"))

  aux1 = insFld(foldersTree, gFld("Downlighting", ""))
	aux2 = insFld(aux1, gFld("Architectural", "LineCard.php?ID=5&Desc=Downlighting - Architectural"))
    aux2 = insFld(aux1, gFld("Commercial", "LineCard.php?ID=6&Desc=Downlighting - Commercial"))
    aux2 = insFld(aux1, gFld("Residential", "LineCard.php?ID=7&Desc=Downlighting - Residential"))

  aux1 = insFld(foldersTree, gFld("Emergency", ""))
    aux2 = insFld(aux1, gFld("Architectural", "LineCard.php?ID=8&Desc=Emergency - Architectural"))
    aux2 = insFld(aux1, gFld("Commercial", "LineCard.php?ID=9&Desc=Emergency - Commercial"))
    aux2 = insFld(aux1, gFld("Industrial", "LineCard.php?ID=10&Desc=Emergency - Industrial"))
    aux2 = insFld(aux1, gFld("Inverters", "LineCard.php?ID=11&Desc=Emergency - Inverters"))
    aux2 = insFld(aux1, gFld("Life Safety", "LineCard.php?ID=12&Desc=Emergency - Life Safety"))

  aux1 = insFld(foldersTree, gFld("Fluorescent", ""))
    aux2 = insFld(aux1, gFld("Architectural", "LineCard.php?ID=13&Desc=Flourescent - Architectural"))
    aux2 = insFld(aux1, gFld("Commercial", "LineCard.php?ID=14&Desc=Flourescent - Commercial"))
    aux2 = insFld(aux1, gFld("Industrial", "LineCard.php?ID=15&Desc=Flourescent - Industrial"))

  aux1 = insFld(foldersTree, gFld("Hazardous Location", "LineCard.php?ID=16&Desc=Hazardous Location"))

  aux1 = insFld(foldersTree, gFld("Healthcare", "LineCard.php?ID=17&Desc=Healthcare"))

  aux1 = insFld(foldersTree, gFld("House of Worship", "LineCard.php?ID=18&Desc=House of Worship"))

  aux1 = insFld(foldersTree, gFld("Industrial", ""))
    aux2 = insFld(aux1, gFld("Fluorescent", "LineCard.php?ID=19&Desc=Industrial - Fluorescent"))
    aux2 = insFld(aux1, gFld("HID", "LineCard.php?ID=20&Desc=Industrial - HID"))

  aux1 = insFld(foldersTree, gFld("Modular Wiring", "LineCard.php?ID=21&Desc=Modular Wiring"))

  aux1 = insFld(foldersTree, gFld("Municipal Roadway", "LineCard.php?ID=24&Desc=Municipal Roadway"))

  aux1 = insFld(foldersTree, gFld("Outdoor", ""))
    aux2 = insFld(aux1, gFld("Area", "LineCard.php?ID=25&Desc=Outdor - Area"))
    aux2 = insFld(aux1, gFld("Arms", "LineCard.php?ID=29&Desc=Outdor - Arms"))
    aux2 = insFld(aux1, gFld("Bases", "LineCard.php?ID=42&Desc=Outdor - Bases"))
	aux2 = insFld(aux1, gFld("Bollards", "LineCard.php?ID=26&Desc=Outdor - Bollards"))
    aux2 = insFld(aux1, gFld("Floods", "LineCard.php?ID=27&Desc=Outdor - Floods"))
    aux2 = insFld(aux1, gFld("In Grade/Under Water", "LineCard.php?ID=28&Desc=Outdor - In Grade/Under Water"))
    aux2 = insFld(aux1, gFld("Poles", "LineCard.php?ID=30&Desc=Outdor - Poles"))
    aux2 = insFld(aux1, gFld("Wall Mount", "LineCard.php?ID=31&Desc=Outdor - Wall Mount"))
  aux1 = insFld(foldersTree, gFld("Rope Lighting", "LineCard.php?ID=41&Desc=Rope Lighting"))
  aux1 = insFld(foldersTree, gFld("Track Lighting", ""))
    aux2 = insFld(aux1, gFld("Cable Lighting", "LineCard.php?ID=32&Desc=Track Lighting - Cable Lighting"))
    aux2 = insFld(aux1, gFld("General Purpose", "LineCard.php?ID=33&Desc=Track Lighting - General Purpose"))
    aux2 = insFld(aux1, gFld("Rail Systems", "LineCard.php?ID=34&Desc=Track Lighting - Rail Systems"))

  aux1 = insFld(foldersTree, gFld("Vandal Resistant", "LineCard.php?ID=35&Desc=Vandal Resistant"))

