//---------------------------------------------------------------
// 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');



//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// 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);
	var grpTA = toc.addGroup( new GROUP('Traffic Accidents (Jan 1, 2009 - Nov 15, 2009)',false) );
		grpTA.addLayer( new LAYER('Hit and Run',null) );
		grpTA.addLayer( new LAYER('Within Construction Zones',null) );
		grpTA.addLayer( new LAYER('Emergency Vehicle Involved',null) );
		grpTA.addLayer( new LAYER('Govt. Property Damaged',null) );
		grpTA.addLayer( new LAYER('All Accidents',null) );
		var grpTA_injury = grpTA.addGroup( new GROUP('With Injuries',true) );
			grpTA_injury.addLayer( new LAYER('Fatal Injury',null) );
			grpTA_injury.addLayer( new LAYER('Non-Fatal Injury',null) );
		var grpTA_unit = grpTA.addGroup( new GROUP('By Unit Type',true) );
			grpTA_unit.addLayer( new LAYER('Bus',null) );
			grpTA_unit.addLayer( new LAYER('Bicycle',null) );
			grpTA_unit.addLayer( new LAYER('Truck',null) );
			grpTA_unit.addLayer( new LAYER('Motorcycle',null) );
			grpTA_unit.addLayer( new LAYER('Pedestrian',null) );
	var grpProperty = toc.addGroup( new GROUP('Property Data',true) );
		grpProperty.addLayer( new LAYER('Foreclosed Properties',null) );
		grpProperty.addLayer( new LAYER('Non-Owner Occupied',null) );
		grpProperty.addLayer( new LAYER('Tax Delinquent',null) );
		grpProperty.addLayer( new LAYER('Permits',null) );
		grpProperty.addLayer( new LAYER('Property Service Requests',null) );
		grpProperty.addLayer( new LAYER('Parcels',null) );
		grpProperty.addLayer( new LAYER('Residential Assessed Value',null) );
		grpProperty.addLayer( new LAYER('Neighborhood Strategic Planning Area',null) );
		grpProperty.addLayer( new LAYER('Neighborhood',null) );
	var grpDNS = toc.addGroup( new GROUP('DNS Violations (number per parcel) - updated weekly',false) );
		grpDNS.addLayer( new LAYER('Commercial Code Violations',null) );
		grpDNS.addLayer( new LAYER('Residential Code Violations',null) );
		grpDNS.addLayer( new LAYER('Condemnation Violations',null) );
		grpDNS.addLayer( new LAYER('Construction Violations',null) );
		grpDNS.addLayer( new LAYER('Electrical Violations',null) );
		grpDNS.addLayer( new LAYER('Enforcement Violations',null) );
		grpDNS.addLayer( new LAYER('Nuisance Violations',null) );
		grpDNS.addLayer( new LAYER('Plumbing Violations',null) );
		grpDNS.addLayer( new LAYER('Zoning Violations',null) );
	var grpSafety = toc.addGroup( new GROUP('Community Safety',true) );
		grpSafety.addLayer( new LAYER('Community Learning Centers',null) );
		grpSafety.addLayer( new LAYER('Safe Places',null) );
		grpSafety.addLayer( new LAYER('Safe &amp; Sound Boundaries',null) );
		grpSafety.addLayer( new LAYER('Firehouses',null) );
		grpSafety.addLayer( new LAYER('Police Stations',null) );
		grpSafety.addLayer( new LAYER('Police Districts',null) );
	var grp2009crime = toc.addGroup( new GROUP('2009 Crime - MPD (Jan 1 - Nov 17)',false) );
		grp2009crime.addLayer( new LAYER('Homicide - 2009',null) );
		grp2009crime.addLayer( new LAYER('Assault - 2009',null) );
		grp2009crime.addLayer( new LAYER('Sex Offenses - 2009',null) );
		grp2009crime.addLayer( new LAYER('Robbery - 2009',null) );
		grp2009crime.addLayer( new LAYER('Burglary - 2009',null) );
		grp2009crime.addLayer( new LAYER('Vehicle Theft - 2009',null) );
		grp2009crime.addLayer( new LAYER('Theft - 2009',null) );
		grp2009crime.addLayer( new LAYER('Arson - 2009',null) );
		grp2009crime.addLayer( new LAYER('Criminal Damage To Property - 2009',null) );
		grp2009crime.addLayer( new LAYER('Locked Vehicle Entry - 2009',null) );
	var grp2009CFS = toc.addGroup( new GROUP('2009 Calls for Service - MPD (Jan 1 - Nov 17)',false) );
		grp2009CFS.addLayer( new LAYER('Shootings and Shots Fired - 2009',null) );
	var grp2008crime = toc.addGroup( new GROUP('2008 Crime - MPD',false) );
		grp2008crime.addLayer( new LAYER('Homicide - 2008',null) );
		grp2008crime.addLayer( new LAYER('Assault - 2008',null) );
		grp2008crime.addLayer( new LAYER('Sex Offenses - 2008',null) );
		grp2008crime.addLayer( new LAYER('Robbery - 2008',null) );
		grp2008crime.addLayer( new LAYER('Burglary - 2008',null) );
		grp2008crime.addLayer( new LAYER('Vehicle Theft - 2008',null) );
		grp2008crime.addLayer( new LAYER('Theft - 2008',null) );
		grp2008crime.addLayer( new LAYER('Arson - 2008',null) );
		grp2008crime.addLayer( new LAYER('Criminal Damage To Property - 2008',null) );
		grp2008crime.addLayer( new LAYER('Locked Vehicle Entry - 2008',null) );
	var grp2008CFS = toc.addGroup( new GROUP('2008 Calls for Service - MPD',false) );
		grp2008CFS.addLayer( new LAYER('Shootings and Shots Fired - 2008',null) );
	var grp2007crime = toc.addGroup( new GROUP('2007 Crime - MPD',false) );
		grp2007crime.addLayer( new LAYER('Homicide - 2007',null) );
		grp2007crime.addLayer( new LAYER('Assault - 2007',null) );
		grp2007crime.addLayer( new LAYER('Sex Offenses - 2007',null) );
		grp2007crime.addLayer( new LAYER('Robbery - 2007',null) );
		grp2007crime.addLayer( new LAYER('Burglary - 2007',null) );
		grp2007crime.addLayer( new LAYER('Vehicle Theft - 2007',null) );
		grp2007crime.addLayer( new LAYER('Theft - 2007',null) );
		grp2007crime.addLayer( new LAYER('Arson - 2007',null) );
		grp2007crime.addLayer( new LAYER('Criminal Damage To Property - 2007',null) );
		grp2007crime.addLayer( new LAYER('Locked Vehicle Entry - 2007',null) );
	var grp2007CFS = toc.addGroup( new GROUP('2007 Calls for Service - MPD',false) );
		grp2007CFS.addLayer( new LAYER('Shootings and Shots Fired - 2007',null) );
	var grpMisc = toc.addGroup( new GROUP('Misc. Maps',true) );
		grpMisc.addLayer( new LAYER('Streets',null) );
		grpMisc.addLayer( new LAYER('Schools',null) );
	var grpCommAssets = toc.addGroup( new GROUP('Community Assets',false) );
		grpCommAssets.addLayer( new LAYER('Emergency Feeding Organizations',null) );
		grpCommAssets.addLayer( new LAYER('Common Ground',null) );
		grpCommAssets.addLayer( new LAYER('Community Assets',null) );
	var grpCensus = toc.addGroup( new GROUP('2000 Census Tract Data',true) );
		grpCensus.addLayer( new LAYER('Total Population 2000',null) );
		grpCensus.addLayer( new LAYER('Percent of Population That Is Minority',null) );
		grpCensus.addLayer( new LAYER('Median Age',null) );
		grpCensus.addLayer( new LAYER('Percent Household Headed By Females',null) );
		grpCensus.addLayer( new LAYER('Percent Persons 25 or Older That Are High School Graduates',null) );
		grpCensus.addLayer( new LAYER('Median Household Income, 1999',null) );
		grpCensus.addLayer( new LAYER('Percent Population Below Poverty, 1999',null) );
		grpCensus.addLayer( new LAYER('Percent of Housing Units That Are Owner Occupied',null) );
		grpCensus.addLayer( new LAYER('Percent Housing Units Constructed Before 1940',null) );
		grpCensus.addLayer( new LAYER('Population Density',null) );
		grpCensus.addLayer( new LAYER('Percent Change in Population 1990-2000',null) );
		grpCensus.addLayer( new LAYER('Percent Hispanic',null) );
	var grpHealth = toc.addGroup( new GROUP('Health Data',false) );
		grpHealth.addLayer( new LAYER('2005 Birth Density',null) );
		grpHealth.addLayer( new LAYER('1995 Lead Rates',null) );
		grpHealth.addLayer( new LAYER('1996 Lead Rates',null) );
		grpHealth.addLayer( new LAYER('1997 Lead Rates',null) );
		grpHealth.addLayer( new LAYER('1998 Lead Rates',null) );
		grpHealth.addLayer( new LAYER('1999 Lead Rates',null) );
		grpHealth.addLayer( new LAYER('1999 - Percentage Births to Teens under 18',null) );
		grpHealth.addLayer( new LAYER('1999 - Percentage Low Birth Weight',null) );
		grpHealth.addLayer( new LAYER('1999 - Percentage Very Low Birth Weight',null) );
		grpHealth.addLayer( new LAYER('1999 - Percentage Prenatal Care During Pregnancy',null) );
		grpHealth.addLayer( new LAYER('1999 - Percentage Smoking During Pregnancy',null) );
	var grpImagery = toc.addGroup( new GROUP('Imagery',false) );
		grpImagery.addLayer( new LAYER('Orthophoto',null) );



