/*--------------------------------------------------------------------------------------------------------------------------data e ora*/
function tS(){ x=new Date(tN().getUTCFullYear(),tN().getUTCMonth(),tN().getUTCDate(),tN().getUTCHours(),tN().getUTCMinutes(),tN().getUTCSeconds()); x.setTime(x.getTime()+3600000); return x; } 
function tN(){ return new Date(); } 
function lZ(x){ return (x>9)?x:'0'+x; } 
function y2(x){ x=(x<500)?x+1900:x; return String(x).substring(2,4) } 
function dT(){ if(fr==0){ fr=1; document.write('<span id="tP">'+eval(oT)+'</span>'); } document.getElementById('tP').innerHTML=eval(oT); setTimeout('dT()',1000); } 
var dN=new Array('Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato'),fr=0,oT="dN[tS().getDay()]+' '+tS().getDate()+'.'+(tS().getMonth()+1)+'.'+y2(tS().getYear())+' | '+lZ(tS().getHours()+1)+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+''";
/*gethours()+1 = ora legale || gethours()+0 = ora solare*/
/*------------------------------------------------------------------------------------------------------------------------message-line*/
function none_message_line(){
if (document.getElementById) {document.getElementById('message_line').style.display='none';}
else if (document.all) {document.all.message_line.style.display='none';}}
/*------------------------------------------------------------------------------------------------------------------------------pop-up*/
function stream()
{window.open("http://www.radioincorso.it/player/player.php#v.10.7.20","Stream","scrollbars=1,resizable=0,width=580px,height=630px,left=0, top=0, menu_topbar=no");}
function player_v()
{window.open("http://www.radioincorso.it/player/player_v.php","Ustation","scrollbars=1,resizable=0,width=610px,height=450px,left=0, top=0, menu_topbar=no");}
function erdisu()
{window.open("http://www.erdisu.trieste.it","erdisu");}
function univ()
{window.open("http://units.it","università trieste");}
function crt()
{window.open("http://www.fondazionecrtrieste.it","crt cassa di risparmio di trieste");}
function pro_ts()
{window.open("http://www.provincia.trieste.it/web/guest","provincia di trieste");}
function radio24()
{window.open("http://www.radio24.it","radio ventiquattro");}
function unyonoair()
{window.open("http://www.unyonair.it","unyonair");}
function ustation()
{window.open("http://www.ustation.it","ustation");}
/*------------------------------------------------------------------------------------------------------------------------------search*/
function changeAction(url){//document.getElementById('searchform').action.value=url; //fix for Google Chrome (che non funzia cmq)
document.getElementById('searchform').action=url;}
/*-------------------------------------------------------------------------------------------------------------elements sidebar toogle*/
    function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }
/*--------------------------------------------------------------WIDGETS---------------------------------------------------------------*/
