function writeEmbedVideo(videoUrl, W, str){
Pa = ""
Pb = ""
if (videoUrl!="") {
params = str.split("§")
for (i=0; i'
}
document.write('')
}
}
function strelapsed(t) {
if (t.indexOf("GMT") > 1 || t.indexOf("-") > 1 || t.indexOf(":") > 1) {
var m = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var s = m[parseInt(t.substr(5, 2),10)] + ' ' + 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: 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
}
else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
},
submitWrapper : function (form) {
form.q1.disabled=true;
form.q.value=GenioJS.utf8encode(form.q1.value);
form.origin.value=document.location;
}
}