68. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Nov 21 17:21:51 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

68.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.1.20396.b\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts booklist.js Tue Sep 20 06:37:32 2005 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\WebWorks Help 5.0\Files\wwhelp\wwhimpl\common\scripts booklist.js Tue Aug 12 22:40:50 2008 UTC

68.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 664
Changed 1 2
Inserted 0 0
Removed 0 0

68.3 Comparison options

Whitespace Differences in whitespace are significant
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

68.4 Active regular expressions

Expression Description
\$(Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments

68.5 Comparison detail

1   // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration.   All right s reserved .   1   // Copyrig ht (c) 200 0-2003 Qua dralay Cor poration.   All right s reserved .
2   //   2   //
3     3  
4   function   WWHBook_Ob ject(Param Directory)   4   function   WWHBook_Ob ject(Param Directory)
5   {   5   {
6     // Set v alues from  callbacks   6     // Set v alues from  callbacks
7     //   7     //
8     this.mDi rectory =  null;   8     this.mDi rectory =  null;
9     this.mTi tle     =  null;   9     this.mTi tle     =  null;
10     this.mCo ntext   =  null;   10     this.mCo ntext   =  null;
11     this.mFi les     =  new WWHFil eList_Obje ct();   11     this.mFi les     =  new WWHFil eList_Obje ct();
12     12  
13     // Fix u p director y   13     // Fix u p director y
14     //   14     //
15     if (Para mDirectory  == ".")   15     if (Para mDirectory  == ".")
16     {   16     {
17       this.m Directory  = "";   17       this.m Directory  = "";
18     }   18     }
19     else   19     else
20     {   20     {
21       this.m Directory  = ParamDir ectory + " /";   21       this.m Directory  = ParamDir ectory + " /";
22     }   22     }
23     23  
24     this.fIn it = WWHBo ok_Init;   24     this.fIn it = WWHBo ok_Init;
25   }   25   }
26     26  
27   function   WWHBook_In it(ParamTi tle,   27   function   WWHBook_In it(ParamTi tle,
28                            ParamCo ntext,   28                            ParamCo ntext,
29                            ParamFi lesFunctio n,   29                            ParamFi lesFunctio n,
30                            ParamAL inksFuncti on)   30                            ParamAL inksFuncti on)
31   {   31   {
32     this.mTi tle   = Pa ramTitle;   32     this.mTi tle   = Pa ramTitle;
33     this.mCo ntext = Pa ramContext ;   33     this.mCo ntext = Pa ramContext ;
34     34  
35     // Load  files   35     // Load  files
36     //   36     //
37     ParamFil esFunction (this.mFil es);   37     ParamFil esFunction (this.mFil es);
38     38  
39     // Load  alinks   39     // Load  alinks
40     //   40     //
41     ParamALi nksFunctio n(WWHFrame .WWHALinks );   41     ParamALi nksFunctio n(WWHFrame .WWHALinks );
42   }   42   }
43     43  
44   function   WWHBookLis t_Object()   44   function   WWHBookLis t_Object()
45   {   45   {
46     this.mIn itIndex           = 0 ;   46     this.mIn itIndex           = 0 ;
47     this.mBo okList            = n ew Array() ;   47     this.mBo okList            = n ew Array() ;
48     this.mBo okContextT oIndex = n ew Object( );   48     this.mBo okContextT oIndex = n ew Object( );
49     49  
50     this.fIn it_AddBook Dir                 =  WWHBookLi st_Init_Ad dBookDir;   50     this.fIn it_AddBook Dir                 =  WWHBookLi st_Init_Ad dBookDir;
51     this.fIn it_BookDat a_Script            =  WWHBookLi st_Init_Bo okData_Scr ipt;   51     this.fIn it_BookDat a_Script            =  WWHBookLi st_Init_Bo okData_Scr ipt;
52     this.fIn it_AddBook                     =  WWHBookLi st_Init_Ad dBook;   52     this.fIn it_AddBook                     =  WWHBookLi st_Init_Ad dBook;
53     this.fIn it_Increme ntIndex             =  WWHBookLi st_Init_In crementInd ex;   53     this.fIn it_Increme ntIndex             =  WWHBookLi st_Init_In crementInd ex;
54     this.fGe tBook                          =  WWHBookLi st_GetBook ;   54     this.fGe tBook                          =  WWHBookLi st_GetBook ;
55     this.fGe tBookTitle                     =  WWHBookLi st_GetBook Title;   55     this.fGe tBookTitle                     =  WWHBookLi st_GetBook Title;
56     this.fHR EFToFileIn dex                 =  WWHBookLi st_HREFToF ileIndex;   56     this.fHR EFToFileIn dex                 =  WWHBookLi st_HREFToF ileIndex;
57     this.fHR EFToTitle                      =  WWHBookLi st_HREFToT itle;   57     this.fHR EFToTitle                      =  WWHBookLi st_HREFToT itle;
58     this.fBo okIndexFil eIndexToTi tle      =  WWHBookLi st_BookInd exFileInde xToTitle;   58     this.fBo okIndexFil eIndexToTi tle      =  WWHBookLi st_BookInd exFileInde xToTitle;
59     this.fGe tBookIndex FileHREF            =  WWHBookLi st_GetBook IndexFileH REF;   59     this.fGe tBookIndex FileHREF            =  WWHBookLi st_GetBook IndexFileH REF;
60     this.fBo okFileIndi ciesToHREF          =  WWHBookLi st_BookFil eIndiciesT oHREF;   60     this.fBo okFileIndi ciesToHREF          =  WWHBookLi st_BookFil eIndiciesT oHREF;
61     this.fHR EFToBookIn dexFileInd exAnchor =  WWHBookLi st_HREFToB ookIndexFi leIndexAnc hor;   61     this.fHR EFToBookIn dexFileInd exAnchor =  WWHBookLi st_HREFToB ookIndexFi leIndexAnc hor;
62     this.fGe tSyncPrevN ext                 =  WWHBookLi st_GetSync PrevNext;   62     this.fGe tSyncPrevN ext                 =  WWHBookLi st_GetSync PrevNext;
63     this.fGe tContextIn dex                 =  WWHBookLi st_GetCont extIndex;   63     this.fGe tContextIn dex                 =  WWHBookLi st_GetCont extIndex;
64     this.fGe tContextBo ok                  =  WWHBookLi st_GetCont extBook;   64     this.fGe tContextBo ok                  =  WWHBookLi st_GetCont extBook;
65   }   65   }
66     66  
67   function   WWHBookLis t_Init_Add BookDir(Pa ramBookDir )   67   function   WWHBookLis t_Init_Add BookDir(Pa ramBookDir )
68   {   68   {
69     this.mBo okList[thi s.mBookLis t.length]  = new WWHB ook_Object (ParamBook Dir);   69     this.mBo okList[thi s.mBookLis t.length]  = new WWHB ook_Object (ParamBook Dir);
70   }   70   }
71     71  
72   function   WWHBookLis t_Init_Boo kData_Scri pt()   72   function   WWHBookLis t_Init_Boo kData_Scri pt()
73   {   73   {
74     var  Scr ipts  = ne w WWHStrin gBuffer_Ob ject();   74     var  Scr ipts  = ne w WWHStrin gBuffer_Ob ject();
75     var  Var Parameters ;   75     var  Var Parameters ;
76     var  Max Index = 0;   76     var  Max Index = 0;
77     var  Ind ex    = 0;   77     var  Ind ex    = 0;
78     var  Boo kDirectory ;   78     var  Boo kDirectory ;
79     79  
80     80  
81     // Worka round Safa ri reload  bug   81     // Worka round Safa ri reload  bug
82     //   82     //
83     VarParam eters = "" ;   83     VarParam eters = "" ;
84     if (WWHF rame.WWHBr owser.mBro wser == 5)   // Short hhand for  Safari   84     if (WWHF rame.WWHBr owser.mBro wser == 5)   // Short hhand for  Safari
85     {   85     {
86       VarPar ameters =  "?" + (new  Date() *  1);   86       VarPar ameters =  "?" + (new  Date() *  1);
87     }   87     }
88     88  
89     this.mIn itIndex =  0;   89     this.mIn itIndex =  0;
90     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)   90     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)
91     {   91     {
92       BookDi rectory =  WWHFrame.W WHHelp.mHe lpURLPrefi x +  WWHFrame.W WHBrowser. fRestoreEs capedSpace s( this.mBook List[Index ].mDirecto ry ) ;   92       BookDi rectory =  WWHFrame.W WHHelp.mHe lpURLPrefi x + 
this.mBook List[Index ].mDirecto ry
;
93     93  
94       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/title.j s" + VarPa rameters +  "\"></scr ipt>\n");   94       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/title.j s" + VarPa rameters +  "\"></scr ipt>\n");
95       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/context .js" + Var Parameters  + "\"></s cript>\n") ;   95       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/context .js" + Var Parameters  + "\"></s cript>\n") ;
96       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/files.j s" + VarPa rameters +  "\"></scr ipt>\n");   96       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/files.j s" + VarPa rameters +  "\"></scr ipt>\n");
97       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/alinks. js" + VarP arameters  + "\"></sc ript>\n");   97       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  BookDirec tory + "ww hdata/comm on/alinks. js" + VarP arameters  + "\"></sc ript>\n");
98     98  
99       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  WWHFrame. WWHHelp.mH elpURLPref ix + "wwhe lp/wwhimpl /common/sc ripts/bkli st1s.js" +  VarParame ters + "\" ></script> \n");   99       Script s.fAppend( "<script t ype=\"text /javascrip t\" langua ge=\"JavaS cript1.2\"  src=\"" +  WWHFrame. WWHHelp.mH elpURLPref ix + "wwhe lp/wwhimpl /common/sc ripts/bkli st1s.js" +  VarParame ters + "\" ></script> \n");
100     }   100     }
101     101  
102     return S cripts.fGe tBuffer();   102     return S cripts.fGe tBuffer();
103   }   103   }
104     104  
105   function   WWHBookLis t_Init_Add Book(Param Title,   105   function   WWHBookLis t_Init_Add Book(Param Title,
106                                         Param Context,   106                                         Param Context,
107                                         Param FilesFunct ion,   107                                         Param FilesFunct ion,
108                                         Param ALinksFunc tion)   108                                         Param ALinksFunc tion)
109   {   109   {
110     // Updat e book inf ormation   110     // Updat e book inf ormation
111     //   111     //
112     this.mBo okList[thi s.mInitInd ex].fInit( ParamTitle , ParamCon text,   112     this.mBo okList[thi s.mInitInd ex].fInit( ParamTitle , ParamCon text,
113                                               ParamFiles Function,   113                                               ParamFiles Function,
114                                               ParamALink sFunction) ;   114                                               ParamALink sFunction) ;
115     this.mBo okContextT oIndex[Par amContext  + "~"] = t his.mInitI ndex;   115     this.mBo okContextT oIndex[Par amContext  + "~"] = t his.mInitI ndex;
116   }   116   }
117     117  
118   function   WWHBookLis t_Init_Inc rementInde x()   118   function   WWHBookLis t_Init_Inc rementInde x()
119   {   119   {
120     this.mIn itIndex++;   120     this.mIn itIndex++;
121   }   121   }
122     122  
123   function   WWHBookLis t_GetBook( ParamIndex )   123   function   WWHBookLis t_GetBook( ParamIndex )
124   {   124   {
125     return t his.mBookL ist[ParamI ndex];   125     return t his.mBookL ist[ParamI ndex];
126   }   126   }
127     127  
128   function   WWHBookLis t_GetBookT itle(Param Index)   128   function   WWHBookLis t_GetBookT itle(Param Index)
129   {   129   {
130     return t his.mBookL ist[ParamI ndex].mTit le;   130     return t his.mBookL ist[ParamI ndex].mTit le;
131   }   131   }
132     132  
133   function   WWHBookLis t_HREFToFi leIndex(Pa ramIndex,   133   function   WWHBookLis t_HREFToFi leIndex(Pa ramIndex,
134                                            Pa ramHREF)   134                                            Pa ramHREF)
135   {   135   {
136     return t his.mBookL ist[ParamI ndex].mFil es.fHREFTo Index(Para mHREF);   136     return t his.mBookL ist[ParamI ndex].mFil es.fHREFTo Index(Para mHREF);
137   }   137   }
138     138  
139   function   WWHBookLis t_HREFToTi tle(ParamI ndex,   139   function   WWHBookLis t_HREFToTi tle(ParamI ndex,
140                                        ParamH REF)   140                                        ParamH REF)
141   {   141   {
142     return t his.mBookL ist[ParamI ndex].mFil es.fHREFTo Title(Para mHREF);   142     return t his.mBookL ist[ParamI ndex].mFil es.fHREFTo Title(Para mHREF);
143   }   143   }
144     144  
145   function   WWHBookLis t_BookInde xFileIndex ToTitle(Pa ramBookInd ex,   145   function   WWHBookLis t_BookInde xFileIndex ToTitle(Pa ramBookInd ex,
146                                                       Pa ramFileInd ex)   146                                                       Pa ramFileInd ex)
147   {   147   {
148     return t his.mBookL ist[ParamB ookIndex]. mFiles.fFi leIndexToT itle(Param FileIndex) ;   148     return t his.mBookL ist[ParamB ookIndex]. mFiles.fFi leIndexToT itle(Param FileIndex) ;
149   }   149   }
150     150  
151   function   WWHBookLis t_GetBookI ndexFileHR EF(ParamHR EF)   151   function   WWHBookLis t_GetBookI ndexFileHR EF(ParamHR EF)
152   {   152   {
153     var  Res ultArray =  new Array (-1, null) ;   153     var  Res ultArray =  new Array (-1, null) ;
154     var  Lon gestMatchI ndex;   154     var  Lon gestMatchI ndex;
155     var  Max Index;   155     var  Max Index;
156     var  Ind ex;   156     var  Ind ex;
157     var  Par ts;   157     var  Par ts;
158     var  Fil eHREF;   158     var  Fil eHREF;
159     159  
160     160  
161     // Find  the book d irectory   161     // Find  the book d irectory
162     //   162     //
163     LongestM atchIndex  = -1;   163     LongestM atchIndex  = -1;
164     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)   164     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)
165     {   165     {
166       if (Pa ramHREF.in dexOf(this .mBookList [Index].mD irectory)  == 0)   166       if (Pa ramHREF.in dexOf(this .mBookList [Index].mD irectory)  == 0)
167       {   167       {
168         if ( LongestMat chIndex ==  -1)   168         if ( LongestMat chIndex ==  -1)
169         {   169         {
170           Lo ngestMatch Index = In dex;   170           Lo ngestMatch Index = In dex;
171         }   171         }
172         else  if (this. mBookList[ Index].mDi rectory.le ngth > thi s.mBookLis t[LongestM atchIndex] .mDirector y.length)   172         else  if (this. mBookList[ Index].mDi rectory.le ngth > thi s.mBookLis t[LongestM atchIndex] .mDirector y.length)
173         {   173         {
174           Lo ngestMatch Index = In dex;   174           Lo ngestMatch Index = In dex;
175         }   175         }
176       }   176       }
177     }   177     }
178     178  
179     // If Lo ngestMatch Index is v alid, we f ound our b ook direct ory   179     // If Lo ngestMatch Index is v alid, we f ound our b ook direct ory
180     //   180     //
181     if (Long estMatchIn dex != -1)   181     if (Long estMatchIn dex != -1)
182     {   182     {
183       // Set  FileHREF  to be just  the file  portion   183       // Set  FileHREF  to be just  the file  portion
184       //   184       //
185       if (th is.mBookLi st[Longest MatchIndex ].mDirecto ry.length  > 0)   185       if (th is.mBookLi st[Longest MatchIndex ].mDirecto ry.length  > 0)
186       {   186       {
187         File HREF = Par amHREF.sub string(thi s.mBookLis t[LongestM atchIndex] .mDirector y.length,  ParamHREF. length);   187         File HREF = Par amHREF.sub string(thi s.mBookLis t[LongestM atchIndex] .mDirector y.length,  ParamHREF. length);
188       }   188       }
189       else   189       else
190       {   190       {
191         File HREF = Par amHREF;   191         File HREF = Par amHREF;
192       }   192       }
193     193  
194       Result Array[0] =  LongestMa tchIndex;   194       Result Array[0] =  LongestMa tchIndex;
195       Result Array[1] =  FileHREF;   195       Result Array[1] =  FileHREF;
196     }   196     }
197     197  
198     return R esultArray ;   198     return R esultArray ;
199   }   199   }
200     200  
201   function   WWHBookLis t_BookFile IndiciesTo HREF(Param BookIndex,   201   function   WWHBookLis t_BookFile IndiciesTo HREF(Param BookIndex,
202                                                    Param FileIndex)   202                                                    Param FileIndex)
203   {   203   {
204     return t his.mBookL ist[ParamB ookIndex]. mDirectory  + this.mB ookList[Pa ramBookInd ex].mFiles .fFileInde xToHREF(Pa ramFileInd ex);   204     return t his.mBookL ist[ParamB ookIndex]. mDirectory  + this.mB ookList[Pa ramBookInd ex].mFiles .fFileInde xToHREF(Pa ramFileInd ex);
205   }   205   }
206     206  
207   function   WWHBookLis t_HREFToBo okIndexFil eIndexAnch or(ParamHR EF)   207   function   WWHBookLis t_HREFToBo okIndexFil eIndexAnch or(ParamHR EF)
208   {   208   {
209     var  Res ultArray =  new Array (-1, -1, " ");   209     var  Res ultArray =  new Array (-1, -1, " ");
210     var  Par ts;   210     var  Par ts;
211     var  Tri mmedHREF;   211     var  Tri mmedHREF;
212     var  Anc hor;   212     var  Anc hor;
213     var  Boo kIndex;   213     var  Boo kIndex;
214     var  Fil eIndex;   214     var  Fil eIndex;
215     215  
216     216  
217     // Recor d anchor   217     // Recor d anchor
218     //   218     //
219     Parts =  ParamHREF. split("#") ;   219     Parts =  ParamHREF. split("#") ;
220     TrimmedH REF = Part s[0];   220     TrimmedH REF = Part s[0];
221     Anchor =  "";   221     Anchor =  "";
222     if (Part s.length >  1)   222     if (Part s.length >  1)
223     {   223     {
224       if (Pa rts[1].len gth > 0)   224       if (Pa rts[1].len gth > 0)
225       {   225       {
226         Anch or = Parts [1];   226         Anch or = Parts [1];
227       }   227       }
228     }   228     }
229     229  
230     // Deter mine book  index   230     // Deter mine book  index
231     //   231     //
232     Parts =  this.fGetB ookIndexFi leHREF(Tri mmedHREF);   232     Parts =  this.fGetB ookIndexFi leHREF(Tri mmedHREF);
233     if (Part s[0] >= 0)   233     if (Part s[0] >= 0)
234     {   234     {
235       BookIn dex = Part s[0];   235       BookIn dex = Part s[0];
236       FileIn dex = this .fHREFToFi leIndex(Bo okIndex, P arts[1]);   236       FileIn dex = this .fHREFToFi leIndex(Bo okIndex, P arts[1]);
237     237  
238       if (Fi leIndex >=  0)   238       if (Fi leIndex >=  0)
239       {   239       {
240         Resu ltArray[0]  = BookInd ex;   240         Resu ltArray[0]  = BookInd ex;
241         Resu ltArray[1]  = FileInd ex;   241         Resu ltArray[1]  = FileInd ex;
242         Resu ltArray[2]  = Anchor;   242         Resu ltArray[2]  = Anchor;
243       }   243       }
244     }   244     }
245     245  
246     return R esultArray ;   246     return R esultArray ;
247   }   247   }
248     248  
249   function   WWHBookLis t_GetSyncP revNext(Pa ramHREF)   249   function   WWHBookLis t_GetSyncP revNext(Pa ramHREF)
250   {   250   {
251     var  Res ultArray =  new Array (null, nul l, null);   251     var  Res ultArray =  new Array (null, nul l, null);
252     var  Par ts;   252     var  Par ts;
253     var  Boo kIndex;   253     var  Boo kIndex;
254     var  Fil eIndex;   254     var  Fil eIndex;
255     255  
256     256  
257     // Deter mine curre nt book in dex and fi le index   257     // Deter mine curre nt book in dex and fi le index
258     //   258     //
259     Parts =  this.fHREF ToBookInde xFileIndex Anchor(Par amHREF);   259     Parts =  this.fHREF ToBookInde xFileIndex Anchor(Par amHREF);
260     BookInde x = Parts[ 0];   260     BookInde x = Parts[ 0];
261     FileInde x = Parts[ 1];   261     FileInde x = Parts[ 1];
262     262  
263     // Set r eturn resu lts   263     // Set r eturn resu lts
264     //   264     //
265     if ((Boo kIndex >=  0) &&   265     if ((Boo kIndex >=  0) &&
266         (Fil eIndex >=  0))   266         (Fil eIndex >=  0))
267     {   267     {
268       // Set  sync   268       // Set  sync
269       //   269       //
270       Result Array[0] =  ParamHREF ;  // Indi cates file  found, sy nc possibl e   270       Result Array[0] =  ParamHREF ;  // Indi cates file  found, sy nc possibl e
271     271  
272       // Set  previous   272       // Set  previous
273       //   273       //
274       if (Fi leIndex >  0)   274       if (Fi leIndex >  0)
275       {   275       {
276         Resu ltArray[1]  = this.fB ookFileInd iciesToHRE F(BookInde x, FileInd ex - 1);   276         Resu ltArray[1]  = this.fB ookFileInd iciesToHRE F(BookInde x, FileInd ex - 1);
277       }   277       }
278       else   278       else
279       {   279       {
280         if ( BookIndex  > 0)   280         if ( BookIndex  > 0)
281         {   281         {
282           Re sultArray[ 1] = this. fBookFileI ndiciesToH REF(BookIn dex - 1, t his.mBookL ist[BookIn dex - 1].m Files.mFil eList.leng th - 1);   282           Re sultArray[ 1] = this. fBookFileI ndiciesToH REF(BookIn dex - 1, t his.mBookL ist[BookIn dex - 1].m Files.mFil eList.leng th - 1);
283         }   283         }
284       }   284       }
285     285  
286       // Set  next   286       // Set  next
287       //   287       //
288       if ((F ileIndex +  1) < this .mBookList [BookIndex ].mFiles.m FileList.l ength)   288       if ((F ileIndex +  1) < this .mBookList [BookIndex ].mFiles.m FileList.l ength)
289       {   289       {
290         Resu ltArray[2]  = this.fB ookFileInd iciesToHRE F(BookInde x, FileInd ex + 1);   290         Resu ltArray[2]  = this.fB ookFileInd iciesToHRE F(BookInde x, FileInd ex + 1);
291       }   291       }
292       else   292       else
293       {   293       {
294         if ( ((BookInde x + 1) < t his.mBookL ist.length ) &&   294         if ( ((BookInde x + 1) < t his.mBookL ist.length ) &&
295              (this.mBoo kList[Book Index + 1] .mFiles.mF ileList.le ngth > 0))   295              (this.mBoo kList[Book Index + 1] .mFiles.mF ileList.le ngth > 0))
296         {   296         {
297           Re sultArray[ 2] = this. fBookFileI ndiciesToH REF(BookIn dex + 1, 0 );   297           Re sultArray[ 2] = this. fBookFileI ndiciesToH REF(BookIn dex + 1, 0 );
298         }   298         }
299       }   299       }
300     }   300     }
301     301  
302     return R esultArray ;   302     return R esultArray ;
303   }   303   }
304     304  
305   function   WWHBookLis t_GetConte xtIndex(Pa ramContext )   305   function   WWHBookLis t_GetConte xtIndex(Pa ramContext )
306   {   306   {
307     var  Ret Index = -1 ;   307     var  Ret Index = -1 ;
308     308  
309     if (type of(this.mB ookContext ToIndex[Pa ramContext  + "~"]) = = "number" )   309     if (type of(this.mB ookContext ToIndex[Pa ramContext  + "~"]) = = "number" )
310     {   310     {
311       RetInd ex = this. mBookConte xtToIndex[ ParamConte xt + "~"];   311       RetInd ex = this. mBookConte xtToIndex[ ParamConte xt + "~"];
312     }   312     }
313     313  
314     return R etIndex;   314     return R etIndex;
315   }   315   }
316     316  
317   function   WWHBookLis t_GetConte xtBook(Par amContext)   317   function   WWHBookLis t_GetConte xtBook(Par amContext)
318   {   318   {
319     var  Res ultBook =  null;   319     var  Res ultBook =  null;
320     var  Max Index;   320     var  Max Index;
321     var  Ind ex;   321     var  Ind ex;
322     322  
323     323  
324     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)   324     for (Max Index = th is.mBookLi st.length,  Index = 0  ; Index <  MaxIndex  ; Index++)
325     {   325     {
326       if (th is.mBookLi st[Index]. mContext = = ParamCon text)   326       if (th is.mBookLi st[Index]. mContext = = ParamCon text)
327       {   327       {
328         Resu ltBook = t his.mBookL ist[Index] ;   328         Resu ltBook = t his.mBookL ist[Index] ;
329       }   329       }
330     }   330     }
331     331  
332     return R esultBook;   332     return R esultBook;
333   }   333   }