// Author: Departement des Hauts de Seine/Creator: MapViewSVG Professional 6.2.30 for ArcGIS by uismedia (http://www.mapviewsvg.com); 14/05/2008 13:56:46
var SVGscalebar;
var theScalebarFlag = true;
var theMassGesamtLength = 3000;
var theRectCount = 3;
var ObjectLinkText = "D'autres informations";
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 = "Fermer la fenêtre";
var WMSLayerArray = new Array(0);
var ShareGeomArray = new Array();
var ShareGeomId = '';
var theShowKoord = 'textbox';
var theHiColor = 'red';
var theBGColor = 'white';
var theBGColor2 = 'silver';
var SVGSupportText = "Ce site a besoin d'Adobe SVG Viewer 3.0 (Plug-In gratuit)\n(http://www.adobe.com/svg/viewer/install/main.html).";
var theLegMapKoeff = 10.7702594810379;
var QueryNoRecText = "Aucun enregistrement trouve";
var SVGover;
var SVGoverRect;
var theOverviewFlag = true;
var theLegendFlag = true;
var SVGlegend;
var ScrollArray = new Array(2);
ScrollArray[0] = new Array('gesamtLeg0',-451,0.357692307692308,25,329,0);
var theGetscaleFlag = false;
var theGeneralScaleFlag = true;
var theScaleConvert = 3393;
var CheckStatus = 'w17eHD9';
var butZoomFlag = false;
var thePrecision = 1;
var theXOrigin = 578415.4;
var theYOrigin = 139431.5;
var maxScaleFakt = 20;
var theProfVersion = 1;
var theTileCount = 100;
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="1009px" 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="1009px" height="55px"/></div>');
  }
}
function embedLegend() {
  if (OperaFlag()) {
    document.write('<div id="legend"><object type="image/svg+xml"  id="svgdocLegend" data="embfiles/legend.svg" width="228px" height="330px"><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="228px" height="330px"/></div>');
  }
}
function embedMap() {
  if (OperaFlag()) {
    document.write('<div id="map"><object type="image/svg+xml"  id="svgdocMap" data="embfiles/map.svg" width="499px" height="328px"><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="499px" height="328px"/></div>');
  }
}
function embedOverview() {
  if (OperaFlag()) {
    document.write('<div id="overview"><object type="image/svg+xml"  id="svgdocOverview" data="embfiles/overview.svg" width="90px" height="59px"><param name="src" value="embfiles/overview.svg"></object></div>');
  } else {
    document.write('<div id="overview"><embed type="image/svg+xml"  id="svgdocOverview" src="embfiles/overview.svg" width="90px" height="59px"/></div>');
  }
}
function embedScalebar() {
  if (OperaFlag()) {
    document.write('<div id="scalebar"><object type="image/svg+xml"  id="svgdocScalebar" data="embfiles/scalebar.svg" width="305px" 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="305px" 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");
   
param = window.location.search.slice(1,window.location.search.length);
 
// On sépare le paramètres.... first[0] est de la forme param=valeur
first = param.split("&");
 
for(i=0;i<first.length;i++)
 {
 second = first[i].split("=");
  // Dès qu'on trouve un paramètre nommé startpt ...
  if(second[0] == "startpt")
  {
  // ... On récupère sa valeur, qui est l'index de l'endroit sur lequel on va zoomer !
  document.formZoomObject.listZoomObject.selectedIndex = second[1];
  preZoomObject();
  } 
 }  
}