
var ns6=document.getElementById&&!document.all
var ie=document.all
function changeto(e,highlightcolor){source=ie?event.srcElement:e.target
if(source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior&&source.tagName!="HTML")
source=ns6?source.parentNode:source.parentElement
if(source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor}
function contains_ns6(master,slave){while(slave.parentNode)
if((slave=slave.parentNode)==master)
return true;return false;}
function changeback(e,originalcolor){if(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if(ns6&&(contains_ns6(source,e.relatedTarget)||source.id=="ignore"))
return
if(ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor}
function aFoto(ruta)
{i1=new Image;i1.src=ruta;html='<html><head><title>Imagen</title></head>';html+='<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>';html+='<center><img src="'+ruta+'" border=0 name="Foto" ';html+='onLoad="window.resizeTo(document.Foto.width,document.Foto.height)">';html+='</center></body></html>';popupImage=window.open('','_blank','scrollbars=0,resizable=0');popupImage.document.open();popupImage.document.write(html);popupImage.document.close();}
var titulopordefecto="";var ventana;var cont=0;function abreFoto(cual,titulo){if(cont==1){ventana.close();ventana=null}
if(titulo==null){titulo=titulopordefecto}
ventana=window.open('','ventana','resizable=no,scrollbars=no')
ventana.document.write('<html><head><title>'+titulo+'</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="'+cual+'" onLoad="opener.redimensionar(this.width, this.height)">');ventana.document.close();cont++;}
function abreFoto2(imagen,ancho,alto,titulo){mv=window.open("","foto","toolbar=no,location=no, status=no,menubar=no,resizable=no,left=0,top=0,scrollbars=no,width="+ancho+",height="+alto);mv.document.open();mv.document.write('<html><head><title>'+titulo+'</title></head>');mv.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');mv.document.write('<div style="background:url('+imagen+') no-repeat">');mv.document.write('<img src="/imagenes/pixel.gif" width="'+ancho+'" height="'+alto+'" alt="'+titulo+'" title="'+titulo+'"></div></body></html>');mv.document.close();mv.focus();}
function redimensionar(ancho,alto){ventana.resizeTo(ancho,alto+28);ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2);}
function fecha()
{var mydate=new Date();var year=mydate.getYear();if(year<1000)
year+=1900;var day=mydate.getDay();var month=mydate.getMonth();var daym=mydate.getDate();if(daym<10)
daym="0"+daym;var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado");var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");document.write("<small><font color='000000' font size=1 face='Verdana'><b>"+dayarray[day]+" "+daym+" de "+montharray[month]+" de "+year+"</b></font></small>");}
function cambiar_color_over(celda){celda.style.backgroundColor="#D3DBEA"}
function cambiar_color_out(celda){celda.style.backgroundColor="#E0E8F6"}
function cambiar_color_over2(celda){celda.style.backgroundColor="#D3DBEA"}
function cambiar_color_out2(celda){celda.style.backgroundColor="#ECEEF1"}
function pintaTabla(filas_tabla){var codigo_tabla='<table width="%100">\n'
for(var i=0;i<filas_tabla.length;i++){if(i==0){codigo_tabla+='<tr class="primerafila">'+filas_tabla[i]+'</tr>\n'}else if(i%2==0){codigo_tabla+='<tr class="sinbrillo" onmouseover="cambiar_color_over(this)"  onmouseout="cambiar_color_out(this)">'+filas_tabla[i]+'</tr>\n'}else{codigo_tabla+='<tr class="conbrillo" onmouseover="cambiar_color_over2(this)"  onmouseout="cambiar_color_out2(this)">'+filas_tabla[i]+'</tr>\n'}}
codigo_tabla+='</table>\n'
document.write(codigo_tabla)}
function pintaTabla2(filas_tabla){var codigo_tabla='<table width="%100">\n'
for(var i=0;i<filas_tabla.length;i++){if(i%2==0)
{codigo_tabla+='<tr class="sinbrillo">'+filas_tabla[i]+'</tr>\n'}else
{codigo_tabla+='<tr class="conbrillo">'+filas_tabla[i]+'</tr>\n'}}
codigo_tabla+='</table>\n'
document.write(codigo_tabla)}
function regenerate2(){if(document.layers){setTimeout("window.onresize=regenerate",450)
intializemarquee()}}
function intializemarquee(){document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()}
function scrollit(){if(document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)}
else{document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()}}
function obtenerNoticia()
{var noticia='<font face="Arial" size="1">Miramar Informa: <a href="http://www.webexperto.com" target="_blank">enlaces</a>, imágenes, <strong>PRUEBA</strong>, en fin, cualquier <em>código html</em>.<br>Es ideal para mostrar novedades o noticias sobre un sitio o tema en especial.</font>'
return noticia}
function makeObj(obj,nest){nest=(!nest)?'':'document.'+nest+'.'
this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
this.newsScroll=newsScroll;this.moveIt=b_moveIt;this.x;this.y;this.obj=obj+"Object"
eval(this.obj+"=this")
return this}
function b_moveIt(x,y){this.x=x;this.y=y
this.css.left=this.x
this.css.top=this.y}
function newsScroll(speed){if(this.y>-this.scrollHeight){this.moveIt(0,this.y-pr_step)
setTimeout(this.obj+".newsScroll("+speed+")",speed)}else if(loop){this.moveIt(0,lstart)
eval(this.obj+".newsScroll("+speed+")")}}
function newsScrollInit(){oNewsCont=new makeObj('divNewsCont')
oNewsScroll=new makeObj('layer2','divNewsCont')
oNewsScroll.moveIt(0,lstart)
oNewsCont.css.visibility='visible'
oNewsScroll.newsScroll(speed)}
function checkBrowser(){this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom)?1:0;this.ie4=(document.all&&!this.dom)?1:0;this.ns5=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.bw=(this.ie5||this.ie4||this.ns4||this.ns5)
return this}
function doOn(_i,_n){eval("document[\""+_i+"\"].src="+_n+"1.src");}
function doOut(_i,_n){eval("document[\""+_i+"\"].src="+_n+"0.src");}
