function WriteEmo(pSrc)
{
  if (pSrc.search(/swf/) == -1)
  {
    document.write('<IMG SRC="' + pSrc + '">');
  }
  else
  {
    var MM_contentVersion = 6;
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if ( plugin ) {
        var words = navigator.plugins["Shockwave Flash"].description.split(" ");
          for (var i = 0; i < words.length; ++i)
          {
        if (isNaN(parseInt(words[i])))
        continue;
        var MM_PluginVersion = words[i]; 
          }
      var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
    }
    else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
       && (navigator.appVersion.indexOf("Win") != -1)) 
    {
      MM_FlashCanPlay = false;
      for (var vVersion = 6; vVersion < 21; vVersion++)
      {
        try
        {
          var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
          MM_FlashCanPlay = true;
          break;
        }
        catch(e)
        {
        }
      }
    }
    if ( MM_FlashCanPlay ) {
      document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
      document.write('  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
      document.write(' ID="script" WIDTH="515" HEIGHT="215" ALIGN="">');
      document.write('<PARAM NAME=movie VALUE="' + pSrc + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
      document.write('<EMBED src="' + pSrc + '" quality=high bgcolor=#FFFFFF  ');
      document.write(' swLiveConnect=FALSE WIDTH="515" HEIGHT="215" NAME="script" ALIGN=""');
      document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer">');
      document.write('</EMBED>');
      document.write('</OBJECT>');
    } 
    else
    {
      document.write('<IMG SRC="/bilder/emo/hol/emo.jpg">');
    }
  }
}
