

	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;		// IE		
			}
		  else
			{
			e.stopPropagation();		// Firefox	
			}
		}



	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))
				{
			//	alert(xhr.responseText)		////////////////
				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 setFavorite (iURL,iTitle)
		{
			 if (window.sidebar )	{ window.sidebar.addPanel	  (iTitle, iURL, ""	); }	// Mozilla Firefox Bookmark		
		else if (window.external)	{ window.external.AddFavorite (iURL, iTitle		); }	// IE Favorite					
		}




	function showHelp(iShow)
		{
		$("help").style.display = (iShow?"block":"none");
		return false;
		}




	//													
	//	ModRewrite Functions							
	//													

	function __Query(iQueryId, iPath)
		{
		window.location.href = "http://" + window.location.hostname + iPath + "/" + $("__query_"+iQueryId).value;
		return false;
		}




//																					
//	Project Functions																
//																					


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


