/**
 * Sticks footer at bottom of entire page.
 *
 * @access  public
 */
function fixFooter()
{
  if (!document.getElementsByTagName)
    return false;

  if (!(document.all && document.all[0].currentStyle))
    return false;
  if (navigator.appVersion.indexOf('Mac') >= 0)
    return false;

  var htmlObj = document.getElementsByTagName('html')[0];
  var bodyObj = document.getElementsByTagName('body')[0];

  var footer = getNode('footer');

  var docHeight  = htmlObj.clientHeight > htmlObj.scrollHeight ? htmlObj.clientHeight : htmlObj.scrollHeight;
  var bodyHeight = bodyObj.clientHeight > bodyObj.scrollHeight ? bodyObj.clientHeight : bodyObj.scrollHeight;
  
  footer.style.position = 'absolute';
  footer.style.top = ((docHeight > bodyHeight ? docHeight : bodyHeight) - footer.offsetHeight) + 'px';
  footer.style.marginTop = '0px';

  return true;
} // end func fixFooter

function wirkstoffe(key)
{
  switch (key) {
    case 'fett':
    case 'milch':
    case 'oel':
      window.open('wirkstoffe.php?id=' + key, 'wirkstoffe', 'width=300,height=350,resizable=yes,scrollbars=yes');
      break;
  }

  return false;
} // end func wirkstoffe


function winOpen(url, breite, hoehe)
{
    links = (screen.width/2)-(breite/2);
    oben = (screen.height/2)-(hoehe/2);
    window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = auto,fullscreen = no,top ="+oben+",left ="+links);
} // end func winOpen