﻿/*
Left-Right image slideshow Script-
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com
*/

///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerbgcolor='white'
//3000 miliseconds=3 seconds
var pausebetweenimages=3000

if ((screen.width<=800) || (screen.height<=600))
{
var scrollerwidth='190px'
var scrollerheight='103px'
}
else
{
var scrollerwidth='304px'
var scrollerheight='164px'
}

document.write('<br />With thanks to our sponsors &amp; supporters for 2009.<br />&nbsp;')

//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideimages=new Array()
slideimages[0]='<a style="margin:0; padding:0" target="_blank" href="http://www.anglobeef.com" title="Click here for the Anglo Beef Processors website (This will open in a new window)"><img alt="Click here for the Anglo Beef Processors website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/abp.gif" class="w304 h164 block m0 p0" /></a>'
slideimages[1]='<a style="margin:0; padding:0" target="_blank" href="http://www.amconline.co.uk" title="Click here for the AMC website (This will open in a new window)"><img alt="Click here for the AMC website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/amc.gif" class="w304 h164 block" /></a>'
slideimages[2]='<a style="margin:0; padding:0" target="_blank" href="http://www.archantlife.co.uk" title="Click here for the Archant Life website (This will open in a new window)"><img alt="Click here for the Archant Life website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/archant-life.gif" class="w304 h164 block m0 p0" /></a>'
slideimages[3]='<a style="margin:0; padding:0" target="_blank" href="http://www.asda.co.uk" title="Click here for the Asda website (This will open in a new window)"><img alt="Click here for the Asda website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/asda.gif" class="w304 h164 block m0 p0" /></a>'
slideimages[4]='<a style="margin:0; padding:0" target="_blank" href="http://www.belvoirbed.co.uk" title="Click here for the Belvoir Bed website (This will open in a new window)"><img alt="Click here for the Belvoir Bed website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/belvoir-bed.gif" class="w304 h164 block" /></a>'
slideimages[5]='<a style="margin:0; padding:0" target="_blank" href="http://www.bolshaws.com" title="Click here for the Bolshaws Industrial Powders website (This will open in a new window)"><img alt="Click here for the Bolshaws Industrial Powders website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/bolshaw.gif" class="w304 h164 block" /></a>'
slideimages[6]='<a style="margin:0; padding:0" target="_blank" href="http://www.britishpigs.org.uk" title="Click here for the BPA website (This will open in a new window)"><img alt="Click here for the BPA website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/bpa.gif" class="w304 h164 block" /></a>'
slideimages[7]='<a style="margin:0; padding:0" target="_blank" href="http://www.britishhorseracing.com" title="Click here for the British Horseracing Authority (BHA) website (This will open in a new window)"><img alt="Click here for the British Horseracing Authority (BHA) website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/careers-in-racing.gif" class="w304 h164 block" /></a>'
slideimages[8]='<a style="margin:0; padding:0" target="_blank" href="http://www.casio.co.uk" title="Click here for the Casio UK website (This will open in a new window)"><img alt="Click here for the Casio UK website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/casio.gif" class="w304 h164 block" /></a>'
slideimages[9]='<a style="margin:0; padding:0" target="_blank" href="http://www.cuddy-group.com" title="Click here for the Cuddy Group website (This will open in a new window)"><img alt="Click here for the Cuddy Group website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/cuddy.gif" class="w304 h164 block" /></a>'
slideimages[10]='<a style="margin:0; padding:0" target="_blank" href="http://www.dairyco.org.uk" title="Click here for the DairyCo website (This will open in a new window)"><img alt="Click here for the DairyCo website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/mdc.gif" class="w304 h164 block" /></a>'
slideimages[11]='<a style="margin:0; padding:0" target="_blank" href="http://www.dupont.com" title="Click here for the DuPont website (This will open in a new window)"><img alt="Click here for the DuPont website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/dupont.gif" class="w304 h164 block" /></a>'
slideimages[12]='<a style="margin:0; padding:0" target="_blank" href="http://www.eblex.org.uk" title="Click here for the EBLEX - English Beef &amp; Lamb Executive website (This will open in a new window)"><img alt="Click here for the EBLEX - English Beef &amp; Lamb Executive website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/eblex.gif" class="w304 h164 block" /></a>'
slideimages[13]='<a style="margin:0; padding:0" target="_blank" href="http://www.naturaworld.co.uk" title="Click here for the EBLEX - English Beef &amp; Lamb Executive website (This will open in a new window)"><img alt="Click here for the EBLEX - English Beef &amp; Lamb Executive website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/eblex.gif" class="w304 h164 block" /></a>'
slideimages[14]='<a style="margin:0; padding:0" target="_blank" href="http://www.equineloyalty.co.uk" title="Click here for the Equine Loyalty website (This will open in a new window)"><img alt="Click here for the Equine Loyalty website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/equineloyalty.gif" class="w304 h164 block" /></a>'
slideimages[15]='<img alt="Farmers Fresh Ltd" src="/sponsorship/sponsors/logos09slide/farmers-fresh.gif" class="w304 h164 block m0 p0" />'
slideimages[16]='<a style="margin:0; padding:0" target="_blank" href="http://www.fatdogandfriends.co.uk" title="Click here for the Fat Dog and Friends website (This will open in a new window)"><img alt="Click here for the Fat Dog and Friends website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/fatdog.gif" class="w304 h164 block" /></a>'
slideimages[17]='<div class="w304 h164 block m0 p0" style="text-align:center; font-size:300%"><br />Frances<br />Slade</div>'
slideimages[18]='<a style="margin:0; padding:0" target="_blank" href="http://www.farmersguardian.com" title="Click here for the Farmers Guardian website (This will open in a new window)"><img alt="Click here for the Farmers Guardian website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/farmers-guardian.gif" class="w304 h164 block" /></a>'
slideimages[19]='<a style="margin:0; padding:0" target="_blank" href="http://www.hgca.com" title="Click here for the HGCA website (This will open in a new window)"><img alt="Click here for the HGCA website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/hgca.gif" class="w304 h164 block" /></a>'
slideimages[20]='<a style="margin:0; padding:0" target="_blank" href="http://www.horsedeals.co.uk" title="Click here for the Horse Deals website (This will open in a new window)"><img alt="Click here for the Horse Deals website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/horse-deals.gif" class="w304 h164 block" /></a>'
slideimages[21]='<a style="margin:0; padding:0" target="_blank" href="http://www.horsemagazine.co.uk" title="Click here for the Horse Magazine website (This will open in a new window)"><img alt="Click here for the Horse Magazine website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/horse.gif" class="w304 h164 block" /></a>'
slideimages[22]='<a style="margin:0; padding:0" target="_blank" href="http://www.horsemart.co.uk" title="Click here for the Horsemart website (This will open in a new window)"><img alt="Click here for the Horsemart website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/horsemart.gif" class="w304 h164 block" /></a>'
slideimages[23]='<a style="margin:0; padding:0" target="_blank" href="http://www.intelligentworming.co.uk" title="Click here for the Intelligent Worming website (This will open in a new window)"><img alt="Click here for the Intelligent Worming website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/intelligent-worming.gif" class="w304 h164 block" /></a>'
slideimages[24]='<a style="margin:0; padding:0" target="_blank" href="http://www.kubota.co.uk" title="Click here for the Kubota website (This will open in a new window)"><img alt="Click here for the Kubota website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/kubota.gif" class="w304 h164 block" /></a>'
slideimages[25]='<a style="margin:0; padding:0" target="_blank" href="http://www.mertrux.com" title="Click here for the Mertrux website (This will open in a new window)"><img alt="Click here for the Mertrux website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/mertrux.gif" class="w304 h164 block" /></a>'
slideimages[26]='<a style="margin:0; padding:0" target="_blank" href="http://www.netweather.tv" title="Click here for the Netweather website (This will open in a new window)"><img alt="Click here for the Netweather website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/netweather.gif" class="w304 h164 block" /></a>'
slideimages[27]='<a style="margin:0; padding:0" target="_blank" href="http://www.northeastbiofuels.com" title="Click here for the Northeast Biofuels website (This will open in a new window)"><img alt="Click here for the Northeast Biofuels website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/northeast-biofuels.gif" class="w304 h164 block" /></a>'
slideimages[28]='<a style="margin:0; padding:0" target="_blank" href="http://www.nptc.org.uk" title="Click here for the NPTC website (This will open in a new window)"><img alt="Click here for the NPTC website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/nptc.gif" class="w304 h164 block" /></a>'
slideimages[29]='<a style="margin:0; padding:0" target="_blank" href="http://www.osborne-ref.co.uk" title="Click here for the Osborne Refrigeration website (This will open in a new window)"><img alt="Click here for the Osborne Refrigeration website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/osborne-refrigerators.gif" class="w304 h164 block" /></a>'
slideimages[30]='<a style="margin:0; padding:0" target="_blank" href="http://www.plattsanimalbedding.co.uk" title="Click here for the Platt Animal Bedding Society website (This will open in a new window)"><img alt="Click here for the Platts Animal Bedding website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/platts.gif" class="w304 h164 block" /></a>'
slideimages[31]='<a style="margin:0; padding:0" target="_blank" href="http://www.redpoll.org" title="Click here for the Red Poll Cattle Society website (This will open in a new window)"><img alt="Click here for the Red Poll Cattle Society website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/red-poll.gif" class="w304 h164 block" /></a>'
slideimages[32]='<a style="margin:0; padding:0" target="_blank" href="http://www.robinsons-uk.com" title="Click here for the Robinsons website (This will open in a new window)"><img alt="Click here for the Robinsons website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/robinsons.gif" class="w304 h164 block" /></a>'
slideimages[33]='<a style="margin:0; padding:0" target="_blank" href="http://www.ror.org.uk" title="Click here for the Retraining of Racehorses (RoR) website (This will open in a new window)"><img alt="Click here for the Retraining of Racehorses (RoR) website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/retraining.gif" class="w304 h164 block" /></a>'
slideimages[34]='<a style="margin:0; padding:0" target="_blank" href="http://www.sainsburys.co.uk" title="Click here for the Sainsbury\'s website (This will open in a new window)"><img alt="Click here for the Sainsbury\'s website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/sainsbury.gif" class="w304 h164 block" /></a>'
slideimages[35]='<a style="margin:0; padding:0" target="_blank" href="http://www.schoolmilk.co.uk" title="Click here for the School Milk Project website (This will open in a new window)"><img alt="Click here for the School Milk Project website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/school-milk.gif" class="w304 h164 block" /></a>'
slideimages[36]='<img alt="Shaw and Co. Equine Law Specialists" src="/sponsorship/sponsors/logos09slide/shaw.gif" class="w304 h164 block m0 p0" />'
slideimages[37]='<a style="margin:0; padding:0" target="_blank" href="http://www.smithsofbloxham.co.uk" title="Click here for the Smiths of Bloxham website (This will open in a new window)"><img alt="Click here for the Smiths of Bloxham website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/smiths.gif" class="w304 h164 block" /></a>'
slideimages[38]='<a style="margin:0; padding:0" target="_blank" href="http://www.ThroughTheNight.com" title="Click here for the Through the Night (UK) Ltd website (This will open in a new window)"><img alt="Click here for the Through the Night (UK) Ltd website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/through.gif" class="w304 h164 block" /></a>'
slideimages[39]='<a style="margin:0; padding:0" target="_blank" href="http://www.topspec.com" title="Click here for the Topspec website (This will open in a new window)"><img alt="Click here for the Topspec website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/topspec.gif" class="w304 h164 block" /></a>'
slideimages[40]='<a style="margin:0; padding:0" target="_blank" href="http://www.waitrose.com" title="Click here for the Waitrose website (This will open in a new window)"><img alt="Click here for the Waitrose website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/waitrose.gif" class="w304 h164 block" /></a>'
slideimages[41]='<a style="margin:0; padding:0" target="_blank" href="http://www.yorkshiredalesicecream.co.uk" title="Click here for the Yorkshire Dales Ice Cream website (This will open in a new window)"><img alt="Click here for the Yorkshire Dales Ice Cream website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/yorkshire.gif" class="w304 h164 block" /></a>'
slideimages[42]='<a style="margin:0; padding:0" target="_blank" href="http://www.yourdog.co.uk" title="Click here for the Your Dog website (This will open in a new window)"><img alt="Click here for the Your Dog website (This will open in a new window)" src="/sponsorship/sponsors/logos09slide/yourdog.gif" class="w304 h164 block" /></a>'
//extend this list

///////Do not edit pass this line///////////////////////
     
var ie=document.all
var dom=document.getElementById

if (slideimages.length>1)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.left>0&&tlayer.left<=5){
tlayer.left=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.left>=tlayer.document.width*-1){
tlayer.left-=5
setTimeout("move1(tlayer)",50)
}
else{
tlayer.left=parseInt(scrollerwidth)+5
tlayer.document.write(slideimages[i])
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.left>0&&tlayer2.left<=5){
tlayer2.left=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.left>=tlayer2.document.width*-1){
tlayer2.left-=5
setTimeout("move2(tlayer2)",50)
}
else{
tlayer2.left=parseInt(scrollerwidth)+5
tlayer2.document.write(slideimages[i])
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5){
tdiv.style.left=0+"px"
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(scrollerdiv2)",pausebetweenimages)
return
}
if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1){
tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
setTimeout("move3(tdiv)",50)
}
else{
tdiv.style.left=scrollerwidth
tdiv.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5){
tdiv2.style.left=0+"px"
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(scrollerdiv1)",pausebetweenimages)
return
}
if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1){
tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px"
setTimeout("move4(scrollerdiv2)",50)
}
else{
tdiv2.style.left=scrollerwidth
tdiv2.innerHTML=slideimages[i]
if (i==slideimages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
scrollerdiv1=ie? first2 : document.getElementById("first2")
scrollerdiv2=ie? second2 : document.getElementById("second2")
move3(scrollerdiv1)
scrollerdiv2.style.left=scrollerwidth
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.left=parseInt(scrollerwidth)+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+'">')
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:1px;top:0px;">')
document.write(slideimages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px">')
document.write(slideimages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
