///////////////////////////////////////////////////////////////////////////////
// These are for rollovers											         //
///////////////////////////////////////////////////////////////////////////////

if (document.images) {
// These are for general button rollovers.
  listenOn = new Image();
  listenOn.src = "images/buttons/but_listen_over.gif";
  listenOff = new Image();
  listenOff.src = "images/buttons/but_listen.gif";
  showpicsOn = new Image();
  showpicsOn.src = "images/buttons/but_photos_over.gif";
  showpicsOff = new Image();
  showpicsOff.src = "images/buttons/but_photos.gif";
  allpastshowsOn = new Image();
  allpastshowsOn.src = "images/buttons/but_all_past_shows_over.gif";
  allpastshowsOff = new Image();
  allpastshowsOff.src = "images/buttons/but_all_past_shows.gif";
}

function imgOn(imageName) {
  if (document.images) {
    document [imageName].src = eval(imageName + "On.src")
  }
}

function imgOff(imageName) {
  if (document.images) {
    document [imageName].src = eval(imageName + "Off.src")
  }
}

///////////////////////////////////////////////////////////////////////////////
// This the home page Show pic popup window                                  //
///////////////////////////////////////////////////////////////////////////////

function showpics()
{
  window.open('showpics/10_0829_kelly_kennedy.html','10_0829','width=360,height=524,menubar=no,toolbar=no,location=no,scrollbars=no,resizable=no,status=no,directories=no,top=10,left=10');
}

///////////////////////////////////////////////////////////////////////////////
// This is for Show MP3 popup windows with a two line header               //
///////////////////////////////////////////////////////////////////////////////

var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) { 
PlayWin = window.open('',UniqueID,'width=320,height=150,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var winContent = "<html><head><title>" + soundfiledesc + "</title></head><body bgcolor='#cccccc' link='#000000' vlink='#000000'>"; 
winContent += "<p style='font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;line-height: 13px;font-weight: bold;color: #FF3333;text-align:center;'>" + soundfiledesc + "</p>";

winContent += "<OBJECT width='300' height='42'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#CCCCCC'>"; 
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#CCCCCC'></EMBED>";
winContent += "</OBJECT>"; 

winContent += "<p style='font-family:Verdana,sans-serif;font-size:11px;line-height: 14px;font-weight: bold;text-align:center;'><a href='" + soundfilepath +"'>Download the Show</a><br><span style='font-size:9px;font-weight: normal;'>(Right-Click link to download)</span></p>";
winContent += "</body></html>"; 

PlayWin.document.write(winContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
}

///////////////////////////////////////////////////////////////////////////////
// This is for Show MP3 popup windows with a three line header               //
///////////////////////////////////////////////////////////////////////////////

var UniqueID = 314 // Make each link open in a new window 
var newWinOffset = 0 // Position of first pop-up

function PlayerOpen2(soundfiledesc,soundfilepath) { 
PlayWin = window.open('',UniqueID,'width=320,height=162,top=' + newWinOffset +',left=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,menubar=0,status=0,directories=0,personalbar=0');
PlayWin.focus(); 

var winContent = "<html><head><title>" + soundfiledesc + "</title></head><body bgcolor='#cccccc' link='#000000' vlink='#000000'>"; 
winContent += "<p style='font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;line-height: 13px;font-weight: bold;color: #FF3333;text-align:center;'>" + soundfiledesc + "</p>";

winContent += "<OBJECT width='300' height='42'>"; 
winContent += "<param name='SRC' value='" + soundfilepath + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#CCCCCC'>"; 
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#CCCCCC'></EMBED>";
winContent += "</OBJECT>"; 

winContent += "<p style='font-family:Verdana,sans-serif;font-size:11px;line-height: 14px;font-weight: bold;text-align:center;'><a href='" + soundfilepath +"'>Download the Show</a><br><span style='font-size:9px;font-weight: normal;'>(Right-Click link to download)</span></p>";
winContent += "</body></html>"; 

PlayWin.document.write(winContent); 
PlayWin.document.close(); // "Finalizes" new window 
UniqueID = UniqueID + 1 // newWinOffset = newWinOffset + 20 // subsequent pop-ups will be this many pixels lower 
}
