home *** CD-ROM | disk | FTP | other *** search
/ ftp.rsa.com / 2014.05.ftp.rsa.com.tar / ftp.rsa.com / pub / agents / RSASecurIDTokenAuto412x64.msi / Data1.cab / _14BDF27FFD7901D70A40658FBDA4874F < prev    next >
Text File  |  2014-03-12  |  9KB  |  362 lines

  1. <html>
  2. <head>
  3. <title>Navigation Pane</title>
  4.  
  5. <meta name="generator" content="Adobe RoboHelp - www.adobe.com">
  6. <meta name="description" content="WebHelp 5.50">
  7. <script language="javascript" src="whver.js"></script>
  8. <script language="javascript1.2" src="whmsg.js"></script>
  9. <script language="javascript1.2" src="whproxy.js"></script>
  10. <script language="javascript1.2" src="whutils.js"></script>
  11. <script language="javascript1.2">
  12. <!--
  13. var gsInitPane="toc";
  14. var gsCurrentPane="";
  15. var gbLoading = "unknown";
  16. var gbTryTime = 0;
  17. var gbMaxTryTime = 6;
  18. var gbPassPhase0 = 0;
  19. var gbretried = 0;
  20. var gbmaxretry = 3;
  21. var gbretrytime = new Array();
  22.  
  23. var origWidth = 0;
  24. var origHeight = 0;
  25.  
  26. gbretrytime[0]= 5000;
  27. gbretrytime[1]= 30000;
  28. gbretrytime[2]= 60000;
  29.  
  30. function addPane(sName, sFile)
  31. {
  32. }
  33.  
  34. function setShowPane(sName)
  35. {
  36.     gsInitPane=sName;
  37. }
  38.   addPane("toc","whtdhtml.htm");
  39.   addPane("idx","whidhtml.htm");
  40.   addPane("fts","whfdhtml.htm");
  41.   addPane("glo","whgdhtml.htm");
  42.   setShowPane("toc");
  43.  
  44.  
  45. function window_unload()
  46. {
  47.     if (!gbNav4 || gbNav6) // resize will call unload, but the register code will never be called on Netscape 4.
  48.     {
  49.         UnRegisterListener2(this, WH_MSG_SHOWTOC);
  50.         UnRegisterListener2(this, WH_MSG_SHOWIDX);
  51.         UnRegisterListener2(this, WH_MSG_SHOWFTS);
  52.         UnRegisterListener2(this, WH_MSG_SHOWGLO);
  53.         UnRegisterListener2(this, WH_MSG_SYNCTOC);
  54.         UnRegisterListener2(this, WH_MSG_SEARCHTHIS);
  55.         UnRegisterListener2(this, WH_MSG_GETPANEINFO);
  56.     }
  57. }
  58.  
  59. function window_OnLoad()
  60. {
  61.     var bHidePane=false;
  62.     var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null);
  63.     if (SendMessage(oMsg))
  64.     {
  65.         if(oMsg.oParam>0)
  66.         {
  67.             if(oMsg.oParam==1)
  68.                 gsInitPane="toc";
  69.             else if(oMsg.oParam==2)
  70.                 gsInitPane="idx";
  71.             else if(oMsg.oParam==3)
  72.                 gsInitPane="fts";
  73.             else if(oMsg.oParam==4)
  74.                 gsInitPane="glo";
  75.         }
  76.         else if(oMsg.oParam==0)
  77.         {
  78.             bHidePane=true;
  79.         }
  80.     }
  81.     if (bHidePane)
  82.     {
  83.         oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null)
  84.         SendMessage(oMsg);
  85.     }
  86.     else if (gsInitPane == "toc")
  87.     {
  88.         oMsg=new whMessage(WH_MSG_SHOWTOC,this,1,null)
  89.         SendMessage(oMsg);    
  90.     }
  91.     else if (gsInitPane=="idx")
  92.     {
  93.         oMsg=new whMessage(WH_MSG_SHOWIDX,this,1,null)
  94.         SendMessage(oMsg);    
  95.     }
  96.     else if (gsInitPane=="fts")
  97.     {
  98.         oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null)
  99.         SendMessage(oMsg);    
  100.     }
  101.     else if (gsInitPane=="glo")
  102.     {
  103.         oMsg=new whMessage(WH_MSG_SHOWGLO,this,1,null)
  104.         SendMessage(oMsg);    
  105.     }
  106.     
  107. }
  108.  
  109. function onResize()
  110. {
  111.     var oMsg=null;
  112.     if (gbIE4)
  113.     {
  114.         if(document.body)
  115.         {
  116.             if(document.body.clientWidth > 1 && document.body.clientHeight>1)
  117.             {
  118.                 oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null);
  119.                 SendMessage(oMsg);
  120.             }
  121.         }
  122.     }
  123.     else 
  124.     {
  125.         if (window.innerWidth != 0 && window.innerHeight != 0)
  126.         {
  127.             oMsg = new whMessage(WH_MSG_RESIZEPANE,this,1,null);
  128.             SendMessage(oMsg);
  129.         }
  130.     }
  131. }
  132.  
  133. function CheckLoadingPhase0()
  134. {
  135.     if (!gbPassPhase0) {
  136.         setTimeout("CheckLoadingPhase0()", 1000);
  137.         document.applets[0];
  138.         gbPassPhase0 = 1;
  139.     }
  140.     else {
  141.         CheckLoadingPhase1();
  142.     }
  143. }
  144.  
  145. function CheckLoadingPhase1()
  146. {
  147.     if (gbNav4) {
  148.         if ("unknown" == gbLoading && document.readystate < 4) {
  149.             setTimeout("CheckLoadingPhase1()", 1000);
  150.         }
  151.         else if ("unknown" == gbLoading) {
  152.             CheckLoadingPhase2();
  153.         }
  154.     }
  155. }
  156.  
  157. function CheckLoadingPhase2()
  158. {
  159.     if (gbNav4) {
  160.         gbTryTime ++;
  161.         if ("unknown" == gbLoading) {
  162.             if (gbTryTime <= gbMaxTryTime )
  163.                 setTimeout("CheckLoadingPhase2()", 1000);
  164.             else {
  165.                 if (gnVerMinor != 4.60) {
  166.                     alert("Unable to load applet. If you are using an old version of Netscape, the prefs.js file needs to be edited. Open the file in a text editor (such as Notepad) and add the following line\n:'user_pref(\"security.lower_java_network_security_by_trusting_proxies\", true);'\nMake sure Netscape is no longer running or in memory before editing this file.");
  167.                 }
  168.             }    
  169.         }
  170.     }
  171. }
  172.  
  173. function CheckAppletLoaded()
  174. {
  175.     if (typeof(document.WebHelp) == "undefined")
  176.     {
  177.         document.location.reload();
  178.         if (gbretried < gbmaxretry)
  179.         {
  180.             gbretried ++;
  181.             setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
  182.         }
  183.     }
  184. }
  185.  
  186. function reDo() 
  187. {
  188.     if (innerWidth != origWidth || innerHeight != origHeight)  
  189.     {
  190.         //reloaded applet if nessary
  191.         gbretried = 0;
  192.  
  193.         if (gnVerMinor == 4.60) 
  194.         {
  195.             //reload the applet again.
  196.             document.location.reload();
  197.             gbretried ++;
  198.         }
  199.         setTimeout("CheckAppletLoaded();", gbretrytime[gbretried]);
  200.     }
  201. }
  202.  
  203. function onSendMessage(oMsg)
  204. {
  205.     if (oMsg)
  206.     {    
  207.         var nMsgId = oMsg.nMessageId;
  208.         var WebHelpApplet = null;
  209.         if (gbNav4)
  210.         {
  211.             WebHelpApplet = document.applets["WebHelp"];
  212.             if (!WebHelpApplet.Command)
  213.                 document.location="whskin_plist.htm";
  214.         }
  215.         else
  216.             WebHelpApplet = window.WebHelp;
  217.  
  218.         if(nMsgId==WH_MSG_GETPANEINFO)
  219.         {
  220.             oMsg.oParam=gsCurrentPane;
  221.             return false;
  222.         }
  223.         else if(gbLoading!="unknown" || gbNav6)
  224.         {
  225.             if (nMsgId == WH_MSG_SHOWTOC)
  226.             {
  227.                 gsCurrentPane="toc";
  228.                 WebHelpApplet.Command("Contents",null);
  229.                 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc");
  230.                 SendMessage(onMsg);
  231.                 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
  232.                 SendMessage(onMsg);
  233.             }
  234.             else if(nMsgId==WH_MSG_SHOWIDX)
  235.             {
  236.                 gsCurrentPane="idx";
  237.                 WebHelpApplet.Command("Index",null);
  238.                 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx");
  239.                 SendMessage(onMsg);
  240.                 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
  241.                 SendMessage(onMsg);
  242.             }
  243.             else if(nMsgId==WH_MSG_SHOWFTS)
  244.             {
  245.                 gsCurrentPane="fts";
  246.                 WebHelpApplet.Command("Search",null);
  247.                 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");
  248.                 SendMessage(onMsg);
  249.                 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
  250.                 SendMessage(onMsg);
  251.             }
  252.             else if(nMsgId==WH_MSG_SHOWGLO)
  253.             {
  254.                 gsCurrentPane="glo";
  255.                 WebHelpApplet.Command("Glossary",null);
  256.                 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"glo");
  257.                 SendMessage(onMsg);
  258.                 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
  259.                 SendMessage(onMsg);
  260.             }
  261.             else if(nMsgId==WH_MSG_SYNCTOC)
  262.             {
  263.                 gsCurrentPane="toc";
  264.                 var oTopicParam=oMsg.oParam;
  265.                 if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath)
  266.                 {
  267.                     var sPPath=_browserStringToText(oTopicParam.sPPath);
  268.                     var sParam="";
  269.                     for(var i=0;i<oTopicParam.aPaths.length;i++)
  270.                     {
  271.                         sParam+=oTopicParam.aPaths[i]+"\r\r";
  272.                     }
  273.                     WebHelpApplet.Command("SyncToc",sPPath,sParam);
  274.                 }
  275.             }
  276.             else if(nMsgId==WH_MSG_SEARCHTHIS)
  277.             {
  278.                 gsCurrentPane="fts";
  279.                 WebHelpApplet.Command("Search",oMsg.oParam);
  280.                 var onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");
  281.                 SendMessage(onMsg);
  282.                 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
  283.                 SendMessage(onMsg);
  284.             }
  285.         }
  286.     }
  287.     return true;
  288. }
  289.  
  290. function getInitTocInfo()
  291. {
  292.     var oParam=new Object();
  293.     oParam.oTocInfo=null;
  294.     var oMsg=new whMessage(WH_MSG_GETTOCPATHS,this,1,oParam);
  295.     if(SendMessage(oMsg))
  296.     {
  297.         var oTopicParam=oMsg.oParam.oTocInfo;
  298.         if(oTopicParam&&oTopicParam.aPaths&&oTopicParam.aPaths.length>0&&oTopicParam.sPPath)
  299.         {
  300.             var sPPath=_browserStringToText(oTopicParam.sPPath);
  301.             var sParam="";
  302.             for(var i=0;i<oTopicParam.aPaths.length;i++)
  303.             {
  304.                 sParam+=oTopicParam.aPaths[i]+"\r\r";
  305.             }
  306.             var WebHelpApplet;
  307.             if(gbNav4)
  308.                 WebHelpApplet=document.applets["WebHelp"];
  309.             else
  310.                 WebHelpApplet=WebHelp;
  311.             WebHelpApplet.Command("SyncToc",sPPath,sParam);
  312.         }
  313.     }
  314. }
  315.  
  316. if(window.gbWhUtil&&window.gbWhMsg&&window.gbWhVer&&window.gbWhProxy)
  317. {
  318.     RegisterListener2(this, WH_MSG_SHOWTOC);
  319.     RegisterListener2(this, WH_MSG_SHOWIDX);
  320.     RegisterListener2(this, WH_MSG_SHOWFTS);
  321.     RegisterListener2(this, WH_MSG_SHOWGLO);
  322.     RegisterListener2(this, WH_MSG_SYNCTOC);
  323.     RegisterListener2(this, WH_MSG_SEARCHTHIS);
  324.     RegisterListener2(this, WH_MSG_GETPANEINFO);
  325.  
  326.     window.onresize=onResize;
  327.     window.onunload = window_unload;
  328.     window.onload=window_OnLoad;
  329.     window.onerror = null;
  330.     var gbWindows = ((gAgent.indexOf("win") != -1) || (gAgent.indexOf("16bit") != -1));
  331.  
  332.     if (gbNav4 && !gbNav6 && gbWindows) {
  333.         setTimeout("CheckLoadingPhase0()", 1000);
  334.     }
  335.     if (gbNav4)
  336.     {
  337.         origWidth = innerWidth;
  338.         origHeight = innerHeight;
  339.         onresize = reDo;
  340.     }
  341. }
  342. else
  343.     document.location.reload();
  344.  
  345. if (window.gbNav6)
  346. {
  347.     var oMsg=new whMessage(WH_MSG_RELOADNS6,this, 1,null);
  348.     SendMessage(oMsg);
  349. }
  350. //-->
  351. </script>
  352. </head>
  353. <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="c0c0c0">
  354. <applet code=WebHelp.class name=WebHelp  archive=webhelp.jar width=100% height=100% MAYSCRIPT hspace=0 vspace=0>
  355. <PARAM name=ProjectFile value=whproj.xml><PARAM name=ResourceFile value=whres.xml>
  356. <PARAM name=HideTabs value=true>
  357. <PARAM name=Frame value=bsscright>
  358. <PARAM name=cabbase value=webhelp.cab>
  359. </applet>
  360. </body>
  361. </html>
  362.