
/*
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 h_marqueewidth="565px"
//Specify the marquee's height
var h_marqueeheight="19px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var h_marqueespeed=1
//configure background color:
var h_marqueebgcolor="#BFD2C3"
//Pause marquee onMousever (0=no. 1=yes)?
var h_pauseit=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////////////
h_marqueespeed=(document.all)? h_marqueespeed : Math.max(1, h_marqueespeed-1) //slow speed down by 1 for NS
var h_copyspeed=h_marqueespeed
var h_pausespeed=(h_pauseit==0)? h_copyspeed: 0
var h_iedom=document.all||document.getElementById
if (h_iedom)
document.write('<span id="h_temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+h_marqueecontent+'</span>')
var h_actualwidth=''
var h_cross_marquee, h_ns_marquee

function h_populate(){
if (h_iedom){
h_cross_marquee=document.getElementById? document.getElementById("h_iemarquee") : document.all.h_iemarquee
h_cross_marquee.style.left=parseInt(h_marqueewidth)+8+"px"
h_cross_marquee.innerHTML=h_marqueecontent
h_actualwidth=document.all? h_temp.offsetWidth : document.getElementById("h_temp").offsetWidth
}
else if (document.layers){
h_ns_marquee=document.h_ns_marquee.document.h_ns_marquee2
h_ns_marquee.left=parseInt(h_marqueewidth)+8
h_ns_marquee.document.write(h_marqueecontent)
h_ns_marquee.document.close()
h_actualwidth=h_ns_marquee.document.width
}
h_lefttime=setInterval("h_scrollmarquee()",20)
}
window.onload=h_populate

function h_scrollmarquee(){
if (h_iedom){
if (parseInt(h_cross_marquee.style.left)>(h_actualwidth*(-1)+8))
h_cross_marquee.style.left=parseInt(h_cross_marquee.style.left)-h_copyspeed+"px"
else
h_cross_marquee.style.left=parseInt(h_marqueewidth)+8+"px"

}
else if (document.layers){
if (h_ns_marquee.left>(h_actualwidth*(-1)+8))
h_ns_marquee.left-=h_copyspeed
else
h_ns_marquee.left=parseInt(h_marqueewidth)+8
}
}
function update(id)
{
document.getElementById(id).style.display = 'none';
}
function write_horizontal_scroller()
{
if (navigator.appName != "Netscape")
	{
	document.write('<DIV ALIGN="center">');
	}
if (h_iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (h_iedom){
write('<div style="position:relative;width:'+h_marqueewidth+';height:'+h_marqueeheight+';overflow:hidden;">')
write('<div style="position:absolute;width:'+h_marqueewidth+';height:'+h_marqueeheight+';background-color:'+h_marqueebgcolor+'" onMouseover="h_copyspeed=h_pausespeed" onMouseout="h_copyspeed=h_marqueespeed">')
write('<div id="h_iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+h_marqueewidth+' height='+h_marqueeheight+' name="h_ns_marquee" bgColor='+h_marqueebgcolor+'>')
write('<layer name="h_ns_marquee2" left=0 top=0 onMouseover="h_copyspeed=pausespeed" onMouseout="h_copyspeed=h_marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
if (navigator.appName != "Netscape")
	{
	document.write('</DIV>');
	}
}

