/* ===================================================== */
/* ======        The Static Fade JavaScript      ======= */
/* ===================================================== */
/* Version 09.07.22 */

/* ==== navbar functions ============================= */
function resetNavbar(event){
	var posy = 0;
	if (!event) { var event = window.event; }
	if (event.pageY) { posy = event.pageY; }
	else if (event.clientY) { posy = event.clientY + document.body.scrollTop + document.documentElement.scrollTop; }
	// if the mouse is not between 270px and 370 px from the top of the window, reset the navbar
	if ((posy < 270)||(posy > 370)){
		setNavbar();
		}
}