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)) {
  document.writeln('<scr' + 'ipt language="vbscript">'); //FS hide this from IE4.5 Mac by splitting the tag
  document.writeln('on error resume next');
  document.writeln('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))');
  document.writeln('</scr' + 'ipt>');
}

function show_flash(flash_src,flash_bitmap_src,flash_width,flash_height,flash_background,flash_links,flash_map) {
  if (MM_FlashCanPlay) {
    var flash_get = "";
    if (flash_links && typeof(flash_links=="object")) {
      flash_get = "?";
      for (i in flash_links) {
        flash_get += i + "=stranka-" + flash_links[i] + ".htm&amp;";
      }
    }
    document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
    document.writeln(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
    document.writeln(' id="intro" width="' + flash_width + '" height="' + flash_height + '" align="">');
    document.writeln(' <param name="movie" value="' + flash_src + flash_get + '" />');
    document.writeln(' <param name="quality" value="high" />');
    document.writeln(' <param name="bgcolor" value="' + flash_background + '" />  ');
    document.writeln(' <embed src="' + flash_src + flash_get + '" quality="high" "bgcolor=' + flash_background + '"');
    document.writeln(' swliveconnect="false" width="' + flash_width + '" height="' + flash_height + '" name="intro" align=""');
    document.writeln(' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
    document.writeln(' </embed>');
    document.writeln('</object>');
  } else {
    document.writeln('<img src="' + flash_bitmap_src + '" width="' + flash_width + '" height="' + flash_height + '" border="0" alt="Flash" usemap="' + flash_map + '" />');
  }
}

//       <script type="text/javascript">/* <![CDATA[ */ show_flash('flash.swf','600','450','#ffffff'); /* ]]> */</script>
//       <noscript><img src="flash.jpg" alt="NoScript" height="450" width="600" /></noscript>
