3 <title> Navigation Pane </title>
5 <meta name="generator" content="RoboHelp by eHelp Corporation www.ehelp.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>
11 <script language="javascript">
21 function setListFrames(strToc,strNdx,strFts,strGls,strDefault)
28 if(strFrmDft==strFrmToc)
30 else if(strFrmDft==strFrmNdx)
32 else if(strFrmDft==strFrmFts)
34 else if(strFrmDft==strFrmGls)
38 function setWebHelpPane()
40 setListFrames("whgdata/whnvf30.htm","whgdata/whnvf31.htm","whgdata/whnvf32.htm","whgdata/whnvf33.htm","whgdata/whnvf30.htm");
43 function window_unload()
45 if(!gbNav4||gbNav6) // resize will call unload, but the register code will never be called on Netscape 4.
47 UnRegisterListener2(this,WH_MSG_SHOWTOC);
48 UnRegisterListener2(this,WH_MSG_SHOWIDX);
49 UnRegisterListener2(this,WH_MSG_SHOWFTS);
50 UnRegisterListener2(this,WH_MSG_SHOWGLO);
51 UnRegisterListener2(this,WH_MSG_GETPANEINFO);
55 function window_onload()
58 var oMsg=new whMessage(WH_MSG_GETCMD,this,1,null);
65 else if(oMsg.oParam==2)
67 else if(oMsg.oParam==3)
69 else if(oMsg.oParam==4)
73 else if(oMsg.oParam==0)
82 oMsg=new whMessage(WH_MSG_HIDEPANE,this,1,null)
87 oMsg=new whMessage(WH_MSG_PANEINFO,this,1,gstrName);
90 oMsg=new whMessage(WH_MSG_NOSYNC,this,1,null);
92 oMsg=new whMessage(WH_MSG_NOSEARCHINPUT,this,1,null);
97 function switchNvp(strName)
100 if(strName=="toc") strFile=strFrmToc;
101 else if(strName=="idx") strFile=strFrmNdx;
102 else if(strName=="fts") strFile=strFrmFts;
103 else if(strName=="glo") strFile=strFrmGls;
106 frames[0].location=strFile;
109 function onSendMessage(oMsg)
114 var nMsgId=oMsg.nMessageId;
115 if(nMsgId==WH_MSG_SHOWTOC)
118 onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"toc");
120 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
123 else if(nMsgId==WH_MSG_SHOWIDX)
126 onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"idx");
128 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
131 else if(nMsgId==WH_MSG_SHOWFTS)
134 onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"fts");
136 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
139 else if(nMsgId==WH_MSG_SHOWGLO)
142 onMsg=new whMessage(WH_MSG_PANEINFO,this,1,"glo");
144 onMsg=new whMessage(WH_MSG_SHOWPANE,this,1,null);
147 else if(nMsgId==WH_MSG_GETPANEINFO)
149 oMsg.oParam=gstrName;
163 if(document.body.clientWidth>1&&document.body.clientHeight>1)
165 oMsg=new whMessage(WH_MSG_RESIZEPANE,this,1,null);
172 if(window.innerWidth!=0&&window.innerHeight!=0)
174 oMsg=new whMessage(WH_MSG_RESIZEPANE,this,1,null);
180 if(window.gbWhMsg&&window.gbWhVer&&window.gbWhProxy)
182 var oMsg=new whMessage(WH_MSG_GETPANES,this,1,null);
183 if(SendMessage(oMsg))
187 for(var i=0;i<oMsg.oParam.aPanes.length;i++)
189 if(oMsg.oParam.aPanes[i].sPaneName=="toc")
190 strFrmToc=oMsg.oParam.aPanes[i].sPaneURL;
191 else if(oMsg.oParam.aPanes[i].sPaneName=="idx")
192 strFrmNdx=oMsg.oParam.aPanes[i].sPaneURL;
193 else if(oMsg.oParam.aPanes[i].sPaneName=="fts")
194 strFrmFts=oMsg.oParam.aPanes[i].sPaneURL;
195 else if(oMsg.oParam.aPanes[i].sPaneName=="glo")
196 strFrmGls=oMsg.oParam.aPanes[i].sPaneURL;
197 if(oMsg.oParam.sDefault==oMsg.oParam.aPanes[i].sPaneName)
199 strFrmDft=oMsg.oParam.aPanes[i].sPaneURL;
209 RegisterListener2(this,WH_MSG_SHOWTOC);
210 RegisterListener2(this,WH_MSG_SHOWIDX);
211 RegisterListener2(this,WH_MSG_SHOWFTS);
212 RegisterListener2(this,WH_MSG_SHOWGLO);
213 RegisterListener2(this,WH_MSG_GETPANEINFO);
216 window.onresize=onResize;
218 window.onunload=window_unload;
219 window.onload=window_onload;
222 strHtml+="<frameset rows=\'100%,*\'>";
223 strHtml+="<frame name=\'nvplist\' title=\'navpane frame\' src=\'" + strFrmDft +"\'></frame>";
224 strHtml+="<frame src=\'whskin_blank.htm\' noresize></frame>";
225 strHtml+="</frameset>";
226 document.write(strHtml);
229 document.location.reload();
233 var oMsg=new whMessage(WH_MSG_RELOADNS6,this,1,null);