/*
Cross browser Marquee script- C 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 marqueewidth="570px"
//Specify the marquee's height
var marqueeheight="25px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2
//configure background color:
var marqueebgcolor=""
//Pause marquee onMousever (0=no. 1=yes)?
var 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):

var marqueecontent='<nobr>{$markiza}</nobr>'
*/
////NO NEED TO EDIT BELOW THIS LINE////////////
marq_marqueespeed=(document.all)? marq_marqueespeed : Math.max(1, marq_marqueespeed-1) //slow speed down by 1 for NS
var marq_copyspeed=marq_marqueespeed
var marq_pausespeed=(marq_pauseit==0)? marq_copyspeed: 0
var marq_iexdom=document.all||document.getElementById
if (marq_iexdom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marq_marqueecontent+'</span>')
var marq_actualwidth=''
var marq_cross_marquee, marq_ns_marquee

function marq_populate(){
if (marq_iexdom){
marq_cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
marq_cross_marquee.style.left=parseInt(marq_marqueewidth)+8+"px"
marq_cross_marquee.innerHTML=marq_marqueecontent
marq_actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
marq_ns_marquee=document.ns_marquee.document.ns_marquee2
marq_ns_marquee.left=parseInt(marq_marqueewidth)+8
marq_ns_marquee.document.write(marq_marqueecontent)
marq_ns_marquee.document.close()
marq_actualwidth=marq_ns_marquee.document.width
}
marq_lefttime=setInterval("marq_scrollmarquee()",20)
}
//window.onload=marq_populate

function marq_scrollmarquee(){
if (marq_iexdom){
if (parseInt(marq_cross_marquee.style.left)>(marq_actualwidth*(-1)+8))
marq_cross_marquee.style.left=parseInt(marq_cross_marquee.style.left)-marq_copyspeed+"px"
else
marq_cross_marquee.style.left=parseInt(marq_marqueewidth)+8+"px"

}
else if (document.layers){
if (marq_ns_marquee.left>(marq_actualwidth*(-1)+8))
marq_ns_marquee.left-=marq_copyspeed
else
marq_ns_marquee.left=parseInt(marq_marqueewidth)+8
}
}

if (marq_iexdom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (marq_iexdom){
write('<div style="position:relative;width:'+marq_marqueewidth+';height:'+marq_marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marq_marqueewidth+';height:'+marq_marqueeheight+';background:'+marq_marqueebgcolor+'" onMouseover="marq_copyspeed=marq_pausespeed" onMouseout="marq_copyspeed=marq_marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marq_marqueewidth+' height='+marq_marqueeheight+' name="ns_marquee" bgColor='+marq_marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="marq_copyspeed=marq_pausespeed" onMouseout="marq_copyspeed=marq_marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}

