Project

General

Profile

1
 /*
2
  *   '$RCSfile$'
3
  *     Purpose: Default style sheet for KNP project web pages 
4
  *              Using this stylesheet rather than placing styles directly in 
5
  *              the KNP web documents allows us to globally change the 
6
  *              formatting styles of the entire site in one easy place.
7
  *   Copyright: 2000 Regents of the University of California and the
8
  *               National Center for Ecological Analysis and Synthesis
9
  *     Authors: Matt Jones
10
  *
11
  *    '$Author: daigle $'
12
  *      '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
13
  *  '$Revision: 4080 $'
14
  *
15
  * This program is free software; you can redistribute it and/or modify
16
  * it under the terms of the GNU General Public License as published by
17
  * the Free Software Foundation; either version 2 of the License, or
18
  * (at your option) any later version.
19
  *
20
  * This program is distributed in the hope that it will be useful,
21
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
  * GNU General Public License for more details.
24
  *
25
  * You should have received a copy of the GNU General Public License
26
  * along with this program; if not, write to the Free Software
27
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28
  */
29
   
30
function showBranch(branch) {
31
	var objBranch = document.getElementById(branch).style;
32
	if(objBranch.display=="block")
33
		objBranch.display="none";
34
	else
35
		objBranch.display="block";
36
}
37

    
38
   
39
function swapFolder(openImageLocation, closedImageLocation, img) {
40
	var openImg = new Image();
41
	openImg.src = openImageLocation;
42
	var closedImg = new Image();
43
	closedImg.src = closedImageLocation;
44
	
45
	objImg = document.getElementById(img);
46
	if(objImg.src.indexOf(closedImageLocation)>-1)
47
		objImg.src = openImg.src;
48
	else
49
	objImg.src = closedImg.src;
50
}
51
  
(4-4/4)