/*******************************************************************************
 *
 * LEIDEN OPEN VARIATION DATABASE (LOVD)
 *
 * Created     : 2009-11-30
 * Modified    : 2010-03-09
 * For LOVD    : 2.0-25
 *
 * Access      : Public
 * Purpose     : Provide JavaScript for showing and hiding the contents of an
 *               information table.
 *
 * Copyright   : 2004-2010 Leiden University Medical Center; http://www.LUMC.nl/
 * Programmers : Ir. Gerard C.P. Schaafsma <G.C.P.Schaafsma@LUMC.nl>
 *               Ing. Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@LUMC.nl>
 * Last edited : Ir. Gerard C.P. Schaafsma <G.C.P.Schaafsma@LUMC.nl>
 *
 *
 * This file is part of LOVD.
 *
 * LOVD 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.
 *
 * LOVD 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 LOVD; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *************/

function lovd_toggleVisibility (objElement) {
    if (document.getElementById(objElement).style.display == 'none') {
        document.getElementById(objElement).style.display = '';
        if (document.getElementById(objElement + '_link')) {
            document.getElementById(objElement + '_link').innerHTML = 'Hide';
        }
    } else {
        document.getElementById(objElement).style.display = 'none';
        if (document.getElementById(objElement + '_link')) {
            document.getElementById(objElement + '_link').innerHTML = 'Show';
        }
    }
}
