/*
Ticker Tape script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='All the information you need - in easy to follow colour coded sections <a href="http://www.babiesdirect.com/uk/order_now.htm">- order now</a>'
tickercontents[1]='The 1000 most important facts you need to know about your pregnancy, giving birth and life with your new baby <a href="http://www.babiesdirect.com/uk/order_now.htm">- order now</a>'
tickercontents[2]='Available on DVD - VHS - BOOK - dont miss out <a href="http://www.babiesdirect.com/uk/order_now.htm">- order now</a>'

//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='90%' //in "px" or "%"
var tickerbgcolor='#ffffff'

//configure the below variable to determine the delay between ticking of messages (in miliseconds
var tickdelay=3000

////Do not edit pass this line////////////////

var currentmessage=0

function changetickercontent(){
if (document.layers){
document.tickernsmain.document.tickernssub.document.write(tickercontents[currentmessage])
document.tickernsmain.document.tickernssub.document.close()
}
else
crosstick.innerHTML=tickercontents[currentmessage]

if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (document.layers)
document.tickernsmain.visibility="show"
else
crosstick=document.getElementById? document.getElementById("tickerie") : document.all.tickerie
changetickercontent()
}

if (document.all||document.getElementById)
document.write('<div id="tickerie" style="width:'+tickerwidth+'; background-color:'+tickerbgcolor+'"></div>')
window.onload=start_ticking