home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 August / PCpro_2006_08.ISO / files / copytools / loop / LoopRecorder205.exe / LoopRec.chm / master.js < prev    next >
Encoding:
JavaScript  |  2005-02-03  |  2.6 KB  |  85 lines

  1. //This is the master JavaScript file for the HTML Help documentation.
  2.  
  3. var isLoopRecorderPro = (location.href.toLowerCase().indexOf('looprecp.chm') >= 0);
  4.  
  5. function addVer(myLink){
  6.     var myHref = myLink.href;
  7.     var myVersion = '2.05';
  8.     if(myHref.indexOf('?')>=0)return true;
  9.  
  10.     /*
  11.     var MSIE = '';
  12.     if(navigator && navigator.userAgent){
  13.         var startMSIE = navigator.userAgent.indexOf('MSIE');
  14.         if(startMSIE >= 0)
  15.             var endMSIE = navigator.userAgent.indexOf(';', startMSIE);
  16.             MSIE = navigator.userAgent.substring(startMSIE,endMSIE);
  17.             window.alert(MSIE);
  18.         }
  19.  
  20.         var searchMOZ = navigator.userAgent.indexOf('Mozilla');
  21.         if(searchMOZ >= 0)
  22.             MOZ = parseFloat(navigator.userAgent.substring(searchMOZ+8,searchMOZ+8+3));
  23.         german = navigator.language && (navigator.language.indexOf("de") >= 0);
  24.     }
  25.     */
  26.  
  27.     myHref += (myLink.href.indexOf('mailto:') >= 0)? ('?Subject=' + escape('Question about ')) : '?Version=';
  28.     myHref += escape((location.href.toLowerCase().indexOf('looprecp.chm') >= 0) ? 'Loop Recorder Pro ' : 'Loop Recorder ') + myVersion;
  29.     if(myLink.target == '_blank'){
  30.         window.open(myHref)
  31.     } else {
  32.         location.href = myHref;
  33.     }
  34.     return false;
  35. }
  36.  
  37.  
  38. /* These functions (doSection, noSection) are used to make sidebars appear and disappear.
  39. */
  40.  
  41. function doSection (secNum){
  42.     //display the section if it's not displayed; hide it if it is displayed
  43.     if (secNum.style.display=="none"){secNum.style.display=""}
  44.     else{secNum.style.display="none"}
  45. }
  46.  
  47. function noSection (secNum){
  48.     //remove the section when user clicks in the opened DIV
  49.     if (secNum.style.display==""){secNum.style.display="none"}
  50. }
  51.  
  52. function showSection (secNum){
  53.     //remove the section when user clicks in the opened DIV
  54.     if (secNum.style.display=="none"){secNum.style.display=""}
  55. }
  56.  
  57. function doExpand(paraNum,arrowNum,on){
  58.     //expand the paragraph and rotate the arrow; collapse and rotate it back
  59.     if ((paraNum.style.display=="none") || on){paraNum.style.display="";arrowNum.src="arrowdn.gif"}
  60.     else{paraNum.style.display="none";arrowNum.src="arrowrt.gif"}
  61. }
  62.  
  63. //These functions control the behavior of the homepage go arrows.
  64. function liteGo(spNo){
  65.     spNo.style.background="#cc0033";
  66.     spNo.style.color="#FFFFFF";
  67. }
  68.  
  69. function liteOff(spNo){
  70.     spNo.style.background="transparent";
  71.     spNo.style.color="#000000";
  72. }
  73.  
  74. //Insert new functions here. Please use unique identifiers and comment liberally.
  75.  
  76. function showHashSec(){
  77.     var myHash, myAr, myExp;
  78.     if(myHash = window.location.hash.substring(1))
  79.         if(
  80.             (myExp=document.all['exp_' + myHash]) &&
  81.             (myAr = document.all['ar_' + myHash])
  82.         )doExpand(myExp, myAr, true)
  83. }
  84.  
  85.