
// ********************************************************
// To Use this Script, simply change the quotes below 
// That's all there is; no code to change.
// NOTE: use a \ before any ' or " characters that inside
//       your quotes
// ********************************************************
function buildArray() {
  var a = buildArray.arguments;
  for (i=0; i<a.length; i++) {
    this[i] = a[i];
  }
  this.length = a.length;
}
var quoteList = new buildArray(
  // **************************************
  // Place Quotes Here, Separated by Commas
  // **************************************



"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Aerosmith-FallingInLoveIsHardOnKnees.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Aerosmith-FallingInLoveIsHardOnKnees.mid\" hidden=true autostart=true loop=true>Aerosmith - Falling In Love Is Hard On The Knees",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Blondie-HeartOfGlass(Remix).mid\"></NOEMBED><EMBED SRC=\"./new-midi/Blondie-HeartOfGlass(Remix).mid\" hidden=true autostart=true loop=true>Blondie - Heart Of Glass",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/BobMarley-OneLove&PeopleGetReady(Medley).mid\"></NOEMBED><EMBED SRC=\"./new-midi/BobMarley-OneLove&PeopleGetReady(Medley).mid\" hidden=true autostart=true loop=true>Bob Marley - One Love & People Get Ready (Medley)",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/BuffaloSpringfield-ForWhatIt'sWorth3.mid\"></NOEMBED><EMBED SRC=\"./new-midi/BuffaloSpringfield-ForWhatIt'sWorth3.mid\" hidden=true autostart=true loop=true>Buffalo Springfield - For What It's Worth",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/DireStraits-TwistingByThePool.mid\"></NOEMBED><EMBED SRC=\"./new-midi/DireStraits-TwistingByThePool.mid\" hidden=true autostart=true loop=true>Dire Straits - Twisting By The Pool",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/EltonJohn-RecoverYourSoul.mid\"></NOEMBED><EMBED SRC=\"./new-midi/EltonJohn-RecoverYourSoul.mid\" hidden=true autostart=true loop=true>Elton John - Recover Your Soul",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/GlennFry-TheHeatIsOn.mid\"></NOEMBED><EMBED SRC=\"./new-midi/GlennFry-TheHeatIsOn.mid\" hidden=true autostart=true loop=true>Glenn Fry - The Heat Is On",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/JohnMellencamp-ROCK InTheUSA.mid\"></NOEMBED><EMBED SRC=\"./new-midi/JohnMellencamp-ROCK InTheUSA.mid\" hidden=true autostart=true loop=true>John Mellencamp - Rock In The USA",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Madonna-Secret.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Madonna-Secret.mid\" hidden=true autostart=true loop=true>Madonna - Secret",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Rembrandts-I'llBeThereForYou.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Rembrandts-I'llBeThereForYou.mid\" hidden=true autostart=true loop=true>Rembrandts - I'll Be There For You",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/SherylCrow-EveryDayIsAWindingRoad.mid\"></NOEMBED><EMBED SRC=\"./new-midi/SherylCrow-EveryDayIsAWindingRoad.mid\" hidden=true autostart=true loop=true>Sheryl Crow - Every Day Is A Winding Road",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Simon&Garfunkel-HomewardBound.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Simon&Garfunkel-HomewardBound.mid\" hidden=true autostart=true loop=true>Simon & Garfunkel - Homeward Bound",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Styx-BoatOnTheRiver.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Styx-BoatOnTheRiver.mid\" hidden=true autostart=true loop=true>Styx - Boat On The River",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Supremes-StopInTheNameOfLove.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Supremes-StopInTheNameOfLove.mid\" hidden=true autostart=true loop=true>Supremes - Stop In The Name Of  Love",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/TalkingHeads-OnceInALifetime.mid\"></NOEMBED><EMBED SRC=\"./new-midi/TalkingHeads-OnceInALifetime.mid\" hidden=true autostart=true loop=true>Talking Heads - Once In A Lifetime",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/TearsForFears-SowingTheSeedsOfLove.mid\"></NOEMBED><EMBED SRC=\"./new-midi/TearsForFears-SowingTheSeedsOfLove.mid\" hidden=true autostart=true loop=true>Tears For Fears - Sowing The Seeds Of  Love",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/TomPetty-MaryJane'sLastDance.mid\"></NOEMBED><EMBED SRC=\"./new-midi/TomPetty-MaryJane'sLastDance.mid\" hidden=true autostart=true loop=true>Tom Petty - Mary Jane's Last Dance",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/TravelingWilburys-EndOfTheLine.mid\"></NOEMBED><EMBED SRC=\"./new-midi/TravelingWilburys-EndOfTheLine.mid\" hidden=true autostart=true loop=true>Traveling Wilburys - End Of  The Line",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Troggs-LoveIsAllAround.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Troggs-LoveIsAllAround.mid\" hidden=true autostart=true loop=true>Troggs - Love Is All Around",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/U2-TheFly.mid\"></NOEMBED><EMBED SRC=\"./new-midi/U2-TheFly.mid\" hidden=true autostart=true loop=true>U2 - The Fly",
"<NOEMBED><BGSOUND loop=1 src=\"./new-midi/U2-Zooropa.mid\"></NOEMBED><EMBED SRC=\"./new-midi/U2-Zooropa.mid\" hidden=true autostart=true loop=true>U2 - Zooropa",
 "<NOEMBED><BGSOUND loop=1 src=\"./new-midi/Wallflowers-Heroes.mid\"></NOEMBED><EMBED SRC=\"./new-midi/Wallflowers-Heroes.mid\" hidden=true autostart=true loop=true>Wallflowers - Heroes"

  // *********************************
  // !NOTE: No Comma after last Quote!
  // *********************************
);
// ************
// Get a Cookie
// ************
function getCookie(name) {
  var search = name + "="   
  if (document.cookie.length > 0) { // if there are any cookies    
    offset = document.cookie.indexOf(search)       
    if (offset != -1) { // if cookie exists          
      offset += search.length          // set index of beginning of value         
      end = document.cookie.indexOf(";", offset)          // set index of end of cookie value 
      if (end == -1)             
        end = document.cookie.length         
      return unescape(document.cookie.substring(offset, end))      
    }    
  }
}

// ************
// Set a Cookie
// ************
function setCookie(name, value) {
  document.cookie = name + "=" + escape(value)
}
// ***************************************
// Function to get the next quote in order
// ***************************************
function quote() {
  i=getCookie("ETUQuoteCount");
  if (i==null)
    i=0 
  else
    i=parseInt(i)
  i = i % quoteList.length;
  j = i++;
  setCookie("ETUQuoteCount",i);
  return quoteList[j]
}
// *******************
// Write the Quote Out
// *******************
document.write(quote());


