/*
 * Rotating Quotes Script - Copyright Cissy Wechter 2006.  All Rights Reserved.
 * Written by Mike Dawson
 */ 

var quotes = new Array();

//init quotes
quotes[0] = "\"For the millions of women who are looking for ‘That Guy’, this (Sex and the Sixties) is your handbook.\" \n \n -Phyllis Diller"; 
quotes[1] = "\"...Sex and the Sixties is a revolutionary book in the best sense of the word…Read, learn and enjoy!\" \n \n - Dr. Herb Goldberg  (The New Male, What Men Really Want)";
quotes[2] = "\"Love is the history of a woman’s life; it is an episode in man’s.\" \n\n Madame de Stael";
quotes[3] = "\"So much has been said and sung of beautiful young girls, why don’t somebody wake up to the beauty of old women?\" \n \n – Harriet Beecher Stowe";
quotes[4] = "\"The reader may say I have a taste for younger men.  I say they have a taste for me.\" \n \n Cissy Wechter";
quotes[5] = "\"I hate to grow older, all by myself.\" \n \n – Irving Berlin";
quotes[6] = "\"Many of us do hope for a new partner, and not just for bridge.\" \n\n – Cissy Wechter";
quotes[7] = "\"One of the fringe benefits of being handed back your life is being awarded custody of yourself.\" \n\n – Merle Shain";
quotes[8] = "\"We must learn that happiness is grown in one’s own garden, and we can plant flowers rather than waiting for someone to bring them.\" \n\n – Cissy Wechter";
quotes[9] = "\"Marriage has many pains, but celibacy has no pleasures.\" \n\n – Dr. Samuel Johnson";
quotes[10] = "\"I think it’s a myth that men like sex more than women.  In my experience, some men seem to prefer a great meal.\" \n\n – Cissy Wechter";
quotes[11] = "\"When the grandmothers of today hear the word 'Chippendales', they don’t think of chairs.\" \n\n – Jean Kerr";

var currentChar = 0;
var currentQuoteIndex = 0;

function advance() {

  if(currentQuoteIndex >= quotes.length)
		  currentQuoteIndex = 0;
			
	
  document.forms.quoteform.quoteArea.value += quotes[currentQuoteIndex].charAt(currentChar);
	if(++currentChar >= quotes[currentQuoteIndex].length) {
		//reached the end of this quote
		setTimeout("document.forms.quoteform.quoteArea.value = ''; advance();", 5000)		
		currentChar = 0;
		if(++currentQuoteIndex >= quotes.length)
			currentQuoteIndex = 0;
	}else {
		  setTimeout("advance()", 30);
	}
	 
	 
}
 
