// WebHelp 5.10.003 RegisterListener2(this, WH_MSG_GETSTARTFRAME); RegisterListener2(this, WH_MSG_GETDEFAULTTOPIC); RegisterListener2(this, WH_MSG_MINIBARORDER); RegisterListener2(this, WH_MSG_TOOLBARORDER); RegisterListener2(this, WH_MSG_ISSEARCHSUPPORT); RegisterListener2(this, WH_MSG_ISSYNCSSUPPORT); RegisterListener2(this, WH_MSG_ISAVENUESUPPORT); RegisterListener2(this, WH_MSG_GETPANETYPE); RegisterListener2(this, WH_MSG_GETPANES); RegisterListener2(this, WH_MSG_RELOADNS6); RegisterListener2(this, WH_MSG_GETCMD); RegisterListener2(this, WH_MSG_GETPANE); RegisterListener2(this, WH_MSG_GETDEFPANE); if (gbNav6) { var gnReload=0; setTimeout("delayReload();",5000); } function delayReload() { if (!(this.cMRServer && cMRServer.m_strVersion)) { if(gnReload!=2) { if(nViewFrameType&&nViewFrameType==1) document.location=document.location; } } } var gsToolbarOrder = ""; var gsMinibarOrder = ""; var gsTopic = "geometry.htm"; var PANE_OPT_SEARCH = 1; var PANE_OPT_BROWSESEQ = 2; var gnOpts=-1; var gnCmd=-1; var gnPans=2; var gsBtns="invalid"; var gsDefaultBtn="invalid"; var gbHasTitle=false; if (location.hash.length > 1) { var sParam = location.hash; if (sParam.indexOf("#<") == 0) { document.location = "whcsh_home.htm#" + sParam.substring(2); } else if (sParam.indexOf("#>>") == 0) { parseParam(sParam.substring(3)); sParam = "#" + gsTopic + sParam.substring(1); } else { var nPos = sParam.indexOf(">>"); if (nPos>1) { gsTopic = sParam.substring(1, nPos); parseParam(sParam.substring(nPos+2)); } else gsTopic = sParam.substring(1); } if (gnPans == 1 && gsTopic) { var strURL=location.href; if (location.hash) { var nPos=location.href.indexOf(location.hash); strURL=strURL.substring(0, nPos); } if (gbHasTitle) document.location=_getPath(strURL)+ "whskin_tw.htm" + sParam; else document.location=_getPath(strURL)+ gsTopic; } } function parseParam(sParam) { if (sParam) { var nBPos=0; do { var nPos=sParam.indexOf(">>", nBPos); if (nPos!=-1) { if (nPos>0) { var sPart=sParam.substring(nBPos, nPos); parsePart(sPart); } nBPos = nPos + 2; } else { var sPart=sParam.substring(nBPos); parsePart(sPart); break; } } while(nBPos < sParam.length); } } function parsePart(sPart) { if(sPart.toLowerCase().indexOf("cmd=")==0) { gnCmd=parseInt(sPart.substring(4)); } else if(sPart.toLowerCase().indexOf("cap=")==0) { document.title=_browserStringToText(sPart.substring(4)); gbHasTitle=true; } else if(sPart.toLowerCase().indexOf("pan=")==0) { gnPans=parseInt(sPart.substring(4)); } else if(sPart.toLowerCase().indexOf("pot=")==0) { gnOpts=parseInt(sPart.substring(4)); } else if(sPart.toLowerCase().indexOf("pbs=")==0) { var sRawBtns = sPart.substring(4); var aBtns = sRawBtns.split("|"); for (var i=0;i