
var MM_contentVersion = 6;
var MM_FlashCanPlay = false;
var MM_flashLocation = 'http://i.cnn.net/money/news/specials/bestcars/top.swf';

var plugin = ( navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : null;

if ( plugin ) {
	var MM_PluginVersion = 0;
	var words = navigator.plugins["Shockwave Flash"].description.split( " " );
	for ( var i = 0; i < words.length; ++i ) {
		if ( isNaN( parseInt( words[i] ) ) )
			continue;
		MM_PluginVersion = words[i];
	}
	MM_FlashCanPlay = ( MM_PluginVersion >= MM_contentVersion );
} else if ( navigator.userAgent && ( navigator.userAgent.indexOf("MSIE") != -1 ) && ( navigator.appVersion.indexOf("Win") != -1 ) ) {
	document.writeln( '<script language="VBscript">' );
	document.writeln( 'on error resume next');
	document.writeln( '\'do a one-time test for a version of VBScript that can handle this code' );
	document.writeln( 'If ScriptEngineMajorVersion >= 2 then' );
	document.writeln( '  MM_FlashCanPlay = IsObject( CreateObject( "ShockwaveFlash.ShockwaveFlash." & MM_contentVersion ) )' );
	document.writeln( 'End If' );
	document.writeln( '<\/scr' + 'ipt>' );
}

if ( MM_FlashCanPlay && ( (navigator.appVersion.indexOf('Win') > 0) || (navigator.appVersion.indexOf('Mac') > 0) ) ) {
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" WIDTH="440" HEIGHT="172"><param name="wmode" value="transparent"><PARAM NAME="movie" VALUE="'+MM_flashLocation+'"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><EMBED src="'+MM_flashLocation+'" quality="high" wmode="transparent" bgcolor="#FFFFFF" WIDTH="440" HEIGHT="172" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
} else {
	document.write('<a href="javascript:openWindow(/news/specials/best_car_values/popup/frameset.10.exclude.html,728x600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=728,height=600)"><img src="http://i.cnn.net/money/images/specials/bestcars/no_flash.jpg" width="440" height="172" border="0" alt="Best value cars"></a>');
}
