<!--
function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers2() { 
  var i,p,v,obj,args=MM_showHideLayers2.arguments;
  for (i=0; i<(args.length-2); i+=3)
    if ((obj=MM_findObj(args[i]))!=null) { 
      v=args[i+2];
	  p=args[i+1];
	  if (obj.style) {
		obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v;
		               p=(p=='none')?'none':(p='')?'':p;
	  }
	  obj.visibility=v;
  	  obj.display=p;
    }
}
	
	main      = new Image(); main.src="img/map/map_norm.gif";
	unterland = new Image(); unterland.src="img/map/unterland.gif";
	eisacktal = new Image(); eisacktal.src="img/map/eisacktal.gif";
	bozen     = new Image(); bozen.src="img/map/bozen.gif";
	pustertal = new Image(); pustertal.src="img/map/pustertal.gif";
	burggraf  = new Image(); burggraf.src="img/map/burggrafenamt.gif";
	vinschgau = new Image(); vinschgau.src="img/map/vinschgau.gif";

	u_v       = new Image(); u_v.src="img/map/u_v.gif";
	u_bu      = new Image(); u_bu.src="img/map/u_bu.gif";
	u_bz      = new Image(); u_bz.src="img/map/u_bz.gif";
	u_e       = new Image(); u_e.src="img/map/u_e.gif";
	u_p       = new Image(); u_p.src="img/map/u_p.gif";
	
	bz_v      = new Image(); bz_v.src="img/map/bz_v.gif";
	bz_bu     = new Image(); bz_bu.src="img/map/bz_bu.gif";
	bz_e      = new Image(); bz_e.src="img/map/bz_e.gif";
	bz_p      = new Image(); bz_p.src="img/map/bz_p.gif";
	
	e_v		  = new Image(); e_v.src="img/map/e_v.gif";
	e_bu	  = new Image(); e_bu.src="img/map/e_bu.gif";
	e_p  	  = new Image(); e_p.src="img/map/e_p.gif";
	
	p_bu	  = new Image(); p_bu.src="img/map/p_bu.gif";
	p_v  	  = new Image(); p_v.src="img/map/p_v.gif";
	
	bu_v	  = new Image(); bu_v.src="img/map/bu_v.gif";
	var stay=0;
	
	function activateL(a) {
		if(stay==0) {
			switch(a) {
				case(1):	window.document.images[1].src=unterland.src;
							break;
				case(2):	window.document.images[1].src=eisacktal.src;
							break;
				case(3):	window.document.images[1].src=bozen.src;
							break;
				case(4):	window.document.images[1].src=pustertal.src;
							break;
				case(5):	window.document.images[1].src=burggraf.src;
							break;
				case(6):	window.document.images[1].src=vinschgau.src;
							break;
			}		
		}
		else if(stay==1) {
			switch(a) {
				case(2):	window.document.images[1].src=u_e.src;
							break;
				case(3):	window.document.images[1].src=u_bz.src;
							break;
				case(4):	window.document.images[1].src=u_p.src;
							break;
				case(5):	window.document.images[1].src=u_bu.src;
							break;
				case(6):	window.document.images[1].src=u_v.src;
							break;
			}
		}
		else if(stay==2) {
			switch(a) { 
				case(1):	window.document.images[1].src=u_e.src;
							break;
				case(3):	window.document.images[1].src=bz_e.src;
							break;
				case(4):	window.document.images[1].src=e_p.src;
							break;
				case(5):	window.document.images[1].src=e_bu.src;
							break;
				case(6):	window.document.images[1].src=e_v.src;
							break;
			}
		}
		else if(stay==3) {
			switch(a) {
				case(1):	window.document.images[1].src=u_bz.src;
							break;
				case(2):	window.document.images[1].src=bz_e.src;
							break;
				case(4):	window.document.images[1].src=bz_p.src;
							break;
				case(5):	window.document.images[1].src=bz_bu.src;
							break;
				case(6):	window.document.images[1].src=bz_v.src;
							break;
			}
		}
		else if(stay==4) {
			switch(a) {
				case(1):	window.document.images[1].src=u_p.src;
							break;
				case(2):	window.document.images[1].src=e_p.src;
							break;
				case(3):	window.document.images[1].src=bz_p.src;
							break;
				case(5):	window.document.images[1].src=p_bu.src;
							break;
				case(6):	window.document.images[1].src=p_v.src;
							break;
			}
		}
		else if(stay==5) {
			switch(a) {
				case(1):	window.document.images[1].src=u_bu.src;
							break;
				case(2):	window.document.images[1].src=e_bu.src;
							break;
				case(3):	window.document.images[1].src=bz_bu.src;
							break;
				case(4):	window.document.images[1].src=p_bu.src;
							break;
				case(6):	window.document.images[1].src=bu_v.src;
							break;
			}
		}
		else if(stay==6) {
			switch(a) {
				case(1):	window.document.images[1].src=u_v.src;
							break;
				case(2):	window.document.images[1].src=e_v.src;
							break;
				case(3):	window.document.images[1].src=bz_v.src;
							break;
				case(4):	window.document.images[1].src=p_v.src;
							break;
				case(5):	window.document.images[1].src=bu_v.src;
							break;
			}
		}
	}
	
	function fix(m) {
		stay=m;
		switch(m) {
		case 1: window.document.images[1].src=unterland.src; 
				MM_showHideLayers2('L_v_cont','none','hide','L_bu_cont','none','hide','L_e_cont','none','hide','L_bz_cont','none','hide','L_u_cont','yes','show','L_p_cont','none','hide'); 
				break;
		case 2: window.document.images[1].src=eisacktal.src; 
				MM_showHideLayers2('L_v_cont','none','hide','L_bu_cont','none','hide','L_e_cont','yes','show','L_bz_cont','none','hide','L_u_cont','none','hide','L_p_cont','none','hide'); 
				break;
		case 3: window.document.images[1].src=bozen.src; 
				MM_showHideLayers2('L_v_cont','none','hide','L_bu_cont','none','hide','L_e_cont','none','hide','L_bz_cont','yes','show','L_u_cont','none','hide','L_p_cont','none','hide'); 
				break;
		case 4: window.document.images[1].src=pustertal.src; 
				MM_showHideLayers2('L_v_cont','none','hide','L_bu_cont','none','hide','L_e_cont','none','hide','L_bz_cont','none','hide','L_u_cont','none','hide','L_p_cont','yes','show'); 
				break;
		case 5: window.document.images[1].src=burggraf.src; 
				MM_showHideLayers2('L_v_cont','none','hide','L_bu_cont','yes','show','L_e_cont','none','hide','L_bz_cont','none','hide','L_u_cont','none','hide','L_p_cont','none','hide'); 
				break;
		case 6: window.document.images[1].src=vinschgau.src; 
			    MM_showHideLayers2('L_v_cont','yes','show','L_bu_cont','none','hide','L_e_cont','none','hide','L_bz_cont','none','hide','L_u_cont','none','hide','L_p_cont','none','hide'); 
				break;
		}
	}
	
	function reset(resnr) {
		switch(stay) {
		case 1: window.document.images[1].src=unterland.src; break;
		case 2: window.document.images[1].src=eisacktal.src; break;
		case 3: window.document.images[1].src=bozen.src; break;
		case 4: window.document.images[1].src=pustertal.src; break;
		case 5: window.document.images[1].src=burggraf.src; break;
		case 6: window.document.images[1].src=vinschgau.src; break;
		default: window.document.images[1].src=main.src; break;
		}		
	}
	
	function initState() {
		if (window.location.search != "") {
	  		var param = window.location.search;
			var sEbene = param.substring(1,param.length);
			var ebene = parseInt(sEbene);
			fix(ebene);
		}
	}
-->
