
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?
var mover1 = 1 // mover cross_marquee (0=no, 1=si)
var mover2 = 0 // idem cross_marquee1

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(parseInt(0-marqueeheight+'px'))) //if scroller hasn't reached the end of its 
	if (mover1 == 1)
		cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+'px' //move scroller 
		
if (parseInt(cross_marquee1.style.top)>(parseInt(0-actualheight1+'px'))) //if scroller hasn't reached the end of its 
	if (mover2 == 1)
		cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed+'px' //move scroller 

if (parseInt(cross_marquee.style.top)<=parseInt(0+'px'))
	mover2 = 1
if (parseInt(cross_marquee.style.top)<=parseInt(0-marqueeheight+'px')) {
	mover1 = 0
	cross_marquee.style.top=0+actualheight+'px'
}
if (parseInt(cross_marquee1.style.top)<=parseInt(0-actualheight1+marqueeheight+'px'))
	mover1 = 1
if (parseInt(cross_marquee1.style.top)<=parseInt(0-actualheight1+'px')) {
	mover2 = 0
	cross_marquee1.style.top=0+marqueeheight+'px'
}
}

function initializemarquee(){
cross_marquee=document.getElementById("Capa_fundidos_1")
actualheight=cross_marquee.offsetHeight 
cross_marquee.style.top=0+'px'

cross_marquee1=document.getElementById("Capa_fundidos_2")
actualheight1=cross_marquee1.offsetHeight 
cross_marquee1.style.top=0+actualheight+'px'

marqueeheight=document.getElementById("Capa_fundidos_int").offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}



