  var currentAudioPlayerId = 0;

  function setPlayedId(id) {
    if(currentAudioPlayerId > 0) {
      var player_id = "audio_player_"+currentAudioPlayerId;
      var currentPlayer = thisMovie(player_id);
      currentPlayer.stopPlaying();
    }
    currentAudioPlayerId = id;

  }


  var _w_m_x_uInfoBrowser = 'unknown';
  var _w_m_x_uInfoBrowserVer = 'unknown';
  var _w_m_x_uInfoOS = 'unknown';


  function thisMovie(movieName)
    {
      _W_M_X_uInfoGetBrowser();

      if (_w_m_x_uInfoBrowser == "MSIE" || _w_m_x_uInfoBrowser == "MyIE") {
          return window[movieName]
      }
      else {
          movieName = 'embed_'+movieName;
          return document[movieName]
      }
    }

  function _W_M_X_uInfoGetBrowser()
    {
      _w_m_x_uInfoBrowser = 'unknown';
      _w_m_x_uInfoBrowserVer = 'unknown';
      _w_m_x_uInfoOS = 'unknown';

      var _w_m_x_uInfoBrowserArr = Array('Safari', 'Konqueror', 'Firefox', 'Opera', 'Avant Browser', 'Maxthon', 'MyIE', 'MSIE', 'Gecko');
      var _w_m_x_uInfoOSArr = Array('Symbian', 'Mac OS', 'Linux', 'Unix', 'Windows');

      var _w_m_x_uInfoBrowserString =

      navigator.userAgent.toLowerCase();
      for(i=0; i<_w_m_x_uInfoBrowserArr.length; i++)
      {
        var _w_m_x_uInfoStrPosition = _w_m_x_uInfoBrowserString.indexOf(_w_m_x_uInfoBrowserArr[i].toLowerCase());
        if(_w_m_x_uInfoStrPosition == -1) continue;
        _w_m_x_uInfoBrowser = _w_m_x_uInfoBrowserArr[i];
        var _w_m_x_BrowserRegExp = new
          RegExp('('+_w_m_x_uInfoBrowserArr[i]+').(\\d{0,9}\\.{0,1}\\d{0,9}\\.{0,1}\\d{0,9}\\.{0,1}\\d{0,9})', 'i');
        var _w_m_x_BrowserRegExpResult = _w_m_x_BrowserRegExp.exec(_w_m_x_uInfoBrowserString);
        if(_w_m_x_BrowserRegExpResult && _w_m_x_BrowserRegExpResult[2].length > 0)
          _w_m_x_uInfoBrowserVer = _w_m_x_BrowserRegExpResult[2];
        break;
      }
      for(i=0; i<_w_m_x_uInfoOSArr.length; i++)
      {
        var
          _w_m_x_uInfoStrPosition = _w_m_x_uInfoBrowserString.indexOf(_w_m_x_uInfoOSArr[i].toLowerCase());
          if(_w_m_x_uInfoStrPosition == -1) continue;
          _w_m_x_uInfoOS = _w_m_x_uInfoOSArr[i];
        break;
      }
    }


  function getPlayer(id, name)
    {
      var str_obj = '';
          str_obj += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,64,0' id='audio_player_" + id + "' name='audio_player_" + id + "' width='204' height='20' align='middle'>";
          str_obj += "<param name='allowScriptAccess' value='always' />";
          str_obj += "<param name='bgcolor' value='#FFFFFF' />";
          str_obj += "<param name='movie' value='app/flypt.swf' />";
          str_obj += "<param name='wmode' value='opaque' />";
          str_obj += "<param name='quality' value='high' />";
          str_obj += "<param name='FlashVars' value='id=" + id + "&name=" + name + "' />";
          str_obj += "<embed src='app/flypt.swf' FlashVars='id=" + id + "&name=" + name + "' wmode='opaque' quality='high' allowFullScreen='true' width='204' height='20' id='audio_player_" + id + "' name='embed_audio_player_" + id + "' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
          str_obj += "</object>";
      document.write(str_obj);
      return;
    }