
var pausecontent2=new Array()

pausecontent2[0]='Know of an upcoming event?<br><br> Click below to see it listed here '
pausecontent2[1]='Know of an upcoming event? <br>Click below to see it listed here'
/* pausecontent2[3]='Sharnbrook Village Fete<br>Playing Field, Sharnbrook <br>Bank Hol Monday 28 May - 2pm - 5pm'
pausecontent2[2]='Mill Theatre<br>Last of the Summer Wine - treading the boards<br>Fri 25th May <br>see theatre section or Box Office 356051'
pausecontent2[6]='London Bridges Walk <br> raise money for Kidney Reasearch UK & see the sights of London<br>Sun 24th June - details 08456-121226<br>or www.kidneyresearchuk.org'
pausecontent2[5]='Help enhance Harrold-Odell Country Park<br> a couple of hours to help with some practical conservation work<br>Mon 21st May at 10:00am<br> details 01234-720016'
pausecontent2[4]='Plant Stall<br>Sharnbrook Horicultural Society<br>Village Green<br> 9:00 - 12:00 19th May'
pausecontent2[7]='Castle Close Work Party<br>meet at Castle Close Lodge Road<br> 10:00 - 12:00 17th May'
pausecontent2[8]='Bus Survey<br>Beds CC survey last date for entries<br> 7th June'
pausecontent2[9]='Annual Show - Hort. Society<br>John Gibbard Lower School<br> 8th September'
pausecontent2[10]='Garden Safari<br>Horticultural Society<br> 4:30pm 24th June<br>Call 782503 to book'
*/

/*Example message arrays for the two demo scrollers*/

var pausecontent=new Array()
pausecontent[0]='Why did the chicken cross the road?...';
pausecontent[1]='To get to the other side, silly!';
pausecontent[2]='Why do giraffes have long necks?...';
pausecontent[3]='Because they have smelly feet!';
pausecontent[4]="A teacher took her class to the woods. What's the outside of a tree called, Mary?<br>I don't know miss.<br>Bark, you silly girl.<br>Woof, Woof!";
pausecontent[5]='Which bird of prey barks?';
pausecontent[6]='The golden beagle';
pausecontent[7]='Why do we plant bulbs?...';
pausecontent[8]='So the worms can see where to go.';
pausecontent[9]='Why did the monkey fall out of the tree?...';
pausecontent[10]='...because it was dead!';
pausecontent[11]='Why did the cat fall out of the tree?...';
pausecontent[12]='...because it was stapled to the monkey! ';
pausecontent[13]='What goes POH, POH';
pausecontent[14]='...a frog jumping backwards!';

pausecontent[15]='What is the biggest moth in the world?';
pausecontent[16]='...a mam-moth!';
pausecontent[17]='What did the beaver say to the tree?';
pausecontent[18]='...it\'s been nice gnawing you!';
pausecontent[19]='What happens if you walk under a friendly cow?';
pausecontent[20]='...You get a pat on the head !';
pausecontent[21]='What goes black, white, black, white, black, white, black, white?';
pausecontent[22]='...A penguin rolling downhill !';
pausecontent[23]='What offence did the magpie commit when he stole 50 rubber bands ?';
pausecontent[24]='...Armed rubbery !';
pausecontent[25]='What do you get when you pour hot water down a rabbit hole?';
pausecontent[26]='...A hot cross bunny!';
pausecontent[27]='What do you give a sick elephant?';
pausecontent[28]='...Lots of room!';
pausecontent[30] = "What do you call a deer with no eyes"; 
pausecontent[31] = "No idea"; 
pausecontent[32] = "What did the firefly say when he lost his light"; 
pausecontent[33] = "I\'m delighted";
pausecontent[34] = "What goes 99 bonk, 99 bonk"; 
pausecontent[35] = "A centipede with a wooden leg";
pausecontent[36] = "What do you call a man with a pile of leaves on his head"; 
pausecontent[37] = "Russell";
pausecontent[38] = "What\'s the definition of a slug"; 
pausecontent[39] = "A snail with a housing problem";
pausecontent[40] = "What is the wettest animal"; 
pausecontent[41] = "A reindeer";
pausecontent[42] = "Where did the dieting whale go"; 
pausecontent[43] = "To the whaleway station"; 
pausecontent[44] = "What\'s green and hairy and goes up and down"; 
pausecontent[44] = "A gooseberry in a lift";
pausecontent[45] = "What do you call a cat that\'s eaten a duck"; 
pausecontent[46] = "A duck-filled fatty puss";
pausecontent[47] = "Where do you take a sick wasp"; 
pausecontent[48] = "To the waspital!";
pausecontent[49] = "Where do frogs hang their coats"; 
pausecontent[50] = "In the croakroom!";
pausecontent[51] = "Why did the hedgehog say ouch"; 
pausecontent[52] = "Because he was wearing his coat inside out!";
pausecontent[53] = "Why is the sand wet"; 
pausecontent[54] = "Because the sea weed!";
pausecontent[55] = "Why did the owl \'owl"; 
pausecontent[56] = "Because the woodpecker would peck \'er!";
pausecontent[57] = "What do you call a sheep with no legs"; 
pausecontent[58] = "A cloud!";
pausecontent[59] = "Why can\'t you talk when there\'s a goat around"; 
pausecontent[60] = "Because it always butts in!";
pausecontent[61] = "What is the fastest fish"; 
pausecontent[62] = "A motor pike";
pausecontent[63] = "Why did the chewing gum cross the road"; 
pausecontent[64] = "Because it was stuck to the chickens foot!";
pausecontent[65] = "What do you call a baby whale"; 
pausecontent[66] = "A little squirt";
pausecontent[67] = "What\'s a frog\'s favourite drink"; 
pausecontent[68] = "Croak a cola";
pausecontent[69] = "What\'s a horse\'s favourite game"; 
pausecontent[70] = "Stable tennis";
pausecontent[71] = "What do you call a camel with three humps"; 
pausecontent[72] = "Humphrey";
pausecontent[73] = "Why did the pig cross the road"; 
pausecontent[74] = "To take a snort cut!";
pausecontent[75] = "Why did the short-eared owl play golf"; 
pausecontent[76] = "Because he wanted to get a vole in one";
pausecontent[77] = "What did the river say when the elephant sat in the middle of it"; 
pausecontent[78] = "Well I\'ll be damned!";
pausecontent[79] = "Why is King Arthur in a storm like a bird"; 
pausecontent[80] = "Because he\'s a knight in gale";
pausecontent[81] = "Why couldn\'t the two elephants go swimming"; 
pausecontent[82] = "Because they only had one pair of trunks";
pausecontent[83] = "If a buttercup is yellow, what colour is a hiccup"; 
pausecontent[84] = "Burp-le";
pausecontent[85] = "What did one tonsil say to the other tonsil"; 
pausecontent[86] = "It must be spring. Here come\'s the first swallow";
pausecontent[87] = "In Noah\'s ark, which animals didn\'t come in pairs"; 
pausecontent[88] = "Worms - they came in plums";
pausecontent[89] = "What runs round a field but doesn\'t move"; 
pausecontent[90] = "A hedge";
pausecontent[91] = "Why can\'t you play cards in the jungle"; 
pausecontent[92] = "Because there are too many cheetahs!";
pausecontent[93] = "What do you get when you cross a caterpillar and a parrot"; 
pausecontent[94] = "A walkie talkie!";
pausecontent[95] = "Where do bees get their transport"; 
pausecontent[96] = "At the buzz stop!";
pausecontent[97] = "What succeeds"; 
pausecontent[98] = "A toothless budgie";


/***********************************************
* 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
}


var bookmarkurl = "http://www.sharnbrookonline.co.uk/"
var bookmarktitle = "Sharnbrook Village on the Web"
function addFavourite() {
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
		}
