home *** CD-ROM | disk | FTP | other *** search
- //This is the master JavaScript file for the HTML Help documentation.
-
- /* These functions (doSection, noSection) are used to make sidebars appear and disappear.
- */
-
- function doSection (secNum){
- //display the section if it's not displayed; hide it if it is displayed
- if (secNum.style.display=="none"){secNum.style.display=""}
- else{secNum.style.display="none"}
- }
-
- function noSection (secNum){
- //remove the section when user clicks in the opened DIV
- if (secNum.style.display==""){secNum.style.display="none"}
- }
-
- function doExpand(paraNum,arrowNum){
- //expand the paragraph and rotate the arrow; collapse and rotate it back
- if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="arrowdn.gif"}
- else{paraNum.style.display="none";arrowNum.src="arrowrt.gif"}
- }
-
- //These functions control the behavior of the homepage go arrows.
- function liteGo(spNo){
- spNo.style.background="#cc0033";
- spNo.style.color="#FFFFFF";
- }
-
- function liteOff(spNo){
- spNo.style.background="transparent";
- spNo.style.color="#000000";
- }
-
- //*** callPopup ***************************************************************************************
- // creates an object from an <A> tag HREF, the object inserts a winhelp popup
- // called by: <A ID="wPopup" HREF="HELP=@@file_name.hlp@@ TOPIC=@@topic#@@">@@Popup text@@</A>
-
- function callPopup(eventSrc) {
- var e= eventSrc;
- var eH= unescape(e.href);
- var eH_= eH.toLowerCase();
- event.returnValue = false;
-
- var iTOPIC = eH_.lastIndexOf("topic=");
- if (iTOPIC==-1) return;
- sParamTOPIC = eH.substring((iTOPIC+6),eH.length); // extracts the topic for item2
-
- var iHELP = eH_.lastIndexOf("help=");
- if (iHELP==-1) return;
- sParamHELP = eH.substring(iHELP+5,iTOPIC); // extracts the help file for item1
-
- if (document.hhPopup) document.hhPopup.outerHTML = ""; // if hhPopup object exists, clears it
-
-
- var h= "<object id='hhPopup'"+ sActX_HH + "STYLE='display:none'><param name='Command' value='WinHelp, Popup'>";
- h= h + "<param name='Item1' value='" + sParamHELP + "'><param name='Item2' value='" + sParamTOPIC + "'></object>";
-
- document.body.insertAdjacentHTML("beforeEnd", h);
- document.hhPopup.hhclick();
- }
-
-
- //Insert new functions here. Please use unique identifiers and comment liberally.
-