var loop = 3;
var bump = 0;
var bumpheight = 100;
var bumpnumbers = 1;
var init = 0;
var status_splash = 0;
var splash_tab_size = 45;
var ExoSplashHeight = 775;
//if(window.innerHeight>0) ExoSplashHeight = window.innerHeight;
//else if(document.body.clientHeight>0) ExoSplashHeight = document.body.clientHeight;
//else if(document.documentElement.clientHeight>0) ExoSplashHeight = document.documentElement.clientHeight;
var width = 550;
if(window.innerWidth>0) width = window.innerWidth;
else if(document.body.clientWidth>0) width = document.body.clientWidth;
else if(document.documentElement.clientWidth>0) width = document.documentElement.clientWidth;
function tab_click(status_splash) {
if(status_splash==0) {
document.getElementById('tab').innerHTML='CERRAR';
loop = 0;
bump = 0;
splash_down(splash_tab_size,'click');
return 1;
} else {
reset_splash();
document.getElementById('tab').innerHTML='DOWN';
return 0;
}
}
function reset_splash() {
document.getElementById('splash').style.top=-ExoSplashHeight + 'px';
}
function hide_splash() {
document.getElementById('splash').style.display='none';
}
function init_splash() {
splash_down(splash_tab_size, 'auto');
document.getElementById('tab').innerHTML='CERRAR';
status_splash=1;
}
function splash_down(cnt, type) {
var newcnt;
if(type=='auto' && init==1) return false;
if(loop<=bumpnumbers && bump==0 && cnt<=ExoSplashHeight) {
newcnt = cnt*(1+(0.03/(1+(loop*4))));
if(newcnt>=ExoSplashHeight) newcnt=ExoSplashHeight;
if(newcnt==ExoSplashHeight) {
bump = 1;
loop = loop + 1;
}
setTimeout("splash_down(" + newcnt + ", 'loop')",10);
} else if(loop<=bumpnumbers && bump==1 && cnt>(ExoSplashHeight-(bumpheight/loop))) {
newcnt = cnt*(1-(0.005));
if(newcnt<=(ExoSplashHeight-(bumpheight/loop))) bump = 0;
setTimeout("splash_down(" + newcnt + ", 'loop')",10);
}
document.getElementById('splash').style.top = (-ExoSplashHeight + cnt) + 'px';
init = 1;
}
document.write('<div id="splash" style="z-index: 99999999; margin: 0px; padding: 0px; position: absolute; left: 0px; top: -' + ExoSplashHeight + 'px; width: ' + width + 'px; height: ' + ExoSplashHeight + 'px;">');
document.write('<div style="background-color: #000000; text-align: center; height: ' + (ExoSplashHeight-splash_tab_size+3) + 'px; width: 100%;">');
document.write('<center>');
document.write('<br /><div style="text-align: left; width: 640px; color: #ffffff; font-family: Arial; font-size: 10px;">P U B L I C I D A D</div><br>');
document.write('<a href="http://ad.zanox.com/ppc/?16179330C517125386T"><img src="http://ad.zanox.com/ppv/?16179330C517125386" align="bottom" border="0" hspace="1" alt="NWL helado"></a><br />');
document.write('<div style="text-align: right; width: 640px; color: #ffffff; font-family: Arial; font-size: 11px;"><a href="http://biocapsulacorp.com/" style="text-decoration: none; color: #ffffff;" target="_blank">Powered by BIOCAPSULACORP.3047.DC®</a></div>');
document.write('</center>');
document.write('</div>');
document.write('<div>');
document.write('<center><div id="tab" onmouseover="this.style.cursor=\'pointer\';" onclick="status_splash = tab_click(status_splash)" style="-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; font-family: Arial, Verdana; font-weight: bold; background-color: #000000; width: 180px; height: 15px; color: #ffffff; font-size: 11px;">DOWN</div></center>');
document.write('</div>');
document.write('</div>');
setTimeout("init_splash()",3000);
