function resizeBanner(e) {
  var w;
  document.documentElement.offsetWidth;
  if (window.innerWidth) {
    w = window.innerWidth;
  } else {
    w = document.documentElement.offsetWidth;
  }
  var el = document.getElementById('bannerPad');
  el.style.width = (w - 600) + "px";
}
function loadPage(page,usediv) {
  var xmlhttp;
  // Set up request varible
  try {
    xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e) {
    alert("Error: Could not load page.");
  }
  //scroll to top
  scroll(0,0);
  //send data
  xmlhttp.onreadystatechange = function() {
    //Check page is completed and there were no problems.
    if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
      //Write data returned to page
      document.getElementById(usediv).innerHTML = xmlhttp.responseText;
    }
  }
  xmlhttp.open("GET", page);
  xmlhttp.send(null);
  //Stop any link loading normaly
  return false;
}
window.onresize = resizeBanner;

