// SiteEngine = Written by Clint Sulis (c)1999-2007 Digital Dementia
//
// This site was developed using SiteEngine technology, which was written by
// Clint Sulis of Digital Dementia.  You may not duplicate or modify this code
// including the object classes, without permission from the author.  This does
// not include the smarty page template class which is free opensource code.
//
// If you have questions or would like to request permission, please do not
// hesitate to email clintsulis@gmail.com with your request.  Thank you!

// TOGGLE AN ELEMENT'S DISPLAY STYLE PROPERTY BETWEEN NON AND INLINE/BLOCK
function showElement(id,displayType,toggle) {
	// DISPLAY STYLE IS SET TO NONE
	if (document.getElementById(id).style.display == 'none') {
		// SET DISPLAY TO SPECIFIED DISPLAY TYPE
		document.getElementById(id).style.display = displayType;
	// DISPLAY STYLE IS NOT SET TO NONE
	} else {
		// TOGGLE MODE SPECIFIED
		if (toggle) {
			// SET DISPLAY TO NONE
			document.getElementById(id).style.display = 'none';
		}
	}		
}
