

// user definable values
var width          = 415;
var height         = 92;
var swf            = 'http://images.mcafee.com/common/media/swf/vrs/vrs_415X92-004uk.swf';
var no_flash_image = 'http://images.mcafee.com/common/media/swf/vrs/no_flash_vrs_415X92.jpg';
var flashVersion   = 7;

// DO NOT MODIFY ANY JAVASCRIPT BELOW THIS LINE

// check for the plugin
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

// if the plugin exists parse for the version number
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 piv=words[i];
    }
    // if the plugin major number is (flashVersion) 6 or greater we 'can' proceed
    var can = piv >= flashVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
    document.write('<scr' + 'ipt language=vbscript\> \n');
    document.write('on error resume next \n');
    document.write('can = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & ' + flashVersion + ')))\n');
    document.write('</scr' + 'ipt\> \n');
}

// if the plugin major number is (flashVersion) 6 or greater we write out and object/embed pair
if (can) {
    document.write('<object style="margin-top:10px"');
    document.write('    classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"');
    document.write('    id="swf"');
    document.write('    width="' + width + '"');
    document.write('    height="' + height + '"');
    document.write('    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">');
    document.write('    <param name="movie" value="' + swf + '">');
	document.write('    <param name="allowScriptAccess" value="always">');
    document.write('    <param name="quality" value="autohigh">');
    document.write('    <param name="loop" value="true">');
    document.write('    <embed');
    document.write('        src="'+ swf  + '"');
    document.write('        quality="high"');
    document.write('        bgcolor="#FFFFFF"');
    document.write('        width="'+ width + '"');
    document.write('        height="'+ height + '"');
    document.write('        type="application/x-shockwave-flash"');
    document.write('        pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
    document.write('        </embed>');
    document.write('</object>');
}
else {
    // if the plugin major number is less than (flashVersion) 6 we show the alternate image
    document.write('<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW"><img src="' + no_flash_image + '" width="' + width + '" height="' + height + '" border="0"></a>');
}
