// Author: Cumberland County 911/Creator: MapViewSVG Professional 7.0.29 for ArcGIS by uismedia (http://www.mapviewsvg.com); 4/13/2009 12:33:53 PM
var SVGscalebar;
var theScalebarFlag = true;
var theMassGesamtLength = 10000;
var theRectCount = 2;
var BrowserSet = 'width=400,height=400,top=50,left=50,toolbar=no,menubar=no,location=no,hotkeys=no,resizable=yes,scrollbars=no,dependent=yes,status=no';
var infoWindowLabel = "Object-Information";
var CloseButText = "Clear Selection";
var PrintButText = "Print";
var WMSLayerArray = new Array(0);
var ShareGeomArray = new Array();
var ShareGeomId = '';
var theHiQueryColor = 'yellow';
var theHiColor = 'red';
var theBGColor = 'white';
var theBGColor2 = 'silver';
var SVGSupportText = "This site needs the Adobe SVG Viewer 3.0.\n(http://www.adobe.com/svg/viewer/install/main.html)";
var theLegMapKoeff = 85.6590384615385;
var SVGover;
var SVGoverRect;
var theOverviewFlag = true;
var theLegendFlag = true;
var SVGlegend;
var ScrollArray = new Array(2);
var theGetscaleFlag = true;
var theGeneralScaleFlag = true;
var theScaleConvert = 1034.1864;
var CheckStatus = 'w12eHD5';
var butZoomFlag = false;
var thePrecision = 1;
var theXOrigin = 2278432.9;
var theYOrigin = 630561.2;
var maxScaleFakt = 20;
var theProfVersion = 1;
var theTileCount = 100;
var theProgNS = "http://www.mapviewsvg.com";
var dbExt = 'php';

function OperaFlag() {
  var theFlag = false;
  if (document.implementation && document.implementation.createDocument) {
    if (navigator.userAgent.toLowerCase().indexOf('opera') != -1) theFlag = true;
  }
  return theFlag;
}
function embedHead() {
  if (OperaFlag()) {
    document.write('<div id="head"><object type="image/svg+xml" id="svgdocHead" data="embfiles/head.svgz" width="928px" height="55px"><param name="src" value="embfiles/head.svgz"></object></div>');
  } else {
    document.write('<div id="head"><embed type="image/svg+xml" id="svgdocHead" src="embfiles/head.svgz" width="928px" height="55px"/></div>');
  }
}
function embedLegend() {
  if (OperaFlag()) {
    document.write('<div id="legend"><object type="image/svg+xml"  id="svgdocLegend" data="embfiles/legend.svgz" width="148px" height="263px"><param name="src" value="embfiles/legend.svgz"></object></div>');
  } else {
    document.write('<div id="legend"><embed type="image/svg+xml"  id="svgdocLegend" src="embfiles/legend.svgz" width="148px" height="263px"/></div>');
  }
}
function embedMap() {
  if (OperaFlag()) {
    document.write('<div id="map"><object type="image/svg+xml"  id="svgdocMap" data="embfiles/map.svgz" width="518px" height="574px"><param name="src" value="embfiles/map.svgz"></object></div>');
  } else {
    document.write('<div id="map"><embed type="image/svg+xml"  id="svgdocMap" src="embfiles/map.svgz" width="518px" height="574px"/></div>');
  }
}
function embedOverview() {
  if (OperaFlag()) {
    document.write('<div id="overview"><object type="image/svg+xml"  id="svgdocOverview" data="embfiles/overview.svgz" width="173px" height="192px"><param name="src" value="embfiles/overview.svgz"></object></div>');
  } else {
    document.write('<div id="overview"><embed type="image/svg+xml"  id="svgdocOverview" src="embfiles/overview.svgz" width="173px" height="192px"/></div>');
  }
}
function embedSiteinfo() {
  if (OperaFlag()) {
    document.write('<div id="siteinfo"><object type="image/svg+xml"  id="svgdocSiteinfo" data="embfiles/siteinfo.svgz" width="250px" height="140px"><param name="src" value="embfiles/siteinfo.svgz"></object></div>');
  } else {
    document.write('<div id="siteinfo"><embed type="image/svg+xml"  id="svgdocSiteinfo" src="embfiles/siteinfo.svgz" width="250px" height="140px"/></div>');
  }
}
function embedScalebar() {
  if (OperaFlag()) {
    document.write('<div id="scalebar"><object type="image/svg+xml"  id="svgdocScalebar" data="embfiles/scalebar.svgz" width="192px" height="35px"><param name="src" value="embfiles/scalebar.svgz"></object></div>');
  } else {
    document.write('<div id="scalebar"><embed type="image/svg+xml"  id="svgdocScalebar" src="embfiles/scalebar.svgz" width="192px" height="35px"/></div>');
  }
}

function userInit() {
//This function is for your own scripts, it will be called on loading, do not delete it
//myAlert("function userInit");
}

function userToolbar(thisTask,objButton) {
//This function is for your own toolbar buttons, do not delete it
//  switch(thisTask) {
//    case "mybutton":
//      objButton.click = "myFunction()";
//      objButton.state = 1;  //this button is a radio button
//      break;
//  }
}
