//gestion de las cookies
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}


//Componente de ventana interna

var limite=50;
var conteo=0;
var micontainer=null;
var idinterval=null;
function createWindow(contenido)
{
conteo=0;
micontainer=document.createElement("DIV");
document.body.appendChild(micontainer);
micontainer.style.backgroundColor="black";
micontainer.style.color="white";
document.body.scrollTop=0;
micontainer.style.width=document.body.clientWidth+"px";
micontainer.style.height=document.body.scrollHeight+20;
micontainer.style.top="0px";
micontainer.style.filter="alpha(opacity:0);";
//micontainer.style.MozOpacity=0;
micontainer.style.opacity=0;
micontainer.style.left="0px";
micontainer.style.position="absolute";
var ventana=null;
var midivcontainer=document.createElement("DIV");
midivcontainer.style.mozOpacity="1";
midivcontainer.style.textAlign="center";
midivcontainer.style.position="absolute";
midivcontainer.style.left="40px";
midivcontainer.style.top="30px";
midivcontainer.style.width=document.body.clientWidth-60;
midivcontainer.style.height=document.body.clientHeight-40;
var michildcontainer=document.createElement("IFRAME");
michildcontainer.src=""+contenido;
michildcontainer.style.opacity="1";
michildcontainer.style.position="relative";
michildcontainer.style.backgroundColor="white";
michildcontainer.style.width="95%";
michildcontainer.style.height=400;
var mielemento=document.createElement("P");
mielemento.onclick=function()
{
	document.body.removeChild(micontainer);
	document.body.removeChild(midivcontainer);
	window.onscroll=document.documentElement.onscroll=null;
	micontainer=null;
	midivcontainer=null;
}
var mitextelement=document.createTextNode("Cerrar Ventana");
midivcontainer.appendChild(mielemento);
midivcontainer.appendChild(michildcontainer);
window.onscroll=document.documentElement.onscroll=function()
{
        midivcontainer.style.top=document.body.scrollTop+30;
}
document.body.appendChild(midivcontainer);
mielemento.style.top="0px";
mielemento.style.left="0px";
mielemento.style.borderBottomStyle="solid";
mielemento.style.borderBottomColor="silver";
mielemento.style.borderBottomWidth="2px";
mielemento.style.borderTopStyle="solid";
mielemento.style.borderTopColor="silver";
mielemento.style.borderTopWidth="2px";
mielemento.style.backgroundColor="black";
mielemento.style.color="white";
mielemento.style.fontWeight="bold";
mielemento.style.cursor="pointer";
mielemento.style.textAlign="right";
mielemento.appendChild(mitextelement);
idinterval=setInterval("mostrarme()",100);
}
function mostrarme()
{
	if(conteo!=limite)
	{
		conteo=conteo+10;
		micontainer.style.filter="alpha(opacity:"+conteo+")";
		micontainer.style.MozOpacity=conteo/100;
		micontainer.style.opacity=conteo/100;
	}
	else
	{
		clearInterval(idinterval);
	}
}


/*Funciones relacionadas con control de descripcion de enlaces*/


var descriptionBox=null;
var Xoffset= 0;    // modify these values to ...
var Yoffset= 20; 
function getCoordinates(obj) {

    var xy = getObjectUpperLeft(obj);

    /* Adjust position for screen right and bottom screen edge */
    var x = fitWindowWidth(xy.x + Xoffset);
    var y = fitWindowHeight(xy.y + Yoffset);

    /* return object with coordinates as properties */
    return {Xoffset: x, Yoffset: y};
}//eof getCoordinates

function getObjectUpperLeft(obj){
    /* For postioning in reference to link */

    var x = obj.offsetLeft;
    var y = obj.offsetTop;

    /* Calculate page X,Y of upper left corner of element
        where toolTip is to be shown
    */
    obj = obj.offsetParent;
    while (obj) {
        x += obj.offsetLeft;
        y += obj.offsetTop;

        if (typeof obj.clientLeft != "undefined" && obj.tagName != "BODY") {
                /*MS IE doesn't include borders in offset values;
                these are obtained with clientLeft and Top and added in*/
                x += obj.clientLeft;
                y += obj.clientTop;
        }

        if (obj.tagName == "HTML") break; //KHTML KDE has an unidentified object above html
        obj = obj.offsetParent;
    }//endwhile

    return {x:x, y:y};
}//eof getObjectUpperLeft

function fitWindowWidth(tipX) {
    
    var rightMaxX = getRightPagePos() - (descriptionBox.offsetWidth + 16); //16 for scrollbar

    tipX = (rightMaxX < tipX) ? rightMaxX : tipX;

    /* But, don't go past left edge of window either */
    var leftMinX = getLeftPagePos();
    tipX = (tipX < leftMinX) ? leftMinX : tipX;

    return tipX;
}

function getRightPagePos() {
    var nRight;

    if (typeof window.srcollX != "undefined") {
        nRight = window.innerWidth + window.scrollX;
    }
    else if (typeof window.pageXOffset != "undefined") {
        nRight = window.innerWidth + window.pageXOffset;
    }
    else if (document.documentElement && document.documentElement.clientWidth){
        nRight = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    }
    else if (document.body && document.body.clientWidth) {
        nRight = document.body.clientWidth + document.body.scrollLeft;
    }

    return nRight;
}

function getLeftPagePos() {
    var nLeft;

    if (typeof window.srcollX != "undefined") {
        nLeft = window.scrollX;
    }
    else if (typeof window.pageXOffset != "undefined") {
        nLeft = window.pageXOffset;
    }
    else if (document.documentElement && document.documentElement.scrolLeft){
        nLeft = document.documentElement.scrollLeft;
    }
    else if (document.body && document.body.scrollLeft) {
        nLeft = document.body.scrollLeft;
    }

    return nLeft;
}

function fitWindowHeight(tipY) {
    
    var bottomMaxY = getBottomPagePos() - (descriptionBox.offsetHeight);
    tipY = (bottomMaxY < tipY ) ? tipY - (Yoffset + descriptionBox.offsetHeight) : tipY;

    
    var topMinY = getTopPagePos();
    tipY = (tipY < topMinY) ? topMinY : tipY;

    return tipY
}

function getBottomPagePos() {
    var nBottom;

    if (typeof window.scrollY != "undefined" ) {
        nBottom = window.innerHeight + window.scrollY;
    }
    else if (typeof window.pageYOffset != "undefined") {
        nBottom = window.innerHeight + window.pageYOffset;
    }
    else if (document.documentElement && document.documentElement.clientHeight){
        nBottom = document.documentElement.clientHeight + document.documentElement.scrollTop;
    }
    else if (document.body && document.body.clientHeight) {
        nBottom = document.body.clientHeight + document.body.scrollTop;
    }
    return nBottom;
}

function getTopPagePos() {
    var nTop;

    if (typeof window.scrollY != "undefined" ) {
        nTop= window.scrollY;
    }
    else if (typeof window.pageYOffset != "undefined") {
        nTop = window.pageYOffset;
    }
    else if (document.documentElement && document.documentElement.scrollTop){
        nTop = document.documentElement.scrollTop;
    }
    else if (document.body && document.body.scrollTop) {
        nTop = document.body.scrollTop;
    }
    return nTop;
}


function followMouse(e){
    /* Obtiene las coordenadas del mouse */
    if (descriptionBox){
        var x = (e.pageX) ? e.pageX : event.clientX + document.body.scrollLeft;
        var y = (e.pageY) ? e.pageY : event.clientY + document.body.scrollTop;
 
        x = fitWindowWidth(x + Xoffset);
        y = fitWindowHeight(y + Yoffset);

        descriptionBox.style.left = x + 'px';
        descriptionBox.style.top = y + 'px';
    }
}


var aumento=0;
var disminucion=4;
var divPequeno=null;
var idintervalo=null;
var divExterno=null;
var idpalabraclavem=null;
var comenzado=false;

function createDescriptionBox(objeto,idpalabraclave)
{
	if(comenzado==false)
	{
	divExterno=objeto;
	aumento=0;
	disminucion=4;
	idintervalo=setInterval("desplegar()",80);
	idpalabraclavem=idpalabraclave;
	}
}
function desplegar()
{	
	comenzado=true;
	aumento=aumento+2;
	disminucion=disminucion-1;
	descriptionBox=divExterno;
	var coord=getCoordinates(divExterno);
	var posX=coord.Xoffset+(divExterno.offsetWidth/aumento)-20;
	var posY=coord.Yoffset+(divExterno.offsetHeight/aumento)-40;
	var alto=divExterno.offsetHeight/disminucion;
	var ancho=divExterno.offsetWidth/disminucion;
	if(divPequeno==null)
	{
		divPequeno=document.createElement("DIV");
		divPequeno.style.position="absolute";
		divPequeno.style.borderWidth="1";
		divPequeno.style.left=posX;
		divPequeno.style.top=posY;
		divPequeno.style.width=ancho;
		divPequeno.style.height=alto;
		divPequeno.style.backgroundColor="white";
		document.body.appendChild(divPequeno);
	}
	else
	{
		if(aumento==6)
		{
			AjaxRequestObject();
	                ExecRequest("POST","herramientas.php","idcategoriamenu="+categorySelected+"&idpalabraclave="+idpalabraclavem,false,divPequeno);
			divPequeno.style.width=divExterno.offsetWidth;
			divPequeno.style.height=divExterno.offsetHeight+18;
	 		divPequeno.style.top=coord.Yoffset-20;
			divPequeno.style.left=coord.Xoffset;
			clearInterval(idintervalo);
			comenzado=false;
		}
		else
		{
		   
		divPequeno.style.width=ancho;
		divPequeno.style.height=alto;
		divPequeno.style.top=posY;
		divPequeno.style.left=posX;
		}
	}
}
function destroyDescriptionBox()
{
	document.body.removeChild(divPequeno);
	divPequeno=null;
}

function alternateclass(obj)
{
	if(obj.className=="borderall")
	{
		obj.className="imageselected";
	}
	else
	{
		obj.className="borderall";
	}
}
function validateComment(nombre,correo,comentario,noticia)
{
	var tempcontainer=document.createElement("DIV");
	if(nombre!="" && correo!="" && comentario!="")
	{
		AjaxRequestObject();
		ExecRequest("POST","comentarios.php","idnoticia="+noticia+"&nombre="+nombre+"&correo="+correo+"&comentario="+comentario+"&publicado=no&fecha=hoy",false,tempcontainer);
	}
	else
	{
		alert("No se puede enviar la solicitud.... Campos requeridos");
	}
}
function actmenuinferior(idcat,ancho)
{
	categorySelected=idcat;
	AjaxRequestObject();
	ExecRequest("GET","menuinferior.php","idcategoriamenu="+idcat+"&ancho="+ancho,false,document.getElementById("menuinferior"));
}

/*Funciones de pestanas*/
function changeState(sel,desel)
{
	sel.className="vinetasel";
	desel.className="vinetadesel";
	var parameter="";
	if(sel.innerHTML.indexOf("Videos")!=-1)
	{
		parameter="tipo=video";
	}
	else
	{
		parameter="tipo=galeria";
	}
	parameter=parameter+"&idcategoriamenu="+categorySelected;
	AjaxRequestObject();
	ExecRequest("POST","cargargaleria.php",parameter,false,document.getElementById("presentador"));
}

/*
Funciones dedicadas a la creacion del control para ver videos y galeria
*/

function createControl(url,tipoControl)
{
conteo=0;
limite=80;
micontainer=document.createElement("DIV");
document.body.appendChild(micontainer);
micontainer.style.backgroundColor="black";
micontainer.style.color="white";
document.body.scrollTop=0;
micontainer.style.width=document.body.clientWidth+"px";
micontainer.style.height=document.body.scrollHeight+20;
micontainer.style.top="0px";
micontainer.style.filter="alpha(opacity:0);";
//micontainer.style.MozOpacity=0;
micontainer.style.opacity=0;
micontainer.style.left="0px";
micontainer.style.position="absolute";
var ventana=null;
var midivcontainer=document.createElement("DIV");
midivcontainer.style.mozOpacity="1";
midivcontainer.style.textAlign="center";
midivcontainer.style.position="absolute";
midivcontainer.style.left="40px";
midivcontainer.style.top="30px";
midivcontainer.style.width=document.body.clientWidth-60;
midivcontainer.style.height=document.body.clientHeight-40;
var mielemento=document.createElement("P");
mielemento.onclick=function()
{
        document.body.removeChild(micontainer);
        document.body.removeChild(midivcontainer);
        window.onscroll=document.documentElement.onscroll=null;
        micontainer=null;
        midivcontainer=null;
}
var mitextelement=document.createTextNode("Cerrar Ventana");
window.onscroll=document.documentElement.onscroll=function()
{
        midivcontainer.style.top=document.body.scrollTop+30;
}
document.body.appendChild(midivcontainer);
mielemento.style.top="0px";
mielemento.style.left="0px";
mielemento.style.borderBottomStyle="solid";
mielemento.style.borderBottomColor="silver";
mielemento.style.borderBottomWidth="2px";
mielemento.style.borderTopStyle="solid";
mielemento.style.borderTopColor="silver";
mielemento.style.borderTopWidth="2px";
mielemento.style.backgroundColor="black";
mielemento.style.color="white";
mielemento.style.fontWeight="bold";
mielemento.style.cursor="pointer";
mielemento.style.textAlign="right";
mielemento.appendChild(mitextelement);
if(tipoControl=="video")
{
var videoContainer=document.createElement("DIV");
videoContainer.style.position="relative";
videoContainer.style.left="250px";
videoContainer.innerHTML="<div style='width:440;background-color:white;'><object width='425' height='350'><param name='movie' value='"+url+"'></param><param name='wmode' value='transparent'></param><embed src='"+url+"' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></div>";
midivcontainer.appendChild(mielemento);
midivcontainer.appendChild(videoContainer);
}
else
{
var galeriaContainer=document.createElement("DIV");
galeriaContainer.style.position="relative";
AjaxRequestObject();
ExecRequest("POST","mostrargaleria.php",url,false,galeriaContainer);
midivcontainer.appendChild(mielemento);
midivcontainer.appendChild(galeriaContainer);
var msg=galeriaContainer.getElementsByTagName("B")[0];
if(msg.id!="msg")
{
	loadGalery();
}
}
idinterval=setInterval("mostrarme()",100);
}

/*Area que maneja las funciones propias de la galeria de fotos*/

var divScroll=null;
var imagenmostrada=null;
var indexSelected=0;
var prueba=null;
var prueba2=null;
function loadGalery()
{
divScroll=document.getElementById("contenedor");
divScroll.style.borderStyle="solid";	
divScroll.style.borderColor="black";
divScroll.style.borderWidth="1px";
divScroll.style.overflow="hidden";
prueba=document.createElement("IMG");
	prueba.src="images/Anterior.ico";
	prueba.style.position="relative";
	prueba.style.left="0px";
	prueba.style.top="-430px";
	prueba.className="difusa";
	prueba.onmouseover=function () {
		this.className="clara";
		idinterval=setInterval("retroceder()",2);
	};
	prueba.onmouseout=function () {
		this.className="difusa";
		parar();
	};
document.getElementById("celda2").appendChild(prueba);
prueba2=document.createElement("IMG");
	prueba2.src="images/siguiente.ico";
	prueba2.style.position="relative";
	prueba2.style.left="490px";
	prueba2.style.top="-430px";
	prueba2.className="difusa";
	prueba2.onmouseover=function () {
		this.className="clara";
		idinterval=setInterval("avanzar()",2);
	};
	prueba2.onmouseout=function () {
		this.className="difusa";
		parar();
	};
document.getElementById("celda2").appendChild(prueba2);
var imagenes=divScroll.getElementsByTagName("IMG");
	if(imagenes.length>0)
	{
	imagenmostrada=document.createElement("IMG");
	imagenmostrada.src=imagenes[indexSelected].src;
	imagenmostrada.style.width="300px";
	imagenmostrada.style.height="300px";
	imagenmostrada.className="bordeimagen";
document.getElementById("mostrador").appendChild(imagenmostrada);
	}

}

function moveImage(cmd)
{
	var imagenes=divScroll.getElementsByTagName("IMG");
	if(imagenes.length>0)
	{
		/*if(imagenes.length-1==0)
		{
		Ni botones de siguiente y anterior
		}
		else if(indexSelected==imagenes.length-1)
		{
			No hay boton de siguiente
		}
		else if(indexSelected==0)
		{
			No hay boton de anterior
		}
		else
		{*/
			for(i=0;i<=imagenes.length-1;i++)
			{
				if(i==indexSelected)				
				{
					if(cmd=="prev")
					{
						if(i-1<0)
						{
							indexSelected=0;
						}
						else
						{
							indexSelected=i-1;
						}
					}
					else
					{
						if(i+1>imagenes.length-1)
						{
							indexSelected=imagenes.length-1;
						}
						else
						{
							indexSelected=i+1;
						}
					}
					break;
				}
			}
			imagenmostrada.src=imagenes[indexSelected].src;
		/*}*/
	}
}
function verImagen(objImagen,posicion)
{
	imagenmostrada.src=objImagen.src;
	indexSelected=posicion;
}

function avanzar()
{
	divScroll.scrollLeft=divScroll.scrollLeft+10;
}
function retroceder()
{
	divScroll.scrollLeft=divScroll.scrollLeft-10;
}
function parar()
{
	clearInterval(idinterval);
}

function valorar(objeto,clase)
{
	objeto.className=clase;
}

function ocultar(objeto)
{
	if(objeto.className=="mostrado")
	{
		objeto.className="oculto";	
		prueba.className="oculto";
		prueba2.className="oculto";
	}
	else
	{
		objeto.className="mostrado";
		prueba.className="mostrado";
		prueba2.className="mostrado";
	}
}

/*Fin galeria*/

/*Calendario de eventos*/
function mostrarevento(fechaevento,datecontainer,objventana)
{
	objajx=new Ajax();
	objajx.execRequest("POST","evento.php","fechaevento="+fechaevento,datecontainer,true,"TEXT");
	objventana.style.display="block";
	descriptionBox=document.getElementById("calendario");
	var coord=getCoordinates(document.getElementById("calendario"));
        var posX=coord.Xoffset;//+(divExterno.offsetWidth/aumento)-20;
        var posY=coord.Yoffset;//+(divExterno.offsetHeight/aumento)-40;
	objventana.style.top=posY;
	objventana.style.left=posX;
}

function mostrarherramienta(idherramienta,container,objventana)
{
	objajx=new Ajax();
        objajx.execRequest("POST","herramienta.php","idherramienta="+idherramienta,container,true,"TEXT");
        objventana.style.display="block";
        descriptionBox=document.getElementById("resultTag");
        var coord=getCoordinates(document.getElementById("resultTag"));
        var posX=coord.Xoffset;//+(divExterno.offsetWidth/aumento)-20;
        var posY=coord.Yoffset;//+(divExterno.offsetHeight/aumento)-40;
        objventana.style.top=posY;
        objventana.style.left=posX;
}
function navegatecalendar(fechaevento,valoractual)
{
	AjaxRequestObject();
	ExecRequest("POST","evento.php","fechaevento="+fechaevento+"&actual="+valoractual,false,document.getElementById("evento"));
}
function navegateherramienta(idcategoria,idpalabraclave,valoractual)
{
	AjaxRequestObject();
	ExecRequest("POST","herramientas.php","idcategoriamenu="+idcategoria+"&idpalabraclave="+idpalabraclave+"&actual="+valoractual,false,divPequeno);
}

/*Archivos*/

var pestanah=null;
var pestanav=null;
function asignarpestana(tipo,objeto)
{
	if(tipo=="h")
	{
		pestanah=objeto;
	}
	else
	{
		pestanav=objeto;
	}
}

function seleccionarpestana(tipo,objeto,idcategoriamenu)
{
	if(tipo=="h")
	{
		if(pestanah==null)
		{
			var fila=document.getElementById("pestanash");
			var celdas=fila.getElementsByTagName("TD");
			for(i=0;i<celdas.length;i++)
			{
				if(celdas[i].className=="vinetasel")
				{
					pestanah=celdas[i];
					break;
				}
			}
		}
		if(pestanah.id!=objeto.id)
		{
			pestanah.className="vinetadesel";
			objeto.className="vinetasel";
			pestanah=objeto;
		}
		AjaxRequestObject();
		ExecRequest("POST","archivo.php","desplegar=categoriamenu&idcategoriamenu="+idcategoriamenu,false,document.getElementById("pestanasv"));
		var busqueda=document.getElementById("pestanasv");
		var celdas=busqueda.getElementsByTagName("TD");
		var txtencontrado=null;
		for (i=0;i<celdas.length;i++)
		{
			if(celdas[i].className=="vinetaselv")
			{
				txtencontrado=celdas[i].id;
				break;
			}
		}
		document.getElementById("herramientas").innerHTML="";
		if(txtencontrado!=null)
		{
		var idpalabraclave=txtencontrado.substring(2,txtencontrado.length);
		AjaxRequestObject();
                ExecRequest("POST","archivo.php","desplegar=herramienta&idcategoriamenu="+idcategoriamenu+"&idpalabraclave="+idpalabraclave,false,document.getElementById("herramientas"));
		}
	}
	else
	{
		if(pestanav==null)
		{
			var tabla=document.getElementById("pestanasv");
			var celdas=tabla.getElementsByTagName("TD");
			for(i=0;i<celdas.length;i++)
			{
				if(celdas[i].className=="vinetaselv")
				{
					pestanav=celdas[i];
					break;
				}
			}
		}
		if(pestanav.id!=objeto.id)
		{
			pestanav.className="vinetadeselv";
			objeto.className="vinetaselv";
			pestanav=objeto;
		}
		var idpalabraclave=idcategoriamenu;
		var fila=document.getElementById("pestanash");
		var celdas=fila.getElementsByTagName("TD");
		var txtencontrado=null;
		for(i=0;i<celdas.length;i++)
		{
			if(celdas[i].className=="vinetasel")
			{
				txtencontrado=celdas[i].id;
				break;
			}
		}
		if(txtencontrado!=null)
		{
		idcategoriamenu=txtencontrado.substring(2,txtencontrado.length);
		AjaxRequestObject();
                ExecRequest("POST","archivo.php","desplegar=herramienta&idcategoriamenu="+idcategoriamenu+"&idpalabraclave="+idpalabraclave,false,document.getElementById("herramientas"));
		}
	}
}

/*Validacion del formulario de contacto*/
function valcontacto()
{
	var valido=false;
	if(document.getElementById("nombre").value!="")
	{
		if(document.getElementById("email").value!="")
		{
			if(document.getElementById("sugerencia").value!="")
			{
				valido=true;
			}
		}
	}
	if(valido==false)
	{
		alert("Todos los campos son requeridos");
	}
	else
	{
		AjaxRequestObject();
		ExecRequest("POST","enviarcorreo.php","nombre="+document.getElementById("nombre").value+"&email="+document.getElementById("email").value+"&sugerencia="+document.getElementById("sugerencia").value,true,document.getElementById("documentcontainer"));
	}
}

var ID;
function mueveReloj(){
    momentoActual = new Date()
    hora = momentoActual.getHours();
    minuto = momentoActual.getMinutes();
    segundo = momentoActual.getSeconds();

    horaImprimible = hora + " : " + minuto + " : " + segundo;

    dvd.innerHTML = "<br><br><br><br><br><h1 style='color:#858088;font-size:50px;'>"+horaImprimible+"</h1>";

    ID=setTimeout("mueveReloj()",1000);
}
