// It is very important that you leave this function in a separate .js file.
// Putting this function into the HTML page will lead to problems in the
// "Eolas Patched" version of Internet Explorer, to be released in early '04.
// Note: To put the .JAR file in a different place than the HTML, change the line:
//   "codebase='.'"+
// to instead be (for example):
//   "codebase='/downloads/us/products/3d_demo_zips'"+
// No other lines need to be changed here, or on the HTML page which includes
// this file -- all content will be loaded relative to that code base because of
// the statement Meson.setCurrentDataSource(Meson.documentBase=Meson.codeBase), below.
function kaonApp(w,h,s)
{
  document.write
    ("<applet code=com.kaon.meson.MesonApplet archive='mesonApplet.jar,rasterGluon.jar,sceneGluon.jar' width="+w+" height="+h+" alt='Please Enable Java' "+
     "codebase='/cdc_content_elements/flash/nextgen/webversion/3800/kaon/3845'"+
     "MAYSCRIPT><param name='meson' value='"+
     'Applet.Primary.fill="fff";'+
     'Meson.setCurrentDataSource(Meson.documentBase=Meson.codeBase);'+
     'Meson.gluon("com.kaon.meson.raster.RasterGluon");'+
     'Meson.gluon("com.kaon.meson.scene.SceneGluon");'+
     'Image.Loading.anchor=_C;'+
     'Image.Loading.x={Display.Primary.width/2};'+
     'Image.Loading.y={Display.Primary.height/2};'+
     'Image.Loading.text="%Center{Powered by Kaon\\nwww.kaon.com}";'+
     s+
     'Data.Program.url="ui.jar";'+
     "'>Java is currently not available on your browser. Please enable Java or upgrade to the latest version of Netscape Navigator or Microsoft Internet Explorer to view the model.</applet>");
}
