//
// 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>Categories</b>", "demoFrameless.html")
  foldersTree.treeID = "Frameless"
  aux1 = insFld(foldersTree, gFld("Marquees", "javascript:undefined"))
    aux2 = insFld(aux1, gFld("Peg and Pole Marquees", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_25"))
      aux2 = insFld(aux1, gLnk("S", "Frame Marquees", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_40"))
      aux2 = insFld(aux1, gLnk("S", "Older Marquees", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_112"))
     aux2 = insFld(aux1, gFld("Marquee Packages", "javascript:undefined"))
      aux3 = insFld(aux2, gFld("Best Appearance Packages", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=")) 
      
      aux4 =  insFld(aux3, gFld("Peg and Pole", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_230_235_237")) 
      aux4 = insFld(aux3, gFld("Framed", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_230_235_236")) 
      
      
      aux3 = insDoc(aux2, gLnk("S", "Entrance, Kitchen & Toilet Marquees", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=41_230_227"))
      
  aux1 = insFld(foldersTree, gFld("Jukeboxes, Sound & Lighting", "javascript:undefined"))
    aux2 = insFld(aux1, gFld("Jukeboxes and Karaoke", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_80"))
    aux2 =  insFld(aux1, gFld("Disco Lighting", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_32"))
    
    aux3 = insFld(aux2, gFld("Sound Active (Intel)", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_32_195"))
    aux3 = insFld(aux2, gFld("Disco Light Accessories", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_32_34"))
    aux3 = insFld(aux2, gFld("Disco Light Packages", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_32_78"))
    
    aux2 =  insFld(aux1, gFld("PA Systems", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_114"))
    aux2 = insFld(aux1, gFld("Speakers and Amplifiers", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_31"))
    aux2 = insFld(aux1, gFld("Microphones", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_131"))
    aux2 = insFld(aux1, gFld("Data Projectors", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=59_196"))
    
    
     aux1 = insFld(foldersTree, gFld("Chairs, Tables & Linen", "javascript:undefined"))
     
     aux2 = insFld(aux1, gFld("Chairs", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_54"))
     aux2 = insFld(aux1, gFld("Tables", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_55"))
     aux2 = insFld(aux1, gFld("Linen", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_224"))
     aux3 = insFld(aux2, gFld("Table Linen and Napkins", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_224_56"))
     aux3 = insFld(aux2, gFld("Table Runners", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_224_223"))
     aux3 = insFld(aux2, gFld("Chair Covers & Sashes", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=23_224_225"))
     
     aux1 = insFld(foldersTree, gFld("Glassware and Catering Equip", "javascript:undefined"))
     
     aux2 = insFld(aux1, gFld("Glassware", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_22"))
     aux2 = insFld(aux1, gFld("Cutlery", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_238"))
     aux2 = insFld(aux1, gFld("Crokery", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_43"))
     aux2 = insFld(aux1, gFld("Catering Equipment", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_44"))
     aux2 = insFld(aux1, gFld("Urns - Water & Coffee", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_242"))
     aux2 = insFld(aux1, gFld("BBQs and Spits", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_48"))
     aux2 = insFld(aux1, gFld("Bar Accessories", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_45"))
     aux2 = insFld(aux1, gFld("Platters & Serving Dishes", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_46"))
     aux2 = insFld(aux1, gFld("Bowls", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_81"))
	 aux2 = insFld(aux1, gFld("Serving Utensils", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=33_47"))
    
     
     aux1 = insFld(foldersTree, gFld("Heaters & Electrical", "javascript:undefined"))
      
     aux2 = insFld(aux1, gFld("Heaters", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=24_49"))
     aux2 = insFld(aux1, gFld("Lighting & Fairy Lights", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=24_50"))
     aux2 = insFld(aux1, gFld("Electrical Equipment", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=24_51"))
     
     aux1 = insFld(foldersTree, gFld("Vases & Decor Equipment", "javascript:undefined"))
     
     aux2 = insFld(aux1, gFld("Vases", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_73"))
     aux2 = insFld(aux1, gFld("Candle Holders", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_130"))
     aux2 = insFld(aux1, gFld("Wedding and Function Decorations", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75"))
     
     aux3 = insFld(aux2, gFld("Ceremony/ Reception Decor", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75_160"))
     aux3 = insFld(aux2, gFld("Chair Cover/ Sashs", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75_128"))
     aux3 = insFld(aux2, gFld("Fairy Lights", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75_157"))
     aux3 = insFld(aux2, gFld("Wedding Arches", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75_159"))
     aux3 = insFld(aux2, gFld("Red Carpet", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_75_233"))
     
     
     aux2 = insFld(aux1, gFld("Plants and Trees", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_79"))
     aux2 = insFld(aux1, gFld("Examples & Photos", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_129"))
     
     aux3 = insFld(aux2, gFld("Table Settings", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_129"))
     aux3 = insFld(aux2, gFld("Centre Pieces", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=72_179"))
     
     aux1 = insFld(foldersTree, gFld("Other Equipment", "javascript:undefined"))
     
     aux2 = insFld(aux1, gFld("Flooring & Staging", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=57_63"))
     aux2 = insFld(aux1, gFld("Outdoor Equipment", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=57_64"))
     aux2 = insFld(aux1, gFld("Fly Guys", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=57_241"))
     aux2 = insFld(aux1, gFld("Toilets", "http://partywarehouse.co.nz/zen/index.php?main_page=index&cPath=57_62"))
     
     
     