


/***********************************************
* Pausing updown message scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//configure the below five variables to change the style of the scroller
var scrollerdelay='10000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth='700px'
var scrollerheight='200px'
var scrollerbgcolor='#E5E6EB'
//set below to '' if you don't wish to use a background image
var scrollerbackground=''

//configure the below variable to change the contents of the scroller
var messages=new Array()
messages[0]="<font face='Verdana' color='#01268A' size='2'>13.06.07 <b>2007-08 Season Ticket Prices</b></font><br><br>Derby County have announced a price freeze for season tickets in 2007/08 irrespective of which league the Rams are in.<br><br>The club have also announced that plans to create a 'kop' end for home fans behind the south stand goal have been deferred by the club until season 2008/09 in order to allow more time for the required consultation with fans and safety officials.<br></font>"
messages[1]="<font face='Verdana' color='#01268A' size='2'>05.02.07 <b>Free Sports Coaching Course</b></font><br><br>A free sports coaching course is to be launched at a Burton Leisure Centre.  The Sports Leader Award is aimed at those aged 14 or over who are interested in sports coaching.<br><br>Run by East Staffordshire Borough Council, the course is designed to give participants the skills needed to be a confident organiser of sport and physical activity.  Each session of the 10-week course will be on a Tuesday evening from 6pm to 8pm at Meadowside Leisure Centre, from March 13.<br><br>Call 01283 505910 for more details.<br></font>"
messages[2]="<font face='Verdana' color='#01268A' size='2'>11.01.07 <a STYLE=text-decoration:none href='http://www.fairtrade.org.uk/get_involved_fairtrade_fortnight_2007.htm' target='new'><b>Fairtrade Fortnight 2007</b></font><img src='Fortnight2007_webb1.gif' ALT='Fairtrade Fortnight 2007' align=left border=0></a><br><br><br><br><br><br>The DCCP are pleased to announce that once again the Club will support the promotion of the Fairtrade Fortnight in 2007.  Watch out for special activities at the Colchester game on Friday 2 March 2007.<br><br>The theme for this year's fortnight is Change Today:Choose Fairtrade.<br></font>"
messages[3]="<font face='Verdana' color='#01268A' size='2'>23.10.06 <a STYLE=text-decoration:none href='http://www.kickitout.org/index.php?id=157' target='new'><b>One Game One Community</b></font><img src='images/tn_woa06.gif' ALT='One Game One Community Logo' align=right border=0></a><br><br>The Derby County Football in the Community scheme created a specific match day for girls from within the BME community in Derby, helping to increase awareness and opportunities.<br><br> On Saturday, the girls received football coaching and a chance to watch the game at home to Birmingham City<br><br>Organiser Simon Carnall was interviewed live on the Club's TV channel prior to kick off further raising the profile of the event.<br></font>"
messages[4]="<font face='Verdana' color='#01268A' size='2'>20.10.06 <a STYLE=text-decoration:none href='plan_main.html'><b>DCCP Community Plan</b></font><img src='images/tn_giles1.jpg' ALT='Community Work' align=left border=0></a><br><br>The DCCP will shortly publish their 3-year community plan.<br><br>The publication of the Community Plan marks the end of a period of investigation and consolidation for DCCP, and the beginning of some ambitious long term initiatives.<br><br> These are  based on evidence from conferences and forums during the last three years, practical involvement with ethical and community issues and concerns, and from the benefits of positive working relationships with organisations such  as The Learning and Skills Council and the School of Nursing at Nottingham University.</font>"


///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0

function move(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move(tdiv)",scrollerdelay)
setTimeout("move2(second2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move(tdiv)",50)
}
else{
tdiv.style.top=parseInt(scrollerheight)+"px"
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move2(tdiv2)",scrollerdelay)
setTimeout("move(first2_obj)",scrollerdelay)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move2(second2_obj)",50)
}
else{
tdiv2.style.top=parseInt(scrollerheight)+"px"
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll

