l=location.href;
fileName=l.substring(l.lastIndexOf('/')+1,l.lastIndexOf('.html'));
d=document;
needed='application/x-shockwave-flash';
addon=(navigator.mimeTypes && navigator.mimeTypes[needed]) ? navigator.mimeTypes[needed].enabledPlugin : 0;
wh=' width=800 height=617 ';
ourVer=5;
allIsOk=false;

if(addon)
{ words = navigator.plugins["Shockwave Flash"].description.split(" ");
  for(i=0;i<words.length;++i)
  { if(isNaN(parseInt(words[i]))) { continue; }
    pluginVersion = words[i]; 
  }
  allIsOk = pluginVersion >= ourVer;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1))
{ d.write('<S'+'CRIPT LANGUAGE=VBScript\> \non error resume next \nallIsOk = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ourVer)))\n</S'+'CRIPT\> \n'); }

if (!allIsOk) { d.write("<center><img usemap=#bounce border=0'+wh+' src=images/getflash.gif></center>"); }
else { d.write('<table align=center height=100% cellpadding=0 cellspacing=0 border=0>'+
'<tr><td align=center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"'+
wh+'id=myMovieName><pArAm naMe=movie VALUE="'+fileName+'_controller.swf?csConfigFile='+
fileName+'_config.xml"><param name=quality value=high>'+
'<PaRaM value="csConfigFile='+fileName+'_config.xml" nAmE=FlashVars>'+
'<param value=white name=bgcolor>'+
'<eMbED sRc="'+fileName+'_controller.swf?csConfigFile='+fileName+'_config.xml" FlashVars="csConfigFile='+
fileName+'_config.xml" quality=high bgcolor=white swLiveConnect=FALSE'+
wh+'name=bounce pluginsPage="http://www.macromedia.com/go/getflashplayer" TypE="'+
needed+'"></embed></object></td></tr></table>'); }
