//---------------------------------------------------------------
// dbgtData.js v.1.5a
// 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.
//---------------------------------------------------------------


// THERE MUST EXIST A SINGLE GLOBAL INSTANCE OF THE "TOC" CLASS NAMED 'toc'


// THREE METHODS TO DEFINE THE TOC ARE SHOWN BELOW,
// COMMENT OR UNCOMMENT AND CUSTOMIZE IF NECESSARY


//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// FIRST METHOD, SIMPLEST POSSIBLE, JUST DEFINE THE TOC.
// ALL LAYERS WILL BE AUTOMATICALLY ADDED IN A VERY SIMPLE
// NON-GROUPED FORMAT THAT ROUGHLY MIMICS ESRI'S ORIGINAL TOC
// (this sample for use with any mapservice)


//var toc = new TOC('LAYERS','All Layers',true,'swatch_layers.gif');


//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// SECOND METHOD, MEDIUM COMPLEXITY, DEFINE THE TOC AND AN
// ARRAY DESCRIBING THE GROUP OF EACH LAYER.   ALL LAYERS
// WILL BE AUTOMATICALLY ADDED IN A GROUPED FORMAT.  DOES
// NOT SUPPORT NESTED GROUPS OR SWATCHES/LEGENDS/ETC.
// (this sample for use with 'sanfrancisco' sample mapservice)
//

/*
var toc = new TOC('LAYERS','All Layers',true,'swatch_layers.gif');
toc.LayersGroups[0] = 'Public Locations';  // Art Galleries
toc.LayersGroups[1] = 'Public Locations';  // Museums
toc.LayersGroups[2] = 'Private Locations'; // Theaters
toc.LayersGroups[3] = 'Private Locations'; // Agencies
toc.LayersGroups[4] = '';                  // Highways
toc.LayersGroups[5] = 'Base Map Layers';   // Zipcodes
toc.LayersGroups[6] = 'Base Map Layers';   // County
*/


//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// THIRD METHOD, MOST COMPLEX, MOST CUSTOMIZABLE, DEFINE THE
// TOC AND *MANUALLY* ADD GROUPS AND LAYERS AS DESIRED.
// NO LAYERS WILL BE ADDED AUTOMATICALLY.  FULL CONTROL OF
// CAPTIONS/SWATCHES/LEGENDS/ETC.
// (this sample for use with 'sanfrancisco' sample mapservice)

/*
var toc = new TOC('LAYERS','All Layers',true,'swatch_layers.gif');
	var grpLoc = toc.addGroup( new GROUP('Locations',true,'swatch_locations.gif') );
		var grpPub = grpLoc.addGroup( new GROUP('Public',true) );
			grpPub.addLayer( new LAYER('Art Galleries',null,'swatch_artgalleries.gif') );
			grpPub.addLayer( new LAYER('Museums',null,'swatch_museums.gif','','axl_string_to_use_for_label_renderer') );
		var grpPri = grpLoc.addGroup( new GROUP('Private',true,'swatch_theaters_agencies.gif') );
			grpPri.addLayer( new LAYER('Theaters',null,'swatch_theaters.gif') );
			grpPri.addLayer( new LAYER('Agencies',null,'swatch_agencies.gif') );
	toc.addLayer( new LAYER('Highways',null,'swatch_highways.gif','legend_streets.gif') );
 	var grpBas = toc.addGroup( new GROUP('Base Map',true) );
    grpBas.addLayer( new LAYER('Zipcodes',null,'swatch_zipcodes.gif') );
    grpBas.addLayer( new LAYER('County',null,'swatch_county.gif') );
*/

var toc = new TOC('LAYERS','Biddeford GIS Layers',true,'swatch_layers.gif');

		var grp1 = toc.addGroup( new GROUP('Annotation Layers',false,'') );
	grp1.addLayer( new LAYER('Road Names Big',null,'') );
	grp1.addLayer( new LAYER('Parcel Lot Dimensions',null,'') );  
	grp1.addLayer( new LAYER('ROW Text',null,'') );
	grp1.addLayer( new LAYER('Easements and ROWs',null,'') );
	
	var grp2 = toc.addGroup( new GROUP('Inland Fish and Wildlife Layers',false,'') );
	grp2.addLayer( new LAYER('Deer Wintering Areas',null,'') );
	grp2.addLayer( new LAYER('Freshwater Wading Bird and Waterfowl',null,'') );  
	grp2.addLayer( new LAYER('Natural Communities',null,'') );
	grp2.addLayer( new LAYER('Rare Plants',null,'') );
	grp2.addLayer( new LAYER('Rare Animals',null,'') );
	grp2.addLayer( new LAYER('250ft Coastal Buffer',null,'') );
	grp2.addLayer( new LAYER('250ft Pond Buffer',null,'') );
	grp2.addLayer( new LAYER('75ft Stream Buffer',null,'') );
	grp2.addLayer( new LAYER('250ft Riparian Buffer',null,'') );
	grp2.addLayer( new LAYER('250ft River Buffer',null,'') );

	var grp3 = toc.addGroup( new GROUP('Landuse Layers',false,'') );
	grp3.addLayer( new LAYER('Contract Zones',null,'') );
	grp3.addLayer( new LAYER('Firearms Ordinance',null,'') );
	grp3.addLayer( new LAYER('Flood Zone',null,'') );
	grp3.addLayer( new LAYER('General Zoning',null,'') );
	grp3.addLayer( new LAYER('National Wetland Inventory Areas',null,'') );
	grp3.addLayer( new LAYER('Overlay Zones',null,'') );
	grp3.addLayer( new LAYER('Overlay Zone Labels',null,'') );
	grp3.addLayer( new LAYER('Parcels',null,'') );
	grp3.addLayer( new LAYER('Parcel ID',null,'') );
	grp3.addLayer( new LAYER('Parcels (Buffer)',null,'') );
	grp3.addLayer( new LAYER('Parcels (Ortho)',null,'') );
	grp3.addLayer( new LAYER('Zoning Label',null,'') );

	var grp4 = toc.addGroup( new GROUP('Planimetric Layers',false,'') );
	grp4.addLayer( new LAYER('Airport',null,'') );
	grp4.addLayer( new LAYER('Bridges',null,'') );
	grp4.addLayer( new LAYER('Building Footprints',null,'') );

	var grp5 = toc.addGroup( new GROUP('Political Layers',false,'') );
	grp5.addLayer( new LAYER('Voting Wards',null,'') );
	
	var grp6 = toc.addGroup( new GROUP('Topographical Layers',false,'') );
	grp6.addLayer( new LAYER('Biddeford Townline',null,'') );
	grp6.addLayer( new LAYER('Contours',null,'') );
	grp6.addLayer( new LAYER('Neighboring Towns',null,'') );
	grp6.addLayer( new LAYER('Points of Interest',null,'') );
  grp6.addLayer( new LAYER('Ponds',null,'') );
  grp6.addLayer( new LAYER('Railroad',null,'') );
  grp6.addLayer( new LAYER('Rivers',null,'') );
  grp6.addLayer( new LAYER('Roads',null,'') );
  grp6.addLayer( new LAYER('Streams',null,'') );
  grp6.addLayer( new LAYER('Surrounding Town Roads',null,'') );

toc.addLayer( new LAYER('Aerial Photos - 2007',null,'') );
toc.addLayer( new LAYER('Aerial Photos - 2003',null,'') );




// =================================================
