var xmlHttp

function escondeMenu(){
	document.getElementById("menuIzquierda").style.display="none";
	document.getElementById("menuIzquierda1").style.width="0px";
}

function muestraMenu(){
	document.getElementById("menuIzquierda").style.display="inline";
	document.getElementById("menuIzquierda1").style.width="245px";
}

function showHint(str, id, familia){
	str_2=str.substring(0,str.length-2);
	if(str.substring(0,str.length-2)=="mapa.php?idioma="){
		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null){
		  alert ("Browser does not support HTTP Request");
		  return
		} 
	}
	else	{
		if(document.getElementById("idEnlaceClicado").value!=""){
			document.getElementById("idClicado_"+document.getElementById("idEnlaceClicado").value).className="";
		}
		document.getElementById("idEnlaceClicado").value=id;
		if(str.substring(0,str.length-2)!="mapa.php?idioma="){
				document.getElementById("idClicado_"+id).className="menu_background_"+familia;
		}
		if (str.length==0)  { 
		  document.getElementById("mainFrame").innerHTML="";
		  return;
		  }
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null){
		  alert ("Browser does not support HTTP Request");
		  return
		} 
	}
//var url="gethint.php"
//url=url+"?q="+st
//alert(str);
	str=str+"&sid="+Math.random();
	xmlHttp.onreadystatechange=stateChanged 
	//xmlHttp.open("GET",url,true)
	xmlHttp.open("GET",str,true)
	xmlHttp.send(null);
} 

function stateChanged() { 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { 
 document.getElementById("mainFrame").innerHTML=xmlHttp.responseText 
 } 
}
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;
}