
/********************************************************
   Dynamic Map
 ********************************************************/

// create the later that slides on page scroll
function initStatLyr() {
  // args: id, left, top, w, h, duration of glide to location onscroll, acceleration factor
  // acceleration factor should be -1 to 1. -1 is full deceleration
  var statLyr = new Glider("fn-mapall-container",0, 10,null,null,550,-1, 140);
  statLyr.show();
}

/********************************************************
   Fill remaining page height
 ********************************************************/

function setDynProp(id, footerId){
  var px = window.opera ? 0: "px";
  var el = document.getElementById(id);
  var footer = document.getElementById(footerId);

  if(el && footer){
    var winHt = getWindowHeight();
    var prop = winHt - (footer.offsetTop + footer.offsetHeight);
    el.style.height = prop + px;
  }
}

/********************************************************
   Returns the browser's window height
 ********************************************************/

function getWindowHeight() {
  var winHt = 0;

  if (window.innerHeight)
    winHt = window.innerHeight - 10;
  else if (document.documentElement && document.documentElement.clientHeight)
    winHt = document.documentElement.clientHeight;
  else if (document.body && document.body.clientHeight)
    winHt = document.body.clientHeight;

  return winHt;
}

