var rdivheight = 0;
var swapinterval = 10000;
  
divswapper = function() {
  var e1 = document.getElementById("contentrighthome1");
  var e2 = document.getElementById("contentrighthome2");
  // Make sure they have equal heights from the start to prevent elements below jumping up and down:
  h1 = e1.offsetHeight;
  h2 = e2.offsetHeight;
  // The one that is hidden will have height 0
  //  alert("h1\/h2:" + h1 + "\/" + h2);
  if (h2 == 0) {
    e1.className = "divhidden";
    e2.className = "divvisible";
    if (h1 > rdivheight) { 
      rdivheight = h1;
      // alert("rdivheight and e2 set to h1=" + h1);
      e2.style.height = rdivheight + "px"; 
      }
  }
  else {
    e2.className = "divhidden";
    e1.className = "divvisible";
    if (h2 > rdivheight) { 
      rdivheight = h2;
      // alert("rdivheight and e1 set to h2=" + h2);
      e1.style.height = rdivheight + "px"; 
      }
  }
}

bodyloader = function() {
window.setInterval(divswapper,swapinterval);
}

