// JavaScript Document

//function to create xmlHttp object
function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}// end of function to create ajax object

var xmlHttp; //declare variable to be used as object later

//function to load page data
function getPage(id){
 var url="getPage.php?id="+id;
 xmlHttp=GetXmlHttpObject(); // create instance of xmlHttp object
 xmlHttp.onreadystatechange= function(){
   if(xmlHttp.readyState==4) { 
     document.getElementById("pageData").innerHTML=xmlHttp.responseText;
	 }
   }
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);	
 return false
}

 //functions used on pages/bios.php 
 function hideBio(id){
 document.getElementById(id).style.display = 'none';
 }

 function showBio(id){
  //first hide all the other bio's
  hideBio('georgeMeyers');
  hideBio('haig');
  hideBio('larryRifkin');
  hideBio('steveMednick');
  hideBio('tonyCasagrande');
  hideBio('vernColes');
  //then show the selected bio
  document.getElementById(id).style.display = 'block';
  //return false to keep browser from following link
  return false;
 }