var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var NS = false;

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin && navigator.plugins && navigator.plugins["Shockwave Flash"]) {
   NS = true;

} else {
   var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
   if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4)
   NS = true;
}

if (NS) {
    var tag = '<EMBED SRC="images/Oracle.swf" NAME="Board" '
    + 'WIDTH="600" HEIGHT="400" '
    + 'PLAY="true" LOOP="false" QUALITY="best" MENU="false" '
    + 'TYPE="application/x-shockwave-flash" '
    + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
    + '</EMBED>';

} else {
    var tag = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="600" HEIGHT="400" ID="Board" NAME="Flash"'
    + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0">'
    + '<PARAM NAME="src" VALUE="images/Oracle.swf">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="false">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
    + '</OBJECT>';
}

if (NS || isIE) {
   document.write (tag);   // embed the flash movie
} else {  // flash is too old or we can't detect the plugin
   document.write ('<a href="http://www.austere.org"><img src="images/Oracle.jpg" border="0"></a>');
}
