// Author: University of Sheffield, Geography Department/Creator: MapViewSVG 7.0.20 for ArcGIS by uismedia (http://www.mapviewsvg.com); 19/02/2009 17:44:48
var theScalebarFlag = false;
var ObjectLinkText = "Further Data";
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 CloseButText = "Clear Selection";
var WMSLayerArray = new Array(0);
var ShareGeomArray = new Array();
var ShareGeomId = '';
var theHiColor = 'magenta';
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 = 0.480466145833333;
var QueryNoRecText = "No records selected.";
var theOverviewFlag = false;
var theLegendFlag = false;
var theGetscaleFlag = false;
var theGeneralScaleFlag = false;
var theScaleConvert = 1;
var CheckStatus = 'a31eHG3';
var butZoomFlag = false;
var thePrecision = 3;
var theXOrigin = -184.5;
var theYOrigin = 93.843;
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="1033px" 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="1033px" height="55px"/></div>');
  }
}
function embedMap() {
  if (OperaFlag()) {
    document.write('<div id="map"><object type="image/svg+xml"  id="svgdocMap" data="embfiles/map.svg" width="766px" height="391px"><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="766px" height="391px"/></div>');
  }
}
function embedSiteinfo() {
  if (OperaFlag()) {
    document.write('<div id="siteinfo"><object type="image/svg+xml"  id="svgdocSiteinfo" data="embfiles/siteinfo.svg" width="250px" height="20px"><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="20px"/></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;
//  }
}
