/* this is the script to allow the iframe with the list of upcoming events to be resizable according to the content, this is necessary for i.e. 6 which will not interpret the height 100% attribute. Script source: http://www.codingforums.com/showthread.php?t=105985*/

function resizeIframe(){
  var ifr = document.getElementById("main");
  var ifrBody = ifr.contentWindow.document[getDocBody(ifr.contentWindow)];
  ifr.style.height=ifrBody.scrollHeight+"px";
}

function getDocBody(win){
  if (!win) win=window;
  if (win.document.compatMode && win.document.compatMode != 'BackCompat') { //standards compliant mode 
    return "documentElement";
  }
  return "body";
}
