/* *****
 * User defined fade objects and messages
 *
 * These messages are used in fades triggered by mouseovers and
 * mouseouts on table cells.  They are the simplest type of fade and
 * require no extra Javascript code.
 */
var fader = new Array();

fader[0] = new fadeObject('fade0', 'dddddd', '000000', 20, 20);
fader[0].msg[0] = "This is an optional default message; the fade object on the right side has no default.  Mouseover each topic to make quotes fade in and out.";
fader[0].msg[1] = "Nowhere can a man find a quieter or more untroubled retreat than in his own soul.<br />- Marcus Aurelius";
fader[0].msg[2] = "Feeding the starving poor only increases their number.<br />- Ben Bova";
fader[0].msg[3] = "The limits of tyrants are prescribed by the endurance of those whom they oppose.<br />- Frederick Douglass";
fader[0].msg[4] = "The foolish man seeks happiness in the distance, the wise grows it under his feet.<br />- James Oppenheim";

fader[1] = new fadeObject('fade1', 'bbbbbb', '000000', 20, 20);
fader[1].msg[1] = "Success is relative. It is what we can make of the mess we have made of things.<br />- T.S. Eliot";
fader[1].msg[2] = "We have two ears and one mouth so we may listen more and talk the less.<br />- Epictetus";
fader[1].msg[3] = "It is better to be violent, if there is violence in our hearts, than to put on the cloak of nonviolence to cover impotence.<br />- Mahatma Gandhi";
fader[1].msg[4] = "Don't part with your illusions. When they are gone you may still exist, but you have ceased to live.<br />- Mark Twain";



/* *****
 * The code below describes how to make a throbbing or automatic fade
 * sequence of messages.  It is important to note that this function is
 * NOT part of the Buffered Text-Fade Effect, but merely an example of
 * how it can be used.  In this example, the throb() function controls
 * the commands which are sent to the fade engine; it is called
 * repeatedly at set time intervals rather than using mouseover events
 * as triggers.
 *
 * Notes:
 * - A global array "hash" is used to keep track of where each
 *   animation is currently in the sequence.
 * - The list of messages defined in the fader *must* start at one (1)
 *   and count upwards without skipping any integers.
 * - The third line of the throb() function controls how fast
 *   commands get sent to the fade engine.  It waits only 100 milli-
 *   seconds when fading out, but 5000 milliseconds (5 seconds) when
 *   fading in; this means the message will remain visible for about 5
 *   seconds before fading out again.
 *
 * Other types of fade animation are possible simply by designing
 * different ways to control the fade-ins and fade-outs!
 */
var hash = new Array();
function throb(item) {

  // If the hash array does not have an entry for this item, initialise it at 2
  if (!hash[item]) hash[item] = 2;

  // Send a fade command, using the hash array to tell us what parameters we should use
  fader[item].fade(Math.floor(hash[item] / 2), !(hash[item] % 2));

  // Call this function again for this same item after a certain amount of time
  setTimeout(function() { throb(item); }, (hash[item] % 2) ? 100 : 5000);

  // If we have exceeded the number of messages in this fader, start over again at 2
  if (++hash[item] > fader[item].msg.length * 2 - 1) hash[item] = 2;
}

fader[2] = new fadeObject('fade2', 'bbbbbb', '654b32', 30, 30);
//fader[2].msg[1] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I found my Mum&quot; </strong></span><br /> Michelle, New Zealand</p> </center>';
//fader[2].msg[2] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I cant believe it&#39;s been 29 year&#39;s!&quot; </strong></span><br /> Bob, Scotland<p/></center>';
//fader[2].msg[3] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Finding Maisie brought back such happy memorie&#39;s!&quot; </strong></span><br/> Edna, UK</p></center>';
fader[2].msg[1] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I was like a kid again at 50! I was so excited &#45; finally we were back in touch!&quot; </strong></span><br/> Phil, UK</p></center>';
fader[2].msg[2] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Your help in finding former pupils and making these reunions possible has been invaluable.&quot; </strong></span><br/> Lindsay, UK</p></center>';
fader[2].msg[3] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Finally, after 38 years my dream has come true. I&#39;ve got the girl I wanted all those years ago and now we&#39;re getting married!&quot; </strong></span><br/>Les, Australia </p></center>';
fader[2].msg[4] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thank you Who-Remembers-Me for bringing us back together.&quot; </strong></span><br /></p></center>';
fader[2].msg[5] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;It was brilliant to catch up.&quot; </strong></span><br/>Pat, UK</p></center>';
fader[2].msg[6] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thanks a million for helping me find my Mum &#45; it&#39;s like winning a life-time lottery and then some.&quot; </strong></span><br/>Michelle, New Zealand</p></center>';
fader[2].msg[7] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;It was great to catch up and reminisce about the old times!&quot; </strong></span><br/>Errol, South Africa</p></center>';
fader[2].msg[8] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thank you for reuniting two long lost brothers, maybe not biological, but brothers in every other sense.&quot; </strong></span><br/>Andrew, Australia</p></center>';
fader[2].msg[9] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;The last time we saw each other we were 15 years old and now we&#39;re both close to 70.&quot; </strong></span><br/>Ann, UK</p></center>';
fader[2].msg[10] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thank you so much for bringing us back together &#45; I am so happy to be reunited with Ann.&quot; </strong></span><br/>Helen, Australia</p></center>';
fader[2].msg[11] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thanks to your website I was able to say thank you to a very special lady who changed the course of my life.&quot; </strong></span><br/>Je Kan, Japan</p></center>';
fader[2].msg[12] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;We may be 20 years older and many thousands of miles apart but we are back in touch and for this I am very grateful.&quot; </strong></span><br/></p></center>';
fader[2].msg[13] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I never thought I&#39;d receive a reply.&quot; </strong></span><br/>Theo, South Africa</p></center>';
fader[2].msg[14] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thank you very much for bringing our &#39;yesteryears&#39; that little bit closer&quot; </strong></span><br/>Joan, UK</p></center>';
fader[2].msg[15] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Only three days &#45; can&#39;t say enough to praise you...&quot; </strong></span><br/>Alan, UK</p></center>';
fader[2].msg[16] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Isn&#39;t the internet wonderful?&quot; </strong></span><br/>Colin, Australia </p></center>';
//fader[2].msg[20] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thanks ever so much for bringing two &#39;ole footie&#39; fans back together!&quot; </strong></span><br/>Pat, UK</p></center>';
fader[2].msg[17] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I couldn&#39;t wait to catch up on all the years that had gone by...&quot; </strong></span><br/>Graeme, Australia</p></center>';
fader[2].msg[18] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;It may have taken us 27 years but it&#39;s great to be back in touch.&quot; </strong></span><br/></p></center>';
fader[2].msg[19] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Within an hour of registering with Who-Remembers-Me.com, Tania contacted me. What a wonderful experience!&quot; </strong></span><br />Beth, South Africa</p></center>';
fader[2].msg[20] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thanks ever so much for bringing two &#39;ole footie&#39; fans back together!&quot; </strong></span><br/>Pat, UK</p></center>';
fader[2].msg[21] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I can&#39;t believe it&#39;s been over 30 years since we last saw each other!&quot; </strong></span><br/></p></center>';
fader[2].msg[22] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I didn&#39;t think for one minute I would find her again.&quot; </strong></span></p></center>';
fader[2].msg[23] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;A couple of days later I received an email from Pam; it was brilliant, such a wonderful surprise!&quot; </strong></span><br/>Anne, UK</p></center>';
fader[2].msg[24] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;Thank you so much for putting us back in touch.&quot; </strong></span><br/></p></center>';
fader[2].msg[25] = '<center><p><span style="font-size:12pt;font-family:Arial, Helvetica, sans-serif""><strong>&quot;I have tried other friend-finder sites but yours is the only one that has worked &#45; wow 5 days, that&#39;s pretty fast thank you!&quot; </strong></span><br/></p></center>';
//fader[2].msg[4] = "<center><p>And so on......</br></p></center>";
//fader[2].msg[5] = "<center><p>And Even more So on.......</br></p></center>";

// Start this fader
setTimeout(function() { throb(2); }, 1000);