var browser=navigator.appName;var platform=navigator.platform;var version=parseFloat(navigator.appVersion);var agt=navigator.userAgent;var isXP=(agt.indexOf("NT 5")!=-1);var isSafari=((agt.indexOf("5")!=-1)&&(agt.indexOf("Mac")!=-1)&&(agt.indexOf("OS X")!=-1)&&(agt.indexOf("Safari")!=-1));if(version<4){platform="Win32";}
if(browser=="Netscape"
&&version<4.05
&&platform!="MacPPC"
&&platform!="Mac68k"){document.write("<EMBED "
+"TYPE=\"application/x-java-applet\" "
+"NAME=\"Java Applet\" "
+"PLUGINSPAGE=\"../java/win_plugin.html\""
+"BORDER=\"5\" "
+"WIDTH=\""+AppWidth+"\" "
+"HEIGHT=\""+AppHeight+"\" "
+"CODE=\""+AppClass+"\" "
+OtherTags+" "
+EmbedStyleParams+">")}
else if(browser=="Netscape"
&&version>=4
&&version<6
&&(platform=="MacPPC"||platform=="Mac68k")&&!isSafari){var vmInstalled=navigator.mimeTypes["application/x-java-vm"]
if(vmInstalled){var appTag="EMBED "
+"TYPE=\"application/x-java-vm\" "
+"NAME=\"Java Applet\" "
+"PLUGINSPAGE=\"../java/plugin.html\""
+"BORDER=\"5\" "
+"WIDTH=\""+AppWidth+"\" "
+"HEIGHT=\""+AppHeight+"\" "
+"CODE=\""+AppClass+"\" "+OtherTags+" "
+EmbedStyleParams;document.write("<"+appTag+">");}
else{document.write("To correctly display this activity, <BR>you need "
+"to install some software.<br>");document.write("Click <A href=\"../java/plugin.html\">"
+"here</a> to learn how.<p>");}}
else{document.write("<APPLET CODE="+AppClass+" width="+AppWidth
+" height="+AppHeight+" "+OtherTags+">");document.write(""+Params);document.write("Java is disabled in your browser.  Please enable "
+"it to run this applet.")
document.write("</APPLET>")
if(browser=="Microsoft Internet Explorer"
&&version<5
&&(platform=="MacPPC"||platform=="Mac68k")){document.write("<P><BLOCKQUOTE><BLOCKQUOTE>If this applet "
+"will not run in your browser, "
+"please <a href=\"../java/ie4_mac.html\">"
+"click here</a> for "
+"assistance.</BLOCKQUOTE></BLOCKQUOTE>");}
if(isXP){document.write("<P><BLOCKQUOTE><BLOCKQUOTE>If this applet "
+"will not run in your browser, "
+"please <a href=\"../java/java_xp.html\">"
+"click here</a> for "
+"assistance.</BLOCKQUOTE></BLOCKQUOTE>");}
if(isSafari){document.write("<P><BLOCKQUOTE><BLOCKQUOTE>If this applet "
+"will not run in your browser, "
+"please <a href=\"../java/java_safari.html\">"
+"click here</a> for "
+"assistance.</BLOCKQUOTE></BLOCKQUOTE>");}}
