// Author: Andy Wightman/Creator: Mappetizer  8.0.0 for ArcGIS by uismedia (http://www.mappetizer.de); 04/07/2011 17:16:31
dojo.addOnLoad(function() {
  //Do not delete or change this function
  var leg = mv_embedSVGNode(dojo.doc,"MVlegendDoc","160px","93px","embfiles/legend.svg");
  dojo.byId("MVlegend").appendChild(leg);

  var map = mv_embedSVGNode(dojo.doc,"MVmapDoc","598px","498px","embfiles/map.svg");
  dojo.byId("MVmap").appendChild(map);

  mv_checkLoaded();
});

function mv_DocSettings() {
  //Do not delete or change this function;
  mv_Doc.userSettings("white","silver","rgb(15,15,15)","yellow","#ECE9D8",false,false);
  mv_Doc.txtIESupport = "This site needs the Adobe SVG Viewer 3.0.\n(http://www.adobe.com/svg/viewer/install/main.html)";
  mv_Doc.CheckStatus = "a02eHB8";
}

function mv_MapSettings() {
  //Do not delete or change this function;
  new MV.Layer("th0",true,true,true,false,"");
  new MV.Layer("th1",true,true,true,false,"","th1txt0");
  new MV.Layer("th2",true,true,true,false,"");
  mv_Map.userSettings(-226188,1311558,134.68,0,true,3393);
}

function mv_initializeLegend() {
  //Do not delete or change this function;
}

function mv_initializeShareGeomLegend() {
  //Do not delete or change this function;
}

function mv_ScalebarSettings() {
  //Do not delete or change this function;
  mv_Scalebar.userSettings(2,148,20);
}

function mv_initializeSettings() {
 //Do not delete or change this function;

  mv_Doc.Toolbars = new MV.List();
  mv_declareClassToolbar();
  mv_createToolbar();
  mv_Doc.Toolbars.item("MVtoolbar").item("MVtoolbar.identify").click();
  mv_createMeasureToolbar();
  mv_declareClassMeasure();
  mv_Measure = new MV.Measure();
  mv_Measure.userSettings("Length","Perimeter","Area","Sum","km","kmē",0.001,2);
}


function mv_showHelp() {
  var theWin = window.open("embfiles/help.html","MVHelp", "width=475,height=576,top=50,left=50,toolbar=no,menubar=no,location=no,hotkeys=no,resizable=yes,scrollbars=yes,dependent=yes,status=no");
  theWin.focus();
}


function mv_userInit() {
//This function is for your own scripts, it will be called on loading, do not delete it
//mv_alert("function mv_userInit()");
}

function mv_userMVDocToolbar(objButton) {
//This function is for your own toolbar buttons, do not delete it
//  switch(objButton.id) {
//      case "MVtoolbar.mybutton":
//          objButton.Function = "testFunc('hier',2)";
//          objButton.State = 1;  //this button is a radio button
//          break;
//  }
}


