// JavaScript Document

var theObj="";

function toolTip(text,me) {
       theObj=me;       
	   theObj.onmousemove=updatePos;       
	   document.getElementById('toolTipBox').innerHTML=text;       
	   document.getElementById('toolTipBox').style.display="block";       
	   window.onscroll=updatePos;
	   }
	 
function updatePos() {       
       var ev=arguments[0]?arguments[0]:event;       
	   var x=ev.clientX;       
	   var y=ev.clientY;       
	   diffX=-15;       
	   diffY=28;       
	   document.getElementById('toolTipBox').style.top  = y-2+diffY+document.body.scrollTop+ "px";       
	   document.getElementById('toolTipBox').style.left = x-2+diffX+document.body.scrollLeft+"px";       
	   theObj.onmouseout=hideMe;
	   }
	   
function hideMe() {
       document.getElementById('toolTipBox').style.display="none";
	   }
	   
function clear_Text() //función que limpia la caja de texto del buscador interno cuando se hace clikc con el ratón en dicha caja de te
{
document.getElementById('palabra').value = "";
}

function volver_Atras()
{
history.back(1);	
}

function volver_Atras_Ref(url)
{
location.href="javascript:parent.location='"+url+"'";	
}


function ir_Adelante()
{
history.go(1);	
}

function redimensiona()
     {
          top.grand(document.body.scrollHeight +10);
     }
// función para precargar imagenes //
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
// funciones para redimensión de iframe sgún contenido //
function grand(h) {
          iframe=document.getElementById("enlace")
          iframe.height=h;
     }
	 
function grand2(h) {
          div=document.getElementById("content-menu-cont")
          div.height=h;
     }

function redireccionarMapaWeb() 
{
location.href="mapaWeb.htm";
}

function redireccionar() 
{
location.href="foro.php?guiaWeb=Inicio";
} 


function redireccionarCorreo() 
{
location.href="buzon.php";
}


