/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Name       :  openLyrics
' Purpose    :  Controls the opening of a new browser window to display
'		the lyrics to each song on the given CD.  It opens the
'		window and brings the selected song's lyrics to the top.
' Parameters :  cd	- indicates which CD to display.
'		track	- HTML bookmark indicating which lyrics to bring
'			  to the top.
' Return val :  none.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function openLyrics(cd, track)
{
   // Determine target HTML file.  (Always default to te latest release.)
   switch (cd)
   {
      case "cd01":
         fileTarget = "hrmyProductsCD01Lyrics.htm";
         winName = "cd01lyrics";
         break;
      case "cd02":
         fileTarget = "hrmyProductsCD02Lyrics.htm";
         winName = "cd02lyrics";
         break;
      case "cd03":
         fileTarget = "hrmyProductsCD03Lyrics.htm";
         winName = "cd03lyrics";
         break;
      case "cd04":
         fileTarget = "hrmyProductsCD04Lyrics.htm";
         winName = "cd04lyrics";
         break;
      case "cd05":
         fileTarget = "hrmyProductsCD05Lyrics.htm";
         winName = "cd05lyrics";
         break;
      case "cd06":
         fileTarget = "hrmyProductsCD06Lyrics.htm";
         winName = "cd06lyrics";
         break;
      default:
         fileTarget = "hrmyProductsCD07Lyrics.htm";
         winName = "cd07lyrics";
   }

   // Determine bookmark (track) in HTML file.  (Always default to top of file.)
   switch (track)
   {
      case "Track1":
         bookmarkTarget = "#top";
         break;
      case "Track2":
         bookmarkTarget = "#Track2";
         break;
      case "Track3":
         bookmarkTarget = "#Track3";
         break;
      case "Track4":
         bookmarkTarget = "#Track4";
         break;
      case "Track5":
         bookmarkTarget = "#Track5";
         break;
      case "Track6":
         bookmarkTarget = "#Track6";
         break;
      case "Track7":
         bookmarkTarget = "#Track7";
         break;
      case "Track8":
         bookmarkTarget = "#Track8";
         break;
      case "Track9":
         bookmarkTarget = "#Track9";
         break;
      case "Track10":
         bookmarkTarget = "#Track10";
         break;
      case "Track11":
         bookmarkTarget = "#Track11";
         break;
      case "Track12":
         bookmarkTarget = "#Track12";
         break;
      case "Track13":
         bookmarkTarget = "#Track13";
         break;
      default:
         bookmarkTarget = "#top";
   }
   winTarget = fileTarget + bookmarkTarget;
   window.open(winTarget,winName,"toolbar=no,width=600,height=400,resizable=yes,status=no,scrollbars=yes");
}


/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Name       :  openPhotos
' Purpose    :  Controls the opening of a new browser window to display
'		a photo from the photo album.
' Parameters :  photo	- indicates which photo page to display.
' Return val :  none.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function openPhotos(photo)
{
   switch (photo)
   {
      case "Photo1":
         winTarget = "photos/photo1.htm";
         break;
      case "Photo2":
         winTarget = "photos/photo2.htm";
         break;
      case "Photo3":
         winTarget = "photos/photo3.htm";
         break;
      default:
   }
   window.open(winTarget,"photos","toolbar=no,resizable=yes,status=no,scrollbars=yes");
}


/*'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Name       :  openNewWindow
' Purpose    :  Controls the opening of a new browser window.
' Parameters :  url - indicates the url to display in the new window.
' Return val :  none.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
function openNewWindow(url)
{
   winTarget = url;

   window.open(winTarget,"harmonyWin","location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=yes");
}