
 
var fader = new Array();
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) ? 1500 : 3500);

  // 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', 'eeeeee', '000000', 30, 30);
fader[2].msg[1] = "NO TEMPLATES";
fader[2].msg[2] = "NO STOCK PHOTOS OR IMAGES";
fader[2].msg[3] = "PURELY CUSTOM BUILT DESIGNS";
fader[2].msg[4] = "QUALITY &amp; VALUE FOR MONEY";
fader[2].msg[5] = "CREATE THE RIGHT IMAGE";

// Start this fader
setTimeout(function() { throb(2); }, 1000);
