/*
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
*/

//Specify the marquee's width (in pixels)
var marqueewidth2="125px"
//Specify the marquee's height
var marqueeheight2="12px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed2=1//configure background color:
var marqueebgcolor2=""
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit2=1

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed2=(document.all)? marqueespeed2 : Math.max(1, marqueespeed2-1) //slow speed down by 1 for NS
var copyspeed2=marqueespeed2
var pausespeed2=(pauseit2==0)? copyspeed2: 0
var iedom2=document.all||document.getElementById
if (iedom2)
	document.write('<div id=spandiv2 style=\"visibility:hidden;position:absolute;\"><span id=\"temp2\" style=\"visibility:hidden;position:absolute;top:-100px;left:-9000px\">'+marqueecontent2+'</span></div>')



var actualwidth2=''
var cross_marquee2, ns_marquee2

function populate2(){

document.getElementById('spandiv2').innerHTML = '<span id="temp2" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent2+'</span>';

if (iedom2){
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee2.style.left=parseInt(marqueewidth2)+8+"px"
cross_marquee2.innerHTML=marqueecontent2
actualwidth2=document.all? temp2.offsetWidth : document.getElementById("temp2").offsetWidth
}
else if (document.layers){
ns_marquee2=document.ns_marquee2.document.ns_marquee22
ns_marquee2.left=parseInt(marqueewidth2)+8
ns_marquee2.document.write(marqueecontent2)
ns_marquee2.document.close()
actualwidth2=ns_marquee2.document.width
}

lefttime2=setInterval("scrollmarquee2()",20)

}

function scrollmarquee2(){

//cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-parseInt(copyspeed2)+"px"

if (iedom2){

if (parseInt(cross_marquee2.style.left) > (actualwidth2*(-1)-30) ) {
  cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-parseInt(copyspeed2)+"px"
} else {
  cross_marquee2.style.left=parseInt(marqueewidth2)+8+"px"
}
}
else if (document.layers){

if (ns_marquee2.left>(actualwidth2*(-1)+8)) {
  ns_marquee2.left-=copyspeed2} else {
  ns_marquee2.left=parseInt(marqueewidth2)+8
}

}
}

if (iedom2||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom2){
write('<div style="position:relative;width:'+marqueewidth2+';height:'+marqueeheight2+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth2+';height:'+marqueeheight2+';background-color:'+marqueebgcolor2+'" onMouseover="copyspeed2=pausespeed2" onMouseout="copyspeed2=marqueespeed2">')
write('<div id="iemarquee2" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth2+' height='+marqueeheight2+' name="ns_marquee2" bgColor='+marqueebgcolor2+'>')
write('<layer name="ns_marquee22" left=0 top=0 onMouseover="copyspeed2=pausespeed2" onMouseout="copyspeed=marqueespeed2"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}

