// URLS
var urlArrayCGI = ["http://wms1.maps0.com/cgi-bin/tilecache.cgi?SERVICE=WMS&VERSION=1.1",
                "http://wms2.maps0.com/cgi-bin/tilecache.cgi?SERVICE=WMS&VERSION=1.1",
                "http://wms3.maps0.com/cgi-bin/tilecache.cgi?SERVICE=WMS&VERSION=1.1",
                "http://wms4.maps0.com/cgi-bin/tilecache.cgi?SERVICE=WMS&VERSION=1.1"];

var urlArrayFCGI = ["http://wms1.maps0.com:8081/tilecache.fcgi?SERVICE=WMS&VERSION=1.1",
                 "http://wms2.maps0.com:8081/tilecache.fcgi?SERVICE=WMS&VERSION=1.1",
                 "http://wms3.maps0.com:8081/tilecache.fcgi?SERVICE=WMS&VERSION=1.1",
                 "http://wms4.maps0.com:8081/tilecache.fcgi?SERVICE=WMS&VERSION=1.1"];


var urlArray = urlArrayFCGI;

// see /data/www/mapserver/resolutions.py to help determine ol resolutions


// MAPS
var ol_mapOptions_dc = {
	        units: "m",
  	        maxExtent: new OpenLayers.Bounds(320000,4304700,326500,4308900),
		projection: "EPSG:26918",
                format: "image/png",
                numZoomLevels: 6,
		resolutions:[10,5,2.5,1.25,0.675,0.3275]};

var ol_mapOptions_us = {
	        units: "m",
	        maxExtent: new OpenLayers.Bounds(-13885720,2852364,-7455000,6305726),
		resolutions:[12560.0, 6280.0, 3140.0, 1570.0, 785.0, 392.5, 196.25, 98.125, 49.0625, 24.53125, 12.265625, 6.1328125, 3.06640625, 1.533203125, 0.7666015625, 0.38330078125, 0.191650390625, 0.0958251953125, 0.04791259765625, 0.023956298828125],
		projection: "EPSG:3395",
                format: "image/png",
                numZoomLevels: 20,
                minscale: 35000000,
                maxscale: 6000};


var ol_mapOptions_us2 = {
	        units: "m",
                resolutions: [17638.879363894033, 8819.4396819470167, 3527.7758727788068, 1763.8879363894034, 881.94396819470171, 440.97198409735086, 176.38879363894034, 88.194396819470171, 35.277758727788068, 17.638879363894034, 8.8194396819470171, 4.4097198409735086, 2.2048599204867543],
		maxExtent: new OpenLayers.Bounds(-20000000,1500000,-7000000,12000000),
		projection: "EPSG:3395",
                format: "image/png"};

var ol_mapOptions_us3 = {
	        units: "m",
		resolutions:[35277.777777777759, 26458.333333333318, 17638.88888888888, 10583.333333333327, 7055.5555555555511, 5291.6666666666633, 3527.7777777777756, 2645.8333333333317, 1763.8888888888878, 1058.3333333333328, 705.55555555555509, 529.1666666666664, 352.77777777777754, 264.5833333333332, 176.38888888888877, 105.83333333333327, 70.555555555555515, 52.916666666666636, 35.277777777777757, 26.458333333333318, 17.638888888888879, 10.583333333333327, 7.0555555555555518, 5.2916666666666634, 3.5277777777777759, 2.6458333333333317, 1.763888888888888],
		maxExtent: new OpenLayers.Bounds(-20000000,1500000,-7000000,12000000),
		projection: "EPSG:3395",
                format: "image/png"};

var ol_mapOptions_osm = {
	        units: "m",
		resolutions: [35277.777777777759, 17638.88888888888, 8819.4444444444398, 3527.7777777777756, 1763.8888888888878, 881.94444444444389, 352.77777777777754, 176.38888888888877, 88.194444444444386, 35.277777777777757, 17.638888888888879],
                maxExtent: new OpenLayers.Bounds(-20037508,-15500000,20037508,19140000),
		projection: "EPSG:3395",
                format: "image/png"};

var ol_mapOptions_wa = {
	        units: "m",
		maxExtent: new OpenLayers.Bounds(359000,4993830,976000,5456170),
		projection: "EPSG:26910",
                format: "image/png",
		numZoomLevels: 10,
		resolutions:[2410.15625, 1205.078125, 602.5390625, 301.26953125, 150.634765625, 75.3173828125, 37.65869140625, 18.829345703125, 9.4146728515625, 4.70733642578125]};

var ol_mapOptions_wa_wsdot = {
    units: "feet",
    maxExtent: new OpenLayers.Bounds(375842,-202539,2779398,1654754),
    projection: "EPSG:2856",
    format: "image/png",
    numZoomLevels: 8,
    resolutions:[3000,1500,750,375]};

// LAYERS

var ol_wms_us = new OpenLayers.Layer.WMS(
  "US",
  urlArray,
  {layers: "US",format:"image/png"}
  );

var ol_wms_us2 = new OpenLayers.Layer.WMS(
  "US2",
  urlArray,
  {layers: "US2",format:"image/png"}
  );

var ol_wms_us3 = new OpenLayers.Layer.WMS(
  "US3",
  urlArray,
  {layers: "US3",format:"image/png"}
  );

var ol_wms_osm = new OpenLayers.Layer.WMS(
  "OSM",
  urlArray,
  {layers: "OSM",transparent:true,format:"image/png"}
  );

var ol_wms_wa = new OpenLayers.Layer.WMS(
  "WA",
  urlArray,
  {layers: "WA",format:"image/png"}
  );


var ol_wms_wa_ortho = new OpenLayers.Layer.WMS(
  "WA_ORTHO",
  urlArray,
  {layers: "ORTHO",format:"image/png"}
  );

var ol_wms_zip = new OpenLayers.Layer.WMS(
  "ZIP",
  urlArray,
  {layers: "ZIP", transparent: true, format:"image/gif"}
  );

var ol_wms_zip2 = new OpenLayers.Layer.WMS(
  "ZIP2",
  urlArray,
  {layers: "ZIP2",transparent:true,format:"image/png"}
  );

var ol_wms_dcaerial = new OpenLayers.Layer.WMS(
  "DCAERIAL",
  urlArray,
  {layers: "DCAERIAL", transparent: false, format:"image/png"}
  );

var ol_wms_dctourist = new OpenLayers.Layer.WMS(
  "DCTOURIST",
  urlArray,
  {layers: "DCTOURIST", transparent: false, format:"image/png"}
  );

var ol_wms_wa_wsdot = new OpenLayers.Layer.WMS(
  "WA_WSDOT",
  urlArray,
  {layers: "WA_WSDOT", transparent: false, format:"image/png"}
  );
  
var ol_wms_congress = new OpenLayers.Layer.WMS(
   "CONGRESS",
   urlArray,
  {layers: "CONGRESS", transparent: true, format:"image/gif"}
  );
					       
var ol_wms_areacode = new OpenLayers.Layer.WMS(
   "AREACODE",
   urlArray,
  {layers: "AREACODE", transparent: true, format:"image/gif"}
  );
					       
var ol_wms_worldbase = new OpenLayers.Layer.WMS(
   "WORLDBASE",
   urlArray,
  {layers: "WORLDBASE", transparent: false, format:"image/png"}
  );
			       
					       
var ol_wms_schdist = new OpenLayers.Layer.WMS(
   "SCHDIST",
   urlArray,
  {layers: "SCHDIST", transparent: true, format:"image/png"}
  );
			       
					       
var ol_wms_county = new OpenLayers.Layer.WMS(
   "COUNTY",
   urlArray,
  {layers: "COUNTY", transparent: false, format:"image/png"}
  );
			       
					       