//scroller width: change to your own;
var swidth=320
//scroller height: change to your own;
var sheight=242
//background color: change to your own; 
var sbcolor=""
//scroller's speed: change to your own;
var sspeed=3
//scroller's speed when your mouse is over news - Gian - 13/01/2011
var sspeedonmouseover=1

//preload one Image:
srcpng1 = new Image();
srcpng1.src = "icons/centrologo.gif";

// se vuoi aggiungere un'immagine 
// inserisci al codice wholemessage
// '<img width="72" height="128" src=' + srcpng1.src + '><br>'+

//-- end Parameters-->
//-- begin: Scroller's Algorithm -->

var resumesspeed=sspeed
function start(){
if (document.all) iemarquee(slider);
else if (document.getElementById)
ns6marquee(document.getElementById('slider'));
else if(document.layers)
ns4marquee(document.slider1.document.slider2);
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
iediv.innerHTML=wholemessage 
iediv.style.pixelTop=sheight
sizeup=iediv.offsetHeight
ieslide()
}
function ieslide(){
if (iediv.style.pixelTop>=sizeup*(-1)){
iediv.style.pixelTop-=sspeed
setTimeout("ieslide()",100)
}
else{
iediv.style.pixelTop=sheight
ieslide()
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=ns6div.offsetHeight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}
//-- end Algorithm -->

