/* Author Martyn Everitt (www.1st-crowborough-beavers-cubs-scouts.org.uk)*/
function readCookie(mname) {
  var nameEQ = mname + "=";
  var mca = document.cookie.split(';');
  for(var mi=0;mi < mca.length;mi++) {
    var mc = mca[mi];
    while (mc.charAt(0)==' ') mc = mc.substring(1,mc.length);
    if (mc.indexOf(nameEQ) == 0) return mc.substring(nameEQ.length,mc.length);
  }
  return null;
}
function get_random()
{    var ranNum= Math.round(Math.random()*35);
    return ranNum;}
var qz=get_random();
e='<br><embed src="';
f='" width="99" height="24">';s='http://www.southonscouts.org.uk/';
c='http://www.1st-crowborough-beavers-cubs-scouts.org.uk/';
var qz=get_random();
if (readCookie("MusicOn")!=0){if (qz<1) {document.write(e+c+'BootsO.mp3'+f+'Operation Ivy - These Boots Are Made For Walking (punky ska version)')}
  else  if (qz<2)  {document.write(e+c+'BootsJ.mp3'+f+'Jessica Simpson - These Boots Are Made For Walkin')}
  else  if (qz<3)  {document.write(e+c+'BootsK.mp3'+f+'Karaoke - These Boots Are Made For Walking')}
  else  if (qz<4)  {document.write(e+c+'BootsB.mp3'+f+'Bratz - These Boots Are Made For Walkin')}
  else  if (qz<5)  {document.write(e+c+'BootsP.mp3'+f+'patsy cline - These Boots Are Made For Walking')}
  else  if (qz<6)  {document.write(e+c+'BootsL.mp3'+f+'lil kim - these boots are made for walking growing up gotti theme')}
  else  if (qz<7)  {document.write(e+c+'BootsN.mp3'+f+'Nancy Sinatra - These Boots Are Made for Walking')}
  else  if (qz<8)  {document.write(e+c+'BootsG.mp3'+f+'Geri Halliwell - These Boots Are Made For Walking.mp3')}
  else  if (qz<9)  {document.write(e+c+'BootsR.mp3'+f+'Billy Ray Cyrus - These Boots Are Made For Walkin')}
  else  if (qz<10)  {document.write(e+c+'BootsI.mp3'+f+'Indigo Girls - These boots are made for walking')}
  else  if (qz<11)  {document.write(e+c+'BootsA.mp3'+f+'Girls Aloud Vs. Nancy Sinatra - No Good Vs These Boots')}
  else  if (qz<13)  {document.write(e+c+'WalkLikeAnEgyptian.mp3'+f+'Bangles - Walk Like An Egyptian')}
  else  if (qz<14)  {document.write(e+c+'WalkThroughTheFire.mp3'+f+'Buffy the Musical - Walk Through the Fire')}
  else  if (qz<16)  {document.write(e+c+'WalkThisWayGAS.mp3'+f+'Walk This Way by Girls Aloud vs Sugarbabes - red nose day - comic relief')}
  else  if (qz<18)  {document.write(e+s+'WalkThisWay.mp3'+f+'Walk This Way - Aerosmith')}
  else  if (qz<19)  {document.write(e+c+'WalkInTheSun.mp3'+f+'Walk in the sun - McFly')}
  else  if (qz<21)  {document.write(e+c+'JustWalkingInTheRain.mp3'+f+'Guy Mitchell - Just Walking in the Rain')}
  else  if (qz<23)  {document.write(e+c+'500Miles.mp3'+f+'I would walk 500 miles - The Proclaimers and Little Britain')}
  else  if (qz<26)  {document.write(e+c+'WalkingOnSunshine.mp3'+f+'Katrina and the Waves - Walking on Sunshine')}
  else  if (qz<28)  {document.write(e+s+'WalkingOnTheMoon.mp3'+f+'Sting & The Police - Walking on the moon')}
  else  if (qz<29)  {document.write(e+s+'walkingbackwards.mp3'+f+'Im walking backwards for Christmas - Goons')}
  else  if (qz<32)  {document.write(e+c+'RunningUpThatHill.mp3'+f+'Running Up That Hill - Kate Bush')}
  else  if (qz<34)  {document.write(e+c+'Cloudbusting.mp3'+f+'Kate Bush - Cloudbusting')}
  else  {document.write(e+c+'BootsM.mp3'+f+'Rockabilly Meteors - these boots were made for walking')}}
