function Browser(){
  this.type=null;
  this.version=null;
  this.os=null;
  this.init();
}

Browser.prototype = {
  init:function(){
    var ua=navigator.userAgent.toLowerCase();
    if(ua.indexOf("opera")!=-1){
      this.type=4;
      this.version = 0;
      var v = ua.match(/opera\/[0-9]*\./);
      if (v && v.length > 0){
	this.version = parseInt(v[0].split('\/')[1]);
      }
    }
    else if(ua.indexOf("msie")!=-1&&document.all){
      this.type=1;
      this.version = 0;
      var v = ua.match(/msie [0-9]+/);
      if (v && v.length > 0){
	this.version = parseInt(v[0].split(' ')[1]);
      }
    }
    else if(ua.indexOf("safari")!=-1){
      this.type=3;
      this.version = 0;
      var v = ua.match(/version\/[0-9]/);
      if (v && v.length > 0){
	this.version = parseInt(v[0].split('\/')[1]);
      }
    }
    else if(ua.indexOf("mozilla")!=-1){
      this.type=2;
    }
    if(ua.indexOf("x11;")!=-1){
      this.os=1;
    }
    else if(ua.indexOf("macintosh")!=-1){
      this.os=2;
    }

    if (this.type == 1 && this.version < 7){ // IE
      window.location.href = 'nogo.html';
    }
    // Safari call stack depth is only 100 in version 3.0.3
    // A fix has been made (as of 8/20/07), but some 3.0.3 versions
    // may not work.
    if (this.type == 3 && this.version < 3){ 
      window.location.href = 'nogo.html';
    }
    if (this.type == 4){	// Opera
      window.location.href = 'nogo.html';
    }
  }
}

var TheBrowser=new Browser();
var IsIE = window.ActiveXObject;
var IsSafari = /Safari/.test(navigator.userAgent);
