function writeEmbedVideoWE(videoUrl, W, H, str){ Pa = "" Pb = "" if (videoUrl!="") { params = str.split("§") for (i=0; i' } document.write('') document.write('') document.write('') document.write(Pb) document.write('') document.write('') } } function writeEmbedVideo(videoUrl, W, str){ Pa = "" Pb = "" if (videoUrl!="") { params = str.split("§") for (i=0; i' } document.write('') document.write('') document.write('') document.write(Pb) document.write('') document.write('') } } function strelapsed(t) { if (t.indexOf) { var m = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dec']; var s = m[parseInt(t.substr(5, 2))] + ' ' + t.substr(8, 2) + ', ' + t.substr(0, 4) + ' ' + t.substr(11, 8); t = Date.parse(s) / 1000; } ct = Math.round((new Date()).getTime() / 1000); t = ct - t; if (t < 60) { return t + " sec"; } if (t < 3600) { m = Math.floor(t / 60); if(m == 1) return m + " min"; else return m + " min"; } if (t < (3600 * 24)) { h = Math.floor(t / 3600); if(h == 1) return h + " ora"; else return h + " ore"; } d = Math.floor(t / (3600 * 24)); if(d == 1) return d + " giorno"; else return d + " giorni"; } var _POPUP_FEATURES = 'resizable=yes,location=0,statusbar=0,menubar=0,width=800,height=500'; function raw_popup(url, target, features) { // pops up a window containing url optionally named target, optionally having features if (isUndefined(features)) features = _POPUP_FEATURES; if (isUndefined(target )) target = '_blank'; var theWindow = window.open(url, target, features); theWindow.focus(); return theWindow; } function link_popup(src, features) { // to be used in an html event handler as in: -1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);