

window.onload = columnMatch;

//COLUMN MATCH
function columnMatch(){
//resize content height to match that of the navigation et vv
var content = id('left-column');
var navigation = id('right-column');
if (!navigation) return;//no nav
if (navigation.offsetHeight > content.offsetHeight){//navigation taller than content
     content.style.height = navigation.offsetHeight + 'px';//resize content
     }
     else{//content taller than navigation
          navigation.style.height = content.offsetHeight + 'px';//resize navigation
          }
}

//get element by id
function id(id){
//accepts id
//returns element
return document.getElementById(id);
}
