var ie6 = 0;
if (WhichBrowser() == "IE6") ie6 = 1;

addLoadEvent(function IFrameHide() {
	URSTopNavIFrameLayerHide("pjblock_about");
	URSTopNavIFrameLayerHide("pjblock_divisions");
																 });
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
function URSTopNavIFrameLayerHide(layer) {
	if (WhichBrowser() == "IE6" && document.readyState == "complete") {
		var d = document.getElementById(layer);
		d.style.display = "none";
	}
}
function WhichBrowser() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("webtv") != -1) return 'WebTV';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie 6") != -1) return 'IE6';
	if (agt.indexOf("msie") != -1) return 'IE';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}
function InterstitialConfirm(url) {
	return confirm("You are about to access an external site that is not hosted or maintained on URS servers.  URS is not responsible for the content or accuracy of any material on the site, nor are we responsible for the site's functionality, security and privacy policies.");
}
