// --------------------------- SMALL SOUND ---------------------------

//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
      alert("no flash object found");
  }
  else
  {
    return document.getElementById(flashid);
  }
}

//ADL
function adlsoundready()
{
  if (mpsmallsoundurl!=undefined)
    adlsmallsoundload(mpsmallsoundurl,mpsmallsoundplay);
}

//ADL
function adlsmallsoundload(soundurl,soundstart)
{
  var flashobj=get_flashobject("adlsmallsound");
  if (flashobj!=undefined)
    flashobj.adlload(soundurl,soundstart);
}

//ADL
function adlsmallsoundplay()
{
  var flashobj=get_flashobject("adlsmallsound");
  if (flashobj!=undefined)
    flashobj.adlplay();
}

//ADL
function adlsmallsoundstop()
{
  var flashobj=get_flashobject("adlsmallsound");
  if (flashobj!=undefined)
    flashobj.adlstop();
}


