
<!--

function open_Legend(url) {
	popupWin = window.open(url, 'Legende', 'scrollbars=yes,resizable=yes,status=no,width=370,height=400,left=10,top=10');
	popupWin.focus();
}
function open_Window(url) {
	popupWin1 = window.open(url, 'other', 'scrollbars=yes,resizable=yes,status=yes,width=385,height=400,left=10,top=10');
	popupWin1.focus();
}
function open_LargeWindow(url) {
	popupWin1 = window.open(url, 'other', 'scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,width=770,height=580,left=10,top=10');
	popupWin1.focus();
}

function popaddress() {
	popupWin = window.open('AddressSearch.asp', 'Address', 'scrollbars=yes,resizable=yes,status=no,width=270,height=300,left=10,top=10');
	popupWin.focus();
}

  if(!((parseInt(navigator.appVersion)<4) && (navigator.appName.toLowerCase().indexOf("microsoft")>-1))) {
  if (parseInt(navigator.appVersion)<3)
    J11=false;
  else
    J11=true;
  }
  else
    J11=false;
	
  var imHeads;

  var swapIm = new Array();
  var old = "";
  var oldSrc = "";

  var Im= new Array("images/topleftdir_lit.gif",
   	"images/mapleft_lit.gif",
   	"images/bottomleftdir_lit.gif",
   	"images/mapnorth_lit.gif",
  	"images/mapsouth_lit.gif",
	"images/toprightdir_lit.gif",
	"images/bottomrightdir_lit.gif",
	"images/mapright_lit.gif",
	"images/mnu_address_lit.gif",
	"images/mnu_find_lit.gif",
	"images/mnu_larger_lit.gif", //10
	"images/mnu_layers_lit.gif",
	"images/mnu_print_lit.gif",
	"images/mnu_help_lit.gif",
	"images/mnu_legend_lit.gif",
	"images/close_button_lit.gif",
	"images/mnu_smallermap_lit.gif" //16
	);
	 
if(J11) {
   for(i in Im) {
      swapIm[i] = new Image();
	  swapIm[i].src = Im[i];
   }
 }  
 

var IE4 = (document.all && !document.getElementById) ? true : false;
var IE5 = (document.all && document.getElementById) ? true : false;

var NS4 = (document.layers) ? true : false;
var N6 = (document.getElementById && !document.all) ? true : false;


function bendebug(){
//n="bensublayers";
//n="north";
//alert("oldSrc = document." + n + ".src");
//eval("oldSrc = document." + n + ".src")
//alert('apres eval bendebug');
}
  
   function swap(n,index) {
   if(J11) {
     n = arguments[0].toString();
	 index = parseInt(arguments[1]);
	 //alert("oldSrc = document." + n + ".src");
	 eval("oldSrc = document." + n + ".src");
	 //alert('apres le eval');
	 old = n;
 	
	 eval("document." + n + " .src=swapIm[" + index + "].src");
	 //alert("document." + n + " .src=swapIm[" + index + "].src");
	 }
   }

function swap2(n,index,l) {
   if(J11) {
	 n = arguments[0].toString();
	 index = parseInt(arguments[1]);
	
	if (NS4) {
	 eval("oldSrc = document.layers['" + l + "'].document.images['" + n + "'].src");
	}
	
	if(IE4) {
     eval("oldSrc = document." + n + ".src");
	 }
	 
	 if(IE5 || N6) {
	  eval("oldSrc = document.getElementById('" + n +"').src");
	 }
	 
	 old = n;
 
	 if(NS4) {
 		eval("document.layers['" + l + "'].document.images['" + n + "'].src=swapIm[" + index + "].src");
	 }
	 
	 if (IE4) {
	  eval("document." + n + " .src=swapIm[" + index + "].src");
	 }
	 
	 if (IE5 || N6) {
	 eval("document.getElementById('" + n +"').src=swapIm[" + index + "].src");
	 }

	 }
   }
   
   function myback() {
    if(J11) {
     eval("document." + old + ".src=oldSrc");
    }
   }
   
    function back2(l) {
    if(J11) {
    if(NS4) {
 	 eval("document.layers['" + l + "'].document.images['" + old + "'].src=oldSrc");
 	 }
    else if (IE4)  {
    eval("document." + old + ".src=oldSrc");
    }
    else if (IE5 || N6)  {
    eval("document.getElementById('" + old +"').src=oldSrc");
    }
    }
   }
