
function arrayOfShows()
{
  var array1 = new Array();
  array1[0] = "Date 12/12/2009 Location Papa's Social Club, Milwaukee"
  array1[1] = "Date 01/09/2010 Location Sandee's, Sheboygan"
  array1[2] = "Date 02/05/2010 Location Mo's, Milwaukee"
  array1[3] = "Date 02/06/2010 Location Papa's Social Club, Milwaukee"
  array1[4] = "Date 02/26/2010 Location Trinity, Milwaukee"
  array1[5] = "Date 03/26/2010 Location Mo's, Tosa"
  array1[6] = "Date 04/10/2010 Location Sandee's, Sheboygan"
  array1[7] = "Date 04/16/2010 Location Ho Chunk, Wisconsin Dells"
  array1[8] = "Date 04/17/2010 Location Ho Chunk, Wisconsin Dells"
  array1[9] = "Date 04/23/2010 Location Mo's, Tosa"
  array1[10] = "Date 05/07/2010 Location Papa's Social Club, Milwaukee"
  array1[11] = "Date 06/25/2010 Location Oregon WI Summer Fest, Oregon"
  array1[12] = "Date 07/03/2010 Location Sheboygan Festival, Sheboygan"
  array1[13] = "Date 09/05/2010 Location Oak Creek Lions, Oak Creek"
  array1[14] = "Date 09/18/2010 Location Milwaukee County Zoo, Milwaukee"
  array1[15] = "Date 12/13/2100 Location None"
 
  return array1;
}

function upcomingShows()
{
  var today = new Date();
  var month = today.getMonth() + 1;
  var day = today.getDate();
  var count = 0;
  var holdString = "";
  var nextShowData = "";
  var nextShowDate = "";
  var nextShowPlace = "";
  var i = 0;
  var scheduledGig = "n";
  
  showArray = new arrayOfShows(); 

  while (i <= (showArray.length - 1))
  {        
    holdString = showArray[i];
    holdDate = new Date(holdString.substring(5,15));

    if ((Math.round(today/(1000*60*60*24))) - (Math.round(holdDate/(1000*60*60*24))) <= 1)
    {        
      if (today - (Math.round((today - holdDate))/(1000*60*60*24) < 1))
      {
        
        nextShowData = holdString;
        nextShowPlace = nextShowData.substring(nextShowData.indexOf("Location") + 9, nextShowData.length);
        
        if (nextShowPlace == "None")
        {
          i = i + showArray.length + 1;
          
          if (scheduledGig =="n")
          {
             document.writeln("<span>No Upcoming Gigs Scheduled at this time.");
          }
        }
        else
        {
          nextShowDate = nextShowData.substring(nextShowData.indexOf("Date") + 5, nextShowData.indexOf("Location") - 1);
          scheduledGig = "y";
          document.writeln("<span>Date: " + nextShowDate + "<br/></span>");
          document.writeln("<span>@ " + nextShowPlace + "<br/></span><br/>");
          i = i + 1;
        }
      }
    }
    else 
    {
      i = i + 1;
    }
  }
}

function arrayOfWeddingSongs()
{
  var array7 = new Array();
  array7[0] = "B.B. King - The Thrill is Gone"
  array7[1] = "Britney Spears - Oops I Did It Again"
  array7[2] = "Puddle of Mudd – She Hates Me"
  array7[3] = "Guns & Roses - I Used to Love Her"
  array7[4] = "Sammy Kershaw - Third Rate Romance"
  array7[5] = "Queen – Another One Bites the Dust"
  array7[6] = "The Ink Spots - I’ll Never Smile Again"
  array7[7] = "Gene Pitney - Last Chance to Turn Around"
  array7[8] = "Nancy Sinatra - Bang, Bang My baby shot me down"
  array7[9] = "Sting - If You Love Somebody, Set Them Free"
  array7[10] = "Nirvana - Where Did You Sleep Last Night"
  array7[11] = "Epicure - Life Sentence"
  array7[12] = "U2 - Still Haven’t Found What I’m Looking For"
  array7[13] = "AC DC – Highway to Hell"
  array7[14] = "J geils band – Love Stinks"
  array7[15] = "Greenday - Boulevard of Broken Dreams"
  array7[16] = "Dolly Parton – D.I.V.O.R.C.E"
  array7[17] = "Led Zeppelin - Babe I’m Gonna Leave You"
  return array7;
}

function selectWeddingSong()
{
  var numArr = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17");

  var weddingSong = "";
  var i = 0;

  weddingSongArray = new arrayOfWeddingSongs(); 

    while (i <= (numArr.length - 1))
    {
      i = i + 1;
      weddingSong = weddingSongArray[i];
      document.writeln(weddingSong);
    }
}

function arrayOfGreetings()
{
  var array1 = new Array();
  array1[0] = "Brought to you in Living Color."
  array1[1] = "I thought your mama told you to stop messing around."
  array1[2] = "Welcome. Leave your shoes at the door please."
  array1[3] = "Howdy Doody to you. LOL, doody."
  array1[4] = "We're like 'Hee Haw' without the Hee or the Haw."
  array1[5] = "Well howdy partner."
  array1[6] = "Good day to ya mates."
  array1[7] = "Party 'til you cuke!"
  array1[8] = "The Screamin' Cucumbers are not based on any novel or movie."
  array1[9] = "Brought to you in front of a live audience... Usually."
  array1[10] = "Get you know your Screamin' Cucumbers!"
  array1[11] = "Rockin' harder than gypsum."
  array1[12] = "Playing 2nd base and batting 3rd tonight..."
  array1[13] = "Grace, style and rock hard abs."
  array1[14] = "Follow the yellow brick road."
  array1[15] = "How you doing?"
  array1[16] = "Say cheese, you're on Candid Camera."
  
  return array1;
}

function selectGreeting()
{
  var numArr = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16");

  var greetingMessage = "";

  greetingArray = new arrayOfGreetings(); 

  var z = Math.round((numArr.length-1)*Math.random());

  greetingMessage = greetingArray[z];
  
  document.writeln(greetingMessage);
}

function arrayOfDidYouKnows()
{
  var array2 = new Array();
  array2[0] = "It is illegal to hunt camels in the state of Arizona?"
  array2[1] = "Les Paul invented the electric solid body guitar, multi track recording, and was born in Waukesha Wisconsin?"
  array2[2] = "There are only 12 letters in the Hawaiian alphabet?"
  array2[3] = "You can not find the Islands of Langerhans on any map?"
  array2[4] = "We're like Hee Haw without the Hee or the Haw?"
  array2[5] = "The Who never had a number 1 hit in America or England?"
  array2[6] = "The Happy Birthday song is not public domain... so if you are singing it at b-day party you're gonna have to cough up some $$$ to Time Warner Co."
  array2[7] = "Horace Lee Logan started the phrase - Elivis has left the building?"
  array2[8] = "The Screamin' Cucumbers are not based on any novel or movie?"
  array2[9] = "A hippo can open its mouth wide enough to fit a 4 foot tall child inside?"
  array2[10] = "Every time you lick a stamp, you are consuming 1/10 of a calorie?"
  array2[11] = "Q is the only letter in the alphabet that does not appear in the name of any of the United States?"
  array2[12] = "My mamma told me, I better not mess around?"
  array2[13] = "In an average day, a four year old child will ask 437 questions?"
  array2[14] = "60 % of statistics are made up?"
  array2[15] = "Banging your head off a wall uses 150 calories an hour?"
  array2[16] = "You' re on Candid Camera?"
  
  return array2;
}

function didYouKnow()
{
  var numArr2 = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16");

  var funFact = "";

  factArray = new arrayOfDidYouKnows(); 

  var y = Math.round((numArr2.length-1)*Math.random());

  funFact = factArray[y];
  
  document.writeln(funFact);
}

function getCukeFact()
{
  var numArr = new Array("0","1","2","3","4","5","6","7","8","9","10","11","12","13","14");

  var currNum = Math.round((numArr.length-1)*Math.random());

  if (currNum == 0)
  {
    document.write('Star Wars character Luke Skywalker was originally named Cuke Skywalker.');
  } 
  
  if (currNum == 1)
  {
    document.write("Brandon originally wanted to stand up and play like Sheila E. But his legs are not as nice so it didn't work out.");  
  }
  
  if (currNum == 2)
  {
    document.write('1 in 5,000 north Atlantic lobsters are born bright blue. Not one Cuke has ever seen one.'); 
  }
  
  if (currNum == 3)
  {
    document.write('Giraffes have no vocal chords. So we use human vocalist.');  
  }
  
  if (currNum == 4)
  {
    document.write("We don't play the Greek national anthem because it has 158 verses. And we don't speak Greek.");  
  }  
  
  if (currNum == 5)
  {
    document.write("A recent poll shows that most Cukes like their baby to have back.");  
  } 
  
  if (currNum == 6)
  {
    document.write("The English use to call Cucumbers, Cowcumbers. Hmm, the Screamin' Cowcumbers.");  
  }
   
  if (currNum == 7)
  {
    document.write("The Screamin' Cucumbers are not actually cucumbers. Any resemblance to actually living cucumbers is coincidental.");  
  } 
  
  if (currNum == 8)
  {
    document.write("One time in band camp Rob got his chocolate mixed into Brandon’s peanut butter,");  
  }   
  
  if (currNum == 9)
  {
    document.write("Elise secretly wishes that the band intro music be Beethoven's Fur Elise.");  
  } 
  
  if (currNum == 10)
  {
    document.write("Nuno Bettencourt rules. No shut up he does. Don't even go there. No you didn't. Just say it. Come on. Give this one to me, I'm having a bad day.");  
  } 

  if (currNum == 11)
  {
    document.write("China grows the most cucumbers in the world.");  
  } 

  if (currNum == 12)
  {
    document.write("Sea cucumbers are echinoderms—like starfish and sea urchins.");  
  } 
  
  if (currNum == 13)
  {
    document.write("Ulysses S. Grant ate a cucumber soaked in vinegar for breakfast each day.");  
  } 
  
  if (currNum == 14)
  {
    document.write("The phrase 'cool as a cucumber' is not just a lot of hot air. Because of a cucumber’s high water content, its inside temperature can be up to 20 degrees cooler than the outside air.");  
  }   
}

function gigLocation()
{
  var URL = window.location.href;
  var urlLength = URL.length;
  var venue = URL.substring(URL.indexOf("venue")+5,URL.indexOf("date"));
  
  if (venue == "papas")
  {
    document.writeln("Papa's Social Club");
  }
  if (venue == "bubs")
  {
    document.writeln("Bub's Irish Pub");
  }
  if (venue == "endzone")
  {
    document.writeln("Endzone Bar");
  }
  if (venue == "fallsFest")
  {
    document.writeln("Menomonee FallsFest");
  } 
  if (venue == "franklinFest")
  {
    document.writeln("Franklin Fest");
  } 
  if (venue == "grandCentralStation")
  {
    document.writeln("Grand Central Station");
  } 
  if (venue == "harleyfest")
  {
    document.writeln("Harleyfest");
  } 
  if (venue == "jackolounje")
  {
    document.writeln("Jacko Lounje");
  } 
  if (venue == "lindys")
  {
    document.writeln("Lindy's");
  } 
  if (venue == "millerPark")
  {
    document.writeln("Miller Park TGIFriday's");
  }
  if (venue == "milwaukeeZoo")
  {
    document.writeln("Milwaukee Zoo");
  }
  if (venue == "mos")
  {
    document.writeln("Mo's Irish Pub");
  }
  if (venue == "packers")
  {
    document.writeln("Anduzzi's");
  }
  if (venue == "oregon")
  {
    document.writeln("Oregon's Summerfest");
  }
  if (venue == "rjwaters")
  {
    document.writeln("RJ Water's");
  }
  if (venue == "rookies")
  {
    document.writeln("Rookies");
  }
  if (venue == "rooters")
  {
    document.writeln("Rooter's");
  }
  if (venue == "sandees")
  {
    document.writeln("Sandee's Cool Running");
  }
  if (venue == "sheryls")
  {
    document.writeln("Sheryl's Club 175");
  }
  if (venue == "steves")
  {
    document.writeln("Steve's Bar");
  }
  if (venue == "yesteryears")
  {
    document.writeln("Yester Year's");
  }
  if (venue == "arrowhead")
  {
    document.writeln("Arrowhead Block Party");
  }
}


