function Fensterhoehe()
{
document.write(document.body.clientHeight);
 try {

   if (document.body.clientHeight) hoehe= document.body.clientHeight;
   else if (document.body && document.body.offsetHeight)hoehe= document.body.offsetHeight;
   else if (window.innerHeight) hoehe= window.innerHeight;

    hoehe-=200;
    return hoehe;
   } catch(error) {
      // Anweisungsfolge, die im Ausnahmefall ausgeführt wird.
   } finally {
      // Anweisungsfolge, die anschließend in jedem Fall ausgeführt wird.
   }
}

/*
    Datei: window.js
    Datum: 03.08.2004
    Autor: J. Strübig <jstruebig@web.de>

    Beschreibung: Funktionen um Layer mit Hilfe von Javascript zu manipulieren.

     pageOffset([window])
        aktuelle Scrollposition der Seite.

     getWinSize(window)
        Größe des Anzeigebereiches

     getDocSize(window)
        Größe des Dokumentes

*/

////////////////////////////////////////////////////////////
// getDocSize(window)

function getDocSize(w)
{
    if(!w) w = window;
    var s = new Object();

    if (typeof document.height != 'undefined')
    {
        s.width =  w.document.width;
        s.height = w.document.height;
    }
    else
    {
        var obj = IE_check(w);
        s.width = obj.scrollWidth;
        s.height = obj.scrollHeight;
    }
    return s;
}

////////////////////////////////////////////////////////////
// getWinSize(window)
function getWinSize(win)
{
    if(!win) win = window;
    var s = new Object();
    if(typeof win.innerWidth != 'undefined')
    {
        s.width = win.innerWidth;
        s.height = win.innerHeight;
    }
    else
    {
         var obj = IE_check(win);
         s.width = parseInt(obj.clientWidth);
         s.height = parseInt(obj.clientHeight);
    }
    return s;
}
////////////////////////////////////////////////////////////
// offset(window)
function pageOffset(win)
{
    if(!win) win = window;
    var pos = {left:0,top:0};

    if(typeof win.pageXOffset != 'undefined')
    {
         // Mozilla/Netscape
         pos.left = win.pageXOffset;
         pos.top = win.pageYOffset;
    }
    else
    {
         var obj = IE_check(win);
         pos.left =   obj.scrollLeft;
         pos.top = obj.scrollTop;
    }
    return pos;
}


////////////////////////////////////////////////////////////
// Der IE hat 2 verschiedene Objekte für den strict und quirks Mode.
function IE_check(win)
{
    var m = Mode() == 'Strict';
    return m ? win.document.documentElement : win.document.body;

}

function Mode(doc)
{
    if(!doc) doc = window.document;
    return (doc.compatMode && doc.compatMode == "CSS1Compat") ?  // strict Modus
    'Strict' : 'Quirks';
}

function fenstergroesse(){
 var size = getWinSize();
 hoehe=size.height-350;
 document.getElementById('rahmen').style.height=hoehe+'px';
}

function fenstergroesse2(){
 var size = getWinSize();
 hoehe=size.height-240;
 document.getElementById('rahmen').style.height=hoehe+'px';
}

function fensterposition(){
 var size = getWinSize();
 hoehe=size.height-160;
 document.getElementById('fuss').style.top=hoehe+'px';
}

function fenstergroesse_layout1(){
 var size = getWinSize();
 hoehe=size.height-130;
 document.getElementById('rahmen').style.height=hoehe+'px';
}


function init()
{
   var a=document.getElementsByTagName('a');

   for (var i=0;i<a.length;i++) {
      a[i].onmousedown = function()
      {
         this.onfocus = function()
         {
            this.blur();
         }
      }
      a[i].onmouseup = function()
      {
         this.onfocus = function(){}
      }
      a[i].onmouseout = a[i].onmouseup;
   }
}

if ( (window.onload === undefined) || (window.onload === null) ) {
   window.onload = window.init;
}
else {
   window.myLoad = window.onload;
   window.onload = function()
   {
      window.myLoad();
      window.init();
   }
}