// This page is included in all templates via Javascript #include

// Set global variables for browser sniffing
var sAgent = window.navigator.userAgent;
var nVer   = parseInt(sAgent.charAt(sAgent.indexOf("/")+1),10);
var isIE   = false;
var isNS   = false;
if (nVer > 3) {
  if (sAgent.indexOf("MSIE") > 0) {
    isIE = true;
  } else {
    isNS = true;
  }
}

// Resize handler for NS4 Resize bug
var origWidth,origHeight;
if (isNS) {
  origWidth = innerWidth;
  origHeight = innerHeight;
}

function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight) 
    location.reload();
}

if (isNS) onresize = reDo;


