//This script detects the following:
//Flash
//Windows Media Player
//Java
//Shockwave
//RealPlayer
//QuickTime
//Acrobat Reader
//SVG Viewer


var agt=navigator.userAgent.toLowerCase();
var ie  = (agt.indexOf("msie") != -1);
var ns  = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);

if (ie && win) {	pluginlist =  detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash"); }
if (ns || !win) {
		nse = ""; for (var i=0;i<navigator.mimeTypes.length;i++) nse += navigator.mimeTypes[i].type.toLowerCase();
		pluginlist = detectNS("application/x-shockwave-flash","Shockwave Flash");
}

function detectIE(ClassID,name) { result = false; document.writeln('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name+','; else return ''; }
function detectNS(ClassID,name) { n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n; }

pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);

//SAMPLE USAGE- detect "Flash"
if (pluginlist.indexOf("Flash")!=-1){
document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=770 height=372><param name=movie value=swf/holder_mc_28nov.swf><param name=quality value=high><embed src=swf/holder_mc_28nov.swf quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=770 height=372></embed></object>")
}
else
document.write("<table width=770 border=0 cellspacing=0 cellpadding=0><tr><td colspan=2><img src=images/y1.jpg width=770 height=31></td></tr><tr><td width=222><a href=/awards06/eng/winners/index.html><img src=images/highlights.jpg width=222 height=112 border=0></a></td><td width=548><img src=images/y2.jpg width=548 height=112></td></tr><tr><td colspan=2><img src=images/y3.jpg width=770 height=100></td></tr><tr><td colspan=2><table width=770 border=0 cellspacing=0 cellpadding=0><tr><td width=40><img src=images/y4.jpg width=40 height=98></td><td width=134><table width=134  border=0 cellspacing=0 cellpadding=0><tr><td><img src=images/y5.jpg width=134 height=8></td></tr><tr><td><a href=/awards06/eng/index.html><img src=images/awards.jpg width=134 height=74 border=0></a></td></tr><tr><td><img src=images/y6.jpg width=134 height=16></td></tr></table></td><td width=24><img src=images/y7.jpg width=24 height=98></td><td width=134><table width=134  border=0 cellspacing=0 cellpadding=0><tr><td><img src=images/y8.jpg width=134 height=24></td></tr><tr><td><a href=/academy/index.html><img src=images/academy.jpg width=134 height=74 border=0></a></td></tr></table></td><td width=23><img src=images/y9.jpg width=23 height=98></td><td width=134><table width=134  border=0 cellspacing=0 cellpadding=0><tr><td><img src=images/y10.jpg width=134 height=8></td></tr><tr><td><a href=/insider/index.html><img src=images/insider.jpg width=134 height=74 border=0></a></td></tr><tr><td><img src=images/y11.jpg width=134 height=16></td></tr></table></td><td width=27><img src=images/y12.jpg width=27 height=98></td><td width=139><table width=157  border=0 cellspacing=0 cellpadding=0><tr><td><a href=/tools/index.html><img src=images/tools.jpg width=157 height=74 border=0></a></td></tr><tr><td><img src=images/y13.jpg width=157 height=24></td></tr></table></td><td width=115><img src=images/y14.jpg width=97 height=98></td></tr></table></td></tr><tr><td colspan=2><img src=images/y15.jpg width=770 height=31></td></tr></table>")