/*This program will randomly grab one of the quote/author pairs in the longer list down below.
On 8-15-08 I split this into multiple sections.

First and foremost, any page that uses these functions (any of them), need this in the HTML file, in the <head></head> section:

<script src="http://reynolds-buckley.com/tsartoris/random_testimonials.js" language="javascript" type="text/javascript"></script>

This calls this external javscript file and allows you to now use any of these functions anywhere on the pages that need it.  For now, they are all only in the right section, but you could put them anywhere on the page that you want.  As of mid August 08, all html files have this, but the blog does not.  

I have now made several different functions, and the process to change or call the function is the same, just be sure you're calling the right function on the right page.  You can copy an entire function, and start a new one by simply changing the name of the function, i.e. 
function randomQuoteJohnSmith() {
	
which is called by this code anywhere between the <body></body> tags:
<script language="javascript" type="text/javascript">
<!--
randomQuoteJohnSmith();
//-->
</script>

And within that, you'd want to change the rest too:
quote = new Array(22);
author = new Array(22);
Becomes:
quoteJohnSMith = new Array(22);
authorJohnSmith - new Array(22);

Also this:
quote[0] = "blah blah";
author[0] = "blah blah";
Becomes:
quoteJohnSmith[0] = "blah blah";
authorJohnSmith[0] = "blah blah";

And lastly, this:
index = Math.floor(Math.random() * quote.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<p class=\"top\">" + "\&#8220;" + quote[index] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + author[index] + "\n");
document.write("</p>\n");
document.write("</div>\n");
Becomes:
indexJohnSmith = Math.floor(Math.random() * quoteJohnSmith.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<p class=\"top\">" + "\&#8220;" + quoteJohnSmith[indexJohnSmith] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + authorJohnSmith[indexJohnSmith] + "\n");
document.write("</p>\n");
document.write("</div>\n");

(you just can't reuse the exact same variable names if all in one script like this, because it would probably only look at the very last time each one is defined).



If you want to add more quotes to any function, follow these steps:
1. Find the right function that you need to edit.
2. Create a new line: quote[#] = "";  (where # is the next sequential number from the highest current one in that particular function)
3. Create a new line: author[#] = ""; (where # corresponds with the quote number above)
4. Change the 2 lines below this: new Array(#);  (where # is the # used above, plus 1.  you have to count the zero line too)
5. Save and upload the file to replace what was there.

If you want to delete existing ones, either replace them, or renumber the posts after it to maintain a sequential list
You can use HTML within the quotes, but be careful about using quotes within the quotes.  If you need to use quotes, you have to use an "escape character", such as: 
quote[0] = "Here are a couple quote marks /" /" that are within quotes and preceeded by the escape character: / .";


Lastly, you can email timsartoris@yahoo.com or call 415-271-2925 for help! 
*/

/***********************************GENERAL QUOTES - function 1********************************************************
To call this function on a page, put this code in the right spot on the page you're editing within the <body></body> tags:
<script language="javascript" type="text/javascript">
<!--
randomQuote();
//-->
</script>
*/

//RIGHT NOW, THESE ARE JUST A GROUPING OF ALL THE QUOTES FOR BOTH DAVID AND GREG. BUT I FIGURE YOU'LL WANT TO CHANGE THIS SOON.  ALL PAGES EXCEPT THE DAVID AND GREG PAGES ARE CURRENTLY USING THIS FUNCTION.

<!--
function randomQuote() {
thePraised = new Array(28); //Note that you don't need this third variable in the person-specific functions...
quote = new Array(28);
author = new Array(28);
//David's quotes
thePraised[0] = "David Reynolds";
quote[0] = "Dave, you have a great future in half-time N.F.L. pep talks. You were great!.";
author[0] = "<strong>Ray Wisley</strong><br />Director of Player Personnel<br />NFL Europe League";
thePraised[1] = "David Reynolds";
quote[1] = "He is a one-man orchestra of auctioneering, able to separate audiences from their currency with the subtlety of a Spanish galleon in full rig and the passion of Billy Graham in full flight.";
author[1] = "<strong>Jeremy Oliver</strong><br />OnWine Report, January 2001";
thePraised[2] = "David Reynolds";
quote[2] = "David brings intelligence, insight, and extraordinary enthusiasm to the wine auction arena as well as a true understanding of how to be most economically efficient so that the charity might reach its ultimate goal.";
author[2] = "<strong>Dick Grace</strong><br />Grace Family Vineyards";
thePraised[3] = "David Reynolds";
quote[3] = "He turns the auction tent into a revival meeting with his evangelical zeal. It is an amazing performance…He is my dream auctioneer.";
author[3] = "<strong>Anthony Dias Blue</strong><br />Bon Apetit Magazine";
thePraised[4] = "David Reynolds";
quote[4] = "I was so impressed with the expertise and energy that he brought to the proceedings, which by the way were very successful, in large part due to David’s substantive role.";
author[4] = "<strong>Archie McLaren</strong><br />KCBX Central Coast Wine Classic";
thePraised[5] = "David Reynolds";
quote[5] = "As always, you make it happen.";
author[5] = "<strong>Janice Mondavi</strong><br />Charles Keug Winery<br />Justin Sienna High School";
thePraised[6] = "David Reynolds";
quote[6] = "Capriccioso!, Philharmonia’s annual auction and dinner gala, was fabulously successful, and in all ways exceeded expectations.";
author[6] = "<strong>George Gelles</strong><br />Philharmonia Baroque Orchestra";
thePraised[7] = "David Reynolds";
quote[7] = "Your auctioneering on Saturday was amazing. You were skillful, fun, lively, quick and encouraged those bids even higher. What more could we have asked for?";
author[7] = "<strong>Deb Rockwell</strong><br />The Urban School of San Francisco";

//Greg Quiroga's Quotes
thePraised[8] = "Greg Quiroga";
quote[8] = "You're the most exciting charity auctioneer I've had the pleasure of working with. You were awesome!";
author[8] = "<strong>Raj Mathai</strong><br />Sports Director @ NBC 11";
thePraised[9] = "Greg Quiroga";
quote[9] = "Thank you for the wonderful experience of working with you as our auctioneer this year at the Night of Light. I truly appreciate all of your support in planning the auction and then your wonderful 'performance' on Saturday night. You turned our event around and have brought it into the 21st century!";
author[9] = "<strong>Sally Coates</strong><br />Executive Director<br />Episcopal Charities";
thePraised[10] = "Greg Quiroga";
quote[10] = "Thanks so much for your help at Iron Chef 2005! You made the difference! You are a true professional and a force to be reckoned with. The children are safer because of you.";
author[10] = "<strong>Michael Sorensen</strong>, MPA<br />Interim Executive Director<br />Children's Relief Nursery";
thePraised[11] = "Greg Quiroga";
quote[11] = "I want to thank you again for your support for our winter fundraiser, Angel Gala 2005. You did an outstanding job as the auctioneer for our live auction. We are very grateful for all of your efforts, from sharing your expertise with our auction planning committee, to helping us reach a new income record for the live auction.  It was truly a remarkable and memorable event, and we couldn't have done it without you!";
author[11] = "<strong>Eric Nelson</strong><br />Executive Director<br />Napa Valley Museum";
thePraised[12] = "Greg Quiroga";
quote[12] = "You single handedly helped us have the most successful event ever! We can't thank you enough. It was incredible what you were able to do. Everyone loved the live auction.";
author[12] = "<strong>Gabriella Calicchio</strong><br />Executive Director<br />Marin Theater Company";
thePraised[13] = "Greg Quiroga";
quote[13] = "Thank you for bringing your experience, energy and enthusiasm to the Red Cross Gala!  Through all of the planning, as well as during the main event, your contribution ensured a successful event.";
author[13] = "<strong>Kelly Murphy</strong><br />2005 Auction Co-Chair, Paint the Town Red<br />Bay Area Red Cross";
thePraised[14] = "Greg Quiroga";
quote[14] = "You did a great job and engaged the attention of what can be a difficult audience. I was pleased and moved with the way the Fund-A-Cure closed the live auction.  The contribution of you and Dave during the pre-ball planning was so valuable and helped us move many of our items. Thank you again.";
author[14] = "<strong>Pamela Abaci</strong><br />2004 Co-Chair, Cattle Baron's Ball<br />American Cancer Society Los Gatos";
thePraised[15] = "Greg Quiroga";
quote[15] = "Greg Quiroga proved to be 'the auctioneer extraordinaire' at our annual fundraiser this year. His energy, creativity and genuine concern for our mission were invaluable to us and resulted in the most successful live auction to date.";
author[15] = "<strong>Christine Burroughs</strong><br />Chief Executive Officer<br />InnVision";
thePraised[16] = "Greg Quiroga";
quote[16] = "Thank you so much for doing a great job with our live auction. We raised a record amount of money and your enthusiasm and expertise were a big part of that success.";
author[16] = "<strong>Kathy Mott</strong><br />2005 Live Auction Chair<br />Marin Catholic High School";
thePraised[17] = "Greg Quiroga";
quote[17] = "Thank you for all the hard work you did for our auction. We received so many good words about you from our guests and look forward to seeing you again next year!";
author[17] = "<strong>Krista Bryant</strong><br />Development Director<br />Boys and Girls Clubs of South Central Alaska";
thePraised[18] = "Greg Quiroga";
quote[18] = "Thanks again for making our reception such a success. The amount you raised in the live auction met our goals for both the live and silent auctions!";
author[18] = "<strong>Bill Hirsh</strong><br />Executive Director<br />Aids Legal Referral Panel";
thePraised[19] = "Greg Quiroga";
quote[19] = "You helped us take our event to another level in fundraising and professionalism. You have a great sense of humor that shined throughout our event.";
author[19] = "<strong>Gerry Hansen</strong><br />2004 Auction Chair<br />Marin Horizon School";
thePraised[20] = "Greg Quiroga";
quote[20] = "Thank you for all your efforts. You were fantastic! Due to your entertaining and professional auctioneering style, the live auction greatly exceeded expectations all around.";
author[20] = "<strong>Peter Stevenson</strong><br />2004 Live Auction Chair<br />Burlingame Community Education Foundation";
thePraised[21] = "Greg Quiroga";
quote[21] = "Again, our heartfelt thanks for a job magnificently executed. Your star quality was shining through and our Education program benefited. I personally appreciated all your help and great suggestions.";
author[21] = "<strong>Fritzi Schoen</strong><br />2004 Auction Chair<br />Oakland East Bay Symphony";
thePraised[22] = "Greg Quiroga";
quote[22] = "<u>Auctioneer</u>, n.: one who announces with a gavel that he's picked your pocket with his tongue.";
author[22] = "<strong>Ambrose Bierce</strong><br />Devil's Dictionary";

//Ed Gold's quotes
thePraised[23] = "Ed Gold";
quote[23] = "The O'Neal auction was last night. I am in love with Ed. He did a phenomenal job. He is loaded with personality and really did his research.";
author[23] = "<strong>Christa Duffy</strong><br />Honorary Chair<br />O'Neal School<br />Pinehurst, NC";
thePraised[24] = "Ed Gold";
quote[24] = "Many people have commented on how much they like Ed's energy and we feel that Ed represented us well.";
author[24] = "<strong>Catarina Schwab</strong><br />Vice-President-California<br />buildOn<br />San Francisco, CA";
thePraised[25] = "Ed Gold";
quote[25] = "We will use Ed again. He was awesome. Everybody loved him.";
author[25] = "<strong>Nicole Cosand</strong><br />Development Director<br />The Marin School<br />Sausalito, CA";
thePraised[26] = "Ed Gold";
quote[26] = "I can guarantee that the bids would not have been as high without you there. So many attendees commented on 'how fabulous that auctioneer was'.";
author[26] = "<strong>Karen Growney</strong><br />Co-Event Chair<br />La Piccola Scuola Italiana";
thePraised[27] = "Ed Gold";
quote[27] = "Ed really is worth his weight in gold. He educated and inspired the auction team for months leading up the event and then hit it out of the ballpark on the night. The excitement and support for our cause was overwhelming. Patrons bid and had a ball and our donating artists and supporters felt valued and respected. We couldn't have asked for better auctioneer.";
author[27] = "<strong>Adriene Rockwell</strong><br />Board Member<br />Arts Benicia<br />Benicia, CA";
//thePraised[28] = "";
//quote[28] = "";
//author[28] = "";
//add stuff between the quotes and uncomment by removing the '//', and so on, and so on....

//This last part is what actually displays it on the page.  You would change this if not using "quote/author" pairs...  Where it says quote[index] is where it will put the quote line.  Where is shows author[index] is where it shows the author line.  This example has them in a <div></div> tag (that does the padding) and also within <p> and </p> tags, which is what is displayed.  Currently the class=top and class=bottom are unused but can be defined in the reynolds.css file later if needed.

index = Math.floor(Math.random() * quote.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<strong>About " + thePraised[index] + "</strong><br /><hr />\n");
document.write("<p class=\"top\">" + "\&#8220;" + quote[index] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + author[index] + "\n");
document.write("</p>\n");
document.write("</div>\n");
}
/**************************************END GENERAL QUOTES*************************************************************************/



/***********************************GREG QUIROGA TESTIMONIALS - function 2********************************************************
To call this function on a page, put this code in the right spot on the page you're editing within the <body></body> tags:
<script language="javascript" type="text/javascript">
<!--
randomQuoteGreg();
//-->
</script>
*/
<!--
function randomQuoteGreg() {
quotegreg = new Array(14);
authorgreg = new Array(14);
quotegreg[0] = "You're the most exciting charity auctioneer I've had the pleasure of working with. You were awesome!";
authorgreg[0] = "<strong>Raj Mathai</strong><br />Sports Director @ NBC 11";
quotegreg[1] = "Thank you for the wonderful experience of working with you as our auctioneer this year at the Night of Light. I truly appreciate all of your support in planning the auction and then your wonderful 'performance' on Saturday night. You turned our event around and have brought it into the 21st century!";
authorgreg[1] = "<strong>Sally Coates</strong><br />Executive Director<br />Episcopal Charities";
quotegreg[2] = "Thanks so much for your help at Iron Chef 2005! You made the difference! You are a true professional and a force to be reckoned with. The children are safer because of you.";
authorgreg[2] = "<strong>Michael Sorensen</strong>, MPA<br />Interim Executive Director<br />Children's Relief Nursery";
quotegreg[3] = "I want to thank you again for your support for our winter fundraiser, Angel Gala 2005. You did an outstanding job as the auctioneer for our live auction. We are very grateful for all of your efforts, from sharing your expertise with our auction planning committee, to helping us reach a new income record for the live auction.  It was truly a remarkable and memorable event, and we couldn't have done it without you!";
authorgreg[3] = "<strong>Eric Nelson</strong><br />Executive Director<br />Napa Valley Museum";
quotegreg[4] = "You single handedly helped us have the most successful event ever! We can't thank you enough. It was incredible what you were able to do. Everyone loved the live auction.";
authorgreg[4] = "<strong>Gabriella Calicchio</strong><br />Executive Director<br />Marin Theater Company";
quotegreg[5] = "Thank you for bringing your experience, energy and enthusiasm to the Red Cross Gala!  Through all of the planning, as well as during the main event, your contribution ensured a successful event.";
authorgreg[5] = "<strong>Kelly Murphy</strong><br />2005 Auction Co-Chair, Paint the Town Red<br />Bay Area Red Cross";
quotegreg[6] = "You did a great job and engaged the attention of what can be a difficult audience. I was pleased and moved with the way the Fund-A-Cure closed the live auction.  The contribution of you and Dave during the pre-ball planning was so valuable and helped us move many of our items. Thank you again.";
authorgreg[6] = "<strong>Pamela Abaci</strong><br />2004 Co-Chair, Cattle Baron's Ball<br />American Cancer Society Los Gatos";
quotegreg[7] = "Greg Quiroga proved to be 'the auctioneer extraordinaire' at our annual fundraiser this year. His energy, creativity and genuine concern for our mission were invaluable to us and resulted in the most successful live auction to date.";
authorgreg[7] = "<strong>Christine Burroughs</strong><br />Chief Executive Officer<br />InnVision";
quotegreg[8] = "Thank you so much for doing a great job with our live auction. We raised a record amount of money and your enthusiasm and expertise were a big part of that success.";
authorgreg[8] = "<strong>Kathy Mott</strong><br />2005 Live Auction Chair<br />Marin Catholic High School";
quotegreg[9] = "Thank you for all the hard work you did for our auction. We received so many good words about you from our guests and look forward to seeing you again next year!";
authorgreg[9] = "<strong>Krista Bryant</strong><br />Development Director<br />Boys and Girls Clubs of South Central Alaska";
quotegreg[10] = "Thanks again for making our reception such a success. The amount you raised in the live auction met our goals for both the live and silent auctions!";
authorgreg[10] = "<strong>Bill Hirsh</strong><br />Executive Director<br />Aids Legal Referral Panel";
quotegreg[11] = "You helped us take our event to another level in fundraising and professionalism. You have a great sense of humor that shined throughout our event.";
authorgreg[11] = "<strong>Gerry Hansen</strong><br />2004 Auction Chair<br />Marin Horizon School";
quotegreg[12] = "Thank you for all your efforts. You were fantastic! Due to your entertaining and professional auctioneering style, the live auction greatly exceeded expectations all around.";
authorgreg[12] = "<strong>Peter Stevenson</strong><br />2004 Live Auction Chair<br />Burlingame Community Education Foundation";
quotegreg[13] = "Again, our heartfelt thanks for a job magnificently executed. Your star quality was shining through and our Education program benefited. I personally appreciated all your help and great suggestions.";
authorgreg[13] = "<strong>Fritzi Schoen</strong><br />2004 Auction Chair<br />Oakland East Bay Symphony";
//quotegreg[14] = "";
//authorgreg[14] = "";
//add stuff between the quotes and uncomment by removing the '//', and so on, and so on....

indexgreg = Math.floor(Math.random() * quotegreg.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<strong>About Greg Quiroga</strong><br /><hr />\n");
document.write("<p class=\"top\">" + "\&#8220;" + quotegreg[indexgreg] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + authorgreg[indexgreg] + "\n");
document.write("</p>\n");
document.write("</div>\n");
}
/**************************************END GREG FUNCTION***************************************************************************/


/***********************************DAVID REYNOLDS TESTIMONIALS - function 3********************************************************
To call this function on a page, put this code in the right spot on the page you're editing within the <body></body> tags:
<script language="javascript" type="text/javascript">
<!--
randomQuoteDavid();
//-->
</script>
*/
<!--
function randomQuoteDavid() {
quotedavid = new Array(8);
authordavid = new Array(8);
quotedavid[0] = "Dave, you have a great future in half-time N.F.L. pep talks. You were great!.";
authordavid[0] = "<strong>Ray Wisley</strong><br />Director of Player Personnel<br />NFL Europe League";
quotedavid[1] = "He is a one-man orchestra of auctioneering, able to separate audiences from their currency with the subtlety of a Spanish galleon in full rig and the passion of Billy Graham in full flight.";
authordavid[1] = "<strong>Jeremy Oliver</strong><br />OnWine Report, January 2001";
quotedavid[2] = "David brings intelligence, insight, and extraordinary enthusiasm to the wine auction arena as well as a true understanding of how to be most economically efficient so that the charity might reach its ultimate goal.";
authordavid[2] = "<strong>Dick Grace</strong><br />Grace Family Vineyards";
quotedavid[3] = "He turns the auction tent into a revival meeting with his evangelical zeal. It is an amazing performance…He is my dream auctioneer.";
authordavid[3] = "<strong>Anthony Dias Blue</strong><br />Bon Apetit Magazine";
quotedavid[4] = "I was so impressed with the expertise and energy that he brought to the proceedings, which by the way were very successful, in large part due to David’s substantive role.";
authordavid[4] = "<strong>Archie McLaren</strong><br />KCBX Central Coast Wine Classic";
quotedavid[5] = "As always, you make it happen.";
authordavid[5] = "<strong>Janice Mondavi</strong><br />Charles Keug Winery<br />Justin Sienna High School";
quotedavid[6] = "Capriccioso!, Philharmonia’s annual auction and dinner gala, was fabulously successful, and in all ways exceeded expectations.";
authordavid[6] = "<strong>George Gelles</strong><br />Philharmonia Baroque Orchestra";
quotedavid[7] = "Your auctioneering on Saturday was amazing. You were skillful, fun, lively, quick and encouraged those bids even higher. What more could we have asked for?";
authordavid[7] = "<strong>Deb Rockwell</strong><br />The Urban School of San Francisco";
//quotedavid[8] = "";
//authordavid[8] = "";
//add stuff between the quotes and uncomment by removing the '//', and so on, and so on....

indexdavid = Math.floor(Math.random() * quotedavid.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<strong>About David Reynolds</strong><br /><hr />\n");
document.write("<p class=\"top\">" + "\&#8220;" + quotedavid[indexdavid] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + authordavid[indexdavid] + "\n");
document.write("</p>\n");
document.write("</div>\n");
}
/**************************************END DAVID FUNCTION********************************************************/

/***********************************ED GOLD TESTIMONIALS - function 4********************************************************
To call this function on a page, put this code in the right spot on the page you're editing within the <body></body> tags:
<script language="javascript" type="text/javascript">
<!--
randomQuoteEd();
//-->
</script>
*/
<!--
function randomQuoteEd() {
quoteEd = new Array(5);
authorEd = new Array(5);
quoteEd[0] = "The O'Neal auction was last night. I am in love with Ed. He did a phenomenal job. He is loaded with personality and really did his research.";
authorEd[0] = "<strong>Christa Duffy</strong><br />Honorary Chair<br />O'Neal School<br />Pinehurst, NC";
quoteEd[1] = "Many people have commented on how much they like Ed's energy and we feel that Ed represented us well.";
authorEd[1] = "<strong>Catarina Schwab</strong><br />Vice-President-California<br />buildOn<br />San Francisco, CA";
quoteEd[2] = "We will use Ed again. He was awesome. Everybody loved him.";
authorEd[2] = "<strong>Nicole Cosand</strong><br />Development Director<br />The Marin School<br />Sausalito, CA";
quoteEd[3] = "I can guarantee that the bids would not have been as high without you there. So many attendees commented on 'how fabulous that auctioneer was'.";
authorEd[3] = "<strong>Karen Growney</strong><br />Co-Event Chair<br />La Piccola Scuola Italiana";
quoteEd[4] = "Ed really is worth his weight in gold. He educated and inspired the auction team for months leading up the event and then hit it out of the ballpark on the night. The excitement and support for our cause was overwhelming. Patrons bid and had a ball and our donating artists and supporters felt valued and respected. We couldn't have asked for better auctioneer.";
authorEd[4] = "<strong>Adriene Rockwell</strong><br />Board Member<br />Arts Benicia<br />Benicia, CA";
//quoteEd[5] = "";
//authorEd[5] = "";
//add stuff between the quotes and uncomment by removing the '//', and so on, and so on....

indexEd = Math.floor(Math.random() * quoteEd.length);
document.write("<div id=\"randomquotes\">\n");
document.write("<strong>About Ed Gold</strong><br /><hr />\n");
document.write("<p class=\"top\">" + "\&#8220;" + quoteEd[indexEd] + "\&#8221;\n");
document.write("</p><p class=\"bottom\">" + authorEd[indexEd] + "\n");
document.write("</p>\n");
document.write("</div>\n");
}
/**************************************END ED GOLD FUNCTION********************************************************/

/************WARNING: DO NOT FORGET TO CLOSE ALL HTML TAGS WITHIN QUOTE OR AUTHOR, AS THIS WILL CARRY THROUGH TO FOOTER, ETC.***/
