<!--

var FlashMode = 0;
var ShockMode = 0;

<!-- attempt to detect Shockwave version -->
if (navigator.mimeTypes && navigator.mimeTypes["application/x-director"] && navigator.mimeTypes["application/x-director"].enabledPlugin)
{
	if (navigator.plugins && navigator.plugins["Shockwave for Director"] && (versionIndex = navigator.plugins["Shockwave for Director"].description.indexOf(".")) != -1)
	{
		var versionString = navigator.plugins["Shockwave for Director"].description.substring(versionIndex - 2, versionIndex);
		versionIndex = parseInt(versionString);
		if (versionIndex > 9)
			ShockMode = 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('<script language="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('ShockMode = (IsObject(CreateObject("SWCtl.SWCtl"))) \n');
	document.write('</script\> \n');
}

<!-- attempt to detect Flash version -->
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1)
	{
		var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1, versionIndex);
		versionIndex = parseInt( versionString );
		if (versionIndex >= 6)
			FlashMode = 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('<script language="VBScript"\> \n');
	document.write('on error resume next \n');
	document.write('FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
	document.write('</script\> \n');
}

if (ShockMode)
{
	if (FlashMode)
	{
        	<!-- both SW9 and F6 are installed -->
        	<!-- document.write('<p>You have both Shockwave 8.5 and Flash 6. </p>'); -->
	}
	else
	{
		<!-- SW9 detected, but not F6 -->
		<!-- document.write('<p>You have Shockwave 8.5 but not Flash 6.</p>'); -->
		document.write('<p class="checkShockwave">You may not have everything you need to view certain sections of Learning Modules for an Electronics Curriculum. To address issues with your browser or media preferences please install the latest version of <a href="http://www.macromedia.com/go/getflashplayer/" target="_blank">Macromedia Flash Player</a>.</p>');
	}
}
else
{
	if (FlashMode)
	{
		<!-- F6 detected but not SW9 -->
		<!-- document.write('<p>You have Flash 6 but not Shockwave 8.5.</p>'); -->
		document.write('<p class="checkShockwave">You may not have everything you need to view certain sections of Learning Modules for an Electronics Curriculum. To address issues with your browser or media preferences please install the latest version of <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwave" target="_blank">Macromedia Shockwave Player</a>.</p>');
	}
	else
	{
		<!-- neither SW9 nor F6 are installed-->
		<!-- document.write('<p>You have neither Shockwave 8.5 nor Flash 6..</p>'); -->
		document.write('<p class="checkShockwave">You may not have everything you need to view certain sections of Learning Modules for an Electronics Curriculum. To address issues with your browser or media preferences please install the latest version of <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=Shockwave" target="_blank">Macromedia Shockwave Player</a> and <a href="http://www.macromedia.com/go/getflashplayer/" target="_blank">Macromedia Flash Player</a>.</p>');
	}	
}

//-->
