if (_ie == true) {
  applet_div.innerHTML =  '<APPLET code="com.siberlogic.kb.applet.KBApplet.class" width="100%" height="100%" archive="'+KBAPPLETJAR+'" MAYSCRIPT="TRUE">\n'
                +'  <PARAM name="toc_file_name" value="toc.hhc">\n'
                +'  <PARAM name="index_file_name" value="index.hhk">\n'
                +'  <PARAM name="target_frame" value="contents">\n'
                +'  <PARAM name="encoding" value="UTF8">\n'
                +'  <PARAM name="active_pane" value="' + _mode + '">\n'
                +'  <PARAM name="default_page" value="dummy_content.html">\n'
                +'</APPLET>\n';

}
else if (_ns == true && _ns6 == false) {
  document.writeln('<embed ' +
    'type="application/x-java-applet;version=1.3" \
    CODE = "com.siberlogic.kb.applet.KBApplet.class" \
    ARCHIVE = "'+KBAPPLETJAR+'" \
    WIDTH = "100%" \
    HEIGHT = "100%" \
    target_frame ="contents" \
    index_file_name ="index.hhk" \
    encoding = "UTF8" \
    default_page = "dummy_content.html" \
    toc_file_name ="toc.hhc" ' +
    'active_pane="' + _mode + '" ' +
    'scriptable=false ' +
    'MAYSCRIPT=TRUE ' +
    'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><xmp>');
}
else {
  document.write('<APPLET code="com.siberlogic.kb.applet.KBApplet.class" width="100%" height="100%" archive="'+KBAPPLETJAR+'">\n'
    +'  <PARAM name="target_frame" value="contents">\n'
    +'  <PARAM name="toc_file_name" value="toc.hhc">\n'
    +'  <PARAM name="index_file_name" value="index.hhk">\n'
    +'  <PARAM name="encoding" value="UTF8">\n'
    +'  <PARAM name="active_pane" value="' + _mode + '">\n'
    +'  <PARAM name="default_page" value="dummy_content.html">\n'
    +'</APPLET>\n');  
}
