/**
 * Sticks footer at bottom of entire page.
 *
 * @access  public
 */
function fixFooter(resizeContent)
{
  if (!document.getElementsByTagName)
    return false;

  var htmlObj = document.getElementsByTagName('html')[0];
  var bodyObj = document.getElementsByTagName('body')[0];
  var cell    = getNode('body');
  var footer  = getNode('footer');

  cell.style.height = 'auto';

  var docHeight  = htmlObj.clientHeight > htmlObj.scrollHeight ? htmlObj.clientHeight : htmlObj.scrollHeight;
  var bodyHeight = bodyObj.clientHeight > bodyObj.scrollHeight ? bodyObj.clientHeight : bodyObj.scrollHeight;

  cell.style.height = ((docHeight > bodyHeight ? docHeight : bodyHeight) - (getNode('logo') ? 72 + footer.offsetHeight : 341)) + 'px';

  var tmp;
  if (resizeContent == true && (tmp = getNode('contentBlock')) && tmp.style.MozOpacity != 1)
    getNode('contentBlock').style.width = footer.clientWidth < 850 ? (footer.clientWidth - 34 - 176) + 'px' : '610px';

  return true;
} // end func fixFooter


function wirkstoffe(key)
{
  switch (key) {
    case 'produkt_anspr_shampoo':
    case 'produkt_anspr_tonikum':
    case 'produkt_schup_shampoo':
    case 'produkt_schup_kur':
    case 'produkt_schup_tonikum':
    case 'produkt_fett_shampoo':
    case 'produkt_fett_tonikum':
    case 'produkt_grau_shampoo':
    case 'produkt_grau_tonikum':
    case 'produkt_liquid':
    case 'produkt_a1':
    case 'produkt_a2':
    case 'produkt_a3':
    case 'produkt_s1':
    case 'produkt_c1':
    case 'produkt_doppeleffekt':
    case 'produkt_trocken_hypo':
    case 'produkt_schup_hypo':
    case 'produkt_color_hypo':
    case 'produkt_silberton':
    
      window.open(basePathLang + '/wirkstoffe.php?id=' + key, 'wirkstoffe', 'width=200,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

