var performers   = Array (
                         
                         'Sunday in Manhattan'
                         
                                                 );

var description = Array (
                         'Brent Grosvenor in'
                        );

var specialEvents       = Array (
                         'The Billy Sunday Story'
                        );

var dates       = Array (
                         'November 20, 2005'
                        );

var links       = Array (
                         'http://www.LightsUp.org'
                        );

var tickets     = Array (
                         true
                         );

var pressRelease = Array (
                          false
                         );

var background = Array (
                          true
                         );

var howManyPics = Array (
                          '3'
                         );


var numberOfEvents = specialEvents.length;
var pictureCounter = 0;

function compressed () {

  var tempString = "";

  for (var index=0; index < this.length; index++) 
    if (this.charAt(index) != " ")  tempString += this.charAt(index);

  return (tempString);

}

String.prototype.compressed = compressed;

function showTheLink () {

  linkWindow = window.open (this, "linkWindow", "width=600,height=400,scrollbars,menubar,toolbar,resizable");
  linkWindow.focus();

}

String.prototype.showTheLink = showTheLink;

function inTheArray (selectedArray, ignoreCase) {

 var index     = 0;
 var caseCheck = (inTheArray.arguments.length == 1 || ignoreCase) ? ".toUpperCase()" : "";
 var flatVersion = eval ("selectedArray.toString().compressed()" + caseCheck);
 var stringToFind  = eval ("this" + caseCheck);

 if (stringToFind.length > 0 && selectedArray.length > 1) {

    var stringLocation = flatVersion.indexOf(stringToFind);

    if (stringLocation >= 0) {

      for (charIndex = 0; charIndex < stringLocation; charIndex++)
          if (flatVersion.charAt(charIndex) == ",") index++

    }

  }

  return (index);

}

 String.prototype.inTheArray = inTheArray;

function rotatePics () {

  if (howManyPics[pageToShow]) {

    pictureCounter = (pictureCounter+1)%howManyPics[pageToShow];
    document.ThePicture.src = performers[pageToShow].compressed() + (pictureCounter ? pictureCounter : "") + ".jpg";
    getNextPic = window.setTimeout ("rotatePics()", 1500);

  }

}

