function Is() {
  var agent = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);

  this.ie = (agent.indexOf("msie") != -1);
  this.ie3 = (this.ie && (this.major == 2));
  this.ie4 = (this.ie && (this.major >= 4));
  this.ie5 = (this.ie && (this.major >= 5));

  this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
  this.ns2 = (this.ns && (this.major == 3));
  this.ns3 = (this.ns && (this.major == 3));
  this.ns4b = (this.ns && (this.minor < 4.04));
  this.ns4 = (this.ns && (this.major == 4));
  this.ns5 = (this.ns && (this.major == 5));

  this.op = (agent.indexOf("opera") != -1);
  this.win = (agent.indexOf("win")!=-1);
  this.mac = (agent.indexOf("mac")!=-1);
  this.unix = (agent.indexOf("x11")!=-1);

  if (this.ie || this.ns5) { document.write('<link rel="stylesheet" type="text/css" href="/ie.css">'); }
  if (this.ns4 || this.ns4b) { document.write('<link rel="stylesheet" type="text/css" href="/nn.css">'); }

}
var is = new Is();


// reload on resize
var origWidth, origHeight;

if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
}

else if (document.all) onresize = function() { window.location.reload(); }


function show_win(winname, obj, wid, hei) {
   var float1=open(obj, winname, 'toolbar=no,location=no,menubar=no,status=no,directories=no,scrollbars=no,width='+wid+',height='+hei+',left=70,top=50');
}

