/* ------------------------------------------------------ Menüfunktionen ------------------- */
if (parent.frames.length<=0){
	st=document.URL;
	if (navigator.appName=='Netscape')	{st=st.substr(st.lastIndexOf("/")+1,st.length);}
	else	{st=st.substr(st.lastIndexOf("\\")+1,st.length);}
	var pfad="<a href='";	var pfad2="";
}
else {	var pfad="<a href='../";	var pfad2="../";}
var pfad3="<a href='";
var ma= false; 	var pos=0;	var xxx=0;
var aaaa="class='l2' target='_top'>";
var ver="frames/veranst_f.htm?z=";
var anz="frames/stadtanzeiger.htm?z=anzeiger";
var yyy=0;	var xkoord=0;	var X=0;	var Y=0;
var ns4= true;
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
var ie5 = false;
// Microsoft Stupidity Check(tm).
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) 	ie5 = true;
	if (ns6) 					ns6 = false;
}
function zeige(ebene){
	if (ns4) {document.layers[ebene].visibility="show";}
	else if (ie4) {document.all(ebene).style.visibility = "visible";}
	else  if (ns6) {self.document.getElementById(ebene).style.visibility="visible";}
}
function verstecke(ebene){
	if (ns4) {document.layers[ebene].visibility="hidden";}
	else if (ie4) {document.all(ebene).style.visibility = "hidden";}
	else  if (ns6) {self.document.getElementById(ebene).style.visibility="hidden";}
    }
function ae(menu){
	if (ma)  {verstecke(ma);}
 	ma= false;
	if (menu){
		div1=menu;
		teil1='pos'+menu;
		position(teil1,div1,-140,21)
		ma=menu;
	}
	xkoord=X;
}
function getLeft(l)  {
	if (l.offsetParent) return (l.offsetLeft + getLeft(l.offsetParent));
    	else return (l.offsetLeft);
}
function getTop(l)  {
    	if (l.offsetParent) return (l.offsetTop + getTop(l.offsetParent));
    	else return (l.offsetTop);
}
function position(teil,div,xxx,yyy){
if (teil=="maus")
{
	xxxx=Xmaus;
	yyyy=Ymaus;
	if (ns4) {     
             document[div].pageX = xxxx+xxx; 		
             document[div].pageY=yyyy+yyy;    
             }
	else if (ie4) {   		
			with (document.all[div].style) {	posLeft = xxxx+xxx;	       posTop = yyyy+yyy;}
	}
	else  if (ns6){
     	 	X = xxxx;	Y = yyyy;
		posLeft=X+xxx;	posTop=Y+yyy;
		self.document.getElementById(div).style.top=posTop+"px";
		self.document.getElementById(div).style.left=posLeft+"px";
        	}
}
else{
	if (ns4) {  pos = document.images[teil];
      		with (document[div]) {
        			pageX = pos.x+xxx;
			X=pos.x;
        			pageY = pos.y+yyy;
			Y=pos.y;
      		}
	}
	else if (ie4) {
    		var pos = document.all[teil];
      		with (document.all[div].style) {
			posLeft = getLeft(pos)+xxx;	X=getLeft(pos);
        			posTop = getTop(pos)+yyy;	Y=getTop(pos);
      		}
	}
	else  if (ns6){
		pos = document.images[teil];
       	 	X = pos.x;	Y = pos.y;
		posLeft=X+xxx;	posTop=Y+yyy;
		self.document.getElementById(div).style.top=posTop+"px";
		self.document.getElementById(div).style.left=posLeft+"px";
        	}
}
zeige(div);
}
function mauskoord(Event){
  	if (ns4 || ns6) {
		Xmaus=Event.pageX; Ymaus=Event.pageY;
		if(Event.pageX > xkoord+20 || Event.pageX < xkoord-170)	{ae(); }
  	}
  	else if (ie4) {
		Ypage=document.body.scrollTop;	Xpage=document.body.scrollLeft;
		Xmaus=event.clientX+Xpage; 	Ymaus=event.clientY+Ypage;
   		if(window.event.clientX > xkoord+20 || window.event.clientX < xkoord-170)	{ae();  }
  	}
}
function Event_init(){
  	if (ns4) 	document.captureEvents(Event.MOUSEMOVE);
    	document.onmousemove=mauskoord;
}
function nd(){verstecke("overDiv");}
function overlib(txt,a){
	XXmaus=Xmaus-50;	YYmaus=Ymaus-50;
	txt='<table cellspacing=0 border=0 cellpadding=2><tr><td background="'+pfad2+'i/overhg.gif"><font color="white"><b>'+a+'</b></font></td><td align=right background="'+pfad2+'i/overhg.gif"><a href="javascript(nd);" onMouseOver="nd();" class="aaab"><b><font color="white">Schlie&szlig;en</font></b></a></td></tr><tr><td colspan=2 bgcolor="#333333">'+txt+'</td></tr></table>';
	if(ns4){
		var lyr=document.overDiv.document
		lyr.write(txt);
		lyr.close();
    		document.overDiv.pageX = XXmaus; document.overDiv.pageY = YYmaus;
	}
	else if(ie4){
		document.all["overDiv"].innerHTML=txt
		with (document.all["overDiv"].style) {	posLeft = XXmaus;		posTop = YYmaus;	}
	}
	else if(ns6){
		over=document.getElementById("overDiv");
		range=document.createRange();
		range.setStartBefore(over);
		domfrag=range.createContextualFragment(txt);
		while(over.hasChildNodes()){	over.removeChild(over.lastChild);	}
		over.appendChild(domfrag);
		document.getElementById("overDiv").style.top=YYmaus+"px"; document.getElementById("overDiv").style.left=XXmaus+"px";
	}
	zeige("overDiv");
}
function div_schreiben(){
var q1="<table width=140 background='"+pfad2+"i/um.gif' BORDER=0 CELLPADDING=0 CELLSPACING=0><tr><td><p class='abst'>";
var q2="</p></td></tr><tr><td><img src='"+pfad2+"i/um2.gif' width=140 height=3 alt=''></td></tr></table></div>";

document.writeln("<div id='binfo'>"+q1+pfad+"oebinfo.htm'"+aaaa+" Rathaus</a><br>");
document.writeln(pfad+"oeeinrichtungen.htm' "+aaaa+"  Wichtige Einrichtungen</a><br>"+pfad+"oeges_soz.htm' "+aaaa+"  Gesundheit &amp; Soziales</a><br>");
document.writeln(pfad+"formulare.htm' "+aaaa+"  Formulare &amp; Satzungen</a><br>"+q2);

document.writeln("<div id='anzeiger'>"+q1);
document.writeln(pfad+anz+"januar' "+aaaa+"  Januar</a><br>"+pfad+anz+"februar' "+aaaa+"  Februar</a><br>");
document.writeln(pfad+anz+"maerz' "+aaaa+"  M&auml;rz</a><br>"+pfad+anz+"april' "+aaaa+"  April</a><br>");
document.writeln(pfad+anz+"mai' "+aaaa+"  Mai</a><br>"+pfad+anz+"juni' "+aaaa+"  Juni</a><br>");
document.writeln(pfad+anz+"juli' "+aaaa+"  Juli</a><br>"+pfad+anz+"august' "+aaaa+"  August</a><br>");
document.writeln(pfad+anz+"september' "+aaaa+"  September</a><br>"+pfad+anz+"oktober' "+aaaa+"  Oktober</a><br>");
document.writeln(pfad+anz+"november' "+aaaa+"  November</a><br>"+pfad+anz+"dezember' "+aaaa+"  Dezember</a><br>"+q2);

document.writeln("<div id='veran'>"+q1);
document.writeln(pfad+ver+"januar' "+aaaa+"  Januar</a><br>"+pfad+ver+"februar' "+aaaa+"  Februar</a><br>");
document.writeln(pfad+ver+"maerz' "+aaaa+"  M&auml;rz</a><br>"+pfad+ver+"april' "+aaaa+"  April</a><br>");
document.writeln(pfad+ver+"mai' "+aaaa+"  Mai</a><br>"+pfad+ver+"juni' "+aaaa+"  Juni</a><br>");
document.writeln(pfad+ver+"juli' "+aaaa+"  Juli</a><br>"+pfad+ver+"august' "+aaaa+"  August</a><br>");
document.writeln(pfad+ver+"september' "+aaaa+"  September</a><br>"+pfad+ver+"oktober' "+aaaa+"  Oktober</a><br>");
document.writeln(pfad+ver+"november' "+aaaa+"  November</a><br>"+pfad+ver+"dezember' "+aaaa+"  Dezember</a><br>"+q2);

document.writeln("<div id='voigt'>"+q1);
document.writeln(pfad3+"http://www.schloss-voigtsberg.de' class='l2' target='_blank'>Kreativschmiede</a><br>");
document.writeln(pfad+"schloss.htm' "+aaaa+"Teppich- und Heimatmuseum</a><br>");
document.writeln("<span class='rrrr'>z.Z. geschlossen</span><br>"+q2);

document.writeln("<div id='bild'>"+q1+pfad+"oekiga.htm' "+aaaa+"  Kinderg&auml;rten</a><br>"+pfad+"oebild.htm' "+aaaa+"  Schulen</a><br>"+q2);

document.writeln("<div id='stadt'>"+q1+pfad+"oestadt.htm' "+aaaa+"  Charakteristik</a><br>"+pfad+"oeallg.htm' "+aaaa+"  Zahlen &amp; Fakten</a><br>");
if(ns4==false){document.writeln(pfad+"fotos.htm' "+aaaa+"  Stadtansichten</a><br>");}
document.writeln(pfad+"frames/stpl_f.htm' "+aaaa+"  Stadtplan</a><br>"+q2);

document.writeln("<div id='touri'>"+q1+pfad+"oekulttour.htm' "+aaaa+"  Informationen</a><br>"+pfad+"frames/vermiet_f.htm' "+aaaa+"  Vermieterverzeichnis</a><br>"+q2);

document.writeln("<div id='wirt'>"+q1);
document.writeln(pfad+"frames/wirt_f.htm?z=Gewerbegebiete' "+aaaa+"  Gewerbegebiete</a><br>");
/*document.writeln(pfad+"frames/wirt_f.htm?z=Firmen' "+aaaa+"  Firmen</a><br>");*/
document.writeln(pfad+"frames/wirt_f.htm?' "+aaaa+"  Wirtschaftsf&ouml;rderung</a><br>"+q2);

document.writeln("<div id='overDiv' style='position:absolute;'>&#160;</div><div id='leer'>&#160;</div>");
return;
}

var exist=false;

function openDetail (bild,schrift) 
{ if (exist) 
 {if (!mywindow.closed) 
  { mywindow.window.close(); 
  }
 }
 mywindow = window.open('','','width=500,height=500,resizable,scrollbars');
 with (mywindow.document)
 { open('text/html');
   writeln('<TABLE cellspacing="0" cellpadding="0" border="0">');
   writeln('<TR><TD colspan=2>');
   writeln('<img src='+bild+'>'); 
   writeln('</TD></tr><tr><TD valign=top><font face=arial size=2>'+schrift);
   writeln('</TD><TD valign=bottom align=right><FONT FACE=arial SIZE=1>');
   writeln('<a href=javascript:window.close()><b>Fenster schlie&szlig;en</b></A></td>');
   writeln('</TR>');
   writeln('</TABLE>');
   close();
  }	
  exist=true; 
}

