/**
 * 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';
//  footer.style.top = (bodyHeight - footer.offsetHeight) + 'px';
  footer.style.marginTop = '0px';

  return true;
} // end func fixFooter

var showImageWin = null;

function showImage(path, width, height, title)
{
  if (showImageWin != null && !showImageWin.closed)
    showImageWin.close();
  showImageWin = window.open('/showImage.php?path=' + path + '&title=' + title, '', 'resizable=yes,width=' + width + ',height=' + height);
} // end func showImage


function inoex_toggle(node, name)
{
  if (nodes = document.getElementsByName(name)) {
    for (i = 0; i < nodes.length; ++i) {
      nodes[i].disabled = !node.checked;
    }
  }
}