/*
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]='New training courses announced!  <a href="training.htm"> [Read more]</a>'
tickercontents[1]='Free Introduction to Freeze Drying Booklet   <a href="i2fd.php"> [Read more]</a>'
tickercontents[2]='Headspace Moisture Analysis Paper   <a href="publications.htm"> [Read more]</a>'


//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='65%' //in "px" or "%"
var tickerbgcolor='lightblue'

//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>')
var onloadcache;
if (window.onload == null)
{
	window.onload=new Function("start_ticking();"); 
}
else
{
	onloadcache = window.onload ;
	window.onload=new Function("start_ticking(); onloadcache();"); 
}


