numQuotes=28;
quoteArray = new Array(numQuotes);
quoteArray[0]="What did you do, put Murphy's Oil Soap in the pancake mix?";
quoteArray[1]="That's a beautiful painting, Vincent - I wish I could paint like that.";
quoteArray[2]="Your ear doesn't look right, what did you do?";
quoteArray[3]="Vincent, this is working so well, we should invite more artists to join us!";
quoteArray[4]="Would you turn down your music, Vinnie?  What do you think this is, a disco?";
quoteArray[5]="I'd have a better appetite for dinner if your paintings weren't so horrible.";
quoteArray[6]="I'm going out into the fields today to paint, want to come with?";
quoteArray[7]="You're making me re-think my career as a stockbroker.";
quoteArray[8]="I've got a headache, and I think your cadmium red is to blame!";
quoteArray[9]="Quit treating this like a paint-by-numbers course!";
quoteArray[10]="I'm so glad you're here with me - we should have done this years ago!";
quoteArray[11]="I couldn't sleep last night because of your snoring!";
quoteArray[12]="I can't stand this any longer, Vincent - I have to leave.\n\nGAME OVER";
quoteArray[13]="Vincent, I'm worried you've been spending too much time in the sunflower field!";
quoteArray[14]="Your symbolism just knocks me out!  Hat's off to you!";
quoteArray[15]="Is that supposed to be a landscape, or are you making soup?";
quoteArray[16]="I can hear the gallery dealers laughing now.";
quoteArray[17]="You'd be better off with crayons.";
quoteArray[18]="Why are you painting on the table?  Where am I supposed to eat?";
quoteArray[19]="Let's have a cup of coffee and discuss art theory.";
quoteArray[20]="I was feeling great about my work today and appreciated your suggestions.";
quoteArray[21]="Are you driving a race car, or painting?  Slow down already!";
quoteArray[22]="You make cartoonists look good.";
quoteArray[23]="Now you're on a roll - that's your third good brushstroke on that canvas.";
quoteArray[24]="I don't know why we came to Arles, we should be in Montmartre!";
quoteArray[25]="Vincent, you are such a slob - can't you put on a fresh shirt for a change?"
quoteArray[26]="I can't stay here any longer, Vincent - you're driving me nuts!\n\nGAME OVER";
quoteArray[27]="I feel like a test rat in a mad experiment, and so I'm leaving Arles!\n\nGAME OVER";
quoteArray[28]="Someone in town today called me Van Gauguin, and I've had enough!\n\nGAME OVER";


quoteShowing=-1;

function nextQuote()
{
  // restart at 0 if done
  if (quoteShowing >= numQuotes) quoteShowing=-1;
  quoteShowing++;

  // assign the value in the textbox to the new quote
  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function prevQuote()
{
  // restart at end if on 0
  if (quoteShowing <= 0) quoteShowing=numQuotes+1;
  quoteShowing--;

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
}

function randQuote()
{ 
  // Make sure you don't show the same quote 2x in a row
  prevQuoteShowing = quoteShowing;
  while(quoteShowing == prevQuoteShowing)
    quoteShowing = Math.ceil(Math.random() * numQuotes);

  document.quoteForm.quoteHere.value = quoteArray[quoteShowing];
  document.quoteForm.amount.value++;
}

window.onload=randQuote

