var g_plugin = 0;
var browserType = 0;  // Not IE 

if(typeof(min_flash_ver) == "undefined")
{
	// CC.com requires at minimum Flash 6 or better; though I've learned these
	// requirements aren't consistent across the site.
	min_flash_ver = 6;
}

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] &&    
    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {

	var version_check = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); 
	var flash_ver = parseInt(version_check.description.substring(version_check.description.indexOf(".")-1))
	if (flash_ver == 0)
	{
		flash_ver = 10.5;
	}

	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && flash_ver > 5 )
		g_plugin = 1;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
	&& (navigator.userAgent.indexOf("Windows 95")>=0 
	|| navigator.userAgent.indexOf("Windows 98")>=0 
	|| navigator.userAgent.indexOf("Windows NT")>=0)) {
				
		document.write('<SC' + 'RIPT LANGUAGE=VBScript> \n');
		document.write('on error resume next \n');
		document.write('if ( g_plugin <= 0 ) then g_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');

		document.write('</SCRI');
		document.write('PT> \n');
		
		browserType = 1;  // IE
}

function writeObj(html)
{
	document.write(html);
}