function loadContent(page, div) {
  divOb = document.getElementById(div);
  divOb.style.display = '';
  // page is the page we're loading, div is the div we load it into
  var xmlhttp = getXMLHttpRequest();
  blindUp(div, {duration: .5, afterFinish: function () {
    xmlhttp.open('GET', page, true)
    xmlhttp.onreadystatechange = function load_content() {
      if (xmlhttp.readyState == 4) {
        divOb.innerHTML = xmlhttp.responseText;
	blindDown(div, {duration: .7});
	document.getElementById(div).style.overflow = 'visible';
        if (div == 'content') {
          id = page.split('.');
	  var menus = getElementsByTagAndClassName(null, 'selected');
	  for (i=0; i < menus.length; i++) {
	    menus[i].className = '';
	  }
	  document.getElementById(id[0]).className = 'selected'; 
        }
      }
    }
    xmlhttp.send(null);
  }});
}

