
function displayDetails(target) {
var current= document.getElementById("momo");
var turnOn = document.getElementById(target);
var turnOff = document.getElementById(current.title);
turnOff.style.display = "none";
turnOn.style.display = "block";
current.title = turnOn.id;
//window.alert("Current is: " +current.title + " Turn off: " + turnOff.style.display +
// " Turn on: "+ turnOn.style.display);
}

      var XMLHttpRequestObject = false; 

      if (window.XMLHttpRequest) {
        XMLHttpRequestObject = new XMLHttpRequest();
      } 
	else if (window.ActiveXObject) {
        XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
      }

function getData(dataSource, divID) { 
        if(XMLHttpRequestObject) {
          var obj = document.getElementById(divID);
	  var url = "http://www.heartsacrossthemiles.org/"+dataSource;
	  var ftContent = "<b>Please Note:</b><br>"+
"&nbsp;&nbsp;&nbsp;&nbsp;Media items can be previously viewed but must be originals. We cannot accept copied media.<br>"+
"&nbsp;&nbsp;&nbsp;&nbsp;Regretfully we cannot accept items in aerosol containers.<br>"+
"<b>Hearts Across The Miles would like to thank:</b><br>"+
"&nbsp;&nbsp;&nbsp;&nbsp;<a href=http://www.arborhosting.com>Arbor Hosting</a> for hosting our website.<br>"+
"&nbsp;&nbsp;&nbsp;&nbsp;<a href=http://www.mesasystemsinc.com/locations/index.cfm>Mesa Systems, Inc.</a>"+
"for donating space to house our mission and for our packaging days.<br>"+
"<b>Contact the<a href= 'mailto:hatmweb@comcast.net?Subject=Hearts%20Across%20the%20Miles%20Website&cc=hatm@gmx.com'> "+
"HATM Web Team</a></b> with any questions or comments on this page.<br>"+
"<a href='http://www.facebook.com/pages/Hearts-Across-the-Miles/101889599899285'><img src= 'fb_icn_40.gif'>Follow us on facebook</a>";

//window.alert(ftContent);

          XMLHttpRequestObject.open("GET", url, true); 


          XMLHttpRequestObject.onreadystatechange = function() 
           { 
//window.alert("ready state: " + XMLHttpRequestObject.status);
            if (XMLHttpRequestObject.readyState == 4) 
              if (XMLHttpRequestObject.status == 200) {
		obj.innerHTML = XMLHttpRequestObject.responseText; 
		foot = document.getElementById("footer");
		foot.innerHTML = ftContent;
               
            } 
	   else
		window.alert("Couldn't find Data.");
          } 

          XMLHttpRequestObject.send(null); 
        }
      }

