// styles.js -- Browser Sniffer and Style Loading Script

// Netscape Redraw

if (!window.saveInnerWidth) {
  window.onresize = resize;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resize() {
	if (saveInnerWidth != window.innerWidth || saveInnerHeight != window.innerHeight) { window.history.go(0); }
}



// Capture essential client properties

var wvlong = parseFloat(navigator.appVersion);
var wvshort = parseInt(navigator.appVersion);
var wagent = navigator.userAgent;
var wplatform = navigator.platform;
var wbrowser = navigator.appName;
	
// Set Browser-Specific branches

var isLayers = (wvshort == 4) && (wbrowser == "Netscape");  
var isNNPC4 = (isLayers) && (wplatform.indexOf("Win") != -1); 
var isDivs = (wvshort >= 4) && (wbrowser.indexOf("Microsoft") != -1);
var isIE4Mac = (isDivs) && (wagent.indexOf("5.0") == -1) && (wplatform.indexOf("Mac") != -1);
var isDOM = (wvshort >= 5) && (wbrowser == "Netscape");
var isOther = (!isLayers) && (!isDivs) && (!isDOM);

var isClippable = ((!isOther) && (!isIE4Mac) && (!isDOM)); // Netscape 6 and IE 4 on the Mac don't support clipping

// Load Correct Style Sheet for Platform

if (isNNPC4) { document.write('<LINK REL="stylesheet" HREF="/harrisons/public/all_styles/hol_navpc.css" TYPE="text/css">'); 
} else { document.write('<LINK REL="stylesheet" HREF="/harrisons/public/all_styles/hol.css" TYPE="text/css">'); }