// 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='/products/3d/cx4-120'"+
     "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>"+
     "<a target='48666069901US' href='http://syndication.intel.com/DistributeModule.aspx?ppc_cid=IIP_48666069901&cc=US&contentType=0' onclick='JavaScript:win=window.open(\'http://syndication.intel.com/DistributeModule.aspx?ppc_cid=IIP_48666069901&cc=US&contentType=0\',\'48666069901US\',\'resizable=1,scrollbars=0,width=992,height=248\');win.focus();'>"+
     "<img src='/products/3d/cx4-120/xeon08PE_rgb_90.gif' style='vertical-align: top; margin-left: 15px' ></a>");
}
