var tiempo_fuera = 3;
var salio = false;
//Funcion que muestra el div en la posicion del mouse
function showdiv(titulo, imagen, ancho, alto)
{
	//modificamos el valor del id posicion para indicar la posicion del mouse
	document.getElementById('titulo').innerHTML="<center><h2>"+titulo+"</h2></center>";
	document.getElementById('imagen').innerHTML="<img src="+imagen+" alt="+titulo+" width="+ancho+" heigth="+alto+">";
	document.getElementById('flotante').style.top = "10px";
	document.getElementById('flotante').style.left = ((screen.availWidth-ancho)/2)+"px";
	document.getElementById('flotante').style.heigth = (alto)+"px";
	document.getElementById('flotante').style.width = (ancho)+"px";
	document.getElementById('flotante').style.display='block';
	tiempo_fuera = 3;
	salio = false;
	return false;
}
// Funcion que oculta el div
function hidediv()
{
	document.getElementById('flotante').style.display='none';
	return false;
}

function decrementarContador()
{
	if (salio==true) {
		tiempo_fuera--;
		if (tiempo_fuera<=0) {
			hidediv();
		}
		else {
			timer = setTimeout("decrementarContador()", 1000);
		}
	}
}