-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu_eng.htm
203 lines (173 loc) · 5.48 KB
/
menu_eng.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
</HEAD>
<script src="hamster_eng.js"></script>
<script>
var DATA = new Array();
var g_selectedIndex = -1;
var DEFAULT_VIEW;
function LoadIndex(index) {
menu_url = DATA[index].menu_url;
if (!menu_url) menu_url = DEFAULT_MENU_URL + '?data=' + PARAM.data + '&index=' + index;
//parent.parent.frames['g2db_content'].location.href = menu_url;
parent.parent.frames[1].location.href = menu_url; //!!!workaround for opera
g_selectedIndex = index;
}
function LoadIndexTop(index) {
LoadIndex(index);
location.href = 'menu_eng.htm?data=' + PARAM.data + '&index=' + index;
}
function LoadID(id) {
Data = false;
for (i = 0; i < DATA.length; ++i) {
if (DATA[i].id == id) {
Data = DATA[i];
g_selectedIndex = i;
break;
}
}
if (Data) {
menu_url = Data.menu_url;
if (!menu_url) menu_url = DEFAULT_MENU_URL;
parent.parent.frames['g2db_content'].location.href = menu_url + '?data=' + PARAM.data + '&id=' + id;
}
}
function LoadName(name) {
Data = false;
for (i = 0; i < DATA.length; ++i) {
if (DATA[i].name == name) {
Data = DATA[i];
g_selectedIndex = i;
break;
}
}
if (Data) {
menu_url = Data.menu_url;
if (!menu_url) menu_url = DEFAULT_MENU_URL;
parent.parent.frames['g2db_content'].location.href = menu_url + '?data=' + PARAM.data + '&name=' + name;
}
}
function ViewDefault() {
is_first_section = true;
OUT('<table border=0 cellspacing=0 cellpadding=0 id=menu_table><tr><th id=menu_th_left></th><th id=menu_th_right></th></tr>');
for (i = 0; i < DATA.length; ++i) {
if (DATA[i].section) {
if (is_first_section) {
OUT('<tr><td colspan=2 class=menu_section_first>' + DATA[i].section + '</td></tr>');
}
else {
OUT('<tr><td colspan=2 class=menu_section>' + DATA[i].section + '</td></tr>');
}
is_first_section = false;
}
else {
OUT('<tr><td class=menu_item valign=top>-</td><td class=menu_item valign=top><a id=menu_a_item href="javascript:LoadIndex(' + i + ');">' + DATA[i].name + '</a></td></tr>');
}
}
OUT('</table>');
}
function ViewTwoLists() {
var amap = new Array();
var omap = new Object();
var okind = new Object();
var omap_first = new Object();
var okind_first = new Object();
var section;
var pivot_map = -1;
var pivot_kind = -1;
for (i = 0; i < DATA.length; ++i) {
var it = DATA[i];
if (it.section || (i == 0)) {
if (it.section) section = it.section;
else section = "(other)";
if (!omap[section]) {
omap[section] = new Object();
amap[amap.length] = section;
}
}
else if (it.name) {
if ((it.id && PARAM.id && (it.id == PARAM.id)) || (PARAM.index && (i == PARAM.index))) {
pivot_map = section;
pivot_kind = it.name;
}
omaplist = omap[section];
if (!omaplist[it.name]) omaplist[it.name] = i;
if (!okind[it.name]) {
okind[it.name] = new Object;
}
okindlist = okind[it.name];
if (!okindlist[section]) okindlist[section] = i;
if (!omap_first[section]) omap_first[section] = i;
if (!okind_first[it.name]) okind_first[it.name] = i;
}
}
var akind = new Array;
for (it in okind) {
akind[akind.length] = it;
}
akind = akind.sort();
OUT('<table border=0 cellspacing=0 cellpadding=0 id=menu_table><tr><th id=menu_th_left><th id=menu_th_right></tr>');
OUT('<tr><td colspan=2 class=menu_section_first>Area</td></tr>');
for (i = 0; i < amap.length; ++i) {
section = amap[i];
if (pivot_map == section) td_class = 'menu_item_highlight';
else td_class = 'menu_item';
OUT('<tr>');
OUT('<td class=menu_item valign=top>-</td>');
id_a = 'menu_a_item';
if (pivot_kind < 0) index = omap_first[section];
else {
omaplist = omap[section];
index = omaplist[pivot_kind];
if (!index) {
index = omap_first[section];
id_a = 'menu_a_item_grayed';
}
}
OUT('<td class=' + td_class + ' valign=top><a id=' + id_a + ' href="javascript:LoadIndexTop(' + index + ');">' + section + '</a></td></tr>');
}
OUT('<tr><td colspan=2 class=menu_section>Topics</td></tr>');
for (i = 0; i < akind.length; ++i) {
kind = akind[i];
if (pivot_kind == kind) td_class = 'menu_item_highlight';
else td_class = 'menu_item';
OUT('<tr><td class=menu_item valign=top>-</td>');
id_a = 'menu_a_item';
if (pivot_map < 0) index = okind_first[kind];
else {
okindlist = okind[kind];
index = okindlist[pivot_map];
if (!index) {
index = okind_first[kind];
id_a = 'menu_a_item_grayed';
}
}
OUT('<td class=' + td_class + ' valign=top><a id=' + id_a + ' href="javascript:LoadIndexTop(' + index + ');">' + kind + '</a></td></tr>');
}
OUT('</table>');
}
function OnDataLoaded() {
if (PARAM.index) LoadIndex([PARAM.index]);
else if (PARAM.id) LoadID(PARAM.id);
else if (PARAM.name) LoadName(unescape(PARAM.name));
// else parent.parent.frames['g2db_content'].location.href = 'content_g2adb_eng.htm?data=' + PARAM.data;
if (DEFAULT_VIEW == 'twolists') ViewTwoLists();
else ViewDefault();
}
</script>
<BODY class=class_body_white>
<!-- Liste -->
<script>
var data_file = PARAM.data;
if (!data_file || (data_file.length == 0)) {
data_file = "data_guide_eng.js";
}
// document.tagTitle.src='pics/butt_' + data_file + '.jpg';
INCLUDE(data_file);
</script>
</BODY>
</HTML>