/**
 * 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 docHeight = htmlObj.clientHeight > htmlObj.scrollHeight ? htmlObj.clientHeight : htmlObj.scrollHeight;
  var bodyHeight = bodyObj.clientHeight > bodyObj.scrollHeight ? bodyObj.clientHeight : bodyObj.scrollHeight;
  var footer = getNode('footer');

  footer.style.position = 'absolute';
  footer.style.top = ((docHeight > bodyHeight ? docHeight : bodyHeight) - footer.offsetHeight) + 'px';

  return true;
} // end func fixFooter

