if (xdetect_easyDetect('flash')) {
    // write out parts of the page for including the Flash animation:
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
    document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"');
    document.write('WIDTH=585 HEIGHT=181>');
    document.write('<PARAM NAME=movie VALUE="flash/base3.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="flash/base3.swf" quality=high bgcolor=#FFFFFF  WIDTH=585 HEIGHT=181 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
    document.write('</object>');
    // (suggest that the Flash animation loaded here be in an early-version format that performs further version checks)
 //} else if (xdetect_easyDetect('quicktime')) {
    // write out parts of the page for including the Flash animation using Quicktime:
//    document.write('<EMBED SRC="intro2.swf" WIDTH="600" HEIGHT="350" TYPE="video/quicktime" CONTROLLER="false" AUTOPLAY="true" QUALITY="best">');
// } else if (xdetect_easyDetect('director')) {
    // write out parts of the page for including the Flash animation using Shockwave:
    // document.write('<EMBED SRC="intro2.swf" WIDTH="600" HEIGHT="350" TYPE="application/x-director" AUTOPLAY="true" QUALITY="best">');
    // (suggest that the Flash animation loaded here be in an early-version format that performs further version checks)
} else {
    // HTML-only version
    document.write('<IMG SRC="media/no-flash.jpg" WIDTH="585" HEIGHT="181" BORDER="0" ALT="YOU NEED THE FLASH PLUG-IN">');
}