/*
Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

//Specify the marquee1's width (in pixels)
var marquee1width="183px"
//Specify the marquee1's height
var marquee1height="160px"
//Specify the marquee1's marquee1 speed (larger is faster 1-10)
var marquee1speed=1
//Pause marquee1 onMousever (0=no. 1=yes)?
var pauseit=1

//Specify the marquee1's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):


////NO NEED TO EDIT BELOW THIS LINE////////////

marquee1speed=(document.all)? marquee1speed : Math.max(1, marquee1speed-1) //slow speed down by 1 for NS
var copyspeed1=marquee1speed
var pausespeed1=(pauseit==0)? copyspeed1: 0
var iedom1=document.all||document.getElementById
var actualheight1=''
var cross_marquee1, ns_marquee1

function news(){
if (iedom1){
cross_marquee1=document.getElementById? document.getElementById("iemarquee1") : document.all.iemarquee1
cross_marquee1.style.top=parseInt(marquee1height)+8+"px"
cross_marquee1.innerHTML=marquee1content1
actualheight1=cross_marquee1.offsetHeight

}
else if (document.layers){
ns_marquee1=document.ns_marquee1.document.ns_marquee12
ns_marquee1.top=parseInt(marquee1height)+8
ns_marquee1.document.write(marquee1content1)
ns_marquee1.document.close()
actualheight1=ns_marquee1.document.height
}
lefttime=setInterval("scrollmarquee1()",50) //SE AUMENTO QUESTO NUMERO LA VELOCITA DI SCORRIMENTO DIMINUISCE E VICEVERSA
}

function scrollmarquee1(){

if (iedom1){
if (parseInt(cross_marquee1.style.top)>(actualheight1*(-1)+8))
cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed1+"px"
else
cross_marquee1.style.top=parseInt(marquee1height)+8+"px"
}
else if (document.layers){
if (ns_marquee1.top>(actualheight1*(-1)+8))
ns_marquee1.top-=copyspeed1
else
ns_marquee1.top=parseInt(marquee1height)+8
}
}

if (iedom1||document.layers){
with (document){
if (iedom1){
write('<div style="position:relative;width:'+marquee1width+';height:'+marquee1height+';overflow:hidden" onMouseover="copyspeed1=pausespeed1" onMouseout="copyspeed1=marquee1speed">')
write('<div id="iemarquee1" style="position:absolute;left:0px;top:0px;width:100%;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marquee1width+' height='+marquee1height+' name="ns_marquee1">')
write('<layer name="ns_marquee12" width='+marquee1width+' height='+marquee1height+' left=0 top=0 onMouseover="copyspeed1=pausespeed1" onMouseout="copyspeed1=marquee1speed"></layer>')
write('</ilayer>')
}
}
}