///////////////////////////////////////////////////////////////////////////////
// THIS IS FOR THE CURRENT SHOW                                              //
///////////////////////////////////////////////////////////////////////////////

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

function currentShow() { 
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>" + "The Weekend Workout" + "</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: #663399; text-align:center;'>" + "Adriana Martin<br>May 2, 2010" + "</p>";

winContent += "<OBJECT width='300' height='42'>"; 
winContent += "<param name='SRC' value='" + "http://www.theweekendworkout.com/shows/WEEKEND_WORKOUT_10_0502.mp3" + "'>";
winContent += "<param name='AUTOPLAY' VALUE='true'>"; 
winContent += "<param name='CONTROLLER' VALUE='true'>";
winContent += "<param name='BGCOLOR' VALUE='#CCCCCC'>"; 
winContent += "<EMBED SRC='" + "http://www.theweekendworkout.com/shows/WEEKEND_WORKOUT_10_0502.mp3" + "' 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='" + "http://www.theweekendworkout.com/shows/WEEKEND_WORKOUT_10_0502.mp3" +"'>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 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: #663399; 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: #663399; 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 showing and hiding hidden layers                              //
///////////////////////////////////////////////////////////////////////////////

function showHide(shID) {
  if (document.getElementById(shID)) {
    if (document.getElementById(shID+'-show').style.display != 'none') {
      document.getElementById(shID+'-show').style.display = 'none';
      document.getElementById(shID).style.display = 'block';
    }
    else {
      document.getElementById(shID+'-show').style.display = 'inline';
      document.getElementById(shID).style.display = 'none';
    }
  }
}

