// JavaScript Document


//Full Depth container code start - relies on two addional parts: 1. onResize in BODY tag and 2. Script at base.
//Technique at: http://www.kpao.org/blog/2008/08/set-height-html-element-window.html
  function findElementById(id)
  {
    if (document.getElementById)
      return document.getElementById(id);
    else if (document.all)
      return document.all[id];
    else if (document.layers)
      return document.layers[id];
  }

  function setMinHeight(x)
  {
    theElement = findElementById(x);
    if(!theElement.style.minHeight || theElement.offsetHeight > parseInt(theElement.style.minHeight))
      theElement.style.minHeight = theElement.offsetHeight + 'px';
  }
  
  function setHeight(x) {
    theElement = findElementById(x);
    windowHeight = window.innerHeight;
    if(!windowHeight) // fricking IE
      windowHeight = document.documentElement.clientHeight;
    if(windowHeight > parseInt(theElement.style.minHeight)) 
      theElement.style.height = windowHeight + 'px';
    else
      theElement.style.height = theElement.style.minHeight;
  }
  //Full Depth container code end
  
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}

