/* containse the translate javascript that passes to the ajax */

var xmlHttp

function translate(w)
{ 
	xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)
	 {
	 alert ("Browser does not support HTTP Request");
	 return
	 }
	var url="includes/translate.php";
	url=url+"?word="+w;
	xmlHttp.open("GET",url,true);
	xmlHttp.onreadystatechange=function()
		{ 
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			 { 
			 document.getElementById("glossslide").innerHTML=xmlHttp.responseText; 
			 } 
		}
	
	xmlHttp.send(null)
	
}


/* move through the history  */



/* ajax call */

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;
}
