

var fader = new Array();

/* *****
 * 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 : 20000); // ***20000 = 20 second, which is how long it shows for

  // 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', '000000', 30, 30);
fader[2].msg[1] = "<img src=\"images/quote_left.jpg\" />Windischmann loves fashion, but for her, style is not about trends; it's about identity, memory and a creative sense of self. - <b><i>shameless</i><img src=\"images/quote_right.jpg\" />";

fader[2].msg[2] = "<img src=\"images/quote_left.jpg\" />There is one thing that strikes you about Windischmann besides her incredible looks, and gorgeous smile.  Her start may have been a result of the old Hollywood fairy story that real beauty is implicitly destined for greatness, but she is quite firmly in the the driver's seat when it comes to her career. - <b>Lush</b><img src=\"images/quote_right.jpg\" />";

fader[2].msg[3] = "<img src=\"images/quote_left.jpg\" />Windischmann, a star plus-sized model, knows well the ways of the mainstream fashion industry.  'Samples years ago used to be size 8,' she said.  'It's gone down, down, down to the point that a lot of samples you see now are size 0 to 4 on the runway.  'That dictates what goes in magazines...and the fact that Cheri [Milaney] has three different sample sizes in her show is really revolutionary.  <b>If we change the sample size we change the world.</b>  - <b><i>Ottawa Citizen<i></b><img src=\"images/quote_right.jpg\" />";

fader[2].msg[4] = "<img src=\"images/quote_left.jpg\" />Windischmann says clothes that define <q>normal</q> in a limited way affect more than just self-esteem.  'You wouldn't think it was the clothing, you'd think it was yourself', she says.  <b>'You don't say, What's wrong with all the manufacturers? What's wrong with the world?' Instead, you say 'What's wrong with me?' That stinks.</b> - <b><i>shameless</i></b><img src=\"images/quote_right.jpg\" />";

fader[2].msg[5] = "<img src=\"images/quote_left.jpg\" />As a teenager, I became intrigued by modelling, so I visited an agency.  In the middle of the waiting area, in front of many others, the person who did the bookings told me to get on a giant scale.  <b>A voice inside my head screamed, 'Don't do it! Walk away!' but I got on the scale anyway.</b>  He asked me what I had eaten that day, and when I told him I had a cranberry muffin as a snack, he wagged his finger in my face and said,'No more cranberry muffins for you!'<b>I walked out of there angry - not with him but with myself for letting somebody make me feel anything less than great.</b>  I never went back. And I never again tried to be a straight-size model.  Instead, I did it my way: I've rocked the runways of numerous designers and appeared in many more magazine spreads...as an unapologetic size 14. - <b>Liis in <i>Flare</i></b><img src=\"images/quote_right.jpg\" />";

fader[2].msg[6] = "<img src=\"images/quote_left.jpg\" />'People ask me if I'd like to see plus-size models everywhere', says Windischmann.  'The answer is no.  That doesn't represent true society.  <b>I want to see a little of everything coming down the runways</b> - every race, colour and size.  I think we're getting there.  We're the fastest growing segment of the fashion market.  We have money and we want to spend it.'</q>  <b>Liis in <i>TV Guide</i></b><img src=\"images/quote_right.jpg\" />";

fader[2].msg[7] = "<img src=\"images/quote_left.jpg\" />'A woman remembers her wedding dress and her prom dress', says Liis, who now strolls the world's catwalks as a size 14. 'They define where you are in life, the feeling in your heart, the memories.  It's not just a piece of clothing'. <b>Liis speaking about the charity Inside the Dream</b> - <b><i>Toronto Sun</i></b><img src=\"images/quote_right.jpg\" />";

// Start this fader //*** 1000 = 1 second, which is fade time between quotes
setTimeout(function() { throb(2); }, 1000);// JavaScript Document
