var xmlhttp=false;
var divId = "overlay";
function startAjax()
{
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
}

function getGallery(page)
{
	startAjax();
	xmlhttp.open("GET", page,true);
	xmlhttp.onreadystatechange=showPage;
	xmlhttp.send(null);
}

function showPage() 
{
  if (xmlhttp.readyState==4) 
  {
   	parent.document.getElementById(divId).innerHTML = xmlhttp.responseText;
	parent.document.getElementById(divId).style.display = 'block';
  }
}

