positionFooter = function() {
  dh = document.documentElement.clientHeight;
  wh = document.documentElement.scrollHeight;
  f  = $('footer').style;
  h  = $('page-title').style;
  if (dh >= wh) {
    f.position = 'absolute';
    f.top = dh - 30 + 'px';
    f.zIndex = 4;
    h.position = 'absolute';
    h.top = dh - 92 + 'px';
  } else {
    f.position = 'static';
    h.position = 'relative';
    h.top = 17 + 'px';
  }
}
resizeContent = function() {
  dh = document.documentElement.clientHeight;
  wh = document.documentElement.scrollHeight;
  if ($('directions') != undefined) {
    s = $('directions').getHeight;
  } else {
    s = 0;
  }
  c = $('content').style;
  if (dh >= wh) {
    ht = dh;
  } else {
    ht = wh;
  }
  ht -= 385 + s;
  c.height = ht + 'px';
}
document.observe('dom:loaded', function() { positionFooter(); });
/* document.observe('dom:loaded', function() { resizeContent(); }); */