 var CTLevel = 9, CMarkers=[];preType='state',postType='state';
 var map, cutLevel = 7,preLevel = 4, fundCat = 0, zoomToLoc = 0;    
 var  tooltip, statePolys=[],zipMarkers=[],expMarkers=[], links = [], hideMarker, curLevel,curBound;
 var zoomToLoc = 0, vfCat = '0',currentDept = '0', agImgName = '0', agImgWidth = '0', agImgHeight = '0';
 var filterFields = ['AGENCY_CODE','TITLE_CODE'];

/*	var gearIcon = new GIcon();
	gearIcon.image = "images/icon_status_inprogress_rs.png";
	gearIcon.iconSize = new GSize(25, 34);
	gearIcon.shadow = "images/shadow_status_inprogress_rs.png";
	gearIcon.shadowSize = new GSize(29, 34);
	gearIcon.iconAnchor = new GPoint(12, 34);
	gearIcon.infoWindowAnchor = new GPoint(12, 2);
	gearIcon.transparent = "images/trans_status_inprogress_rs.png";
	gearIcon.printImage = "images/picon_status_inprogress_rs.gif";
	gearIcon.mozPrintImage = "images/pfficon_status_inprogress_rs.gif";
	gearIcon.printShadow = "images/pshadow_status_inprogress_rs.gif";
	gearIcon.imageMap=[2,8,9,5,17,3,19,4,22,10,21,17,18,23,11,31,11,27,4,22,0,17,3,11];*/
	
	var gearIcon = new GIcon();
	gearIcon.image = "images/icon_gears_orange.png";
	gearIcon.iconSize = new GSize(36, 34);
	gearIcon.iconAnchor = new GPoint(12, 34);
	gearIcon.infoWindowAnchor = new GPoint(12, 2);
	gearIcon.transparent = "images/trans_gears_orange.png";
	gearIcon.printImage = "images/picon_gears_orange.gif";
	gearIcon.mozPrintImage = "images/pfficon_gears_orange.gif";
	gearIcon.imageMap=[1,1,23,1,23,22,11,28,1,21];
	
	/*var gearIcon_hud = new GIcon();
	gearIcon_hud.image = "images/icon_gears_hud.png";
	gearIcon_hud.iconSize = new GSize(36, 34);
	gearIcon_hud.iconAnchor = new GPoint(12, 34);
	gearIcon_hud.infoWindowAnchor = new GPoint(12, 2);
	gearIcon_hud.transparent = "images/trans_gears_hud.png";
	gearIcon_hud.printImage = "images/picon_gears_hud.gif";
	gearIcon_hud.mozPrintImage = "images/pfficon_gears_hud.gif";
	gearIcon_hud.imageMap=[1,1,23,1,23,22,11,28,1,21];
	
	var gearIcon_usda = new GIcon();
	gearIcon_usda.image = "images/icon_gears_usda.png";
	gearIcon_usda.iconSize = new GSize(36, 34);
	gearIcon_usda.iconAnchor = new GPoint(12, 34);
	gearIcon_usda.infoWindowAnchor = new GPoint(12, 2);
	gearIcon_usda.transparent = "images/trans_gears_usda.png";
	gearIcon_usda.printImage = "images/picon_gears_usda.gif";
	gearIcon_usda.mozPrintImage = "images/pfficon_gears_usda.gif";
	gearIcon_usda.imageMap=[1,1,23,1,23,22,11,28,1,21];	*/
	
	var gIcon = new GIcon();
	gIcon.image='images/icon_cluster_sm.png';
	gIcon.iconSize = new GSize(27, 23);
	gIcon.shadow = "images/shadow_cluster_sm.png";
	gIcon.shadowSize = new GSize(35, 23);
	gIcon.iconAnchor = new GPoint(13, 23);
	gIcon.infoWindowAnchor = new GPoint(13,3);
	gIcon.transparent = "images/trans_cluster_sm.png";
	gIcon.printImage = "images/picon_cluster_sm.gif";
	gIcon.mozPrintImage = "images/pfficon_cluster_sm.gif";
	gIcon.printShadow = "images/pshadow_cluster_sm.gif";
	gIcon.imageMap=[-1,5,1,3,8,0,11,0,18,0,18,0,21,-1,27,6,23,13,20,11,13,20,11,16,5,14,1,11];

	var countyIcon1 = new GIcon();
	countyIcon1.image = "images/icon_county_1.png";
	countyIcon1.iconSize = new GSize(25, 34);
	countyIcon1.iconAnchor = new GPoint(12, 28);
	countyIcon1.infoWindowAnchor = new GPoint(12, 2);
	countyIcon1.transparent = "images/trans_county_1.png";
	countyIcon1.printImage = "images/picon_county_1.gif";
	countyIcon1.mozPrintImage = "images/pfficon_county_1.gif";
	countyIcon1.imageMap=[3,1,22,1,22,20,3,20];
	
	/*var countyIcon2 = new GIcon();
	countyIcon2.image = "images/icon_county_2.png";
	countyIcon2.iconSize = new GSize(25, 34);
	countyIcon2.iconAnchor = new GPoint(12, 28);
	countyIcon2.infoWindowAnchor = new GPoint(12, 2);
	countyIcon2.transparent = "images/trans_county_2.png";
	countyIcon2.printImage = "images/picon_county_2.gif";
	countyIcon2.mozPrintImage = "images/pfficon_county_2.gif";
	countyIcon2.imageMap=[3,1,22,1,22,20,3,20];	

	var countyIcon3 = new GIcon();
	countyIcon3.image = "images/icon_county_3.png";
	countyIcon3.iconSize = new GSize(25, 34);
	countyIcon3.iconAnchor = new GPoint(12, 28);
	countyIcon3.infoWindowAnchor = new GPoint(12, 2);
	countyIcon3.transparent = "images/trans_county_3.png";
	countyIcon3.printImage = "images/picon_county_3.gif";
	countyIcon3.mozPrintImage = "images/pfficon_county_3.gif";
	countyIcon3.imageMap=[3,1,22,1,22,20,3,20];
	
	var countyIcon4 = new GIcon();
	countyIcon4.image = "images/icon_county_4.png";
	countyIcon4.iconSize = new GSize(25, 34);
	countyIcon4.iconAnchor = new GPoint(12, 28);
	countyIcon4.infoWindowAnchor = new GPoint(12, 2);
	countyIcon4.transparent = "images/trans_county_4.png";
	countyIcon4.printImage = "images/picon_county_4.gif";
	countyIcon4.mozPrintImage = "images/pfficon_county_4.gif";
	countyIcon4.imageMap=[3,1,22,1,22,20,3,20];	*/

	var fundCatStr = ['under $10,000','of $10,000 - $50,000','of $50,000 - $100,000','of $100,000 - $500,000','of $500,000 - $1 Million','of $1 Million - $25 Million','of $25 Million - $50 Million','of $50 Million - $100 Million','of $100 Million - $500 Million','of $500 Million - $1 Billion','over $1 Billion'];
	var locationArray = new Array(
	new Array('Lower 48 states',39.63954,-96.85547,4),
	new Array('Alaska',64.24459,-151.87500,4),
	//new Array('American Samoa',-14.29899,-170.71930,10),
			//new Array('Bajo Nuevo Bank',64.24459,-151.87500,4),
			//new Array('Baker Island',64.24459,-151.87500,4),
			new Array('Guam',13.44172,144.75723,10),
			new Array('Hawaii',20.09721,-157.10449,7),
			//new Array('Howland Island',64.24459,-151.87500,4),
			//new Array('Jarvis Island',64.24459,-151.87500,4),
			//new Array('Johnston Atoll',64.24459,-151.87500,4),
			//new Array('Kingman Reef',64.24459,-151.87500,4),
			//new Array('Navassa Island',64.24459,-151.87500,4),
			//new Array('Midway Islands',64.24459,-151.87500,4),
			new Array('Northern Mariana Islands',15.08008,145.71030,10),
			//new Array('Palmyra Atoll',64.24459,-151.87500,4),
			new Array('Puerto Rico',18.18761,-66.47827,8)
			//new Array('Serranilla Bank',64.24459,-151.87500,4), 
			//new Array('U.S. Virgin Islands',64.24459,-151.87500,4), 
			//new Array('Wake Island',64.24459,-151.87500,4)
	);
