//Programado por  Ricardo Mora para la CUAED- UNAM -------------------------------

//ricardo_mora@cuaed.unam.mx------------------------------------------------------
//ricardo@sustanciadigital.com----------------------------------------------------
//morari2008@hotmail.com----------------------------------------------------------

//-----------------------------------------------------------
//++++Si buscas resultados distintos, no hagas siempre lo mismo. Albert Einstein++++


//++++Si buscas resultados distintos, no hagas siempre lo mismo. Albert Einstein++++



var Altoinicial=450,AnchoF=900,ColorF="#fff",colorTit="#000",imagenCerraF="img/x.jpg",AltoF=Altoinicial+40;document.write("<span id='CapaFondo' onClick=restaurar2('oCapa1'); style='position:fixed; display:inline; WIDTH:100%; HEIGHT:1px; top:0px; left:0px; background-color: #000000; padding: 0px 0px 0px 0px; z-index:99; -khtml-opacity: 0.50; -moz-opacity: 0.50; filter: alpha(opacity=50); opacity: .50; '></span><span id='AumentarDisminuirLB' style='position:fixed; top:-100px; right:0px; width:210px; height:24px; border:#FFF 0px solid; background-image: url(img/controlesventanaLB.png); background-repeat:no-repeat; background-position:bottom right; z-index:99; '><span style='position:absolute; top:4px; left:5px; color:#999; font-size:9px; font-family:'Times New Roman', Times, serif;'>Controles de ventana</span><span style='position:absolute; top:2px; right:70px; width:20px; height:20px; border:#CCC 0px solid; z-index:99; '><a onClick='AumentarAncho();'><img src='img/anchoLB.png' width='20' height='20' border='0' title='Aumenta el ancho'/></a></span><span style='position:absolute; top:2px; right:47px; width:20px; height:20px; border:#CCC 0px solid; z-index:200; '><a onClick='AumentarAlto();'><img src='img/altoLB.png' width='20' height='20' border='0' title='Aumenta el alto'/></a></span><span style='position:absolute; top:2px; right:24px; width:20px; height:20px; border:#CCC 0px solid; z-index:200; '><a onClick='ampliarAnchoAltoLB();'><img src='img/ampliarLB.png' width='20' height='20' border='0' title='Aumenta el alto y ancho'/></a></span><span style='position:absolute; top:2px; right:2px; width:20px; height:20px; border:#CCC 0px solid; z-index:200; '><a onClick='restaurarTamanoLB();'><img src='img/restablecerLB.png' width='20' height='20' border='0' title='Tama\u00f1o original'/></a></span></span>"); document.write("<span id='oCapa1' style='position:fixed; width:"+AnchoF+"px; height:"+AltoF+"px; top:-570px; left:-816px; background-color:"+ColorF+"; border-style:solid; border-color:#000000; border-width:1px; padding: 0px 0px 0px 0px; overflow:visible; z-index:100; -khtml-opacity: 0.0; -moz-opacity: 0.0; filter: alpha(opacity=0); opacity: .0; '> <table width='100%' height='20' border='0' cellspacing='0' cellpadding='0' style='border-bottom:solid; border-color:#000000; border-width:0px;'><tr><td width='90%' id='titulo' name='titulo' style='color:"+ colorTit+"; font-size:12px; font-family:Verdana, Geneva, sans-serif; font-weight:bolder;'>&nbsp; &nbsp; </td><td align='right'><div style='position:absolute; top:1px; right:35px; width:15px; height:15px; cursor:pointer;'><a onClick='redirigirLB()'><img src='img/ventana.png' width='22' height='18' border='0' title='ver en otra ventana'/></a></div><div align='center' style=' position:absolute; top:1px; right:10px; width:15px; height:15px; vertical-align:middle; background-color:#000; border:solid; border-color: #CCC; border-width:0px;'> <a onClick=restaurar2('oCapa1'); style='color:#FFF; font-size:14px; text-decoration:none; cursor:pointer;'><img src='"+ imagenCerraF+"' width='22' height='18' border='0' title='cerrar'/></a></div></td></tr></table><table id='tabla_flotante' width='100%' bgcolor='#ffffff' height='500' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' style='border-top:solid; border-color:#000000; border-width:1px; font-weight:bolder;'><iframe name='flotante' id='flotante' src='img/cargando.jpg' width='100%' height='100%' frameborder='0' scrolling='yes'></iframe></td> </tr></table></span>"); var ligaslightbox=[],ligaslightbox2=[],ligaslightbox3=[],nuevapagina=""; function listado(){ligaslightbox=document.getElementsByTagName("a");for(u=1;u<=ligaslightbox.length;u++)if(aa=document.getElementsByTagName("a")[u].getAttribute("lbAction"),aa=="yes"){ligaslightbox2.push(u);alert(ligaslightbox2);bbx=document.getElementsByTagName("a")[u].getAttribute("onclick");XX=String(bbx);var a=XX.indexOf("pag(")+4;pos=XX.substring(a);contartexto2=pos.indexOf(")");pos3=pos.substring(0,contartexto2);ligaslightbox3.push(pos3);nuevapagina=pos3}} function cambiarLB(){ordenarInfo=nuevapagina.split(",");parametro1=ordenarInfo[0].substring(1);parametro1A=parametro1.length-1;parametro1B=parametro1.substring(0,parametro1A);alert(parametro1B);pag(parametro1B)}function arrayX(){for(u=1;u<=ligaslightbox3.length;u++)continuarX==ligaslightbox3[u]&&alert(ligaslightbox3[u])}var continuarX="",paginaActulaLB="",tituloActualLB="",altoActualLB=AltoF,anchoActualLB=AnchoF; function pag(a,d,b,c){parent.flotante.location=a;d==null?document.getElementById("titulo").innerHTML="":document.getElementById("titulo").innerHTML=d;b==null?(document.getElementById("oCapa1").style.height=AltoF+25+"px",document.getElementById("tabla_flotante").style.height=AltoF+"px",document.getElementById("flotante").style.height=AltoF+"px"):(document.getElementById("oCapa1").style.height=b+25+"px",document.getElementById("tabla_flotante").style.height=b+"px",document.getElementById("flotante").style.height= b+"px",altoActualLB=b);c==null?(document.getElementById("oCapa1").style.width=AnchoF+"px",document.getElementById("tabla_flotante").style.width=AnchoF+"px",document.getElementById("flotante").style.width=AnchoF+"px"):(document.getElementById("oCapa1").style.width=c+"px",document.getElementById("tabla_flotante").style.width=c+"px",document.getElementById("flotante").style.width=c+"px",anchoActualLB=c);Restaurar("oCapa1");valor("oCapa1");paginaActulaLB=a;tituloActualLB=d} var alto=0,capa="",activado="false";function valor(a){capa=a;anima()} function anima(){alturabody=document.body.scrollHeight;alturabody2=document.body.scrollWidth;elemento4=document.getElementById("CapaFondo");elemento3=document.getElementById("oCapa1");elemento3.style.top="25px";document.getElementById("AumentarDisminuirLB").style.top="0px";media=alturabody2-elemento3.offsetWidth;media2=Math.round(media/2);elemento3.style.left=media2+"px";if(document.all)elemento4.style.height=alturabody+"px";else if(document.getElementById)elemento4.style.height=window.innerHeight+ "px";activado="true";document.getElementById("oCapa1").style.opacity=1;document.getElementById("oCapa1").style.MozOpacity=1;if(navigator.appName.indexOf("Explorer")!=-1)document.getElementById("oCapa1").filters.alpha.opacity=100}var decimal=0,decimal2=0; function anima2(){decimal+=0.1;decimal2+=10;document.getElementById("oCapa1").style.opacity=decimal;document.getElementById("oCapa1").style.MozOpacity=decimal;if(navigator.appName.indexOf("Explorer")!=-1)document.getElementById("oCapa1").filters.alpha.opacity=decimal2;alto+=10;alto>=100&&(clearInterval(tiempo),decimal2=decimal=alto=0)}function Restaurar(a){elemento1=document.getElementById(a);elemento1.style.top="-570px";elemento1.style.left="100px";elemento1.style.visibility="visible"} var alto2=0,capa2="";function restaurar2(a){capa2=a;restaurar3()} function restaurar3(){elemento4=document.getElementById(capa2);elemento4.style.top="-1500px";document.getElementById("AumentarDisminuirLB").style.top="-100px";document.getElementById(capa).style.opacity=0;document.getElementById(capa).style.MozOpacity=0;if(navigator.appName.indexOf("Explorer")!=-1)document.getElementById(capa).filters.alpha.opacity=0;elemento4=document.getElementById("CapaFondo");elemento4.style.height="1px";activado="false";parent.flotante.location="img/cargando.jpg"} function restaurar6(){alturabody=document.body.scrollHeight;alturabody2=document.body.scrollWidth;if(activado=="false")if(elemento4=document.getElementById("CapaFondo"),elemento3=document.getElementById("oCapa1"),elemento3.style.top="25px",media=alturabody2-elemento3.offsetWidth,media2=Math.round(media/2),elemento3.style.left=media2+"px",document.all)elemento4.style.height=alturabody+"px";else if(document.getElementById)elemento4.style.height=window.innerHeight+"px"} var anchomonitor=screen.width,altomonitor=screen.height; function redirigirLB(){temploc=paginaActulaLB;(!window.resizeTo||!document.all)&&(!window.resizeTo||!document.getElementById)?window.open(paginaActulaLB):navigator.appName=="Netscape"||navigator.appName=="Opera"?(anchomonitor2=screen.width-20,altomonitor2=screen.height-20,win2=window.open(paginaActulaLB,"ventana","width="+anchomonitor2+", top=0, left=0, height="+altomonitor2+", toolbar=no, location=yes, scrollbars=YES, resizable=yes")):(win2=window.open(paginaActulaLB,"","width=10, top=0, left=0, height="+ altomonitor+", location=yes, scrollbars=YES, resizable=yes"),win2.resizeTo(10,altomonitor),go2())}var contarapreturaLB=0;function go2(){contarapreturaLB==0&&(avanzar=setInterval("go2()",10));anchomonitor=screen.width-20;contarapreturaLB>=altomonitor?(clearInterval(avanzar),contarapreturaLB=0,win2.resizeBy(anchomonitor,altomonitor)):(contarapreturaLB+=100,win2.resizeBy(100,100))} function AumentarAncho(){alturabody=document.body.scrollHeight;alturabody2=document.body.scrollWidth;ele1=document.getElementById("oCapa1");ele2=document.getElementById("tabla_flotante");ele3=document.getElementById("flotante");if(ele2.offsetWidth<=alturabody2-90)document.getElementById("oCapa1").style.width=ele1.offsetWidth+60+"px",document.getElementById("tabla_flotante").style.width=ele2.offsetWidth+60+"px",document.getElementById("flotante").style.width=ele3.offsetWidth+60+"px";if(activado=="true")if(elemento4= document.getElementById("CapaFondo"),elemento3=document.getElementById("oCapa1"),elemento3.style.top="25px",media=alturabody2-elemento3.offsetWidth,media2=Math.round(media/2),elemento3.style.left=media2+"px",document.all)elemento4.style.height=alturabody+"px";else if(document.getElementById)elemento4.style.height=window.innerHeight+"px"} function AumentarAlto(){alturabody=screen.height+200;alturabody2=document.body.scrollWidth;ele1=document.getElementById("oCapa1");ele2=document.getElementById("tabla_flotante");ele3=document.getElementById("flotante");pass=Number(document.documentElement.clientHeight);if(ele2.offsetHeight+100<pass)document.getElementById("oCapa1").style.height=ele1.offsetHeight+60+"px",document.getElementById("tabla_flotante").style.height=ele2.offsetHeight+60+"px",document.getElementById("flotante").style.height= ele3.offsetHeight+60+"px";if(activado=="true")if(elemento4=document.getElementById("CapaFondo"),elemento3=document.getElementById("oCapa1"),elemento3.style.top="25px",media=alturabody2-elemento3.offsetWidth,media2=Math.round(media/2),elemento3.style.left=media2+"px",document.all)elemento4.style.height=alturabody+"px";else if(document.getElementById)elemento4.style.height=window.innerHeight+"px"} function restaurarTamanoLB(){document.getElementById("oCapa1").style.height=altoActualLB+25+"px";document.getElementById("tabla_flotante").style.height=altoActualLB+"px";document.getElementById("flotante").style.height=altoActualLB+"px";document.getElementById("oCapa1").style.width=anchoActualLB+"px";document.getElementById("tabla_flotante").style.width=anchoActualLB+"px";document.getElementById("flotante").style.width=anchoActualLB+"px";if(activado=="true")if(elemento4=document.getElementById("CapaFondo"), elemento3=document.getElementById("oCapa1"),elemento3.style.top="25px",media=alturabody2-elemento3.offsetWidth,media2=Math.round(media/2),elemento3.style.left=media2+"px",document.all)elemento4.style.height=alturabody+"px";else if(document.getElementById)elemento4.style.height=window.innerHeight+"px"} function ampliarAnchoAltoLB(){if(document.all)alturaLBampliar=document.documentElement.clientHeight-30,anchoLBampliar=document.body.clientWidth-30,document.getElementById("oCapa1").style.height=alturaLBampliar-5+"px",document.getElementById("tabla_flotante").style.height=alturaLBampliar-30+"px",document.getElementById("flotante").style.height=alturaLBampliar-30+"px",document.getElementById("oCapa1").style.width=anchoLBampliar+"px",document.getElementById("tabla_flotante").style.width=anchoLBampliar+ "px",document.getElementById("flotante").style.width=anchoLBampliar+"px",document.getElementById("oCapa1").style.left="15px";else if(document.getElementById)alturaLBampliar=window.innerHeight-30,anchoLBampliar=window.innerWidth-30,document.getElementById("oCapa1").style.height=alturaLBampliar-5+"px",document.getElementById("tabla_flotante").style.height=alturaLBampliar-30+"px",document.getElementById("flotante").style.height=alturaLBampliar-30+"px",document.getElementById("oCapa1").style.width=anchoLBampliar+ "px",document.getElementById("tabla_flotante").style.width=anchoLBampliar+"px",document.getElementById("flotante").style.width=anchoLBampliar+"px",document.getElementById("oCapa1").style.left="15px"};
//Programado por  Ricardo Mora para la CUAED- UNAM -------------------------------
//ricardo@sustanciadigital.com----------------------------------------------------
//morari2008@hotmail.com----------------------------------------------------------
//-----------------------------------------------------------
//++++Si buscas resultados distintos, no hagas siempre lo mismo. Albert Einstein++++


//++++Si buscas resultados distintos, no hagas siempre lo mismo. Albert Einstein++++


