// JavaScript Document

function chooseQuote(n){
  var quote ='';
  var quotee ='';
  switch(n) {
    case 1:
      quote = "I would have written you a shorter letter, but I didn’t have the time.";
      quotee = "Blaise Pascal";
      break;
    case 2:
      quote = "Simplicity is the ultimate sophistication.";
      quotee = "Leonardo da Vinci";
      break;
    case 3:
      quote = "How many things are there which I do not want.";
      quotee = "Socrates";
      break;
    case 4:
      quote = "Make everything as simple as possible, but not simpler.";
      quotee = "Albert Einstein";
      break;
    case 5:
      quote = "All great things are simple...";
      quotee = "Winston Churchill";
      break;
    case 6:
      quote = "The business schools reward difficult complex behavior more than simple behavior, but simple behavior is more effective.";
      quotee = "Warren Buffet";
      break;
    case 7:
      quote = "That’s been one of my mantras: focus and simplicity.";
      quotee = "Steve Jobs";
      break;
    default:
      quote = "I would have written you a shorter letter, but I didn’t have the time.";
      quotee = "Blaise Pascal";
  }
  var fullquote = "&ldquo;"+quote+"&rdquo; <br />~ "+quotee;
  $('footer p.quote').html(fullquote);

}

$(document).ready(function() {
  var n=Math.floor(Math.random()*8);
  chooseQuote(n);
});
