// JavaScript Document
/*
Highlighter 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()
tickercontents[0]='Roundabout Hotel to re-open! See <a href="http://www.westchiltington.com/news.shtml">the News Page</a>'
tickercontents[1]='New Police alert for White Van Man - see <a href="http://www.westchiltington.com/security.shtml#vol">the Crime page</a>'
tickercontents[2]='What do you think of the planned rise in village precept? <a href="http://www.westchiltington.com/forum/viewtopic.php?f=6&t=76&p=342#p342">Have your say on the Forum</a>'
tickercontents[3]='The Village Hall needs YOU! Volunteer help is always needed - see <a href="http://www.westchiltington.com/village_hall.shtml#vol">the Village Hall page</a>'
tickercontents[4]='Inessence Beauty Salon under new management - check their special offer at <a href="iness.shtml">InEssence</a>'
/*tickercontents[2]='The Village Forum has picked up some life on broadband - care to join in?'
tickercontents[3]='Traffic speeds, Broadband speeds, Mobile phone reception???? Let\'s get talking!'*/
tickercontents[5]='Please register your need for faster broadband here <font size="5"><a href="bb.shtmll">High speed broadband?</font></a>'
tickercontents[6]='Latest news on broadband - always on <a href="http://www.westchiltington.com/forum"><font size="5">the Village forum.</font></a>'
tickercontents[7]='Lintons Estate Agents will make a charitable donation if they sell your house! - See <a href="http://www.westchiltington.com/lintonsnew3.shtml">their page</a>'
tickercontents[8]='Horsham District Council need your opinion on planned cuts to services - see <a href="news.shtml">the News page</a>'
tickercontents[9]='Read about the new Local Enterprise Partnership - see <a href="http://www.westchiltington.com/news.shtml#lep">the news page</a>'
tickercontents[10]='Help for small business in the area - <a href="adverts.shtmll">\'Classifieds\' page</a> and more information <a href="index.shtml#hbb">here</a>'
tickercontents[11]='New Police non-emergency number and reporting email address - <a href="http://www.westchiltington.com/security.shtml#pol">Crime and Security</a>'
tickercontents[12]='Give your friends a break from cleaning the house! Miss Mop Gift Voucher - see <a href="missmop.shtml">Miss Mop</a>'
tickercontents[13]='Superb membership deal at the Leisure Centre - see <a href="cslc.shtml">Chanctonbury Sports and Leisure</a> for more details'
tickercontents[14]='Countryman Inn, Shipley - latest offer - \'Privilege Club\' for discounted eating and drinking. See <a href="countryManInn.shtml#club"> the website</a> for more'
tickercontents[15]='The Old Tollgate Hotel has great offers for dining in their carvery - see <a href="ot.shtml">their page</a>'
tickercontents[16]='Fancy some Salsa? Come along to the Village Hall! See <a href="news.shtml">the News Page</a> for details'
tickercontents[17]='Coming Soon -'
tickercontents[18]='Mary How Film Night - next showing Tuesday 24th January - see <a href="news.shtml#maryhow">News Page</a> for details'
tickercontents[19]='The Village Show, 14th July - see the <a href="http://www.thevillageshow.org.uk">website for more</a>'
/*tickercontents[9]='Village Hall Roof Repairs - latest - <a href="village_hall.shtml">more here</a>'*/
/*tickercontents[11]='\'Take Steps\' and \'Spruce up\' your village - see <a href="news.shtml#pc"> News Page</a> for more information'*/
/*tickercontents[0]='VILLAGE HALL AGM - Monday 4th April - see <a href="village_hall.shtml#hall">the village hall page</a> for more information.'*/
/*tickercontents[13]='Book Now! Dramatic Society next production 19/20/21st May - check the <a href="dramatic_society.shtml">society page</a> for details'*/

var tickdelay=3000 //delay btw messages
var highlightspeed=10 //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

