// Highlighter Scroller II script- By JavaScript Kit (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit http://www.javascriptkit.com/
// This notice must stay intact

//CONFIGURE MESSAGES AND VARIABLES
var i = 0;
var tickercontents=new Array()
tickercontents[i++]='Dragon boat racing is enjoyed by people of all ages in over 50 countries and territories around the world.'
tickercontents[i++]='Governed and promoted by the International Dragon Boat Federation (IDBF) and its country members, dragon boat racing is a flat-water, sprint paddling sport, with a padding style similar to those in sprint canoe without the kneeling and outrigger racing, using single-blade paddles.'
tickercontents[i++]='The challenge of dragon boat racing <b>lies not in the paddling technique but rather in synchronizing</b> with 19 other paddlers on the boat through all phases of the stroke (catch-pull-finish-reach) and through the entire race course.'
tickercontents[i++]='Dragon boat races are typically 500 meters, but occasionally there are 250m, 1000m, 2000m and marathon races.'
tickercontents[i++]='In North America, teams typically paddle at stroke rates of 60 to 85spm (stroke per minute). <b>In Asia</b>, top teams can pull water at stroke rates <b>above 100spm</b>.'
tickercontents[i++]='It is common for four or more teams in a race to finish close together and only split-second apart.'
tickercontents[i++]='Many competitive teams post times around 2.5 minutes to cover 500m while elite teams can cover the same course length in less than 2 minutes.'
tickercontents[i++]='Originating in Southern China over 2000 years ago, dragon boat racing started gathering interest in the western world in the 1970s. Today, it is both a recreational and a highly competitive sport enjoyed by people of all ages in over 50 countries and territories around the world.'
tickercontents[i++]='Dragon boat racing is increasingly popular as a component in corporate team building retreats and charitable fundraising events, particularly for promoting breast cancer awareness.'
tickercontents[i++]='Outside China, people in various parts of Asia also have long traditions of paddling boats that are similar to the Chinese dragon boats. In Korea, dragon boating <b>has been an integral part of the Korean culture</b> for more than 1000 years.'
tickercontents[i++]='In Thailand, <b>swan boat racing</b> is as important to the Thais as dragon boat racing to the Chinese.'
tickercontents[i++]='In Vietnam, <b>Ba Trao</b> rowing originated from an ancient ritual of worshipping the whale god (Ong), the river god and earth god, combined with prayers for peace, happiness and full harvest.'
tickercontents[i++]='In Okinawa, Japan, the <b>Naha Hari</b> has been a tradition for fishermen to pray for fair weather and good fishing since the14th century.'
tickercontents[i++]='In Kerala of southern India, annual snake boat races are held during the Onam Festival to reenact various Indian legends that involve using a fleet of snake boats to carry elaborate offering to the Sree Krishna Temple. A giant snake boat can carry as many as 100 paddlers.'

var tickerwidth="250px"
var tickerheight="120px"
var fontcss="font-size: 9pt; color:black"
var tickdelay=5000 //delay btw messages
var highlightspeed=5 //2 pixels at a time.
var highlightcolor="#ffffff"
var backdroptextcolor="#ffffff"

////Do not edit pass this line////////////////

var currentmessage=0
var clipbottom=1

function changetickercontent(){
	msgheight=clipbottom=crosstick.offsetHeight
	crosstick.style.clip="rect("+msgheight+"px auto auto 0px)"
	crosstickbg.innerHTML=tickercontents[currentmessage]
	crosstick.innerHTML=tickercontents[currentmessage]
	highlightmsg()
}

function highlightmsg(){
	//var msgheight=crosstick.offsetHeight
	if (clipbottom>0){
		clipbottom-=highlightspeed
		crosstick.style.clip="rect("+clipbottom+"px auto auto 0px)"
		beginclip=setTimeout("highlightmsg()",20)
	}
	else{
		clipbottom=msgheight
		clearTimeout(beginclip)
		if (currentmessage==tickercontents.length-1) 
			currentmessage=0
		else 
			currentmessage++
		setTimeout("changetickercontent()",tickdelay)
	}
}

function start_ticking(){
	crosstickbg=document.getElementById? document.getElementById("highlighterbg") : document.all.highlighterbg
	crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
	crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
	if (parseInt(crosstick.offsetHeight)>0)
		crosstickParent.style.height=crosstick.offsetHeight+'px'
	else
		setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
	changetickercontent()
}

if (document.all || document.getElementById)
	window.onload=start_ticking

