// ------- QUOTE GENERATOR (For testimonials) -------
//      ------- Starts with random quote, then displays sequentially -------

var Quote=new Array();
var Author=new Array();

Quote[0] = "Carol is smart, professional, and easy to work with, and we've benefited greatly from the results of the study her team ran on Cyberhomes.com. We're looking forward to our next project with <span class=\"nowrap\">her! ";
Author[0] = "Marty Frame</b><br/>SVP and GM<br/>Fidelity National Real Estate Solutions";

Quote[1] = "There are many moderators working today who will tell you that they can conduct usability sessions. There are very few researchers with a true human factors educational background and approach. Carol Rossi is at the top of this small <span class=\"nowrap\">list. ";
Author[1] = "Liz Ashe</b><br/>President, Focus LA";

Quote[2] = "Whenever I've needed a 'go to' person for usability research, I've always turned to Carol. I've used her expertise when I was at Citibank, Symantec and most recently at Yahoo! to provide excellent quality usability work.<br/><br/>What I like most about working with Carol is that I know I'm going to get excellent results--I don't have to worry about it at all, which is what you hope for in a <span class=\"nowrap\">consultant. ";
Author[2] = "Jill Strawbridge, PhD</b><br/>Director of User Research<br/>Yahoo!";

Quote[3] = "Carol Rossi's facilitation of consumer testing for the Avery &copy; Wizard for Microsoft &copy; Office provided insights that made the final product easier to use. Carol's style results in valuable input from consumers.<br/><br/>We also appreciated Carol's responsiveness to our tight deadlines with her quick turn-around on <span class=\"nowrap\">reports. ";
Author[3] = "Brenda Dillon</b><br/>Group Manager<br/>Software &amp; Web Alliances<br/>Avery Dennison";

Quote[4] = "I've been working with Carol Rossi since 1997 and have yet to work with anybody else who has a more thorough understanding of the usability <span class=\"nowrap\">process. ";
Author[4] = "Liz Ashe</b><br/>President, Focus LA";

Quote[5] = "Carol has been a great consultant over the course of launching the new wizard. Carol is highly professional and adds value to providing us with actionable consumer <span class=\"nowrap\">insights. ";
Author[5] = "May Vathanasaynee</b><br/>Product Manager<br/>Avery Dennison";

Quote[6] = "Part of the reason that we all use the Internet is that Carol Rossi was working with some of the pioneering companies who saw the potential of this powerful high technology communication tool.  Carol made sure that we mere mortals could navigate <span class=\"nowrap\">it. ";
Author[6] = "Liz Ashe</b><br/>President, Focus LA";

Quote[7] = "Carol was instrumental in helping us identify usability issues within our voicemail system and with new features in the early stages of <span class=\"nowrap\">development. ";
Author[7] = "Seth Halvaksz</b><br/>Product Manager<br/>United Online<br/>(parent of NetZero, Juno, and PrivatePhone)";

var Q = Quote.length;
var qN;

function getCookie(c_name) {
    if (document.cookie.length>0) {
        c_start=document.cookie.indexOf(c_name + "=");
        if (c_start!=-1) { 
            c_start=c_start + c_name.length+1; 
            c_end=document.cookie.indexOf(";",c_start);
            if (c_end==-1) c_end=document.cookie.length;
            return unescape(document.cookie.substring(c_start,c_end)); } 
    }
    return "";
}

function setCookie(c_name,value) {
    document.cookie=c_name+ "=" +escape(value);
}

function getQuoteNum() {
    qN=getCookie('quoteHandler');
    if (qN!=null && qN!="") {
        if (qN < (Q-1)) { qN++; }
        else { qN = 0; } 
    }
    else { qN = Math.round(Math.random()*(Q-1)); }
    setCookie('quoteHandler', qN);
    return(qN);
}

var quoteNum=getQuoteNum();

function fillIn(what,where) {
    if(document.getElementById) {
        if(what == 'quote') {
            document.write(Quote[quoteNum]);
            document.write("<img src=\"images/quoteClose.gif\" alt=\"\" width=\"19\" height=\"16\" /></span>") }
        else { document.write(Author[quoteNum]); }
    }
}


// ----- Inserts mailto link -----

function insertAdd(linkText)
{
  var myServ="carolrossi.com";
  var myAdd=("carolr" + "@" + myServ);
  if(linkText == 'add') { linkText = myAdd; }
  document.write("<a href=\"mail" + "to:" + myAdd + "\">" + linkText + "</a>");
  if(linkText == 'email') { document.write("."); }
}
