/* *****
 * 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', '514e4f', 'ffffff', 40, 40);
fader[0].msg[1] = "Recording Studios";

/* *****
 * 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.
 * 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));

  // 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[1] = new fadeObject('fade1', '514e4f', 'ffffff', 40, 40);
fader[1].msg[1] = "Songwriting & Production Team";

fader[2] = new fadeObject('fade2', '514e4f', 'ffffff', 40, 40);
fader[2].msg[1] = "Art & Photography";

fader[3] = new fadeObject('fade3', '514e4f', 'ffffff', 40, 40);
fader[3].msg[1] = "Disco Pusher";

