/*
Highligher Scroller script- By JavaScript Kit
For this and over 400+ free scripts, visit http://www.javascriptkit.com/
This notice must stay intact
*/

var tickercontents=new Array()

<!-----------------Marquee Text Change------------------->		
tickercontents[0]='RST new single shock is coming soon!! Thanks to the premium Nano-technology.the new RST Single Shock'

tickercontents[1]='equipped with the finest suspension solution which provide rider a comfortable riding experience while cycling.'

tickercontents[2]='RST team rider Vaclav Jezek get perfect 2nd place at Czech national XC marathon contest on August 16.'

//tickercontents[3]='<a href="#" class="top_l">scrolling text marquee2 link text marquee2 link</a>'


<!-----------------Marquee Text Change------------------->

<!---tickercontents[2]='<a href="/store/MAIN/others/index-news.asp?newsid=324" class="wordmenu">scrolling text marquee3</a>'--->
				                                
				<!--			<a href="/store/MAIN/others/index-news.asp?newsid=" class="wordp">...more</a>-->

        <!--</ul>-->

//tickercontents[0]='Looking for free Java applets and resources? Visit <a href="http://freewarejava.com">Freewarejava.com</a>!'
//tickercontents[1]='Hop on over to <a href="http://www.codingforums.com">Coding Forums</a> to get help on web coding!'
//tickercontents[2]='This scroller\'s brought to you by <a href="http://www.javascriptkit.com">JavaScript Kit</a>'

var tickdelay=6000 //delay btw messages
var highlightspeed=3 //10 pixels at a time.

////Do not edit pass this line////////////////

var currentmessage=0
var clipwidth=0

function changetickercontent(){
crosstick.style.clip="rect(0px 0px auto 0px)"
crosstick.innerHTML=tickercontents[currentmessage]
highlightmsg()
}

function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (clipwidth<msgwidth){
clipwidth+=highlightspeed
crosstick.style.clip="rect(0px "+clipwidth+"px auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
clipwidth=0
clearTimeout(beginclip)
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++
setTimeout("changetickercontent()",tickdelay)
}
}

function start_ticking(){
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