function columnheight(divA, divB, divC){
  heightA = document.getElementById(divA).offsetHeight;
  heightB = document.getElementById(divB).offsetHeight;
  heightC = document.getElementById(divC).offsetHeight;
  var newheight = Math.max(heightA, heightB, heightC, 341); 
  //alert("newheight: " + newheight);
  //newheight = Math.max(newheight, cntr); 
  document.getElementById(divA).style.height = newheight + "px"; 
  document.getElementById(divB).style.height = newheight + "px"; 
  document.getElementById(divC).style.height = newheight + "px";
}

window.onload=function(){
  columnheight("right","centerwrap","left");
}

function toggleDiv(divid){
  if(document.getElementById(divid).style.display == 'none'){
    document.getElementById(divid).style.display = 'block';
  }else{
    document.getElementById(divid).style.display = 'none';
  }
  columnheight('right', 'centerwrap', 'left');
}

function fadeOutIn(divOut, divIn) {
  new Effect.Fade(divOut, {afterFinish: function (obj) { new
  Effect.Appear(divIn) }})
  visDiv = divIn;
}

function featureNextProperty() {
  divIn = divOut + 1;
  if (divIn == divList.length) {
    divIn = 0;
  }
  //alert("divOut: " + divOut + " divIn: " + divIn);
  fadeOutIn(divList[divOut], divList[divIn]);
  divOut = divIn;
  t=setTimeout('featureNextProperty()',5000);
}
    
function startFeatureNextProperty() {
  //alert("begin");
  for (i=1; i<divList.length; i++)
  {
    //alert(i);
    Effect.Fade(divList[i]);
  }
  t=setTimeout('featureNextProperty()',5000);
}