2009-06-30 10:46:00 +00:00
|
|
|
var current;
|
|
|
|
|
|
|
|
function tree_unhide(whichLayer,old) {
|
|
|
|
if (current == null) current = old;
|
2009-07-01 06:09:17 +00:00
|
|
|
var oldtree = document.getElementById('ajSID_'+current).style;
|
2009-06-30 10:46:00 +00:00
|
|
|
oldtree.display = 'none';
|
|
|
|
|
|
|
|
if (document.getElementById) {
|
|
|
|
// this is the way the standards work
|
|
|
|
var newtree = document.getElementById(whichLayer).value;
|
2009-07-01 06:09:17 +00:00
|
|
|
var newtree_div = document.getElementById('ajSID_'+newtree).style;
|
2009-06-30 10:46:00 +00:00
|
|
|
newtree_div.display = 'block';
|
|
|
|
|
|
|
|
/*
|
|
|
|
} else if (document.all) {
|
|
|
|
// this is the way old msie versions work
|
|
|
|
var style2 = document.all[whichLayer].style;
|
|
|
|
style2.display = style2.display ? '':'block';
|
|
|
|
|
|
|
|
} else if (document.layers) {
|
|
|
|
// this is the way nn4 works
|
|
|
|
var style2 = document.layers[whichLayer].style;
|
|
|
|
style2.display = style2.display ? '':'block';
|
|
|
|
*/
|
|
|
|
}
|
|
|
|
current = newtree;
|
|
|
|
}
|