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 / _813FEF9CDC6C9D313A662C3179E0ECB1 < prev    next >
Text File  |  2014-03-12  |  1KB  |  85 lines

  1. ∩╗┐//    WebHelp 5.10.001
  2. var gaProj=new Array();
  3.  
  4. gaProj[0]=new project("");
  5.  
  6. function setLangId(sLangId)
  7. {
  8.     gaProj[0].sLangId=sLangId;
  9. }
  10.  
  11. function setDataPath(sPath)
  12. {
  13.     if(sPath.length!=0)
  14.     {
  15.         if(sPath.lastIndexOf("/")!=sPath.length-1)
  16.             sPath+="/";
  17.         gaProj[0].sDPath=sPath;    
  18.     }
  19.     else
  20.         gaProj[0].sDPath="";
  21. }
  22.  
  23. function addToc(sFile)
  24. {
  25.     gaProj[0].sToc=sFile;
  26. }
  27.  
  28. function addIdx(sFile)
  29. {
  30.     gaProj[0].sIdx=sFile;
  31. }
  32.  
  33. function addFts(sFile)
  34. {
  35.     gaProj[0].sFts=sFile;
  36. }
  37.  
  38. function addGlo(sFile)
  39. {
  40.     gaProj[0].sGlo=sFile;
  41. }
  42.  
  43. function addRemoteProject(sProjRelPath)
  44. {
  45.     if(sProjRelPath.lastIndexOf("/")!=sProjRelPath.length-1)
  46.         sProjRelPath+="/";
  47.     gaProj[gaProj.length]=new project(sProjRelPath);
  48. }
  49.  
  50. function project(sPPath)
  51. {
  52.     this.sPPath=sPPath;
  53.     this.sLangId="";
  54.     this.sDPath="";
  55.     this.sToc="";
  56.     this.sIdx="";
  57.     this.sFts="";
  58.     this.sGlo="";
  59. }
  60.  
  61. window.onload=window_OnLoad;
  62.  
  63. function window_OnLoad()
  64. {
  65.     gsName=document.location.href;
  66.     gsName=_replaceSlash(gsName);
  67.     var nPos=gsName.lastIndexOf("/");
  68.     if(nPos!=-1)
  69.         gaProj[0].sPPath=gsName.substring(0,nPos+1);
  70.     else
  71.         alert("Error in Loading navigation component. Please regenerate WebHelp.");
  72.     patchPath(gaProj);
  73.     if(parent&&parent!=this&& typeof(parent.putProjectInfo)=="function")
  74.     {
  75.         parent.putProjectInfo(gaProj);
  76.     }
  77. }
  78.  
  79. function patchPath(aProj)
  80. {
  81.     for(var i=1;i<aProj.length;i++)
  82.     {
  83.         aProj[i].sPPath=_getFullPath(gaProj[0].sPPath,aProj[i].sPPath);
  84.     }
  85. }