

msg = "Swiss Radio Amateur |+| Radio Amatori Svizzera |+| Schweizer Radio Amateure |+| " 
pos = 0;

function ScrollMessage() {

   var newtext = msg.substring(pos, msg.length) + msg.substring(0, pos);
   var div = document.getElementById("scroll");
   div.firstChild.nodeValue = newtext;
   
   div.style.width = 883 + "px"; 

	div.style.position="absolute";
	div.style.top = 177+"px";
	div.style.left = 7+"px";

	div.style.fontFamily = "Arial Black";
   div.style.backgroundColor = "red"; 
   div.style.color = "white"; 

   pos++;
   if (pos > msg.length) pos = 0;
   window.setTimeout("ScrollMessage()",150);
}



function mytime() {

var mioValore1 = document.getElementById("rclock1") ;

//document.getElementById("rclock1").align = right;

var x=new Date();

h=x.getHours();
m=x.getMinutes();
s=x.getSeconds();

if(s<=9) s="0"+s;
if(m<=9) m="0"+m;
if(h<=9) h="0"+h;
time=h+":"+m+":"+s;

mioValore1.innerHTML = "Orario impostato sul tuo computer:  " + time;
mioValore1.style.color = "rgb(150,150,150)"; //"white";
mioValore1.style.fontFamily = "Century Gothic";
//mioValore1.style.fontWeight = "light";
mioValore1.style.fontSize = 14+"px";

mioValore1.style.position="absolute";
mioValore1.style.top = 260+"px";
mioValore1.style.left = 590+"px";

window.setTimeout("mytime()",1000); 
}


function CaricaFoto(img)
{
foto1= new Image();
foto1.src=(img);
Controlla(img);
}


function Controlla(img){
if((img.width!=0)&&(img.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}


function viewFoto(img){

var w = foto1.width+20;
var h = foto1.height+20;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);

miaFin = window.open(img,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}


