3 * Functions used with the perl module of the same name
4 * @author Robert Buels <rmb32@cornell.edu>
10 if(!CXGN.Page) CXGN.Page = {};
11 if(!CXGN.Page.Toolbar)
19 CXGN.Page.Toolbar.showmenu = function(menu) {
20 CXGN.Page.Toolbar.hideall();
21 document.getElementById(menu).style.visibility = "visible";
22 CXGN.Page.Toolbar.stopTime();
25 CXGN.Page.Toolbar.hidemenu = function() {
26 CXGN.Page.Toolbar.startTime();
29 CXGN.Page.Toolbar.addmenu = function(menu) {
30 CXGN.Page.Toolbar.menulist[CXGN.Page.Toolbar.menulist.length] = menu;
33 CXGN.Page.Toolbar.startTime = function() {
34 if (CXGN.Page.Toolbar.timerOn == false) {
35 CXGN.Page.Toolbar.timerID = setTimeout( "CXGN.Page.Toolbar.hideall()" , CXGN.Page.Toolbar.timecount);
36 CXGN.Page.Toolbar.timerOn = true;
40 CXGN.Page.Toolbar.stopTime = function() {
41 if (CXGN.Page.Toolbar.timerOn == true) {
42 clearTimeout(CXGN.Page.Toolbar.timerID);
43 CXGN.Page.Toolbar.timerID = null;
44 CXGN.Page.Toolbar.timerOn = false;
48 CXGN.Page.Toolbar.hideall = function() {
49 for(var i=0; i<CXGN.Page.Toolbar.menulist.length; i++) {
50 document.getElementById(CXGN.Page.Toolbar.menulist[i]).style.visibility = "hidden";