function MM_findObj(n, d) { //v4.01
  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(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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 adjustLayout() {
	var maxHeight = Math.max(xHeight('content'), xHeight('features'));
	xHeight('content',  maxHeight);
	xHeight('features', maxHeight + 12);
}


var subnavExists = new Array();

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function navMouseOver(navID) {
	switchNav(navID);
	window.clearTimeout(tp);
}

function navMouseOut(navID) {
	tp = window.setTimeout('switchNav(' + activeNav + ', true)',500);
}

function navClick(navID) {
	activeNav = navID;
	activeSubNav = null;
	switchNav(navID);
}

function subnavMouseOver(subnavID) {
	window.clearTimeout(tp);
	subnavHighlight(subnavID);
}

function subnavMouseOut(subnavID) {
	tp = window.setTimeout('switchNav(' + activeNav + ', true)',200);
}

function subnavHighlight(subnavID) {
	if(hlSubNav) {
		if(x=MM_findObj('navcell' + hlSubNav))	x.className = '';
	}
	if(x=MM_findObj('navcell' + subnavID))	x.className = 'subnavactive';

	hlSubNav = subnavID;
}

function subnavClick(subnavID) {
	activeNav = hlNav;
	activeSubNav = subnavID;
}

function switchNav(navID, hideSubnav) {
	var x;
//	alte Navigation "abschalten"
		if(subnavExists[hlNav]) MM_showHideLayers('subnav' + hlNav,'','hide');
		if(x=MM_findObj('navcell' + hlNav))	x.className = '';
//  neue Navigation aktivieren
		if (!hideSubnav) if(subnavExists[navID]) MM_showHideLayers('subnav' + navID,'','show');
		if(x=MM_findObj('navcell' + navID))	x.className = 'navactive';
		if (!hideSubnav) {
			if(navID==activeNav && activeSubNav) subnavHighlight(activeSubNav);
			else subnavHighlight(null);
		}
		hlNav = navID;
}

function switchNavSubnav(navID, subnavID) {
	activeSubNav = subnavID;
	activeNav = navID;
	switchNav(navID);
}

var activeNav;							// der angeklickte Navigationspunkt
var activeSubNav;						// der angeklickte Subnavigationspunkt
var hlNav;								// der Navigationspunkt, der gerade highlighted ist
var hlSubNav;							// der angeklickte Navigationspunkt
var tp;									// Pointer auf den Timeout

navBright = new Array();
navDark = new Array();

function openWindow(url,w,h){
	Fenster = window.open(url,'Fenster','width='+w+',height='+h+',top=20,left=20,location=0,directories=0,status=no,menuBar=no,toolbar=no,scrollbars=yes,resizable=yes');
	Fenster.focus();
}