<!-- ******************************************************************************** -->
<!-- $Id: slide.js,v 1.17 2009-06-03 22:55:16 martin Exp $ -->
<!-- Javascript-file for slidepages -->
<!-- JAlbum Project Skin 'NospOfTombl' -->
<!-- Author: Martin Milinovsky -->
<!-- E-mail: jalbum@milinovsky.at -->
<!-- Copyright (C) 2009 Martin Milinovsky -->
<!-- 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 3 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, see http://www.gnu.org/licenses/gpl.html. -->
<!-- ******************************************************************************** -->

var showExif = true;
var showMap = true;

function toggleExif() {
	if (showExif == false) {
		if (document.all || document.getElementById) {
			document.getElementById('links').style.visibility="visible";	// IE & Gecko
			document.getElementById('links').style.display="block";	// IE & Gecko
		} else {
			document.layers['links'].visibility="show"; // Netscape 4
		}
		showExif = true;
		if (showMap == true) {
			toggleMap();
		}
	} else {
		if (document.all || document.getElementById) {
			document.getElementById('links').style.visibility="hidden";	// IE & Gecko
			document.getElementById('links').style.display="none";	// IE & Gecko
		} else {
			document.layers['links'].visibility="hide";	// Netscape 4
		}
		showExif = false;
	}
}

function toggleMap() {
	if (showMap == false) {
		if (document.all || document.getElementById) {
			document.getElementById('slidemap').style.visibility="visible";	// IE & Gecko
			document.getElementById('slidemap').style.display="block";	// IE & Gecko
		} else {
			document.layers['slidemap'].visibility="show"; // Netscape 4
		}
		showMap = true;
		if (showExif == true) {
			toggleExif();
		}
	} else {
		if (document.all || document.getElementById) {
			document.getElementById('slidemap').style.visibility="hidden";	// IE & Gecko
			document.getElementById('slidemap').style.display="none";	// IE & Gecko
		} else {
			document.layers['slidemap'].visibility="hide";	// Netscape 4
		}
		showMap = false;
	}
}

