actmenu = new Array();
function anzeigen(i) {
  $(i+'_td_0').className = 'grafik_I';
  $(i+'_td_1').className = 'text_I';
  $(i+'_bild').src = 'fileadmin/images/site_a.gif';
  document.getElementById(i+'_schluss').style.display = 'block';
		
  yyy = document.getElementsByClassName("zweiteEbene");
  ddd = new Array();
  s = 0;
  for(t=0;t<yyy.length;t++) {
    if(yyy[t].id.indexOf(i+'_') != -1) {
      ddd[s] = yyy[t];
      s++;
    }

  }
  
  am = 0;
  w = 0;
  while(w<actmenu.length) {
    if(actmenu[w] == i) { 
      am = 1;
      break;
    }
    w++;
  }
  if(am == 0) {
    for(t=0; t<ddd.length;t++) {
      if(ddd[t]) {
        ddd[t].style.display = 'block';
      }
    }
    actmenu[actmenu.length] = i;
  }
  else {
    $(i+'_bild').src = 'fileadmin/images/site.gif';
	$(i+'_td_0').className = 'grafik';
	$(i+'_td_1').className = 'text';
	document.getElementById(i+'_schluss').style.display = 'none';
    for(t=0; t<ddd.length;t++) {
      if(ddd[t]) { ddd[t].style.display = 'none'; }
    }
    
    s = 0;
    xmenu = new Array();
    for(w=0;w<actmenu.length;w++) {
      if(actmenu[w] != i) {
        xmenu[s] = actmenu[w];
        s++;
      }
    }
    actmenu = xmenu;
  }
}



// Suchefeld markieren
function markieren() {
  document.getElementsByName('suche')[0].select();
}

function brGo(URL,param) {
  if(URL.indexOf("?") != -1) { location.href = URL+"&m="+param; }
  else                       { location.href = URL+"?m="+param; }
}

