/*
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
*/

m_2_htmlcontent = '';

var m_2_marqueewidth = "100%"
var m_2_marqueeheight = "20px"
var m_2_marqueespeed = 2
var m_2_marqueebgcolor = "transparent"
var m_2_pauseit=1

////NO NEED TO EDIT BELOW THIS LINE////////////
m_2_marqueespeed = (document.all) ? m_2_marqueespeed : Math.max(1, m_2_marqueespeed-1) //slow speed down by 1 for NS
var m_2_copyspeed = m_2_marqueespeed;
var m_2_pausespeed = (m_2_pauseit==0)? m_2_copyspeed: 0;
var m_2_iedom=document.all||document.getElementById;
if (m_2_iedom)
m_2_htmlcontent += '<span id="m_2_temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+m_2_marqueecontent+'<\/span>';
var m_2_actualwidth='';
var m_2_cross_marquee, m_2_ns_marquee;

function m_2_populate(){
if (m_2_iedom){
m_2_cross_marquee=document.getElementById? document.getElementById("m_2_iemarquee") : document.all.m_2_iemarquee;
m_2_cross_marquee.style.left=parseInt(m_2_marqueewidth)+8+"px";
m_2_cross_marquee.innerHTML=m_2_marqueecontent
m_2_actualwidth=document.all? m_2_temp.offsetWidth : document.getElementById("m_2_temp").offsetWidth
}
else if (document.layers){
m_2_ns_marquee=document.m_2_ns_marquee.document.m_2_ns_marquee2
m_2_ns_marquee.left=parseInt(m_2_marqueewidth)+8
m_2_ns_marquee.m_2_htmlcontent += m_2_marqueecontent
m_2_ns_marquee.document.close()
m_2_actualwidth=m_2_ns_marquee.document.width
}
m_2_lefttime=setInterval("m_2_scrollmarquee()",20)
}

function m_2_scrollmarquee(){
if (m_2_iedom){
if (parseInt(m_2_cross_marquee.style.left)>(m_2_actualwidth*(-1)+8))
m_2_cross_marquee.style.left=parseInt(m_2_cross_marquee.style.left)-m_2_copyspeed+"px"
else
m_2_cross_marquee.style.left=parseInt(m_2_marqueewidth)+8+"px"

}
else if (document.layers){
if (m_2_ns_marquee.left>(m_2_actualwidth*(-1)+8))
m_2_ns_marquee.left-=m_2_copyspeed
else
m_2_ns_marquee.left=parseInt(m_2_marqueewidth)+8
}
}

if (m_2_iedom||document.layers){
with (document){
if (m_2_iedom){
	m_2_htmlcontent += '<div style="position:relative; width:'+m_2_marqueewidth+'; height:'+m_2_marqueeheight+'; overflow:hidden; " >';
	m_2_htmlcontent += '<div style="position:absolute; width:'+m_2_marqueewidth+'; height:'+m_2_marqueeheight+'; background-color:'+m_2_marqueebgcolor+'" onMouseover="m_2_copyspeed=m_2_pausespeed" onMouseout="m_2_copyspeed=m_2_marqueespeed; " >';
	m_2_htmlcontent += '<div id="m_2_iemarquee" style="position:absolute; left:0px; top:0px; " ><\/div>';
	m_2_htmlcontent += '<\/div><\/div>';
}
else if (document.layers){
	m_2_htmlcontent += '<ilayer width='+m_2_marqueewidth+' height='+m_2_marqueeheight+' name="m_2_ns_marquee" bgColor='+m_2_marqueebgcolor+'>';
	m_2_htmlcontent += '<layer name="m_2_ns_marquee2" left=0 top=0 onMouseover="m_2_copyspeed=m_2_pausespeed" onMouseout="m_2_copyspeed=m_2_marqueespeed"><\/layer>';
	m_2_htmlcontent += '<\/ilayer>';
}
}
}

document.write( '<div id="marquee-2" class="marquee" ><div class="mc" ></div></div>' );
document.getElementById("marquee-2").innerHTML = m_2_htmlcontent;

m_2_populate();
