function getHTTPObject()
{
	var xmlhttp=false;
	if(window.XMLHttpRequest) xmlhttp = new XMLHttpRequest();
	else if (window.ActiveXObject)
		{
			try {xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");}
			catch(e) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
		}
	return xmlhttp;
}
function loadPubAfterFlash() {/*prevent an error with the flash still calling this old function*/ }
function animationHeaderTicker() {
	$('#epigraphsentencespan').css('margin-left', (parseInt($('#epigraphsentencespan').css('margin-left')))-10+"px" );
	if(Math.abs(parseInt($('#epigraphsentencespan').css('margin-left'))) > $('#epigraphsentencespan').width()) {
		$('#epigraphsentencespan').css('margin-left','0px');
	}
}
function handleHttpResponseStat(objhttp)
{
	if(objhttp.readyState == 4)
	{
		unescape(objhttp.responseText);
	}
}
function statLoad(statMod, statId, lang) {
	var http=getHTTPObject();
	var adresse='/php/stat/ajax.php?statMod='+encodeURI(statMod)+'&statId='+encodeURI(statId)+'&lang='+encodeURI(lang)+'';
	http.open("GET", adresse, true);
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	http.onreadystatechange = function() {
		handleHttpResponseStat(http);
	};
	http.send(null);
}