
var pausecontent=new Array()
pausecontent[0]='<h4 class="sc" align="center"><a href="pdfs/Tour canceled.pdf" target="_blank"title="Select to read full story">Tour of Mull 2010 Canceled</a></h4><p>At a meeting on 4th March, Committee members of the 2300 Club decided unanimously that the Tour of Mull will not take place in October 2010. The decision will not be re-considered.</p><p>Enthusiasm in the Club has been hugely reduced by the serious and potentially lifethreatening problems that were encountered before, during and after the 2009 event.</p><a href="pdfs/Tour canceled.pdf" target="_blank"><sub>"Read more"</sub></a></p>'
pausecontent[1]='<h4 class="sc" align="center"><a href="pdfs/MSA-Champ-Mar.pdf"target="_blank"title="Select to read full story">MSA Gravel Rally Championship</a></h4><h4 style="margin-top: 24px"><u>Round 1: Rallye Sunseeker - 26th-27th February</u></h4><p>Marcus Dodd and Andrew Bargery got their MSA Gravel Rally Championship title defence underway with a sensational seventh victory on Saturday’s Rallye Sunseeker in Bournemouth.</p><p><a href="pdfs/MSA-Champ-Mar.pdf"><sub>"Read more"</sub></a></p>'
pausecontent[2]='<h4 class="sc" align="center"><a href="pdfs/Brookes Bulldog.pdf" target="_blank"title="Select to read full story">BROOKES HELPS RECRUIT MARSHALS FOR BULLDOG</a></h4><p>UK rally legend Russell Brookes is helping the Bulldog Rally organisers to recruit marshals by offering a prize for their Marshals\' Draw. One lucky marshal will win a ride in a rally car with the twice British Champion, at the Kick Energy sponsored Rally Show at Chatsworth on 5th and 6th June.</p><a href="pdfs/Brookes Bulldog.pdf" target="_blank"><sub>"Read more"</sub></a></p>'
pausecontent[3]='<h4 class="sc" align="center"><a href="pdfs/Rally Round-up MAR 10.pdf" target="_blank"title="Select to read full story">Robert’s Rally Round-up March.10</a></h4><p></p><h4><u>AS RALLY IRELAND BITES THE DUST;<br> WILL THE CIRCUIT BE OUR GLOBAL FUTURE?</u></h4><p>The news that Rally Ireland will NOT now be part of the 2011 WRC has raised speculation that the CIRCUIT OF IRELAND may step up to the plate and at least become part of a Global Rally Championship in the not too distant future.</p><p><a href="pdfs/Rally Round-up MAR 10.pdf" target="_blank"><sub>"Read more"</sub></a></p>'
pausecontent[4]='<h4 class="sc" align="center"><a href="news.htm"title="Select to read full story">British Rally Championship announces Dulux Trade as title sponsor </a></h4><p>The British Rally Championship is proud to announce the industry-leading manufacturer of paints and high performance coatings, Dulux Trade, as its title sponsor for the 2010 season.</p><p>The British Isles’ only international rally series will be called the Dulux Trade MSA British Rally Championship from today (26/02/2010), and its association with such an esteemed brand reinforces the championship’s status as one of the most respected in the world.</p><p><a href="news.htm"><sub>"Read more"</sub></a></p>'
pausecontent[5]='<h4 class="sc" align="center"><a href="pdfs/Tivertonmarshal flyer.pdf"target="_blank" title="Select to read full story">Marshals Training Day, Devon</a></h4><p align="center">APRIL 18th. 2010<br> LOCATION: Tiverton Hotel.<br> Centrally situated for the ASWMC region. </p><p></p><p><a href="pdfs/Tivertonmarshal flyer.pdf" target="_blank"><sub>"Read more"</sub></a></p>'
pausecontent[6]='<h4 class="sc" align="center"><a href="pdfs/Training_days.pdf" target="_blank"title="Select to read full story">Marshals Training Sessions – 2010</a></h4><p>The British Motor Sports Training Trust, as the MSA’s own registered charity, grant aids a range of marshals training days run by Regional Associations and Clubs each year and for 2010 almost 100 such sessions are being supported.</p><p>The British Rally Marshals Club is actively involved in running three of these. They will take place in Stockport (30/01/10), York (31/01/10) and Derby (07/03/10). Further details can be found on our training page www.brmc.org.uk/training_10.htm</p><a href="pdfs/Training_days.pdf" target="_blank"><sub>"Read more"</sub></a></p>'
pausecontent[7]='<p align="center"><img src="images/jimmy mcray.JPG"width="230" height="160"style="border: 2px ridge #FFFF99"></p><p align="center">A successful if rather wet time at The Chatsworth Rally Show included a visit to the stand, provided by Richard Egger, of Club President Jimmy McRae.</p><p></p>'
pausecontent[8]='<p align="center"><a href="pdfs/50 YEARS A5 orderER.pdf"class="two"target="_blank"title="Select for discription and order form"><img src="images/left.h2.jpg"width="120" height="170"style="border: 2px ridge #FFFF99"></a></p><p>This book is an attempt to record the history of motorsport marshalling in the UK and the British Motorsport Marshals’ Club (BMMC)</p>'

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
