var UniqueID = 100 // Make each link open in a new window
var newWinOffset = 300 // Position of first pop-up

function PlayerOpen(soundfiledesc,soundfilepath) {
PlayWin = window.open('',UniqueID,'width=320,height=160,top=' + newWinOffset +',left=500,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><style>.form-button-alt{background-color:#618499; border:1px solid #406A83;color:#FFFFFF; cursor:pointer; font-family:arial,sans-serif !important; font-size:12px !important; font-size-adjust:none !important; font-stretch:normal !important; font-style:normal !important; font-variant:normal !important; font-weight:bold !important; line-height:normal !important; overflow:visible; padding:1px 8px; text-align:center; vertical-align:middle; width:auto;}</style></HEAD><BODY bgcolor='#FAF7EE'>";
winContent += "<B style='font-size:15px;color:#E26703;font-family:Verdana,sans-serif;line-height:1.5'>" + soundfiledesc + "</B>";

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='#faf7ee'>";
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#faf7ee'></EMBED>";
winContent += "</OBJECT>";

winContent += "<DIV align='center' style='margin-top: 3px;'><button onclick='javascript:window.close();' class='form-button-alt' type='button'><span>Close</span></button></DIV>";
winContent += "</BODY></HTML>";

PlayWin.document.write(winContent);
PlayWin.document.close(); // "Finalizes" new window
UniqueID = UniqueID + 0 // set to "1" to make each link open in new window
newWinOffset = newWinOffset + 0 // subsequent pop-ups will be this many pixels lower
}