//---------------------------------------------------------------
// dbgtData.js v.1.4
// Copyright (C) 2002 David Bollinger (davebollinger@hotmail.com)
//
// Support code for the 'dbGroupToc' modification - A grouped
// table of contents for ArcIMS 3.1+ HTML viewer sites.
//
// Notice:   This code may be freely distributed, used and
//           modified provided that this comment remains intact.
//---------------------------------------------------------------


//
// create the global resource object
//
dbgtResource = new RESOURCE('');
dbgtResource.iconPath = 'dbGroupToc/';                   // path to icon images
dbgtResource.swatchPath = 'dbGroupToc/';                 // path to swatch images
dbgtResource.legendPath = 'dbGroupToc/';                 // path to legend images
dbgtResource.iconPixel = 'icon_pixel.gif';               // single transparent pixel
dbgtResource.iconBlank = 'icon_blank.gif';               // all transparent placeholder
dbgtResource.iconClosed = 'icon_closed.gif';             // closed group folder
dbgtResource.iconOpened = 'icon_opened.gif';             // opened group folder
dbgtResource.iconChild = 'icon_child.gif';               // connecting line to child item (continued)
dbgtResource.iconChildLast = 'icon_childlast.gif';       // connecting line to child item (last one)
dbgtResource.iconSibling = 'icon_sibling.gif';           // vertical connector to sibling item
dbgtResource.iconLabelOn = 'icon_labelon.gif';           // labelling enabled
dbgtResource.iconLabelOff = 'icon_labeloff.gif';         // labelling disabled
dbgtResource.iconLayer = 'icon_layer.gif';               // map layer icon
dbgtResource.iconHidden = 'icon_hidden.gif';             // layer not visible, unselected checkbox
dbgtResource.iconVisible = 'icon_visible.gif';           // layer visible, selected checkbox
dbgtResource.iconVisscale = 'icon_visscale.gif';         // layer visible, but not at this scale
dbgtResource.iconTristate = 'icon_tristate.gif';         // tri-state checkbox, some layers visible
dbgtResource.iconActive = 'icon_active.gif';             // selected radio
dbgtResource.iconInactive = 'icon_inactive.gif';         // unselected radio
dbgtResource.iconHelp = 'icon_help.gif';                 // not currently used

// SAMPLE DATA AND USAGE REMINDERS:
// 1. create the toc object, TOC( title_of_toc, name_of_toc, auto_refresh_map )
// 2. add groups to toc, GROUP( name_of_group, startup_opened )
// 3. add layers to groups, LAYER( name_of_layer, url_of_swatch_image, url_of_legend_image, label_field )
// repeat 2 & 3 as necessary

// v.1.4 note that "addGroup" and "addLayer" are deprecated - "addItem" is
// preferred in all cases.  However, they are left here in this sample data
// to test compatibility with older versions.

var toc = new TOC('Layers', 'Greenweb Sydney', true);
  var grpGW = toc.addGroup( new GROUP('Greenweb Sites',true) );
    grpGW.addLayer( new LAYER('Past Sites','../images/a_past.gif') );
    grpGW.addLayer( new LAYER('Ongoing Sites','../images/a_ongoing.gif') );
    grpGW.addLayer( new LAYER('Proposed Sites','../images/a_proposed.gif') );
  var grpAr = toc.addGroup( new GROUP('Area Regions',true) );
	grpAr.addLayer( new LAYER('LGA','../images/a_lga.gif') );
	grpAr.addLayer( new LAYER('ROC','../images/a_roc.gif') );
	grpAr.addLayer( new LAYER('Catchment','../images/a_catchment.gif') );