// JavaScript Document
// Pop-Up Embedder Script by David Battino, www.batmosphere.com; Object tag implementation by Mark Levitt, http://digitalmedia.oreilly.com
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>St Bride&rsquo;s: " + soundfiledesc + "</TITLE><style>A {font-family:Verdana,Arial,sans-serif;color: #ffffbb; text-decoration: none;font-size:7pt;font-weight:bold;}A:hover { font-family:Verdana,Arial,sans-serif;color: red;  text-decoration:underline;font-size:7pt;font-weight:bold;}</style></HEAD><BODY bgcolor='#FFEBCD' marginwidth='0' marginheight='0' topmargin='0' bottommargin='0' leftmargin='0' rightmargin='0'>";
winContent += "<table width='100%' height='100%' cellspacing='0' cellpadding='0'><tr><td valign='top'><table width='100%' cellspacing='0' cellpadding='2' style='background-color:#723c18'><tr><td  width='100%' align='left'><B style='font-family:Verdana,Arial,sans-serif;font-size:13px;font-weight: bold;color:#ffffbb;'>" + soundfiledesc + "</B></td></tr></table></td></tr>";

winContent += "<tr><td valign='middle' align='center'><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='#FFEBCD'>";
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#FFEBCD'></EMBED>";
winContent += "</OBJECT>";

// winContent += "<p style='font-size:12px;font-family:Verdana,sans-serif;text-align:center'><a href='"+soundfilepath+"' >Download this file</a><br><SPAN style='font-size:10px'>(right-click or Option-click)</SPAN></p></td></tr>";

winContent += "<tr><td valign='bottom'><table width='100%' cellspacing='0' cellpadding='2' style='background-color:#723c18'><tr><td><a href='http://www.stbrides.com/index.htm' target='_new'>HOME</a></td><td  align='right'><a href='javascript:window.close()'><!-- <img src='/catalog/images/close1.gif' width='50' height='14' border='0' alt=''> -->CLOSE</a></td></tr></table></td></tr></table>";
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.
}