       function handleHttpResponse() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
              document.getElementById(functioncontainer).innerHTML = results;
              }
              }
        }
       
function getHTTPObject() {
  var xmlhttp;

  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
   
}
  return xmlhttp;

 
}
var http = getHTTPObject();

function showpage(pagename,container) {
functioncontainer = container;      
http.open("GET", escape(pagename), true);
http.onreadystatechange = handleHttpResponse;
http.send(null); 
}

function closepage(container) {
document.getElementById(container).innerHTML = "";
}

function showmap() {
closepage('container1');
showpage('map.php','container2');
}

function showtwitter() {
closepage('container2');
showpage('twitter.php','container1');
}

function playSound( mysound )
{ thisSound = document.getElementById(mysound);
  thisSound.Play();
}