// Used  to  track displayed page.
var selected_page=1;

// Necessary to declare these here for browsers with less than JavaScript 1.1.
title=null;
one=null;
two=null;
three=null;
four=null;
five=null;
six=null;
seven=null;
eight=null;
nine=null;
ten=null;
eleven=null;
twelve=null;
thirteen=null;
fourteen=null;
fifteen=null;
intro=null;

// Loads pages, for browsers with less than JavaScript 1.1.
function letsGo(i)
   { parent.location = address[i]; }
//   { parent.frame2.location = address[i]; }

// Create and define arrays.
arrSize = 15;
address = new Array(arrSize);
address[1] = "index.shtml";
address[2] = "news.shtml";
address[3] = "bio.shtml";
address[4] = "discog.shtml";
address[5] = "bkandvd.shtml";
address[6] = "music.shtml";
address[7] = "tour.shtml";
address[8] = "reviews.shtml";
address[9] = "Photos.shtml";
address[10] = "links.shtml";
address[11] = "soup.shtml";
address[12] = "contact.shtml";
address[13] = "newsletter.shtml";
address[14] = "sheetmusic.shtml";
address[15] = "http://www.dynamicartists.com/stores/pdastore.html"

// Preload all images to memory.
menuImages = new Array(arrSize); // Normal view
menuImagesNeg = new Array(arrSize); // Reverse view
imagePrefix = new Array(arrSize);
imagePrefix[1] = "Alt2ButtonHome";
imagePrefix[2] = "Alt2ButtonNews";
imagePrefix[3] = "Alt2ButtonBio";
imagePrefix[4] = "Alt2ButtonDiscog";
imagePrefix[5] = "Alt2ButtonBkVid";
imagePrefix[6] = "Alt2ButtonListen";
imagePrefix[7] = "Alt2ButtonTour";
imagePrefix[8] = "Alt2ButtonPress";
imagePrefix[9] = "Alt2ButtonPhotos";
imagePrefix[10] = "Alt2ButtonLinks";
imagePrefix[11] = "Alt2ButtonMM";
imagePrefix[12] = "Alt2ButtonContact";
imagePrefix[13] = "Alt2ButtonNewsLetter";
imagePrefix[14] = "Alt2ButtonSheetMusic";
imagePrefix[15] = "Alt2ButtonMerchandise";

for(i = 1; i <= arrSize; i++) {
   menuImages[i] = new Image(180, 22);
   menuImagesNeg[i] = new Image(180, 22);
   menuImages[i].src = "images/" + imagePrefix[i] + ".jpg";
   menuImagesNeg[i].src = "images/" + imagePrefix[i] + "Negative.jpg";
}

// Loads pages, for browsers with JavaScript 1.1.
// It's ugly and repetitive, but it works with 3.0 & 4.0b1. 

function letsGo(i) {

   selected_page=i;
   
   if (address[i].substr(0,7).toLowerCase() == "http://" ) {
   	window.open(address[i], 'newwin')
   }
   else {
   	parent.location = address[i];
   }
}

