var currentdate = 0;
var core = 0;

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' ';
  }
}

//  ADDING MORE QUOTES:
//  Insert new quotes in the following format, increasing the quote# each time
//
//  quote# = new Arraw (3);
//  quote#[0] = "the quote goes here";
//  quote#[] = "the person's name";
//  quote#[] = "their company";
//
//  Make sure you create an anchor in the page such as <a name="quote5"></a> to point to your new testimonial.
//
//  Also, increase the "var numquotes = #;" variable below.

quote0 = new Array(3);
quote0[0] = "I wanted to personally thank you for helping make the Cornell-in-Washington webpage a reality.  I was constantly amazed how clearly you understood my concerns, and even more amazed by how quickly those concerns were addressed.";
quote0[1] = "Carol Fields Hagen";
quote0[2] = "Cornell University";

quote1 = new Array(3);
quote1[0] = "Wow, I AM impressed.  Did the search via Yahoo! and SPV still comes up on page one.  Nice Work!";
quote1[1] = "Chuck Tauck";
quote1[2] = "Sheldrake Point Vineyards";

quote2 = new Array(3);
quote2[0] = "I checked out the website and it looks great!  I really appreciate how quickly you turned this around!!  It really looks fabulous!";
quote2[1] = "Chris Sanchirico";
quote2[2] = "Ithaca Breast Cancer Alliance";

quote3 = new Array(3);
quote3[0] = "You are so wonderful to work with -- I can't tell you enough how much you are appreciated!";
quote3[1] = "Lynn Pond";
quote3[2] = "Wall Marjama &amp; Bilinski, LLP ";

quote4 = new Array(3);
quote4[0] = "Spider Graphics has demonstrated repeatedly (its) loyalty in moments of crisis and (its) ingenuity in addressing new challenges in design. You're a hero. Or you're an imaginative and conscientious professional. The two look a lot alike.";
quote4[1] = "Andrea Fleck Cardy";
quote4[2] = "Cornell University Press";



function ranquote() {
var numquotes = 5;  // Increase this for each new testimonial added
var ran = Math.floor(Math.random()*numquotes)

var said = eval('quote' + ran + '[0]');
var who = eval('quote' + ran + '[1]');
var where = eval('quote' + ran + '[2]');
var quotenum = 'quote' + ran;
var said = said.substring(0,110);

document.write('<div id="quote">');
document.write('<h3 style="padding-bottom: 3px; margin-top: 10px;">client quotes:</h3>');
document.write('<p class=said><span style="font-size: 16px; font-weight: bold;">"</span>'+ said +'...<span style="font-size: 16px; font-weight: bold;">"</span></p><p align=right class=morelink><a href="spd6_testimonial.html#' + quotenum + '" class="nothing">[read more]</a></p>');
document.write('<p class=who>'+ who +'</p>');
document.write('<div><p class=where>'+ where +'</p></div>');
document.write('</div>');

}
ranquote();
