//0:A, 1:DA, 2:FR, 3: HA, 4:HAL, 5:H, 6:KA, 7:MA, 8:M, 9:SAR, 10:TR, 10:CH-ZH
var locations = new Array(21, 323,	//0
143, 391,	//1
100, 533,	//2
86, 278,	//3
300, 276,	//4
195, 202,	//5
134, 456,	//6
138, 420,	//7
287, 525,       //8
61, 436,	//8
44, 394,	//9
133, 581);	//10

var current_location = -1;

function setLocationsPositions() {
  var i, map, obj, xoff, yoff;
  if (document.layers) { //Netscape 4
    xoff = document.map.x;
    yoff = document.map.y;
  } else { // Mozilla, Netscape 6+, Konqueror, Opera, IE, maybe others
    map = MM_findObj('map');
    xoff = yoff = 0;
    while (map) {
      xoff += map.offsetLeft;
      yoff += map.offsetTop;
      map=map.offsetParent;
    }
  }    
  for (i=0; i<locations.length; i++) {
    if ((obj=MM_findObj('l'+i))!=null) {
      if (obj.style) {obj=obj.style;}
      obj.left = xoff + locations[2*i];
      obj.top = yoff + locations[2*i+1];
    }
  }
}

function showLocation() {
  setLocationsPositions(); //This won't hurt (on fast Computers :-)
  var i,l,v,obj,args=showLocation.arguments;
  l=args[0];
  v=args[1];
  //v=2*args[1];
  if ((obj=MM_findObj('l'+l))!=null) {
    if (v=='toggle') {
      if (l == current_location) {
        v='hide';
	current_location=-1;
      } else {
        if ((cur=MM_findObj('l'+current_location))!=null) {
          if (cur.style) { cur=cur.style; }
          cur.visibility=(obj.style)?'hidden':'hide';
        }
        v='show';
        current_location = l;
      }
    }
    if (obj.style) {
      obj=obj.style;
      v=(v=='show')?'visible':'hidden';
    }
    obj.visibility=v;
  }
}
