// brwsrstat.js
//----------------------------------------------------------------------
// Author:  Tom Battista-Carter
// Created: November 11, 2002
// Purpose:
//    Determine browser type and screen resolution, and provide
//    utility functions based on these attributes
//----------------------------------------------------------------------


var brType = 0;
var scrWidth = screen.availWidth;
var scrHeight = screen.availHeight;

if (navigator.userAgent.indexOf("Opera") != -1)
  brType = 1;
else if (navigator.userAgent.indexOf("Gecko") != -1)
  brType = 2;
else if (navigator.userAgent.indexOf("MSIE") != -1)
  brType = 3;
else 
  brType = 0;