function amplia(foto,w,h,titu) {
 var par="height="+h+",width="+w
 var venta=window.open(foto,"",par)
 var conte="<html><head><title>"+titu+"</title></head><body leftmargin=0 topmargin=0><center><img src="+foto+"></center></body></html>"
 venta.document.write(conte)
 venta.document.close()
}

function texto_aleatorio(num){
   var textos = new Array()
   var titu = new Array()
   textos[0] = "Ponen en tu web un enlace a Pesca Plus, comun&iacute;canoslo por email y te daremos el Alta Premium gratuitamente."
   textos[1] = "Haz realidad el viaje de tus sue&ntilde;os en Calafate Lodge."
   textos[2] = "Si distribuyes, vendes u ofreces servicios, anunciate en nuestro Escaparate."
   textos[3] = "Aprende a pescar a mosca de una forma individual y personalizada. Situaciones reales en r&iacute;o."
   textos[4] = "Conviertete en editor de Pesca Plus y gestiona tus propios contenidos en la web."
   titu[0] = "Enl&aacute;zanos"
   titu[1] = "Patagonia"
   titu[2] = "Escaparate"
   titu[3] = "Escuela de Pesca"
   titu[4] = "Participa"

aleat = Math.random() * (textos.length) 
aleat = Math.floor(aleat)
 
document.write('<tr><td width=170 height=29 background="images/izdaazulsup.jpg" class=titucen align=center>'+titu[aleat]+'</td></tr>')
document.write('<tr><td width=170><table background="images/izdaazulcen.jpg"><tr><td width=170 class=texto12 align=center>'+textos[aleat]+'</td></tr></table></td></tr>')
document.write('<tr><td width=170 height=29 background="images/izdaazulinf.jpg"></td></tr>')

}

function scrollvertical(marqueewidth,marqueeheight,speed,marqueecontents){
if (document.all)
document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')
function regenerate(){
window.location.reload()
}
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()
}
}
window.onload=regenerate2
}
