// You can find instructions for this file at http://www.treeview.net
//Update web/menu.js!!
//auxl, auxla, auxlb, .. are node IDS, They help with using functions such as openFolderInTree and also fix the error associated linking to web.  See here for the rules of working with them http://www.treeview.net/tv/instructions.asp#IDs
//HIGHLIGHT=1, highlights the text on the active page, also changed var HIGHLIGHT_COLOR, var HIGHLIGHT_BG in the ftiens.js.  Change the Highlight_color, and Highlight_BG in the ftiens.js under the web folder too.
//Environment variables are usually set at the top of this file.
// us "B" if you want to open a new window and us "S" to open in same window
USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 0
WRAPTEXT = 1
PRESERVESTATE = 1
HIGHLIGHT = 0
ICONPATH="/GeoComm/template_ft_images/"
var url = document.location.hostname;
var path = document.location.pathname;
var subpath = path.substring(0,3);
var server = url.substring(0,3);


  foldersTree = gFld("<b>GeoCommunicator</b>", "/GeoComm/index.htm")
  foldersTree.xID = "ftA1"  
  aux1 = insFld(foldersTree, gLnk("S", "<b>About</b>", "/GeoComm/about.htm"))
  aux1.xID = "ftA2"
  aux1 = insFld(foldersTree, gLnk("S", "<b>What's New</b>", "/GeoComm/whatsnew.htm"))
  aux1.xID = "ftA3"
  aux1 = insFld(foldersTree, gFld("<b>Interactive Maps</b>", "javascript:parent.openFolderInTree(ftA4)"))
  aux1.xID = "ftA4"
		aux1a = insFld(aux1, gLnk("B", "PLSS", "/blmMap/MapLSIS.jsp"))
		aux1a.xID = "ftA5"
		aux1a = insFld(aux1, gLnk("B", "Energy", "/blmMap/Map.jsp?MAP=Energy"))
		aux1a.xID = "ftA6"
		/*aux1a = insFld(aux1, gLnk("B", "Healthy Lands", "/blmMap/Map.jsp?MAP=HealthyLands"))
		aux1a.xID = "ftA7"
		aux1a = insFld(aux1, gLnk("B", "Land Status", "/blmMap/Map.jsp?MAP=LAND"))
		aux1a.xID = "ftA8"
		aux1a = insFld(aux1, gLnk("B", "Land Use Permits", "/blmMap/Map.jsp?MAP=SM"))
		aux1a.xID = "ftA9"
		aux1a = insFld(aux1, gLnk("B", "Mining Claims", "/blmMap/Map.jsp?MAP=MC"))
		aux1a.xID = "ftA10"*/
		aux1a = insFld(aux1, gLnk("B", "Rangeland", "/blmMap/Map.jsp?MAP=GA"))
		aux1a.xID = "ftA11"
		aux1a = insFld(aux1, gLnk("B", "Site Mapper", "/blmMap/MapSiteMapper.jsp"))
		aux1a.xID = "ftA12"
		/*aux1a = insFld(aux1, gLnk("B", "Solid Minerals", "/blmMap/Map.jsp?MAP=SM"))
		aux1a.xID = "ftA13"*/
  /*aux1 = insFld(foldersTree, gFld("<b>Land & Minerals</b>", "/GeoComm/landmin/home/index.htm"))
  aux1.xID = "ftA14"
		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/landmin/home/index.htm"))
		aux1a.xID = "ftA15"
		aux1a = insFld(aux1, gLnk("S", "About", "/GeoComm/landmin/home/landmin_about.htm"))
		aux1a.xID = "ftA16"
		aux1a = insFld(aux1, gLnk("B", "Map Viewer", "/NILS-PARCEL2/map.jsp"))
		aux1a.xID = "ftA17"
		aux1a = insFld(aux1, gLnk("B", "How-to-Guide", "/GeoComm/reference/NILS_GC_How_to_use_guide_LM_2007-LM.pdf"))
		aux1a.xID = "ftA18"
		aux1a = insFld(aux1, gFld("Viewer Help", "/GeoComm/landmin/help/overview.htm"))
		aux1a.xID = "ftA19"
			aux1b = insFld(aux1a, gFld("Map Tools", "/GeoComm/landmin/help/map_tools.htm"))
			aux1b.xID = "ftA20"
			aux1b = insFld(aux1a, gFld("Search Tools", "/GeoComm/landmin/help/search_tools.htm"))
			aux1b.xID = "ftA21"
			aux1b = insFld(aux1a, gFld("Identify Info", "/GeoComm/landmin/help/identify_info.htm"))
			aux1b.xID = "ftA22"
			aux1b = insFld(aux1a, gFld("Find & Derive LD", "/GeoComm/landmin/help/georss.htm"))
			aux1b.xID = "ftA23"*/

  /*aux1 = insFld(foldersTree, gFld("<b>Federal Lands</b>", "/GeoComm/fedland/home/index.htm"))
  aux1.xID = "ftA24"
  		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/fedland/home/index.htm"))
		aux1a.xID = "ftA25"
		aux1a = insFld(aux1, gLnk("S", "About", "/GeoComm/fedland/home/fedland_about.htm"))
		aux1a.xID = "ftA26"
		aux1a = insFld(aux1, gLnk("B", "Map Viewer", "/NILS-PARCEL2/map.jsp?MAP=LAND"))
		aux1a.xID = "ftA27"*/
  
  aux1 = insFld(foldersTree, gFld("<b>Land Survey Info.</b>", "/GeoComm/lsis_home/home/index.htm"))
  aux1.xID = "ftA28"
		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/lsis_home/home/index.htm"))
		aux1a.xID = "ftA29"
		/*aux1a = insFld(aux1, gLnk("S", "About", "/GeoComm/lsis_home/home/about.htm"))
		aux1a.xID = "ftA30"*/
		aux1a = insFld(aux1, gLnk("B", "Map Viewer", "/blmMap/MapLSIS.jsp"))
		aux1a.xID = "ftA31"
		aux1a = insFld(aux1, gLnk("B", "GCDB", "http://www.blm.gov/wo/st/en/prog/more/gcdb.html"))
		aux1a.xID = "ftA32"
		aux1a = insFld(aux1, gLnk("B", "How-to-Guide", "/GeoComm/reference/GC_How_to_use_guide_LSIS.pdf"))
		aux1a.xID = "ftA33"
		aux1a = insFld(aux1, gFld("Viewer Help", "/GeoComm/lsis_home/help/overview.htm"))
		aux1a.xID = "ftA34"
			aux1b = insFld(aux1a, gFld("Map Tools", "/GeoComm/lsis_home/help/map_tools.htm"))
			aux1b.xID = "ftA35"
			aux1b = insFld(aux1a, gFld("Download", "/GeoComm/lsis_home/help/ts_download.htm"))
			aux1b.xID = "ftA36"
			/*aux1b = insFld(aux1a, gFld("Select Township", "/GeoComm/lsis_home/help/ts_select.htm"))
			aux1b.xID = "ftA37"*/
			aux1b = insFld(aux1a, gLnk("B", "GCDB Standards", "http://www.blm.gov/wo/st/en/prog/more/gcdb/blm_gcdb_standards.html" ))
			aux1b.xID = "ftA38"


//WWW is using different configs for township geocoder
if (server == "dev" || server == "tes"){
  aux1 = insFld(foldersTree, gFld("<b>Township GeoCoder</b>", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
  aux1.xID = "ftA39"
      		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
   		aux1a.xID = "ftA40"
   		aux1a = insFld(aux1, gLnk("B", "GeoCoder", "/NIFC/twnship-range_input.htm"))
   		aux1a.xID = "ftA41"
   		aux1a = insFld(aux1, gLnk("B", "How-to-Guide", "/GeoComm/reference/how_to_township_decoder.pdf"))
   		aux1a.xID = "ftA42"
   		aux1a = insFld(aux1, gLnk("S", "Help", "/GeoComm/lsis_home/townshipdecoder/help.htm"))
		aux1a.xID = "ftA43"
}
else if (server == "web")
{
   	aux1 = insFld(foldersTree, gFld("<b>Township GeoCoder</b>", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
      	aux1.xID = "ftA44"
      		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
   		aux1a.xID = "ftA45"
   		aux1a = insFld(aux1, gLnk("B", "GeoCoder", "/NIFC/twnship-range_input.htm"))
   		aux1a.xID = "ftA46"
   		aux1a = insFld(aux1, gLnk("B", "How-to-Guide", "/GeoComm/reference/how_to_township_decoder.pdf"))
   		aux1a.xID = "ftA47"
   		aux1a = insFld(aux1, gLnk("S", "Help", "/GeoComm/lsis_home/townshipdecoder/help.htm"))
		aux1a.xID = "ftA48"
}
else
{
   	aux1 = insFld(foldersTree, gFld("<b>Township GeoCoder</b>", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
        aux1.xID = "ftA49"
        	aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/lsis_home/townshipdecoder/index.htm"))
      		aux1a.xID = "ftA50"
      		aux1a = insFld(aux1, gLnk("B", "GeoCoder", "/NIFC/twnship-range_input.jsp"))
      		aux1a.xID = "ftA51"
      		aux1a = insFld(aux1, gLnk("B", "How-to-Guide", "/GeoComm/reference/how_to_township_decoder.pdf"))
      		aux1a.xID = "ftA52"
      		aux1a = insFld(aux1, gLnk("S", "Help", "/GeoComm/lsis_home/townshipdecoder/help.htm"))
		aux1a.xID = "ftA53"
}

/*aux1 = insFld(foldersTree, gFld("<b>Digital Rights of Way</b>", "/GeoComm/DROW/home/index.htm"))
  aux1.xID = "ftA54"
     		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/DROW/home/index.htm"))
  		aux1a.xID = "ftA55"
  		aux1a = insFld(aux1, gLnk("B", "Job Console", "/JTXWeb/Frames.faces?MapWidth=778&MapHeight=306"))
  		aux1a.xID = "ftA56"
  		aux1a = insFld(aux1, gLnk("B", "Resources", "/GeoComm/DROW/home/resources.html"))
  		aux1a.xID = "ftA57"
  aux1 = insFld(foldersTree, gFld("<b>Aerial Photo SI</b>", "/GeoComm/APSI/home/index.htm"))
  aux1.xID = "ftA58"
      		aux1a = insFld(aux1, gLnk("S", "Home", "/GeoComm/APSI/home/index.htm"))
   		aux1a.xID = "ftA59"
   		aux1a = insFld(aux1, gLnk("B", "Map Viewer", "/blmMap/MapAerial.jsp"))
   		aux1a.xID = "ftA60"
   		aux1a = insFld(aux1, gLnk("B", "Resources", "/GeoComm/APSI/home/Resources.html"))
  		aux1a.xID = "ft61"*/

//hides site mapper and nils review from www
if (server == "dev" || server == "tes")
{
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper </b>", "/GeoComm/site_mapper/home/index.htm"))
   aux1.xID = "ftA62"
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper (Web)</b>", "/web/site_mapper/home/index.htm"))
   aux1.xID = "ftA63"
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper RCA</b>", "/web/site_mapper_rca/home/index.htm"))
   aux1.xID = "ftA64"
   /*aux1 = insFld(foldersTree, gFld("<b>NILS Sync</b>", "/web/nils_review/home/index.htm"))
   aux1.xID = "ftA65"*/
}
else if (server == "web")
{
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper</b>", "/web/site_mapper/home/index.htm"))
   aux1.xID = "ftA66"
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper RCA</b>", "/web/site_mapper_rca/home/index.htm"))
   aux1.xID = "ftA67"
   /*aux1 = insFld(foldersTree, gFld("<b>NILS Sync</b>", "/web/nils_review/home/index.htm"))
   aux1.xID = "ftA68"*/
 }
else
{
   aux1 = insFld(foldersTree, gFld("<b>Site Mapper</b>", "/GeoComm/site_mapper/home/index.htm"))
   aux1.xID = "ftA69"
}
   
   
  aux1 = insFld(foldersTree, gLnk("S", "<b>Map & Data Services</b>", "/GeoComm/services.htm"))
  aux1.xID = "ftA70"
 

//need web specific metadata page - show on test
if (server == "dev" || server == "tes")
{
  /*aux1 = insFld(foldersTree, gLnk("B", "<b>Metadata</b>", "http://www.blm.gov/nils/GeoComm/Metadata/webhome.html"))*/
  aux1 = insFld(foldersTree, gLnk("S", "<b>Metadata</b>", "/GeoComm/metadata/webindex.htm"))
  aux1.xID = "ftA71"
}
else if (server == "web")
{
	aux1 = insFld(foldersTree, gLnk("S", "<b>Metadata</b>", "/GeoComm/metadata/webindex.htm"))
  /*aux1 = insFld(foldersTree, gLnk("B", "<b>Metadata</b>", "http://www.blm.gov/nils/GeoComm/Metadata/webhome.html"))*/
  
  aux1.xID = "ftA72"
}
else
{   
  /*aux1 = insFld(foldersTree, gLnk("B", "<b>Metadata</b>", "http://www.blm.gov/nils/GeoComm/Metadata/home.html"))
  aux1.xID = "ftA73"*/
  aux1 = insFld(foldersTree, gLnk("S", "<b>Metadata</b>", "/GeoComm/metadata/index.htm"))
  aux1.xID = "ftA73"
}

  aux1 = insFld(foldersTree, gLnk("S", "<b>References</b>", "/GeoComm/reference.htm"))
  aux1.xID = "ftA74"

  /*aux1 = insFld(foldersTree, gLnk("S", "<b>FAQ</b>", "/GeoComm/faq.htm"))
  aux1.xID = "ftA75"*/

  aux1 = insFld(foldersTree, gLnk("S", "<b>Contact Us</b>", "/GeoComm/contact.htm"))
  aux1.xID = "ftA76"


//////self.location.href = '_BLM';   this is the javascript target code ////
///// us "B" if you want to open a new window and us "S" to open in same window ////
  

