5 <script type="text/javascript" language="javascript" src="whver.js"></script>
6 <script type="text/javascript" language="javascript" src="whutils.js"></script>
7 <script type="text/javascript" language="javascript" src="whmsg.js"></script>
8 <script type="text/javascript" language="javascript" >
10 if (!window.gbWhVer||!window.gbWhUtil||!window.gbWhMsg)
11 document.location.reload();
15 <script type="text/javascript" language="javascript" src="whproxy.js"></script>
16 <script type="text/javascript" language="javascript">
18 if (!window.gbWhProxy)
19 document.location.reload();
24 <script language="javascript">
29 var oMsgPane = new whMessage(WH_MSG_GETPANETYPE, this, 1, null);
30 if (SendMessage(oMsgPane))
32 gsPane = oMsgPane.oParam.sPaneURL;
33 gnType = oMsgPane.oParam.nType;
36 var strDefaultTopic = "about:blank";
37 var oParam = new Object();
39 var oMsg = new whMessage(WH_MSG_GETDEFAULTTOPIC, this, 1, oParam);
40 if (SendMessage(oMsg) && oParam.sTopic != "")
41 strDefaultTopic = oParam.sTopic;
46 strHTML += "<frameset border=\"0\" cols=\"100%,*\">";
47 strHTML += "<frame src=\"" + strDefaultTopic + "\" name=\"bsscright\" framespacing=\"0\" frameborder=\"0\" border=\"0\" scrolling=\"auto\">";
48 strHTML += "<frame src=\"whskin_blank.htm\" noresize>";
49 strHTML += "</frameset>";
52 strHTML += "<frameset cols=\"220,*\" hostof=\"parent:minibar_navpane|topic!startpage:no\" frameborder=\"1\" id=\"whPfset\"><frame src=\"whskin_frmset010.htm\" id=\"minibar_navpane\" frameborder=\"0\" border=\"0\" scrolling=\"auto\" marginheight=\"0\" marginwidth=\"0\"></frame><frame src=\""+strDefaultTopic+"\" id=\"topic\" frameborder=\"1\" border=\"1\" scrolling=\"auto\" title=\"Topic\" name=\"bsscright\"></frame></frameset>";
53 document.write(strHTML);
54 // handle show pane, hide pane and query pane status message.
55 RegisterListener2(this, WH_MSG_RESIZEPANE);
56 RegisterListener2(this, WH_MSG_SHOWPANE);
57 RegisterListener2(this, WH_MSG_HIDEPANE);
58 RegisterListener2(this, WH_MSG_ISPANEVISIBLE);
60 function window_unload()
62 UnRegisterListener2(this, WH_MSG_RESIZEPANE);
63 UnRegisterListener2(this, WH_MSG_SHOWPANE);
64 UnRegisterListener2(this, WH_MSG_HIDEPANE);
65 UnRegisterListener2(this, WH_MSG_ISPANEVISIBLE);
68 window.onunload=window_unload;
71 var gstrFrameLastSetting="";
72 function onSendMessage(oMsg)
75 var nMsgId = oMsg.nMessageId;
77 if (nMsgId == WH_MSG_SHOWPANE)
81 oFrameset = getElement("whPfset");
84 if (gstrFrameLastSetting)
85 oFrameset.cols= gstrFrameLastSetting;
87 oFrameset.cols= "220,*";
90 oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
95 else if (nMsgId == WH_MSG_HIDEPANE)
97 oFrameset = getElement("whPfset");
100 gstrFrameLastSetting=oFrameset.cols;
102 if (oWnd && oWnd.document && oWnd.document.body)
106 nPos=oWnd.document.body.offsetWidth;
108 nPos=oWnd.document.body.offsetHeight;
110 gstrFrameLastSetting=nPos+",*";
112 gstrFrameLastSetting="*,"+nPos;
114 oFrameset.cols = "0,*";
117 oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "invisible");
118 SendMessage(oMsgout);
121 else if (nMsgId == WH_MSG_RESIZEPANE)
126 oMsgout = new whMessage(WH_MSG_PANESTATUE, this, 1, "visible");
127 SendMessage(oMsgout);
131 else if (nMsgId == WH_MSG_ISPANEVISIBLE)
133 oMsg.oParam.bVisible = isNavPaneVisible();
139 function isNavPaneVisible()
141 var bVisible = false;
142 var sSplit = getElement("whPfset").cols;
143 var nSplit = sSplit.indexOf(",");
146 var sPart1 = sSplit.substring(0, nSplit);
147 var sPart2 = sSplit.substring(nSplit + 1);
148 if ("minibar_navpane" == "navpane")
157 var n = parseInt(sPart2);
163 if (sPart1 != "100%")