/*
Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

////NO NEED TO EDIT BELOW THIS LINE////////////

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
 cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
// cross_marquee.style.left=parseInt(marqueewidth)+"%"
cross_marquee.innerHTML=marqueecontent
maq_actualwidth=document.all? maqtemp.offsetWidth : document.getElementById("maqtemp").offsetWidth
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
 ns_marquee.left=parseInt(marqueewidth)+8
// ns_marquee.left=parseInt(marqueewidth)+8+"%"
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
maq_actualwidth=ns_marquee.document.width
}
lefttime=setInterval("scrollmarquee()",20)
}

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(maq_actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-maq_copyspeed+"px"
else
 cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
 //cross_marquee.style.left=parseInt(marqueewidth)+"%"

}
else if (document.layers){
if (ns_marquee.left>(maq_actualwidth*(-1)+8))
ns_marquee.left-=maq_copyspeed
else
 ns_marquee.left=parseInt(marqueewidth)+8
 //ns_marquee.left=parseInt(marqueewidth)+"%"
}
}

window.onload = populate;


