/* *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* */
/*   Copyright University Corporation for Atmospheric Research (UCAR) */
/*   2009-2010. All rights reserved. The Government's right to use this */
/*   data and/or software (the "Work") is restricted per the terms of the */
/*   Government Use Only License Agreement for (JAWS), effective */
/*   2-22-2006,between UCAR and the Federal Aviation Administration */
/*   (including any and all amendments thereto) to a "nonexclusive, */
/*   noncommercial, government use license.  Such license does not */
/*   include the right to sell copies of the copyrighted works. The Work */
/*   is provided "AS IS" and without warranty of any kind.UCAR EXPRESSLY */
/*   DISCLAIMS ALL OTHER WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ANY */
/*   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
/*   PURPOSE */
/*  */
/* *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* */
// JavaScript Document
/* http://bonrouge.com/~fixH */
function fixH(one,two) {
if (document.getElementById(one)) {
var lh=document.getElementById(one).offsetHeight;
var rh=document.getElementById(two).offsetHeight;
var nh = Math.max(lh, rh);
document.getElementById(one).style.height=nh+"px";
document.getElementById(two).style.height=nh+"px";
}
}

//this does it for three
function sortNum(a,b) { return b-a}
function fixH2(one,two,three) {
if (document.getElementById(one)) {
var obj=new Array(3);
var option=[one,two,three];
for(var i=0; i<option.length; i++) {
document.getElementById(option[i]).style.height="auto";
obj[i]=document.getElementById(option[i]).offsetHeight;
nh=obj.sort(sortNum);
}
nh1=nh.splice(1,2);
for(var i=0; i<option.length; i++) {
document.getElementById(option[i]).style.height=nh+"px";
}
}
}
//
window.onload=function(){
fixH2('pagenav','column_pagecontent','column_subcontent_wrap');
}
