//function open_sorteobox(unique_sorteobox) { $(unique_sorteobox + '-sorteobox-content').hide(); $(unique_sorteobox + '-sorteobox').show(); $(unique_sorteobox + '-sorteobox-background').hide(); Effect.BlindDown(unique_sorteobox + '-sorteobox-content', { duration: 1.5, scaleFromCenter: false, scaleContent: true, scaleX: true, scaleY: true }); /* Effect.Grow(unique_sorteobox + '-sorteobox-content',{duration:2.0});*/ Effect.Appear(unique_sorteobox + '-sorteobox-background'); } 
//function close_sorteobox(unique_sorteobox) { Effect.Squish(unique_sorteobox + '-sorteobox-content', { duration: 1.5 }); Effect.Fade(unique_sorteobox + '-sorteobox', { duration: 1.5 }); return false; } function execAlto(unique_sorteobox) { var j = 500; var fObj = new Date(); var from = $(unique_sorteobox + '-sorteobox-content').offsetHeight; var to = 0; var alto = setInterval("$('" + unique_sorteobox + "-sorteobox-content').setStyle('padding-bottom: " + 2 + "px');doAlto('" + from + "','" + to + "','" + fObj.getTime() + "','" + j + "','" + unique_sorteobox + "')", 25); setTimeout("clearInterval(" + alto + ");execAncho('" + unique_sorteobox + "');$('" + unique_sorteobox + "-sorteobox-content').setStyle('height: " + to + "px');", j); setTimeout("$('" + unique_sorteobox + "-sorteobox-content').setStyle('height: auto');$('" + unique_sorteobox + "-sorteobox-wrapper').setStyle('padding-top:140px');", j * 3); } function execAncho(unique_sorteobox) { var j = 500; var fObj = new Date(); var from = $(unique_sorteobox + '-sorteobox-content').offsetWidth; var to = 0; var ancho = setInterval("doAncho('" + from + "','" + to + "','" + fObj.getTime() + "','" + j + "','" + unique_sorteobox + "')", 25); setTimeout("clearInterval(" + ancho + ");$('" + unique_sorteobox + "-sorteobox-content').setStyle('width: " + to + "px');", j); setTimeout("$('" + unique_sorteobox + "-sorteobox').hide();$('" + unique_sorteobox + "-sorteobox-content').setStyle('width: " + from + "px');", j + 100); }
function doAncho(valordesde, valorhasta, horaComienzo, duracion, unique_sorteobox) { var objHora = new Date(); var horaActual = objHora.getTime(); var valor = Math.round(((valordesde - valorhasta) * (duracion - (horaActual - horaComienzo)) / duracion)) * 1 + valorhasta * 1; $(unique_sorteobox + '-sorteobox-content').setStyle("width:" + valor + "px"); }
function doAlto(valordesde, valorhasta, horaComienzo, duracion, unique_sorteobox) { var objHora = new Date(); var horaActual = objHora.getTime(); if (horaActual - duracion < horaComienzo) { var valor = Math.round(((valordesde - valorhasta) * (duracion - (horaActual - horaComienzo)) / duracion)) * 1 + valorhasta * 1; $(unique_sorteobox + '-sorteobox-content').setStyle("height:" + valor + "px"); var valor = Math.round((valordesde - valor) / 2) * 1 + 140; $(unique_sorteobox + '-sorteobox-wrapper').setStyle("padding-top:" + valor + "px"); } }
function execAlto(unique_sorteobox) { var j = 500; var fObj = new Date(); var from = $(unique_sorteobox + '-sorteobox-content').offsetHeight; var to = 0; var alto = setInterval("$('" + unique_sorteobox + "-sorteobox-content').setStyle('padding-bottom: " + 2 + "px');doAlto('" + from + "','" + to + "','" + fObj.getTime() + "','" + j + "','" + unique_sorteobox + "')", 25); setTimeout("clearInterval(" + alto + ");execAncho('" + unique_sorteobox + "');$('" + unique_sorteobox + "-sorteobox-content').setStyle('height: " + to + "px');", j); setTimeout("$('" + unique_sorteobox + "-sorteobox-content').setStyle('height: auto');$('" + unique_sorteobox + "-sorteobox-wrapper').setStyle('padding-top:140px');", j * 3); } 
function execAncho(unique_sorteobox) { var j = 500; var fObj = new Date(); var from = $(unique_sorteobox + '-sorteobox-content').offsetWidth; var to = 0; var ancho = setInterval("doAncho('" + from + "','" + to + "','" + fObj.getTime() + "','" + j + "','" + unique_sorteobox + "')", 25); setTimeout("clearInterval(" + ancho + ");$('" + unique_sorteobox + "-sorteobox-content').setStyle('width: " + to + "px');", j); setTimeout("$('" + unique_sorteobox + "-sorteobox').hide();$('" + unique_sorteobox + "-sorteobox-content').setStyle('width: " + from + "px');", j + 100); }
function close_sorteobox(unique_sorteobox){$(unique_sorteobox+'-sorteobox').fade();return false;}
function open_sorteobox(unique_sorteobox){$(unique_sorteobox+'-sorteobox').show();return false;} 

