function findPosY(obj)
{
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}
function video_change(t)
{
getId('v1').innerHTML=''
}
function change_div(did,act) {
if(act==1) {
$(did).getChildren('.tm1').set('class', 'tm1h fl');
$(did).getChildren('.tm2').set('class', 'tm2h fl');
$(did).getChildren('.tm3').set('class', 'tm3h fl');
} else {
$(did).getChildren('.tm1h').set('class', 'tm1 fl');
$(did).getChildren('.tm2h').set('class', 'tm2 fl');
$(did).getChildren('.tm3h').set('class', 'tm3 fl');
}
}
function clock(cid) {
ndate=$('boxclock-'+cid).get('html');
var d1=ndate.split(' ');
var d=d1[0].split('-');
var t=d1[1].split(':');
var now = new Date().getTime()/1000;
var dayend = new Date(d[0],d[1]-1,d[2],t[0],t[1],t[2]).getTime()/1000;
var sec = Math.abs(now-dayend);
var min = Math.floor(sec/60);
var hours = Math.floor(min/60);
var days = Math.floor(hours/24);
var years = Math.floor(days/365);
sec = Math.floor(sec-min*60);
min = Math.floor(min-hours*60);
hours = Math.floor(hours-days*24);
days = Math.floor(days-years*365);
var r="";
if(days>0)
r=r+"dni: "+days;
if(days==0)
{
if(hours>0)
r=r+hours;
if(min>0)
r=r+":"+((min<10)?"0":"")+min;
if(sec>=0)
r=r+":"+((sec<10)?"0":"")+sec;
}
$('boxclock_show-'+cid).innerHTML =r;
if (now