add an RSS feed to describe a barrel's recent changes
[diogenes.git] / htdocs / phplayersmenu / layerstreemenu.ijs
CommitLineData
6855525e
JL
1// PHP Layers Menu 3.1.1 (C) 2001-2003 Marco Pratesi (marco at telug dot it)
2
3function {toggle_function_name}(nodeid) {
4 if ((!DOM || Opera56 || Konqueror22) && !IE4) {
5 return;
6 }
7 layersMoved = 0;
8 parseExpandString();
9 parseCollapseString();
10 if (!IE4) {
11 sonLayer = document.getElementById('jt' + nodeid + 'son');
12 nodeLayer = document.getElementById('jt' + nodeid + 'node');
13 folderLayer = document.getElementById('jt' + nodeid + 'folder');
14 } else {
15 sonLayer = document.all('jt' + nodeid + 'son');
16 nodeLayer = document.all('jt' + nodeid + 'node');
17 folderLayer = document.all('jt' + nodeid + 'folder');
18 }
19 if (sonLayer.style.display == "none") {
20 sonLayer.style.display = "block";
21 if (nodeLayer.src.indexOf("{img_expand}") > -1) {
22 nodeLayer.src = "{img_collapse}";
23 } else if (nodeLayer.src.indexOf("{img_expand_first}") > -1) {
24 nodeLayer.src = "{img_collapse_first}";
25 } else {
26 nodeLayer.src = "{img_collapse_corner}";
27 }
28 folderLayer.src = "{img_folder_open}";
29 expand[nodeid] = 1;
30 collapse[nodeid] = 0;
31 } else {
32 sonLayer.style.display = "none";
33 if (nodeLayer.src.indexOf("{img_collapse}") > -1) {
34 nodeLayer.src = "{img_expand}";
35 } else if (nodeLayer.src.indexOf("{img_collapse_first}") > -1) {
36 nodeLayer.src = "{img_expand_first}";
37 } else {
38 nodeLayer.src = "{img_expand_corner}";
39 }
40 folderLayer.src = "{img_folder_closed}";
41 expand[nodeid] = 0;
42 collapse[nodeid] = 1;
43 }
44 saveExpandString();
45 saveCollapseString();
46}
47