2 var gaProj=new Array();
4 gaProj[0]=new project("");
6 function setLangId(sLangId)
8 gaProj[0].sLangId=sLangId;
11 function setDataPath(sPath)
15 if(sPath.lastIndexOf("/")!=sPath.length-1)
17 gaProj[0].sDPath=sPath;
23 function addToc(sFile)
28 function addIdx(sFile)
33 function addFts(sFile)
38 function addGlo(sFile)
43 function addRemoteProject(sProjRelPath)
45 if(sProjRelPath.lastIndexOf("/")!=sProjRelPath.length-1)
47 gaProj[gaProj.length]=new project(sProjRelPath);
50 function project(sPPath)
61 window.onload=window_OnLoad;
63 function window_OnLoad()
65 gsName=document.location.href;
66 gsName=_replaceSlash(gsName);
67 var nPos=gsName.lastIndexOf("/");
69 gaProj[0].sPPath=gsName.substring(0,nPos+1);
71 alert("Error in Loading navigation component. Please regenerate WebHelp.");
73 if(parent&&parent!=this&& typeof(parent.putProjectInfo)=="function")
75 parent.putProjectInfo(gaProj);
79 function patchPath(aProj)
81 for(var i=1;i<aProj.length;i++)
83 aProj[i].sPPath=_getFullPath(gaProj[0].sPPath,aProj[i].sPPath);