function matchHeight(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";
}
}

function matchHeightScale(one,two,three) {
if (document.getElementById(one)) {
var lh=document.getElementById(one).offsetHeight;
var rh=document.getElementById(two).offsetHeight;
var ch=document.getElementById(three).offsetHeight;
var nh = Math.max(lh, rh, ch);
document.getElementById(one).style.height=nh+"px";
document.getElementById(two).style.height=nh+"px";
document.getElementById(three).style.height=nh+"px";
}
}

window.onload=function(){
matchHeight('navigation','content');
matchHeight('profilePanelBodyLeftEdge','profilePanelBodyRightEdge');
matchHeight('profileSecondPanelBodyLeftEdge','profileSecondPanelBodyRightEdge');
matchHeight('profileThirdPanelBodyLeftEdge','profileThirdPanelBodyRightEdge');
matchHeight('contentWideLeftPanel','contentWideRightPanel');
matchHeightScale('navigationScale','contentLeftPanel','contentRightPanel');
matchHeightScale('navigationScaleWide','contentLeftPanelWide','contentRightPanelWide');
}