<!-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers

function surfto(target)
 {
navigating = 1
 window.location.href = target;
 }
var linkArray = new Array

<!--Platzhalter für SubMenus-->
linkArray[0]="<tr><td><a class=\"menu\" href='wir.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"wir.html\")'><nobr>Wir über uns</nobr></a></td></tr>"
linkArray[0]+="<tr><td><a class=\"menu\" href='lage.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"lage.html\")'><nobr>Verwaltungsgebiet</nobr></a></td></tr>"
linkArray[0]+="<tr><td><a class=\"menu\" href='impressum.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"impressum.html\")'><nobr>Impressum</nobr></a></td></tr>"
linkArray[1]="<tr><td><a class=\"menu\" href='ahlsdorf.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"ahlsdorf.html\")'><nobr>Ahlsdorf</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='benndorf.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"benndorf.html\")'><nobr>Benndorf</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='blankenheim.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"blankenheim.html\")'><nobr>Blankenheim</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='bornstedt.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"bornstedt.html\")'><nobr>Bornstedt</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='helbra.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"helbra.html\")'><nobr>Helbra</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='hergisdorf.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"hergisdorf.html\")'><nobr>Hergisdorf</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='klostermansfeld.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"klostermansfeld.html\")'><nobr>Klostermansfeld</nobr></a></td></tr>"
linkArray[1]+="<tr><td><a class=\"menu\" href='wimmelburg.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"wimmelburg.html\")'><nobr>Wimmelburg</nobr></a></td></tr>"
linkArray[2]="<tr><td><a class=\"menu\" href='geoeffnet.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"geoeffnet.html\")'><nobr>Öffnungszeiten</nobr></a></td></tr>"
linkArray[2]+="<tr><td><a class=\"menu\" href='kontakt.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"kontakt.html\")'><nobr>Kontakt</nobr></a></td></tr>"
linkArray[2]+="<tr><td><a class=\"menu\" href='ewma.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"ewma.html\")'><nobr>Einwohnermeldeamt</nobr></a></td></tr>"
linkArray[2]+="<tr><td><a class=\"menu\" href='standesamt.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"standesamt.html\")'><nobr>Standesamt</nobr></a></td></tr>"
linkArray[2]+="<tr><td><a class=\"menu\" href='formulare.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"formulare.html\")'><nobr>Formulare</nobr></a></td></tr>"
linkArray[2]+="<tr><td><a class=\"menu\" href='imm_markt.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"imm_markt.html\")'><nobr>Immobilienmarkt</nobr></a></td></tr>"
linkArray[4]="<tr><td><a class=\"menu\" href='veranstaltungen.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"veranstaltungen.html\")'><nobr>Veranstaltungen</nobr></a></td></tr>"
linkArray[4]+="<tr><td><a class=\"menu\" href='gaststaetten.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"gaststaetten.html\")'><nobr>Gastronomie</nobr></a></td></tr>"
linkArray[4]+="<tr><td><a class=\"menu\" href='uebernachtung.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"uebernachtung.html\")'><nobr>Unterkunft</nobr></a></td></tr>"
linkArray[5]="<tr><td><a class=\"menu\" href='unternehmen_ahl.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_ahl.html\")'><nobr>in Ahlsdorf</nobr></a></td></tr>"
linkArray[5]+="<tr><td><a class=\"menu\" href='unternehmen_benn.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_benn.html\")'><nobr>in Benndorf</nobr></a></td></tr>"
linkArray[5]+="<tr><td><a class=\"menu\" href='unternehmen_born.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_born.html\")'><nobr>in Bornstedt</nobr></a></td></tr>"
linkArray[5]+="<tr><td><a class=\"menu\" href='unternehmen_hel.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_hel.html\")'><nobr>in Helbra</nobr></a></td></tr>"
linkArray[5]+="<tr><td><a class=\"menu\" href='unternehmen_herg.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_herg.html\")'><nobr>in Hergisdorf</nobr></a></td></tr>"
linkArray[5]+="<tr><td><a class=\"menu\" href='unternehmen_wimm.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"unternehmen_wimm.html\")'><nobr>in Wimmelburg</nobr></a></td></tr>"
linkArray[6]="<tr><td><a class=\"menu\" href='intern.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"intern.html\")'><nobr>intern</nobr></a></td></tr>"
linkArray[6]+="<tr><td><a class=\"menu\" href='kommunalanzeiger.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"kommunalanzeiger.html\")'><nobr>Kommunalanzeiger</nobr></a></td></tr>"
linkArray[6]+="<tr><td><a class=\"menu\" href='ortsrecht.html' onMouseOver='clearTimeout(timerID)' onMouseOut='viewIt()' onMouseDown='surfto(\"ortsrecht.html\")'><nobr>Ortsrecht</nobr></a></td></tr>"


<!--GLOBAL VARIABLES-->
var navigating = 0
var thename
var theobj
var thetext
var winWidth
var boxPosition
var timerID
var seconds=1
var x=0
var y=0
<!--END GLOBAL VARIABLES-->

<!--GLOBAL FUNCTIONS-->
function buildText(value) {
text = "<table class='submenu' width='100%' border='0' cellspacing='2' cellpadding='2'>"
text += linkArray[value]+"</table>"
return text
}

function setObj(textelement,inwidth,boxpos,fixed,theObject) {
	clearTimeout(timerID)
	boxPosition=boxpos
	winWidth=inwidth
	thetext=buildText(textelement)

	if (boxPosition == "right") { // Right
	el=theObject
	x=0
	y=0
	while (el) {
	   y+=el.offsetTop
   	   x+=el.offsetLeft
   	   el=el.offsetParent
         }
         y -= document.body.scrollTop;
         x+=theObject.offsetWidth+2;
         if (fixed > 0) {
         	 x = fixed
         	}
	}

	if (boxPosition == "bottom") { // Top
	el=theObject
	x=0
	y=0
	while (el) {
	   y+=el.offsetTop
   	   x+=el.offsetLeft
   	   el=el.offsetParent
         }
         y -= document.body.scrollTop;
         y+=theObject.offsetHeight+2;

         if (fixed > 0) {
         	 y = fixed
         	}
  	}

	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		theobj.style.width=winWidth
		theobj.style.left=x
			if(iens6&&document.all) {
			theobj.style.top=document.body.scrollTop+y
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd",thetext)
			}
			if(iens6&&!document.all) {
			theobj.style.top=window.pageYOffset+y
				theobj.innerHTML = ""
				theobj.innerHTML=thetext
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		theobj.left=x
		theobj.top=y
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.document.write("thetext")
		theobj.document.close()
	}
	if (navigating == 0) viewIt()
}
function viewIt() {
		if(iens6) {
			theobj.style.visibility="visible"
		}
		if(ns4) {
 			theobj.visibility = "visible"
		}
	clearTimeout(timerID);
	timer(3);
}

function stopIt() {
	if(theobj) {
		if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		}
		if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		}
	}
}

function timer(sec) {
	seconds=parseInt(sec)
	if(seconds>0) {
		seconds--
		timerID=setTimeout("timer(seconds)",500)
	}else{
		stopIt()
	}
}
<!--END GLOBAL FUNCTIONS-->
