/*
Cross browser marquee2 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 marquee2's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
// define it on the page
//var marquee2content='<nobr><a href="#">NZTOURISIM.NET.NZ - BIDS: 1 - PRICE: $25.50 - ENDS: 1h2m30s</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">CHRISTCHURCHCITY.CO.NZ - BIDS: 12 - PRICE: $542.50 - ENDS: 2m30s</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">NZTOURISIM.NET.NZ - BIDS: 1 - PRICE: $25.50 - ENDS: 1h2m30s</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">NZTOURISIM.NET.NZ - BIDS: 1 - PRICE: $25.50 - ENDS: 1h2m30s</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">CHRISTCHURCHCITY.CO.NZ - BIDS: 12 - PRICE: $542.50 - ENDS: 2m30s</a></nobr>'

//Specify the marquee2's width (in pixels)
var marquee2width="500px"
//Specify the marquee2's height
var marquee2height="13px"
//Specify the marquee2's marquee2 speed (larger is faster 1-10)
var marquee2speed=1
//configure background color:
var marquee2bgcolor=""

var marquee2color="#ffffff"
//Pause marquee2 onMousever (0=no. 1=yes)?
var pauseit=1

////NO NEED TO EDIT BELOW THIS LINE////////////
marquee2speed=(document.all)? marquee2speed : Math.max(1, marquee2speed-1) //slow speed down by 1 for NS
var copyspeed2=marquee2speed
var pausespeed2=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp2" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marquee2content+'</span>')
var actualwidth2=''
var cross_marquee2, ns_marquee2


function populate2(){
if (iedom){
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee2.style.left=parseInt(marquee2width)+8+"px"
cross_marquee2.innerHTML=marquee2content
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(marquee2width)+8
ns_marquee2.document.write(marquee2content)
ns_marquee2.document.close()
actualwidth2=ns_marquee2.document.width
}
lefttime2=setInterval("scrollmarquee2()",20)
}

function populate_all(){
  //populate();
  populate2();
}

window.onload=populate_all



function scrollmarquee2(){
if (iedom){
if (parseInt(cross_marquee2.style.left)>(actualwidth2*(-1)+8))
cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed2+"px"
else
cross_marquee2.style.left=parseInt(marquee2width)+8+"px"

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

if (iedom||document.layers){
with (document){
document.write('<table class="Ticker" border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marquee2width+';height:'+marquee2height+';overflow:hidden;">')
write('<div style="position:absolute;width:'+marquee2width+';height:'+marquee2height+';color:'+marquee2color+'" onMouseover="copyspeed2=pausespeed2" onMouseout="copyspeed2=marquee2speed">')
write('<div id="iemarquee2" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marquee2width+' height='+marquee2height+' name="ns_marquee2" bgColor='+marquee2bgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marquee2speed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}