scripts/menu.js
/**
 * Show or Hide an error based on whether an error has been determined to occur
 * @param {Object} errorDiv A HTML div encapsulated by jQuery, containing a set of potential error messages
 * @param {Object} errorDivTxt A HTML div encapsulated by jQuery containing the specific error message to display
 * @param {boolean} errorDivTxt Whether or not an error has been encountered
 */
Show or Hide an error based on whether an error has been determined to occur
@param {Object} errorDiv A HTML div encapsulated by jQuery, containing a set of potential error messages
@param {Object} errorDivTxt A HTML div encapsulated by jQuery containing the specific error message to display
@param {boolean} errorDivTxt Whether or not an error has been encountered
Show or Hide an error based on whether an error has been determined to occur @param { Object } errorDiv A HTML div encapsulated by jQuery containing a set of potential error messages @param { Object } errorDivTxt A HTML div encapsulated by jQuery containing the specific error message to display @param { boolean } errorDivTxt Whether or not an error has been encountered
function checkHideShowError(errorDiv, errorDivTxt, error) {
	if(error) {
	    $("#progressOverlay").hide();
		checkShowMenuAfterDelay();
		checkHideShowError(errorDiv, errorDivTxt, false); 
		errorDivTxt.show();
		errorDiv.slideDown("fast");
	}
	else {
		errorDiv.slideUp("fast");
		errorDiv.find(errorDivTxt).hide();
	}
}
function checkHideShowError ( errorDiv , errorDivTxt , error ) { if ( error ) { $ ( "#progressOverlay" ) . hide ( ) ; checkShowMenuAfterDelay ( ) ; checkHideShowError ( errorDiv , errorDivTxt , false ) ; errorDivTxt . show ( ) ; errorDiv . slideDown ( "fast" ) ; } else { errorDiv . slideUp ( "fast" ) ; errorDiv . find ( errorDivTxt ) . hide ( ) ; } }
Show or Hide an error based on whether an error has been determined to occur
 @param {Object} errorDiv A HTML div encapsulated by jQuery, containing a set of potential error messages
 @param {Object} errorDivTxt A HTML div encapsulated by jQuery containing the specific error message to display
 @param {boolean} errorDivTxt Whether or not an error has been encountered
Show or Hide an error based on whether an error has been determined to occur @param { Object } errorDiv A HTML div encapsulated by jQuery containing a set of potential error messages @param { Object } errorDivTxt A HTML div encapsulated by jQuery containing the specific error message to display @param { boolean } errorDivTxt Whether or not an error has been encountered
//setTimeout(function() { if(!$(".menu").is(":visible"))	{ changeMenuVisibility(); }}, 500); //Force the error message to disappear and reappear if unresolved