//Copyright 2002 - Bobby Williams - www.joyandbobby.com

function writeAppletCode(width, height, code, codebase, archive)
{
if (navigator.appName == "Microsoft Internet Explorer")
{
	document.write('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"');
	document.write(' width="' + width + '" height="' + height + '" align="baseline"');
	document.write(' codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">');
	document.write('<PARAM NAME="code" VALUE="' + code + '">');
	document.write('<PARAM NAME="codebase" VALUE="' + codebase + '">');
	document.write('<PARAM NAME="archive" VALUE="' + archive + '">');
	document.write('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">');
	document.write('</OBJECT>');
}	
else if (navigator.appName == "Netscape")
{
	document.write('<EMBED TYPE="application/x-java-applet;version=1.2.2"'); 
    	document.write(' WIDTH="' + width + '" height="' + height + '"');
	document.write(' ARCHIVE="' + archive + '" CODE="' + code + '" CODEBASE="' + codebase + '"');
    	document.write(' PLUGINSPAGE="http://java.sun.com/products/plugin/1.2/plugin-install.html">');
  	document.write(' <NOEMBED> No Java 2 support for APPLET!!</NOEMBED>'); 
	document.write(' </EMBED>');
}
else if (navigator.javaEnabled())
{
	document.write('<APPLET CODEBASE="' + codebase + '" CODE="' + code + '"');
  	document.write('ARCHIVE="' + archive + '" WIDTH="' + width + '" HEIGHT="' + height + '">');
	document.write('</APPLET>');
}
}