//
// 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. 
//

// Configures whether the names of the nodes are links (or whether only the icons
// are links).
USETEXTLINKS = 1

// Configures whether the tree is fully open upon loading of the page, or whether
// only the root node is visible.
STARTALLOPEN = 0

// Specify if the images are in a subdirectory;
ICONPATH = ''


foldersTree = gFld("<i>Strikehome.com News</i>", "LatestNews.html")
  foldersTree.treeID = "Frameset"

//  aux1 = insFld(foldersTree, gFld("Sunway Graded League (Wed)", "501/recap.html"))
//    aux2 = insFld(aux1, gFld("Latest Weekly Results", "501/WeeklyResults.html"))
//     	insDoc(aux2, gLnk("R", "Upcoming Fixtures", "501/NextRounds.html"))
//     	insDoc(aux2, gLnk("R", "Sponsors", "http://www.harward-consulting.com"))
//     	insDoc(aux2, gLnk("R", "League Rules", "501/rules.html"))
//    aux2 = insFld(aux1, gFld("Weekly Individual Stats", "501/iwAboveAverage.html"))
//    	insDoc(aux2, gLnk("R", "High Game", "501/iwHighGame.html"))
//      	insDoc(aux2, gLnk("R", "High Series", "501/iwHighSeries.html"))
//      	insDoc(aux2, gLnk("R", "Most Strikes", "501/iwStrikes.html"))
//      	insDoc(aux2, gLnk("R", "Most Spares", "501/iwSpares.html"))
//      	insDoc(aux2, gLnk("R", "Clean Games", "501/iwCleanGames.html"))
//    aux2 = insFld(aux1, gFld("Weekly Team Stats", "501/twPerformance.html"))
////     	insDoc(aux2, gLnk("R", "Latest Standing", "501/LatestStanding.html"))
//     	insDoc(aux2, gLnk("R", "High Game", "501/twHighGame.html"))
//     	insDoc(aux2, gLnk("R", "High Series", "501/twHighSeries.html"))
//     	insDoc(aux2, gLnk("R", "Clean Games", "501/twCleanGames.html"))
//    aux2 = insFld(aux1, gFld("Season Individual Stats", "javascript:parent.op()"))
//      	insDoc(aux2, gLnk("R", "Best Average", "501/ISeasonAverage.html"))
//      	insDoc(aux2, gLnk("R", "Best High Game", "501/isHighGame.html"))
//      	insDoc(aux2, gLnk("R", "Best High Series", "501/isHighSeries.html"))
//      	insDoc(aux2, gLnk("R", "Best Strikers", "501/isStrikes.html"))
//      	insDoc(aux2, gLnk("R", "Best Spare Shooters", "501/isSpares.html"))
//      	insDoc(aux2, gLnk("R", "Best One Pin Shooters", "501/is1Pin.html"))
//      	insDoc(aux2, gLnk("R", "Best Split Conversions", "501/isSplit.html"))
//      	insDoc(aux2, gLnk("R", "Most Improved Players", "501/isImproved.html"))
//      	insDoc(aux2, gLnk("R", "Most Clean Games", "501/isCleanGames.html"))
//    aux2 = insFld(aux1, gFld("Season Team Stats", "javascript:parent.op()"))
//      	insDoc(aux2, gLnk("R", "Best High Game", "501/tsHighGame.html"))
//      	insDoc(aux2, gLnk("R", "Best High Series", "501/tsHighSeries.html"))
//      	insDoc(aux2, gLnk("R", "Most Clean Games", "501/tsCleanGames.html"))
//    aux2 = insFld(aux1, gFld("Team Information", "javascript:parent.op()"))
//      	insDoc(aux2, gLnk("R", "Team Schedules", "501/AllTeamSchedule.html"))
//      	insDoc(aux2, gLnk("R", "Team Lists", "501/TeamInfo.html"))

  aux1 = insFld(foldersTree, gFld("1U Harward League (Mon)", "101/recap.html"))
    aux2 = insFld(aux1, gFld("Latest Weekly Results", "101/WeeklyResults.html"))
     	insDoc(aux2, gLnk("R", "Upcoming Fixtures", "101/NextRounds.html"))
     	insDoc(aux2, gLnk("R", "Sponsors", "http://www.harward-consulting.com"))
     	insDoc(aux2, gLnk("R", "League Rules", "101/rules.html"))
    aux2 = insFld(aux1, gFld("Weekly Individual Stats", "101/iwAboveAverage.html"))
    	insDoc(aux2, gLnk("R", "High Game", "101/iwHighGame.html"))
      	insDoc(aux2, gLnk("R", "High Series", "101/iwHighSeries.html"))
    aux2 = insFld(aux1, gFld("Weekly Team Stats", "101/twPerformance.html"))
     	insDoc(aux2, gLnk("R", "High Game", "101/twHighGame.html"))
     	insDoc(aux2, gLnk("R", "High Series", "101/twHighSeries.html"))
    aux2 = insFld(aux1, gFld("Season Individual Stats", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Best Average", "101/ISeasonAverage.html"))
      	insDoc(aux2, gLnk("R", "Best High Game", "101/isHighGame.html"))
      	insDoc(aux2, gLnk("R", "Best High Series", "101/isHighSeries.html"))
       	insDoc(aux2, gLnk("R", "Most Improved Players", "101/isImproved.html"))
    aux2 = insFld(aux1, gFld("Season Team Stats", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Best High Game", "101/tsHighGame.html"))
      	insDoc(aux2, gLnk("R", "Best High Series", "101/tsHighSeries.html"))
    aux2 = insFld(aux1, gFld("Team Information", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Team Schedules", "101/AllTeamSchedule.html"))
      	insDoc(aux2, gLnk("R", "Team Lists", "101/TeamInfo.html"))

  aux1 = insFld(foldersTree, gFld("Tropicana Trios League (Fri)", "501/recap.html"))
    aux2 = insFld(aux1, gFld("Latest Weekly Results", "501/WeeklyResults.html"))
     	insDoc(aux2, gLnk("R", "Upcoming Fixtures", "501/NextRounds.html"))
//     	insDoc(aux2, gLnk("R", "Sponsors", "http://www.harward-consulting.com"))
//     	insDoc(aux2, gLnk("R", "League Rules", "501/rules.html"))
    aux2 = insFld(aux1, gFld("Weekly Individual Stats", "501/iwAboveAverage.html"))
    	insDoc(aux2, gLnk("R", "High Game", "501/iwHighGame.html"))
      	insDoc(aux2, gLnk("R", "High Series", "501/iwHighSeries.html"))
      	insDoc(aux2, gLnk("R", "Most Strikes", "501/iwStrikes.html"))
      	insDoc(aux2, gLnk("R", "Most Spares", "501/iwSpares.html"))
      	insDoc(aux2, gLnk("R", "Clean Games", "501/iwCleanGames.html"))
    aux2 = insFld(aux1, gFld("Weekly Team Stats", "501/twPerformance.html"))
//     	insDoc(aux2, gLnk("R", "Latest Standing", "501/LatestStanding.html"))
     	insDoc(aux2, gLnk("R", "High Game", "501/twHighGame.html"))
     	insDoc(aux2, gLnk("R", "High Series", "501/twHighSeries.html"))
     	insDoc(aux2, gLnk("R", "Clean Games", "501/twCleanGames.html"))
    aux2 = insFld(aux1, gFld("Season Individual Stats", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Best Average", "501/ISeasonAverage.html"))
      	insDoc(aux2, gLnk("R", "Best High Game", "501/isHighGame.html"))
      	insDoc(aux2, gLnk("R", "Best High Series", "501/isHighSeries.html"))
      	insDoc(aux2, gLnk("R", "Best Strikers", "501/isStrikes.html"))
      	insDoc(aux2, gLnk("R", "Best Spare Shooters", "501/isSpares.html"))
      	insDoc(aux2, gLnk("R", "Best One Pin Shooters", "501/is1Pin.html"))
      	insDoc(aux2, gLnk("R", "Best Split Conversions", "501/isSplit.html"))
      	insDoc(aux2, gLnk("R", "Most Improved Players", "501/isImproved.html"))
      	insDoc(aux2, gLnk("R", "Most Clean Games", "501/isCleanGames.html"))
    aux2 = insFld(aux1, gFld("Season Team Stats", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Best High Game", "501/tsHighGame.html"))
      	insDoc(aux2, gLnk("R", "Best High Series", "501/tsHighSeries.html"))
      	insDoc(aux2, gLnk("R", "Most Clean Games", "501/tsCleanGames.html"))
    aux2 = insFld(aux1, gFld("Team Information", "javascript:parent.op()"))
      	insDoc(aux2, gLnk("R", "Team Schedules", "501/AllTeamSchedule.html"))
      	insDoc(aux2, gLnk("R", "Team Lists", "501/TeamInfo.html"))


    //
    // Netscape 4.x needs the HREF to be non-empty to process other events such as open folder,
    // hence the need for the op function
    //
//  aux1 = insFld(foldersTree, gFld("Targets", "javascript:parent.op()"))
//      insDoc(aux1, gLnk("R", "Right frame", "http://www.treeview.net/treemenu/demopics/beenthere_edinburgh.gif"))
//      insDoc(aux1, gLnk("B", "New window", "http://www.treeview.net/treemenu/demopics/beenthere_london.jpg"))
//      insDoc(aux1, gLnk("T", "Whole window", "http://www.treeview.net/treemenu/demopics/beenthere_munich.jpg"))
//      insDoc(aux1, gLnk("S", "This frame", "http://www.treeview.net/treemenu/demopics/beenthere_athens.jpg"))
      //
      // The S target is required.
      // The \\\ is needed to escape the ' character for string arguments.
      // Also, note that if you define your function in the parent frame, use javascript:parent.myfunc
//      insDoc(aux1, gLnk("S", "JavaScript link", "javascript:alert(\\\'This JavaScript link simply calls the built-in alert function,\\\\nbut you can define your own function.\\\')"))

//  aux1 = insFld(foldersTree, gFld("Other icons", "javascript:parent.op()"))
//  aux1.iconSrc = ICONPATH + "diffFolder.gif"
//  aux1.iconSrcClosed = ICONPATH + "diffFolder.gif"
//    docAux = insDoc(aux1, gLnk("B", "D/L Treeview", "http://www.treeview.net/treemenu/download.asp"))
//    docAux.iconSrc = ICONPATH + "diffDoc.gif"

//  aux1 = insFld(foldersTree, gFld("<font color=red>F</font><font color=blue>o</font><font color=pink>r</font><font color=green>m</font><font color=red>a</font><font color=blue>t</font><font color=brown>s</font>", "javascript:parent.op()"))
//    docAux = insDoc(aux1, gLnk("R", "<div class=specialClass>CSS Class</div>", "http://www.treeview.net/treemenu/demopics/beenthere_newyork.jpg"))

