
/*
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function BrowserDetect() 
{
	var ua = navigator.userAgent.toLowerCase();
	this.isSafari = (ua.indexOf('safari') != -1);
	this.versionMinor = parseFloat(navigator.appVersion);
	this.isSafari10 = ((this.isSafari) && (this.versionMinor < 87));
	if (this.isSafari10 == true) 
	{
		document.write('<style type="text/css">li li {display: none}<\/style>');
	}
}
*/


// Sniff pre v.86 versions of Safari

	function BrowserDetect() {
		var agt = navigator.userAgent.toLowerCase();
		var appVer = navigator.appVersion.toLowerCase();
		
		var is_safari = (agt.indexOf("safari") != -1);
		var build = appVer.substring(appVer.lastIndexOf("/")+1);
		
		if (build < 86) {
			document.write('<style type="text/css">#topnav li:hover ul { display: none } </style>');
		}
	}


	function startList() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("topnav");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
	
	
	function startPerceptionshaper() {
		if (document.all&&document.getElementById) {
			percptionactivator = document.getElementById("perceptionshaper");
			for (i=0; i<percptionactivator.childNodes.length; i++) {
				node = percptionactivator.childNodes[i];
				if (node.nodeName=="A") {
					node.onmouseover=function() {
						this.className+="over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
				}
			}
		}
	}
	
