var browser=navigator.appName
var platform=navigator.platform
var version=parseInt(navigator.appVersion)
var ParamLen=ParamTags.length
var Nav4=(browser=="Netscape"&&version>=4)
var IE4=(browser=="Microsoft Internet Explorer"&&version>=4)
if((Nav4||IE4)&&!navigator.javaEnabled())
document.writeln("</CENTER>Java is disabled in your browser.  Please "+
"re-enable it in your browser's options.<P><CENTER>");if(Nav4&&(platform=="MacPPC"||platform=="Mac68k")&&version<5)
{var vmInstalled=navigator.mimeTypes["application/x-java-vm"]
if(vmInstalled)
{document.writeln("<EMBED "+
"TYPE=\"application/x-java-vm\" "+
"NAME=\"Java Applet\" "+
"PLUGINSPAGE=\"../plugin.html\" "+
"BORDER=\"5\" "+
"WIDTH=\""+AppWidth+"\" "+
"HEIGHT=\""+AppHeight+"\" "+
"CODEBASE='.' CODE=\""+AppClass+"\" "+OtherTags)
for(var i=0;i<ParamLen;i+=2){document.writeln(" "+ParamTags[i]+"='"+ParamTags[i+1]+"'");}
document.writeln(">");}
else
{document.writeln("To correctly display this activity, <BR>you need to install some software.<p>");document.writeln("Click <A href=\"plugin.html\">here</a> to learn how.");if(Version1Dir!="")
document.writeln("Or click <a href=\"../../../interactivate/activities/"+Version1Dir+"\">here</a> "+
"to use an older version of the activity.<p>");}}
else if(Nav4||IE4)
{document.writeln("<APPLET CODEBASE='.' CODE='"+AppClass+"' width="+AppWidth+" height="+
AppHeight+" "+OtherTags+">");for(var i=0;i<ParamLen;i+=2){document.writeln("<PARAM NAME="+ParamTags[i]+" VALUE=\'"+ParamTags[i+1]+"\'>");}
document.writeln("</APPLET>");if(IE4&&version<5&&(platform=="MacPPC"||platform=="Mac68k"))
document.writeln("<BR><BR><P><BLOCKQUOTE><BLOCKQUOTE>If you experience difficulties running "+
"this activity in your browser, see the Illuminations Website for advice.");}
else
{document.writeln("You need to have Netscape 4.0 or higher or Internet Explorer 4.0 or higher ")}
