/***************************************************************** 
 * Coldplay Toggle Script v1.0 20030607                          *
 * Copyright (c) 2003 Bernie Zimmermann                          *
 * Designed for use at http://www.pleasureunit.com/coldplay      *
 *                                                               *
 * For permission to use script, contact Bernie Zimmermann       *
 *****************************************************************/

/* set currently highlighted section to nothing */
var current = 'Nothing';
var divToHide = '';
var divToShow = '';

/* function for displaying correct submenu */
function toggle(thisDiv) {

	/* make sure it isn't already selected */
	if (current == thisDiv)
		return;
	
	/* handle the switch in Gecko browsers */
	if (document.getElementById) {

		/* hide current submenu if there is one */
		if (current != 'Nothing') {
			divToHide = document.getElementById(current);
			divToHide.style.visibility = 'hidden';
		}

		/* show the appropriate submenu */
		divToShow = document.getElementById(thisDiv);
		divToShow.style.visibility = 'visible';

		/* set shown submenu as current */
		current = thisDiv;

	}

	/* handle the switch in Internet Explorer */
	if (document.all) {

		/* hide current submenu if there is one */
		if (current != 'Nothing') {
			divToHide = document.all(current).style;
			divToHide.visibility = 'hidden';
		}

		/* show the appropriate submenu */
		divToShow = document.all(thisDiv).style;
		divToShow.visibility = 'visible';

		/* set shown submenu as current */
		current = thisDiv;

	}

	return;
			
}
