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

if (document.images) {
 
// These are for other button rollovers.
  listenOn = new Image();
  listenOn.src = "/PNS/images/btnlisten_over.gif";
  listenOff = new Image();
  listenOff.src = "/PNS/images/btnlisten.gif";
  showpicsOn = new Image();
  showpicsOn.src = "/PNS/images/but_photos_over.gif";
  showpicsOff = new Image();
  showpicsOff.src = "/PNS/images/but_photos.gif";
  moreinfo1On = new Image();
  moreinfo1On.src = "/PNS/images/but_more_info_over.gif";
  moreinfo1Off = new Image();
  moreinfo1Off.src = "/PNS/images/but_more_info.gif";
  moreinfo2On = new Image();
  moreinfo2On.src = "/PNS/images/but_more_info_over.gif";
  moreinfo2Off = new Image();
  moreinfo2Off.src = "/PNS/images/but_more_info.gif";
  email1On = new Image();
  email1On.src = "/PNS/images/but_email_over.gif";
  email1Off = new Image();
  email1Off.src = "/PNS/images/but_email.gif";
  email2On = new Image();
  email2On.src = "/PNS/images/but_email_over.gif";
  email2Off = new Image();
  email2Off.src = "/PNS/images/but_email.gif";
  realhomeOn = new Image();
  realhomeOn.src = "/PNS/images/ad_realsolutions_over.gif";
  realhomeOff = new Image();
  realhomeOff.src = "/PNS/images/ad_realsolutions.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('http://www.performancenutritionshow.com/showpics/06_1108_staci_wilson.html','showpics','width=534,height=540,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 
}

