//** Dynamic Drive Equal Columns Height script v1.01 (Nov 2nd, 06)
//** http://www.dynamicdrive.com/style/blog/entry/css-equal-columns-height-script/
//if (document.title != "TRIA Orthopaedic Center - Condition Details") {
var ddequalcolumns=new Object()
//Input IDs (id attr) of columns to equalize. Script will check if each corresponding column actually exists:
ddequalcolumns.columnswatch=["middlecolumn", "rightcolumn"]

ddequalcolumns.setHeights=function(reset){

var tallest=0
var resetit=(typeof reset=="string")? true : false
for (var i=0; i<this.columnswatch.length; i++){
if (document.getElementById(this.columnswatch[i])!=null){
if (resetit)
document.getElementById(this.columnswatch[i]).style.height="auto"
if (document.getElementById(this.columnswatch[i]).offsetHeight>tallest)
tallest=document.getElementById(this.columnswatch[i]).offsetHeight
}
}
if (tallest>0){
for (var i=0; i<this.columnswatch.length; i++){
if (document.getElementById(this.columnswatch[i])!=null)
  if (document.getElementById('headertable')!=null) {
    document.getElementById(this.columnswatch[i]).style.height=tallest-document.getElementById('headertable').offsetHeight+"px"
  } else {
    document.getElementById(this.columnswatch[i]).style.height=tallest+"px"
  }
}
}
}

ddequalcolumns.resetHeights=function(){
this.setHeights("reset")
}
//}