//AB: 19.04.2002 Return-Taste abfangen

var Netscape = new Boolean();
if(navigator.appName == "Netscape")  Netscape = true;

function TasteGedrueckt(Ereignis)
{
 if(Netscape == true)
  { IfReturnPress(Ereignis.which); return true; }
}  

function IfReturnPress(nCode)
{
  if (nCode == 13)
  {
    if (document.forms.length != 0)
    { submitForm(); }
  }
}

document.onkeydown = TasteGedrueckt;


// ************************************************************************************
// StyleSheet je nach Browsertyp einbinden

if (((navigator.platform.indexOf('Win')) != -1) && (navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) < 5)){
   document.write("<link rel='stylesheet' href='/css/font.css'>");
   document.write("<link rel='stylesheet' href='/css/navi.css'>");
} 
else { 
  if ((navigator.appName == 'Microsoft Internet Explorer')|| (navigator.appName == 'Netscape'))
  {
    document.write("<link rel='stylesheet' href='/css/font.css'>");
	document.write("<link rel='stylesheet' href='/css/navi.css'>");
  }
  else{
    document.write("<link rel='stylesheet' href='/css/font.css'>");
	document.write("<link rel='stylesheet' href='/css/navi.css'>");   
  }
}
//document.close();



// ************************************************************************************
// Bilder austauschen

 // swap Images
  U1 = new Image(); 
  U1.src = "/images/nav__0.gif"; /* up */

  D1 = new Image(); 
  D1.src = "/images/nav__1.gif"; /* down */

  function sI(Bn,Bo)
  {
  	window.document.images[Bn].src = Bo.src;
  }

// swap Images
  U2 = new Image(); 
  U2.src = "/images/blank.gif"; /* up */

  D2 = new Image(); 
  D2.src = "/images/blank.gif"; /* down */

  function sII(Bn,Bo)
  {
  	window.document.images[Bn].src = Bo.src;
  } 
  
 // swap Images
  U3 = new Image(); 
  U3.src = "/images/point_1.gif"; /* up */

  D3 = new Image(); 
  D3.src = "/images/point_2.gif"; /* down */

  function s3(Bn,Bo)
  {
  	window.document.images[Bn].src = Bo.src;
  }  
  
function Ns_Resize(){
  var agt = navigator.userAgent.toLowerCase();
  var is_major = parseInt(navigator.appVersion);
  var is_nav = ((agt.indexOf ('mozilla') != -1) &&
  (agt.indexOf('spoofer') == -1) && 
  (agt.indexOf('compatible') == -1));
  var is_nav4 = (is_nav && (is_major == 4));
  if (is_nav4) {
    window.location.href=window.location.href;
  }    
}



function showPopup(sFile,h,w,sScroll)
  {


//    vX =  screen.width / 2 - w / 2
//    vY =  screen.height / 2 - h / 2

//    window.open(sFile,null,"left="+vX+",top="+vY+",height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars=no");

  Fenster = window.open(sFile,null,"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars=" + sScroll);
  Fenster.focus() 
  }
