
// mootools must have been included

var mysndbridgelist=new Array();

//ADL
function get_flashobject(flashid)
{
  if (window.document[flashid])
  {
    return window.document[flashid];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[flashid])
      return document.embeds[flashid];
  }
  else
  {
    return document.getElementById(flashid);
  }
}

//ADL
function playstarted(titleid)
{
  //alert("playstarted"+titleid);
  //alert("count="+mysndbridgelist.length);
  var idx;
  for (idx=0;idx<mysndbridgelist.length;idx++)
  {
    if (mysndbridgelist[idx]!=titleid)
    {
      var flashobj=get_flashobject("titleextract"+mysndbridgelist[idx]);
      if (flashobj!=undefined)
        flashobj.pleasestop();
    }
  }
}

