



/* ############# resize ################## */


function resizeTree() {

  minTreeHeight = 300;
  shimHeight = 37;

  headerDiv = document.getElementById("header");
  footerDiv = document.getElementById("footer");


  // howtocreate.co.uk
  //var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    windowWidth = window.innerWidth;
    windowHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    windowWidth = document.documentElement.clientWidth;
    windowHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    windowWidth = document.body.clientWidth;
    windowHeight = document.body.clientHeight;
  }

  containerDiv = document.getElementById("movie");
  treeDiv = document.getElementById("flashdiv");
  newTreeHeight = windowHeight - (headerDiv.offsetHeight + footerDiv.offsetHeight + shimHeight);
   //alert(windowHeight + ':' + headerDiv.offsetHeight + ':' + footerDiv.offsetHeight + ':' + newTreeHeight);
  if (newTreeHeight < minTreeHeight) {
    treeDivHeight = minTreeHeight;
  } else {
    treeDivHeight = newTreeHeight;

  }
  containerDiv.style.height = treeDivHeight + "px";
  treeDiv.style.height = treeDivHeight + "px";


}

