2 var gIEA = new Array();
\r
5 var len = gIEA.length;
\r
6 gIEA[len] = new indexEntry(aIE.arguments);
\r
9 function topic(sName, sURL)
\r
15 function indexEntry(fn_arguments)
\r
17 if (fn_arguments.length && fn_arguments.length >= 3)
\r
19 this.nType = fn_arguments[0];
\r
21 this.nNKOff = fn_arguments[1];
\r
22 this.sName = fn_arguments[2];
\r
23 this.aTopics = null;
\r
24 var nLen = fn_arguments.length;
\r
25 if (Math.floor(nLen / 2) * 2 == nLen)
\r
27 this.sTarget = fn_arguments[3];
\r
30 this.aTopics = new Array();
\r
31 for (var i = 0; i < (nLen - 5)/2; i++)
\r
33 this.aTopics[i] = new topic(fn_arguments[i * 2 + 4], fn_arguments[i * 2 + 5]);
\r
42 this.aTopics = new Array();
\r
43 for (var i = 0; i < (nLen - 4)/2; i++)
\r
45 this.aTopics[i] = new topic(fn_arguments[i * 2 + 3], fn_arguments[i * 2 + 4]);
\r
52 function getIndexTopicMappingList(nItemIndex)
\r
55 if (gIEA.length > nItemIndex)
\r
57 if (gIEA[nItemIndex].aTopics)
\r
60 var nLen = gIEA[nItemIndex].aTopics.length;
\r
61 for (i = 0; i < nLen; i ++)
\r
63 sTopics += "," + gIEA[nItemIndex].aTopics[i];
\r
70 function window_OnLoad()
\r
72 if (parent && parent != this) {
\r
73 if (parent.putData)
\r
75 for (var i = 0; i < gIEA.length; i ++ )
\r
77 if (gIEA[i].nNKOff != 0 && i + gIEA[i].nNKOff + 1 < gIEA.length)
\r
80 gIEA[i + gIEA[i].nNKOff + 1].nPKOff = gIEA[i].nNKOff;
\r
83 parent.putData(gIEA);
\r
88 window.onload = window_OnLoad;