
/* - o_utils.js - */
/*
#  Origami http://plone.org/products/origami/
#  Publishing tools based on Archetypes and AT Content Types
#  Copyright (c) 2007 Academic Technologies Northwestern University
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
"""JavaScript helper functions that implement the ExpandableWidget
functionality.
"""
__author__  = 'Origami Team <http://nuamps.at.northwestern.edu/origami>'
__docformat__ = 'restructuredtext'
*/

/*---------FOOTNOTE FUNCTIONS-------------*/
var state = 'none';
var whereitis;
var noteContent;
var noteArrow1;
var noteArrow2;
var linkstate = 'inline';
var curr_state;

var previtem;
var curritem;

var noteID;

function gotohref(url){
	self.opener.location = url;
}

function showhide(noteID, state) {
//CHANGE THE DISPLAY STATE OF THE NOTE	
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
	eval( "document.all." + noteID + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
	document.layers[noteID].display = state;
	}
	if (document.getElementById && !document.all) {
	gottenID = document.getElementById(noteID);
	gottenID.style.display = state;
	}


}
