/*
Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
For fullnew source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Modified by jscheuer1 for continuous content. Credit MUST stay intact
*/

//Specify the marquee's width (in pixels)
var marqueewidthnew="100%"
//Specify the marquee's height
var marqueeheightnew="300px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeednew=1
//Specify initial pause before scrolling in milliseconds
var initPausenew=10
//Specify start with fullnew(1)or Empty(0) Marquee
var fullnew=1
//configure background color:
var marqueebgcolor="#000000"
//Pause marquee onMousever (0=no. 1=yes)?
var pauseitnew=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 marqueecontentnew='<nobr><img alt="header" title="01" src="pics/01.jpg" /><img alt="header" title="02" src="pics/02.jpg" /><img alt="header" title="03" src="pics/03.jpg" /><img alt="header" title="04" src="pics/04.jpg" /></nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeednew=marqueespeednew
var pausespeedsnew=(pauseitnew==0)? copyspeednew: 0
var iedomnew=document.all||document.getElementById
if (iedomnew)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontentnew+'</span>')
var actualwidth=''
var cross_marqueenew, cross_marqueenew2, ns_marquee
function populate(){
if (iedomnew){
var initFill=(fullnew==1)? '8px' : parseInt(marqueewidthnew)+"px"
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
cross_marqueenew=document.getElementById? document.getElementById("iemarqueenew") : document.all.iemarqueenew
cross_marqueenew.style.left=initFill
cross_marqueenew2=document.getElementById? document.getElementById("iemarqueenew2") : document.all.iemarqueenew2
cross_marqueenew2.innerHTML=cross_marqueenew.innerHTML=marqueecontentnew
cross_marqueenew2.style.left=(parseInt(cross_marqueenew.style.left)+actualwidth)+"px" //indicates following #1
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=parseInt(marqueewidthnew)
ns_marquee.document.write(marqueecontentnew)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
setTimeout('lefttime=setInterval("scrollmarqueenew()",30)',initPausenew)
}
window.onload=populate

function scrollmarqueenew(){
if (iedomnew){
if (parseInt(cross_marqueenew.style.left)<(actualwidth*(-1)))
cross_marqueenew.style.left=(parseInt(cross_marqueenew2.style.left)+actualwidth)+"px"
if (parseInt(cross_marqueenew2.style.left)<(actualwidth*(-1)))
cross_marqueenew2.style.left=(parseInt(cross_marqueenew.style.left)+actualwidth)+"px"
cross_marqueenew2.style.left=parseInt(cross_marqueenew2.style.left)-copyspeednew+"px"
cross_marqueenew.style.left=parseInt(cross_marqueenew.style.left)-copyspeednew+"px"
}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)))
ns_marquee.left-=copyspeednew
else
ns_marquee.left=parseInt(marqueewidthnew)
}
}

if (iedomnew||document.layers){
with (document){
if (iedomnew){
write('<div style="position:relative;height:'+marqueeheightnew+';overflow:hidden">')
write('<div style="position:absolute;height:'+marqueeheightnew+';" onMouseover="copyspeednew=pausespeedsnew" onMouseout="copyspeednew=marqueespeednew">')
write('<div id="iemarqueenew" style="position:absolute;left:0px;top:0px;display:inline;"></div>')
write('<div id="iemarqueenew2" style="position:absolute;left:0px;top:0px;display:inline;"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidthnew+' height='+marqueeheightnew+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeednew=pausespeedsnew" onMouseout="copyspeednew=marqueespeednew"></layer>')
write('</ilayer>')
}
}
}
