// $Revision: 14132 $

var audioPlayer = {
    
    params: {
      wmode: 'transparent', 
      allowScriptAccess: 'always'
    },
    
    place: function(id, flashVars)
    {
    	var host = commonUtils.getHost();
   		var path = "http://static." + host + "/flash/player/player-E42660366ACC6ABE3DD04964DF60851E.swf";

      try
      {
         swfobject.embedSWF( path, id, "616", "90", "9.0.0",
                   {}, flashVars, this.params, {} );
      }
      catch(e)
      {
      }
    },
    
    
    iPlayer: 0,
    addArray: new Array(),
    add: function(id, flashVars)
    {
      this.addArray[this.iPlayer] = new Array();
      this.addArray[this.iPlayer]['id'] = id;
      this.addArray[this.iPlayer]['flashVars'] = flashVars;
      this.iPlayer++;
    },
    
    placeAdded: function()
    {
      for(var i in this.addArray)
         this.place(this.addArray[i]['id'], this.addArray[i]['flashVars']);     
    }
};                                   
