3 //if not a DOM browser, hopeless
4 this.min = false; if (document.getElementById){this.min = true;};
6 this.ua = navigator.userAgent;
7 this.name = navigator.appName;
8 this.ver = navigator.appVersion;
10 //Get data about the browser
11 this.mac = (this.ver.indexOf('Mac') != -1);
12 this.win = (this.ver.indexOf('Windows') != -1);
15 this.gecko = (this.ua.indexOf('Gecko') > 1);
17 this.geckoVer = parseInt(this.ua.substring(this.ua.indexOf('Gecko')+6, this.ua.length));
18 if (this.geckoVer < 20020000){this.min = false;}
22 this.firebird = (this.ua.indexOf('Firebird') > 1);
25 this.safari = (this.ua.indexOf('Safari') > 1);
31 this.ie = (this.ua.indexOf('MSIE') > 0);
33 this.ieVer = parseFloat(this.ua.substring(this.ua.indexOf('MSIE')+5, this.ua.length));
34 if (this.ieVer < 5.5){this.min = false;}
38 this.opera = (this.ua.indexOf('Opera') > 0);
40 this.operaVer = parseFloat(this.ua.substring(this.ua.indexOf('Opera')+6, this.ua.length));
41 if (this.operaVer < 7.04){this.min = false;}
43 if (this.min == false){
44 alert('Your browser may not be able to handle this page.');
47 //Special case for the horrible ie5mac
48 this.ie5mac = (this.ie&&this.mac&&(this.ieVer<6));
54 // alert(prop + ': ' + C[prop]);