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;
}

function photo() {
	arrParams = photo.arguments;
	xmlHttp = GetXmlHttpObject()
	if (xmlHttp == null) {
		return;
	} 
	var strUrl = "../pages/photos.photo.php?id="+arrParams[0];
	xmlHttp.onreadystatechange = refreshPhoto;
	xmlHttp.open("GET",strUrl,true);
	xmlHttp.send(null);
}

function photos() {
	arrParams = photos.arguments;
	xmlHttp = GetXmlHttpObject()
	if (xmlHttp == null) {
		return;
	} 
	var strUrl = "../pages/photos.php?boolAjax=1&intPage="+arrParams[0]+"&intSlide="+arrParams[1];
	xmlHttp.onreadystatechange = refreshSlice;
	xmlHttp.open("GET",strUrl,true);
	xmlHttp.send(null);
}

function refreshPhoto()  { 
	if (xmlHttp.readyState == 4) { 
		eval(xmlHttp.responseText);
	}
}

function refreshSlice()  { 
	if (xmlHttp.readyState == 4) { 
		document.getElementById("ajaxContent").innerHTML = xmlHttp.responseText;
	}
}


