var infoToggle = 0;

function jsTime() {
	var pdtAll = new Date();
	var pdtDate = pdtAll.toLocaleDateString();
	var pdtTime = pdtAll.toLocaleTimeString();
	document.getElementById("burbankDate").innerHTML = pdtDate;
	document.getElementById("burbankTime").innerHTML = pdtTime;
}

function browserfunction()
{alert("You are using a "+navigator.appCodeName+" browser by "+navigator.appName+". Application version is "+navigator.appVersion+". Java "+javastatus+" (Java is not required for this site.) JavaScript does need to be enabled.");
}


jQuery(document).ready(function() { 
	jsTime();
	if (document.getElementById('infoToggleButton')) { // cuz breaks on other pages without date forms
		document.getElementById("infoToggleButton").onclick = function() {
			if (infoToggle == 0) {
			//w3schools.com
				document.getElementById("browserReturn").innerHTML="Code name: " + navigator.appCodeName + "<br /> App name: " + navigator.appName + " " + "<br />App version: " + navigator.appVersion;
				document.getElementById("hardwareReturn").innerHTML="CPU class: " + 
				navigator.cpuClass + "<br /> Platform: " + navigator.platform + "<br /> System Language: " + navigator.systemLanguage + "<br /> User Agent: " + navigator.userAgent + "<br /> <br /> Java Enabled: " + navigator.javaEnabled();
				infoToggle = 1;
			} else {
				document.getElementById("browserReturn").innerHTML="";
				document.getElementById("hardwareReturn").innerHTML="";
				infoToggle = 0;
			}// end if
		}; // ends function
	} // ends if
}); 


