// Author: Andy Wightman/Creator: MapViewSVG 7.0.31 for ArcGIS by uismedia (http://www.mapviewsvg.com); 18/09/2009 12:35:57
var SVGscalebar;
var theScalebarFlag = true;
var theMassGesamtLength = 20000;
var theRectCount = 2;
var WMSLayerArray = new Array(0);
var ShareGeomArray = new Array();
var ShareGeomId = '';
var theHiColor = 'rgb(15,15,15)';
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.0366666666667;
var theOverviewFlag = false;
var theLegendFlag = true;
var SVGlegend;
var ScrollArray = new Array(2);
var theGetscaleFlag = true;
var theGeneralScaleFlag = true;
var theScaleConvert = 3393;
var CheckStatus = 'a02eHB7';
var butZoomFlag = false;
var thePrecision = 0;
var theXOrigin = -226188;
var theYOrigin = 1311558;
var maxScaleFakt = 20;
var theProfVersion = 0;
var theProgNS = "http://www.mapviewsvg.com";

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.svg" width="1025px" height="55px"><param name="src" value="embfiles/head.svg"></object></div>');
  } else {
    document.write('<div id="head"><embed type="image/svg+xml" id="svgdocHead" src="embfiles/head.svg" width="1025px" height="55px"/></div>');
  }
}
function embedLegend() {
  if (OperaFlag()) {
    document.write('<div id="legend"><object type="image/svg+xml"  id="svgdocLegend" data="embfiles/legend.svg" width="185px" height="93px"><param name="src" value="embfiles/legend.svg"></object></div>');
  } else {
    document.write('<div id="legend"><embed type="image/svg+xml"  id="svgdocLegend" src="embfiles/legend.svg" width="185px" height="93px"/></div>');
  }
}
function embedMap() {
  if (OperaFlag()) {
    document.write('<div id="map"><object type="image/svg+xml"  id="svgdocMap" data="embfiles/map.svg" width="598px" height="498px"><param name="src" value="embfiles/map.svg"></object></div>');
  } else {
    document.write('<div id="map"><embed type="image/svg+xml"  id="svgdocMap" src="embfiles/map.svg" width="598px" height="498px"/></div>');
  }
}
function embedSiteinfo() {
  if (OperaFlag()) {
    document.write('<div id="siteinfo"><object type="image/svg+xml"  id="svgdocSiteinfo" data="embfiles/siteinfo.svg" width="250px" height="56px"><param name="src" value="embfiles/siteinfo.svg"></object></div>');
  } else {
    document.write('<div id="siteinfo"><embed type="image/svg+xml"  id="svgdocSiteinfo" src="embfiles/siteinfo.svg" width="250px" height="56px"/></div>');
  }
}
function embedScalebar() {
  if (OperaFlag()) {
    document.write('<div id="scalebar"><object type="image/svg+xml"  id="svgdocScalebar" data="embfiles/scalebar.svg" width="242px" height="35px"><param name="src" value="embfiles/scalebar.svg"></object></div>');
  } else {
    document.write('<div id="scalebar"><embed type="image/svg+xml"  id="svgdocScalebar" src="embfiles/scalebar.svg" width="242px" 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;
//  }
}

