// ode to IE8; http://msdn.microsoft.com/en-us/library/ms536437(VS.85).aspx

function setNavHeight() {
  lNavigation = document.getElementById('navigation');
  if (lNavigation == null) {
    lNavigation = document.getElementById('navigation2');
  }

  lContent = document.getElementById('content');

  if (lContent == null) {
    lContent = document.getElementById('content325');
  }

  if ((lNavigation != null) && (lContent != null)) {
    if (lNavigation.clientHeight > lContent.clientHeight ) {
      lContent.style.height = lNavigation.clientHeight + "px";
    }
    
    if (lNavigation.clientHeight < lContent.clientHeight ) {
      // 26 Aug 2009 AJD;
      // content.style.height = navigation.clientHeight + "px";
      lNavigation.style.height = lContent.clientHeight + "px";
    }
  }
} // setNavHeight

function orangeBar() {
  // for(idx=1;idx<=2;idx++) {
  //   document.getElementById("v_toggle"+idx).click = setNavHeight;
  // }
  setNavHeight();
} // orangeBar

if (window.addEventListener) {
  window.addEventListener('load', orangeBar, false);
} else if (document.addEventListener) {
  document.addEventListener('load', orangeBar, false);
} else if (window.attachEvent) {
  window.attachEvent('onload', orangeBar);
} else {
  orangeBar();
}


