// This function fires an event when enter key is pressed on the hidden 
// upper left graphic to jump to content section

	function jumpToContent(e) {

			if (is.ns4 || is.ns6) {
			  // use the "e" reference
				var keyChar = e.which;

			} else {
			  // use the "event" (or "window.event") reference
			  	var keyChar = window.event.keyCode;

			}

			if (keyChar == 0x000D) {
				location.href = "#Content";
			} else {
			
				return false;
			}
	}
	
	
//  OnKeyPress Function
//
//  This function fires when a key is pressed anywhere on the site.  It detects
//  which key was pressed, then compares it to the existing defined keys to determine
//  if anything should be done.  It then completes the required action and returns
//  control to the page
		
		
	function blockA(e) {

		if (is.ns4 || is.ns6) {
		  // use the "e" reference
			var keyChar = String.fromCharCode(e.which);

		} else {
		  // use the "event" (or "window.event") reference
			var keyChar = String.fromCharCode(window.event.keyCode);

		}
		
		// Display Status of SR Functions

		if(keyChar == '|') {
		
			if (isUsingScreenReader == "yes") {
			
				messageText = "Screen Reading Functions Are Enabled";
			
			} else {
			
				messageText = "Screen Reading Functions Are Disabled";
			}
			alert(messageText);
		}
		
		if (keyChar == 'H' || keyChar == 'h') {

			alert("Press the letter \"E\" to toggle the navigation keys.\n\nThe following keys are available to help navigate the page:\n\n\tC - Content\n\tT - Top\n\tN - Left Navigation Menu\n\tF - Page Footer")
		}

		if (isUsingScreenReader == "yes") {

			if (keyChar == 'C' || keyChar == 'c') {
				location.href = "#Content";
			} else if(keyChar == 'T' || keyChar == 't') {
				location.href = "#Top";
			} else if(keyChar == 'N' || keyChar == 'n') {
				location.href = "#leftnavbar";
			} else if(keyChar == 'F' || keyChar == 'f') {
				location.href = "#Footer";
			}else if (keyChar == 'E'|| keyChar == 'e') {

				isUsingScreenReader = "no";
				window.status = "Screen Reading functions are Disabled";

			} else {
			
				return false;
			
			}

		}  else {

			if (keyChar == 'E'|| keyChar == 'e') {

				isUsingScreenReader = "yes";
				window.status = "Screen Reading functions are Enabled";

			}
		}
		
		return false;
	}




// Setup KEYPRESS Event to capture keyboard actions


//if (is.ns4 || is.ns6) document.captureEvents(Event.KEYPRESS);

//document.onkeypress = blockA;