
//nc relaodpage
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerheight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerheight!=document.pgH) location.reload();
}
reloadPage(true);

var dom = document.getElementById?1:0;
var groups = 3;

function showMenu(name,number) {
 for (count = 1; count <= groups; count++) {
 var content = name + count;
 var active = name + number;

  if(content == active) {
    document.getElementById(active).style.visibility = 'visible';
    document.getElementById(active).onmouseover = clearShut;
    document.getElementById(active).onmouseout = setShut;
   }
   else {
    document.getElementById(content).style.visibility = 'hidden';
   }
  }
  
 first = name, sec = number;
 clearShut();
}


function setShut() { 
timer = setTimeout("shut(first,sec)", 500);
}


function clearShut() {
if(window.timer)
clearTimeout(timer);
}

function shut(first,sec) {
 var active = first + sec;
 if (active = document.getElementById(active)){
   active.style.visibility = 'hidden';
 }
   var loc = window.location.href;
   var match = loc.match(/\/([a-zA-Z0-9-]+)\,/);
   if (match && match["1"]){
     for (count = 1; count <= groups; count++) {
       var elem;
       if (elem = document.getElementById(first+count) ){
	 var inner = elem.innerHTML;
	 if (elem.innerHTML.match(match[1])){
	     window.showMenu(first, count);
	     return;
	 }
       }
     }
   }
}


if (screen.width < 1000) {
	document.write('<link rel="stylesheet" type="text/css" href="<?=$styles_url?>/02_extra.css" />');
} 

//______________________________ Fenster  ___________________________________________________________//
// bp_php: onClick="javascript:upload(this.href, \'bild\', \'440\', \'500\', \'no\');  return false" 
//.....................................................................................................
		var Fenster = 0;
		var Fenster;
		function upload(meineSeite,meinName,w,h,scroll)
		{
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
			Fenster = window.open(meineSeite,meinName,settings)
			Fenster.focus();
		}
		
//status zeile
var txt = "";
function szeile()
   {
    status = '';
   }
   
   
  if (window.ActiveXObject) window.ie = window[window.XMLHttpRequest ? 'ie7' : 'ie6'] = true;
  else if (document.childNodes && !document.all && !navigator.taintEnabled) window.khtml = true;
  else if (document.getBoxObjectFor != null) window.gecko = true;
