// 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=350,height=340,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>Bolshoy Sekret</TITLE></HEAD><BODY><table width=100% cellpadding=10 border=3 bordercolor=#E7F3BD><tr><td>";
winContent += "<B style='font-size:18px;font-family:Verdana,sans-serif;line-height:1.5;color:#0F4086'>" + soundfiledesc + "</B><br><br><font size=2 color=red>&#1055;&#1086;&#1076;&#1086;&#1078;&#1076;&#1080;&#1090;&#1077;, &#1087;&#1086;&#1078;&#1072;&#1083;&#1091;&#1081;&#1089;&#1090;&#1072;, <br> &#1087;&#1077;&#1089;&#1085;&#1103; &#1079;&#1072;&#1075;&#1088;&#1091;&#1078;&#1072;&#1077;&#1090;&#1089;&#1103; 1-2 &#1084;&#1080;&#1085;&#1091;&#1090;&#1099;...</font><br><br>";

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='#E7F3BD'>";
winContent += "<EMBED SRC='" + soundfilepath + "' AUTOSTART='TRUE' LOOP='FALSE' WIDTH='300' HEIGHT='42' CONTROLLER='TRUE' BGCOLOR='#E7F3BD'></EMBED>";
winContent += "</OBJECT>";

winContent += "<p style='font-size:12px;font-family:Verdana,sans-serif;text-align:center'><a href='"+soundfilepath+"'>&#1057;&#1082;&#1072;&#1095;&#1072;&#1081;&#1090;&#1077; &#1092;&#1072;&#1081;&#1083;, <br> &#1085;&#1072;&#1078;&#1072;&#1074; &#1085;&#1072; &#1087;&#1088;&#1072;&#1074;&#1091;&#1102; &#1082;&#1083;&#1072;&#1074;&#1080;&#1096;&#1091; &#1084;&#1099;&#1096;&#1080;</p>";

winContent += "<FORM><DIV align='center'><INPUT type='button' style='background-color:#f7fee7;color:#0F4086;font-weight:bold' value='&#1047;&#1072;&#1082;&#1088;&#1099;&#1090;&#1100; &#1086;&#1082;&#1085;&#1086;' onClick='javascript:window.close();'></DIV></FORM>";
winContent += "</td></tr></table></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.
}