var UniqueID = 314 // Make each link open in a new window.
var newWinOffset = 100 // Position of first pop-up
function PlayerOpen(soundfiledesc,soundfilepath) {

PlayWin = window.open('',1,'width=320,height=190,top=' + 100+',left=100,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='#E8F5FD'>";
winContent += "<B style='font-size:14px;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='#E8F5FD'>";
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='TRUE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#FF9900'></EMBED>";
winContent += "</OBJECT>";

winContent += "<p style='font-size:12px;font-family:Verdana,sans-serif;text-align:center'><a href='"+soundfilepath+"'>&#1057;&#1080;&#1084;&#1085;&#1080; &#1112;&#1072; &#1087;&#1077;&#1089;&#1085;&#1072;&#1090;&#1072;</a> <SPAN style='font-size:10px'>(&#1044;&#1077;&#1089;&#1077;&#1085; &#1082;&#1083;&#1080;&#1082; &#1079;&#1072; &#1086;&#1087;&#1094;&#1080;&#1080;)</SPAN></p>";

winContent += "<FORM><DIV align='center'><INPUT type='button' value='&#1047;&#1072;&#1090;&#1074;&#1086;&#1088;&#1080; &#1075;&#1086; &#1087;&#1088;&#1086;&#1079;&#1086;&#1088;&#1077;&#1094;&#1086;&#1090;' onClick='javascript:window.close();'></DIV></FORM>";
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.
}
