function getStyleObject(objectId) { // cross-browser function to get an object's style object given its if(document.getElementById && document.getElementById(objectId)) { // W3C DOM return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) { // MSIE 4 DOM return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) { // NN 4 DOM.. note: this won't find nested layers return document.layers[objectId]; } else { return false; } } // getStyleObject var ie5=(document.all && document.getElementById); var fadestart1=0; var iMax1=60; var timer1int=60; var fadestart2=0; var iMax2=60; var timer2int=50; var timerhint=5000; var timer1on=0; var timer2on=0; var timerhid=0; var timer1id=0; var timer2id=0; var iTitCnt=0; var iTxtCnt=0; var DivTit=0; var DivTxt=0; function fadetxt() { DivTit=document.getElementById('div_titulo'); DivTxt=document.getElementById('div_texto'); iTitCnt=fadestart1; iTxtCnt=fadestart2; setTimer1(); setTimer2(); } function gohome() { document.location="home.php"; } function setTimer1() { if (timer1on) { clearTimeout(timer1id); timer1on=0; } else { timer1id=setTimeout('fadefnc1()',timer1int); timer1on=1; } } function setTimer2() { if (timer2on) { clearTimeout(timer2id); timer2on=0; } else { timer2id=setTimeout('fadefnc2()',timer2int); timer2on=1; } } function clrTimer() { if (timer1on) { clearTimeout(timer1id); timer1on=0; } if (timer2on) { clearTimeout(timer2id); timer2on=0; } } function fadefnc1() { if (ie5) { DivTit.style.filter="alpha(opacity=" + iTitCnt + ")"; } else { DivTit.style.MozOpacity = iTitCnt / 100.0; } iTitCnt=iTitCnt+1; if (iTitCnt'; } function initblinds() { wrtdeb('initblinds'); divb1=getStyleObject("div_blind1"); divb2=getStyleObject("div_blind2"); divb3=getStyleObject("div_blind3"); } function openblinds() { wrtdeb('openblinds'); //if (timerbon==1) clrTimerb(); clrTimerb(); blindfnc1(); } function closeblinds() { wrtdeb('closeblinds'); //if (timerbon==1) clrTimerb(); clrTimerb(); blindfnc2(); } function clrTimerb() { wrtdeb('clrTimerb'); //if (timerbon) { clearTimeout(timerbid1); clearTimeout(timerbid2); timerbon=0; //} } function blindfnc1() { //wrtdeb('f1 h1:'+divh1+' h2:'+divh2+' t2:'+divt2); if (divh1>0) { divh1=divh1-1; } if (divh2>0) { divh2=divh2-1; } if (divt2<255) { divt2=divt2+1; divt3=divt3-1; } //if (document.layers) { if (ie5) { divb1.height = divh1; divb2.height = divh2; divb2.top = divt2; divb3.top = divt3; } else { divb1.height = divh1+"px"; divb2.height = divh2+"px"; divb2.top = divt2+"px"; divb3.top = divt3+"px"; } if (divh1>0 || divh2>0 || divt2<255) timerbid1=setTimeout('blindfnc1();',timerbint); } function blindfnc2() { wrtdeb('f2 h1:'+divh1+' h2:'+divh2+' t2:'+divt2); if (divh1<20) { divh1=divh1+1; } if (divh2<20) { divh2=divh2+1; } if (divt2>235) { divt2=divt2-1; divt3=divt3+1; } //if (document.layers) { if (ie5) { divb1.height = divh1; divb2.height = divh2; divb2.top = divt2; divb3.top = divt3; } else { divb1.height = divh1+"px"; divb2.height = divh2+"px"; divb2.top = divt2+"px"; divb3.top = divt3+"px"; } if (divh1<20 || divh2<20 || divt2>235) timerbid2=setTimeout('blindfnc2();',timerbint); } function randomNumber(limit) { return Math.floor(Math.random()*limit); } var arThemesES=new Array();arThemesES[0]=new Array('imagenes/fondo/top_tierra.jpg','imagenes/fondo/tierra_cat/titulo_tierra.gif','imagenes/fondo/tierra_cat/texto_tierra.gif','imagenes/fondo/top_tierra_blind.jpg','imagenes/fondo/bottom_tierra_cat.jpg','imagenes/fondo/bottom_tierra_blind.jpg');arThemesES[1]=new Array('imagenes/fondo/top_trabajo.jpg','imagenes/fondo/trabajo_cat/titulo_trabajo.gif','imagenes/fondo/trabajo_cat/texto_trabajo.gif','imagenes/fondo/top_trabajo_blind.jpg','imagenes/fondo/bottom_trabajo_cat.jpg','imagenes/fondo/bottom_trabajo_blind.jpg');arThemesES[2]=new Array('imagenes/fondo/top_manos.jpg','imagenes/fondo/manos_cat/titulo_manos.gif','imagenes/fondo/manos_cat/texto_manos.gif','imagenes/fondo/top_manos_blind.jpg','imagenes/fondo/bottom_manos_cat.jpg','imagenes/fondo/bottom_manos_blind.jpg');arThemesES[3]=new Array('imagenes/fondo/top_mar.jpg','imagenes/fondo/mar_cat/titulo_mar.gif','imagenes/fondo/mar_cat/texto_mar.gif','imagenes/fondo/top_mar_blind.jpg','imagenes/fondo/bottom_mar_cat.jpg','imagenes/fondo/bottom_mar_blind.jpg');var themetop = randomNumber(arThemesES.length);var themebot = randomNumber(arThemesES.length);while (themetop==themebot) themebot = randomNumber(arThemesES.length);