// Author: uismedia/Creator: Mappetizer  8.0.0 for ArcGIS by uismedia (http://www.mappetizer.de); 16.09.2009 13:39:39
var mv_Gazetteer = null;
dojo.addOnLoad(function() {
  //Do not delete or change this function
  var over = mv_embedSVGNode(dojo.doc,"MVoverviewDoc","200px","208px","embfiles/overview.svg");
  dojo.byId("MVoverview").appendChild(over);

  var map = mv_embedSVGNode(dojo.doc,"MVmapDoc","498px","519px","embfiles/map.svg");
  dojo.byId("MVmap").appendChild(map);
  
  
  if (dojo.isIE) {
    checkAndGetSVGViewer();
  }


  mv_checkLoaded();
});

function mv_DocSettings() {
  //Do not delete or change this function;
  mv_Doc.userSettings("khaki","#DB6700","magenta","yellow","#E6E656",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 = "w16eHG8";
  mv_Doc.DBExt = "php";
}

function mv_MapSettings() {
  //Do not delete or change this function;
  new MV.Layer("th0",false,true,false,false,"","th0txt0,th0txt1,th0txt2");
  new MV.Layer("th1",false,true,true,false,"");
  new MV.Layer("th2",false,true,true,false,"");
  new MV.Layer("th3",false,true,true,false,"","th3txt0");
  new MV.Layer("th4",false,true,true,false,"","th4txt0");
  new MV.Layer("th5",false,true,true,false,"");
  mv_Map.userSettings(1635009.5,379728.2,38.4378,1,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,83.4,2);
}

function mv_initializeSettings() {
 //Do not delete or change this function;

  mv_declareClassGazetteer();
  mv_Gazetteer = new MV.Gazetteer("th0","streetname",true,true,true);
  mv_Gazetteer.FLeftField = "l_f_add";
  mv_Gazetteer.TLeftField = "l_t_add";
  mv_Gazetteer.FRightField = "r_f_add";
  mv_Gazetteer.TRightField = "r_t_add";
  mv_Gazetteer.AddressMsg = "No matches were found for the address you entered. Please check your spelling, or modify the information you have entered.";
  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","mi","sq mi",0.0006213711922,2);
}


function mv_showHelp() {
  var theWin = window.open("embfiles/help.html","MVHelp", "width=475,height=515,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;
//  }
}


