|
@@ -96,25 +96,27 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-<script type="text/javascript">
|
|
|
|
- //<![CDATA[
|
|
|
|
|
|
+<script type="text/javascript">//<![CDATA[
|
|
function toggle(id, clazz) {
|
|
function toggle(id, clazz) {
|
|
- el = document.getElementById(id);
|
|
|
|
- current = el.style.display
|
|
|
|
|
|
+ var el = document.getElementById(id),
|
|
|
|
+ current = el.style.display,
|
|
|
|
+ i;
|
|
|
|
|
|
if (clazz) {
|
|
if (clazz) {
|
|
var tags = document.getElementsByTagName('*');
|
|
var tags = document.getElementsByTagName('*');
|
|
- for (i = 0; i < tags.length; i++) {
|
|
|
|
- if (tags[i].className == clazz) {
|
|
|
|
|
|
+ for (i = tags.length - 1; i >= 0 ; i--) {
|
|
|
|
+ if (tags[i].className === clazz) {
|
|
tags[i].style.display = 'none';
|
|
tags[i].style.display = 'none';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- el.style.display = current == 'none' ? 'block' : 'none';
|
|
|
|
|
|
+ el.style.display = current === 'none' ? 'block' : 'none';
|
|
}
|
|
}
|
|
|
|
|
|
function switchIcons(id1, id2) {
|
|
function switchIcons(id1, id2) {
|
|
|
|
+ var icon1, icon2, visibility1, visibility2;
|
|
|
|
+
|
|
icon1 = document.getElementById(id1);
|
|
icon1 = document.getElementById(id1);
|
|
icon2 = document.getElementById(id2);
|
|
icon2 = document.getElementById(id2);
|
|
|
|
|
|
@@ -124,6 +126,4 @@
|
|
icon1.style.visibility = visibility2;
|
|
icon1.style.visibility = visibility2;
|
|
icon2.style.visibility = visibility1;
|
|
icon2.style.visibility = visibility1;
|
|
}
|
|
}
|
|
-
|
|
|
|
- //]]>
|
|
|
|
-</script>
|
|
|
|
|
|
+//]]></script>
|