// Functions & Preload für HN
agent=navigator.userAgent;
browser=9;
first=1;

if(agent.substring(0,7)=="Mozilla"){
	if(parseInt(agent.substring(8,9)) >= 3){
		browser=1;
	}
}

ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
ns3 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 ))

if (!ie4&&!ns4)
    window.top.location="/nogo.asp";

/*if (ns4) {
   layer="document.layers";
   style="";
   image="document.layers[\"nav\"].document.images";
} else {
  layer="document.all";
   style=".style";
   image="document.images";
}*/

image="document.images";

function printS(s)
        {
        window.status=s;
        return true;
   }

function clearS()
        {
        window.status="";
        return true
        }

function hiLite(imgDocID, imgObjName) {
      if (browser == 1) {
             eval(image + '["' + imgDocID+ '"].src = ' + imgObjName + '.src');  }}

function MM_findObj(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(n,d.layers[i].document); return x;
}

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(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 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 Optional_Click(id) {
if (id.style.display=="none")
id.style.display="block";
else                 	
id.style.display="none";
	}



//

function SMF_CreateWin(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=1,width=600,height=480");
 }

function SMF_CreateWin2(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=0,width=360,height=240");
 }

function SMF_CreateWin3(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=1,width=620,height=400");
 }

function SMF_CreateWin_420x320(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=0,width=420,height=320");
 }

function SMF_CreateWin_660x500(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=0,width=660,height=500");
 }

function SMF_Popup(url_htmfile) 
{
 var newWindow=window.open(url_htmfile,"newWindow","width=740,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,scrollbars=1");
 }



function go1(section)
 {
   idx=section.options.selectedIndex;
   top.location.href=section.options[idx].value;
  }

function go2(section)
 {
   idx=section.options.selectedIndex;
   top.main.location.href=section.options[idx].value;
  }