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: