function gemeinde_reload(id_groups)
{
	var content_location=parent.frames[1].location;
//	alert('content_location: '+content_location);
	content_location=content_location+'&id_groups='+id_groups;
	parent.frames[1].location=content_location;
}


// angepasst fuer php4; variable a => aa geaendert; gab sonst probleme mit sessions und cookies aus
function MM_openBrWindow_v3(theURL,winName,features) { //v2.0
 if (document.thewindow != null) {thewindow.close};
  thewindow = window.open(theURL,winName,features);
	if (window.focus){ thewindow.focus(); }
	return thewindow;
}

function MM_preloadImages_v3() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,aa=MM_preloadImages_v3.arguments; for(i=0; i<aa.length; i++)
    if (aa[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=aa[i];}}
}

function MM_swapImgRestore_v3() { //v3.0
  var i,x,aa=document.MM_sr; for(i=0;aa&&i<aa.length&&(x=aa[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_findObj_v3(n, d) { //v3.0
  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_v3(n,d.layers[i].document); return x;
}

function MM_swapImage_v3() { //v3.0
  var i,j=0,x,aa=MM_swapImage_v3.arguments; document.MM_sr=new Array; for(i=0;i<(aa.length-2);i+=3)
   if ((x=MM_findObj_v3(aa[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=aa[i+2];}
}

function MM_positionLayers() { //v3.0
  var xxx,i,p,v,obj,args=MM_positionLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj_v3(args[i]))!=null) { v=args[i+2];
		// aktuelle scroll-Position der Seite ermitteln (Netscape und IE verschieden)
		// Netscape
		if (document.layers)
		{
			var bka=parent.frames[1].pageYOffset;
			var pos=true;
		}
		// IE
		else if (document.all)
		{
			var bka=parent.frames[1].document.body.scrollTop;
			var pos=true;
		}
       if (obj.style) { obj=obj.style; }
		// Netscape und IE: Pulldown Menues an der richtigen Position ausklappen, auch wenn
		// das Frame gescrollt wurde
		if (pos)
		{
			obj.top=bka;
		}
		// NICHT netscape oder IE
		// sonst ganz nach oben scrollen
		else
	    {
			scroll(0,0);
		}
	}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj_v3(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function close_menu() {
// Mouse-Over-Button ausblenden
this.top.main.nav.MM_showHideLayers('buttonkbover','','hide','buttonftover','','hide','buttonpuover','','hide','buttonseover','','hide');
this.top.main.content.MM_showHideLayers('menuekb','','hide','menueft','','hide','menuepu','','hide','menuese','','hide','hidemenu','','hide');
this.top.main.nav.MM_showHideLayers('buttonhide','','hide');
}

function open_menu(id_matchcode) {
// verhindern, dass mehrere Menues gleichzeitig geoeffnet sein koennen (geht, wenn man 
// schnell mit der Maus ist)
if (id_matchcode == 'kb')
{
	this.top.main.nav.MM_showHideLayers('buttonftover','','hide','buttonpuover','','hide','buttonseover','','hide');
	this.top.main.content.MM_showHideLayers('menueft','','hide','menuepu','','hide','menuese','','hide','hidemenu','','hide');
}
if (id_matchcode == 'ft')
{
	this.top.main.nav.MM_showHideLayers('buttonkbover','','hide','buttonpuover','','hide','buttonseover','','hide');
	this.top.main.content.MM_showHideLayers('menuekb','','hide','menuepu','','hide','menuese','','hide','hidemenu','','hide');
}
if (id_matchcode == 'pu')
{
	this.top.main.nav.MM_showHideLayers('buttonkbover','','hide','buttonftover','','hide','buttonseover','','hide');
	this.top.main.content.MM_showHideLayers('menuekb','','hide','menueft','','hide','menuese','','hide','hidemenu','','hide');
}
if (id_matchcode == 'se')
{
	this.top.main.nav.MM_showHideLayers('buttonkbover','','hide','buttonftover','','hide','buttonpuover','','hide');
	this.top.main.content.MM_showHideLayers('menuekb','','hide','menueft','','hide','menuepu','','hide','hidemenu','','hide');
}

// Mouse-Over-Button einblenden
this.top.main.nav.MM_showHideLayers('button'+id_matchcode+'over','','show');
this.top.main.content.MM_positionLayers('menue'+id_matchcode,'','true');
this.top.main.content.MM_showHideLayers('menue'+id_matchcode,'','show','hidemenu','','show');
this.top.main.nav.MM_showHideLayers('buttonhide','','show');
// damit HideMenu auch noch richtig positioniert ist, wenn runtergescrollt wurde
this.top.main.content.MM_positionLayers('hidemenu','','true');
}

