 var browserName = navigator.appName;
 var browserVersion = parseInt(navigator.appVersion);

function footPos()
{

	var wheight=eval(document.body.clientHeight);
var a=0;

	var b = eval(document.getElementById('head').offsetHeight)+ eval(document.getElementById('spacer').offsetHeight) + eval(document.getElementById('content').offsetHeight)+eval(document.getElementById('bottom').offsetHeight);

    if(b<wheight)
		      {
  
		          var a = eval(wheight-b)+50;
            if(document.getElementById('itemsarticle'))
            {
                var a = eval(wheight-b);
            }
		      } 



		if( (browserName == "Microsoft Internet Explorer" &&
          browserVersion == 4) && ( b != 	wheight || b<wheight ))
		{
    if( navigator.appVersion.indexOf("MSIE 6.0")||navigator.appVersion.indexOf("MSIE 5.5")||navigator.appVersion.indexOf("MSIE 5.0")||navigator.appVersion.indexOf("MSIE 4.0"))
    {
        if(document.getElementById('innerboxright2'))
        {
         var thisHeight = document.getElementById('innerboxright2').offsetHeight;
         if( thisHeight && thisHeight > 400)
            {    
          
                var a = a + thisHeight - 450;
            }
           }
			         document.getElementById('bottom').style.position='relative';
			         document.getElementById('bottom').style.margin=a+'px 0px 0px 0px';
			        
			     }
		}
	
}

function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}

function footPosHome()
{
	var wheight=eval(document.body.clientHeight);
var a=0;
    if( (browserName == "Microsoft Internet Explorer" &&
          browserVersion == 4) )
		      {
        if( navigator.appVersion.indexOf("MSIE 6.0")||navigator.appVersion.indexOf("MSIE 5.5")||navigator.appVersion.indexOf("MSIE 5.0")||navigator.appVersion.indexOf("MSIE 4.0"))
        {
            if (!window.Weite && document.body && document.body.offsetWidth) 
            {
                window.onresize = neuAufbau;
                Weite = Fensterweite();
                Hoehe = Fensterhoehe();
                if(wheight <672)
                {
                    var a = eval(wheight-Hoehe)+15;
                    document.getElementById('bottom').style.position='relative';
			                     document.getElementById('bottom').style.margin=a+'px 0px 0px 0px';
                }
             }
        }
      }



}