function $(v){return(document.getElementById(v))}function getEventSrc(e){return window.event?window.event.srcElement:e.target}function CancelEvent(e){if((typeof(e)=="undefined")&&(typeof(window.event)!="undefined")){e=window.event}if(typeof(window.event)!="undefined"){e.cancelBubble=true;}else{e.stopPropagation();}}function AjaxCreate(){try{return new XMLHttpRequest()}catch(e){}try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return false}function AjaxExecute(url,data,funct){var xhr=AjaxCreate();xhr.onreadystatechange=function(){if((xhr.readyState==4)&&(xhr.status==200)){funct(xhr.responseText)}};xhr.open("POST",url,true);xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xhr.send(data)}function AjaxDummy(data){}function ltrim(s){return s.replace(/^\s*/,"")}function rtrim(s){return s.replace(/\s*$/,"")}function trim(s){return rtrim(ltrim(s))} function showHelp(iShow){$("help").style.display=(iShow?"block":"none");return false}function __Query(iQueryId,iPath){window.location.href="http://"+window.location.hostname+iPath+"/"+$("__query_"+iQueryId).value;return false;}




function setFavorite (iURL,iTitle)
	{
		 if (window.sidebar )	{ window.sidebar.addPanel	  (iTitle, iURL, ""	); }
	else if (window.external)	{ window.external.AddFavorite (iURL, iTitle		); }
	}



function showLanguageWindow(iShow)
	{
	$("language-window").style.display = (iShow?"block":"none");
	return false;
	}


var language_Timer=null;

function language_ShowList	()	{ $("language-list").style.display="block";  clearTimeout (language_Timer); }
function language_HideList	()	{ $("language-list").style.display="none" ;}

function language_StartTimer()	{ language_Timer = setTimeout ("language_HideList()",500);	}
function language_ResetTimer()	{ clearTimeout (language_Timer);							}







//	Project Functions																


function hideMap()
	{
	$('map').style.display = 'none';
	}



function showMap(iLatitude,iLongitude)
	{
	o = $('map');

	if ((o.style.display == 'block'))
		{
		o.style.display	= 'none'
		}
	  else
		{
		o.src			= '/carte.iframe.php?lat='+iLatitude+'&long='+iLongitude+'&zoom=9';
		o.style.display	= 'block';
		}
	}




