//Global browser detection 
function BrowserStats() {
  var userAgent = " " + navigator.userAgent.toLowerCase();
  this.nn = userAgent.indexOf( "mozilla" ) > 0;
  userAgent.indexOf( "compatible" ) > 0 ? this.nn = false : "";
  this.ie = userAgent.indexOf( "msie" ) > 0;
  this.version = navigator.appVersion;
  this.major = parseInt( this.version );
  this.mac = userAgent.indexOf( "mac" ) > 0;
  this.ie ? userAgent.indexOf( "msie 5" ) > 0 ? this.major = 5 : "" : "";
  return this;
}

var browser = new BrowserStats();

//Global font platform resize
var platformCSS;
browser.mac && browser.major >= 5 || !browser.mac && browser.ie || browser.nn && browser.major >= 5 ? platformCSS = "smallFont.css" : browser.mac ? platformCSS = "largeFont.css" : "";
platformCSS ? document.write( "<link rel='stylesheet' href='./css/" + platformCSS + " 'type='text/css'>" ) : "";

//Global Netscape browser resize fix
if( browser.nn ) {
  widthCheck = window.innerWidth;
  heightCheck = window.innerHeight;
  window.onresize = resizeFix;
}

function resizeFix() {
  widthCheck != window.innerWidth || heightCheck != window.innerHeight ? window.location.reload( true ) : "";
}





