1// Browser Detection Javascript 2// copyright 1 February 2003, by Stephen Chapman, Felgall Pty Ltd 3 4// You have permission to copy and use this javascript provided that 5// the content of the script is not changed in any way. 6 7function getBrowser() { 8var agt=navigator.userAgent.toLowerCase(); 9if (agt.indexOf("opera") != -1) return 'Opera'; 10if (agt.indexOf("staroffice") != -1) return 'Star Office'; 11if (agt.indexOf("webtv") != -1) return 'WebTV'; 12if (agt.indexOf("beonex") != -1) return 'Beonex'; 13if (agt.indexOf("chimera") != -1) return 'Chimera'; 14if (agt.indexOf("netpositive") != -1) return 'NetPositive'; 15if (agt.indexOf("phoenix") != -1) return 'Phoenix'; 16if (agt.indexOf("firefox") != -1) return 'Firefox'; 17if (agt.indexOf("safari") != -1) return 'Safari'; 18if (agt.indexOf("skipstone") != -1) return 'SkipStone'; 19if (agt.indexOf("msie") != -1) return 'Internet Explorer'; 20if (agt.indexOf("netscape") != -1) return 'Netscape'; 21if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla'; 22if (agt.indexOf('\/') != -1) { 23if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
24return navigator.userAgent.substr(0,agt.indexOf('\/'));} 25else return 'Netscape';} else if (agt.indexOf(' ') != -1) 26return navigator.userAgent.substr(0,agt.indexOf(' ')); 27else return navigator.userAgent; 28} 29 30function openUrlP(Url_To_Open){ 31 window.open(Url_To_Open,'' ,'width=905,height=905,scrollbars=yes'); 32} 33 34 35var hex_chr = "0123456789abcdef"; 36function rhex(num) 37{ 38 str = ""; 39 for(j = 0; j <= 3; j++) 40 str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) + 41 hex_chr.charAt((num >> (j * 8)) & 0x0F); 42 return str; 43} 44 45 46function str2blks_MD5(str) 47{ 48 nblk = ((str.length + 8) >> 6) + 1; 49 blks = new Array(nblk * 16); 50 for(i = 0; i < nblk * 16; i++) blks[i] = 0; 51 for(i = 0; i < str.length; i++) 52 blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8); 53 blks[i >> 2] |= 0x80 << ((i % 4) * 8); 54 blks[nblk * 16 - 2] = str.length * 8; 55 return blks; 56} 57 58 59function add(x, y) 60{ 61 var lsw = (x & 0xFFFF) + (y & 0xFFFF); 62 var msw = (x >> 16) + (y >> 16) + (lsw >> 16); 63 return (msw << 16) | (lsw & 0xFFFF); 64} 65 66 67function rol(num, cnt) 68{ 69 return (num << cnt) | (num >>> (32 - cnt)); 70} 71 72 73function cmn(q, a, b, x, s, t) 74{ 75 return add(rol(add(add(a, q), add(x, t)), s), b); 76} 77function ff(a, b, c, d, x, s, t) 78{ 79 return cmn((b & c) | ((~b) & d), a, b, x, s, t); 80} 81function gg(a, b, c, d, x, s, t) 82{ 83 return cmn((b & d) | (c & (~d)), a, b, x, s, t); 84} 85function hh(a, b, c, d, x, s, t) 86{ 87 return cmn(b ^ c ^ d, a, b, x, s, t); 88} 89function ii(a, b, c, d, x, s, t) 90{ 91 return cmn(c ^ (b | (~d)), a, b, x, s, t); 92} 93 94 95function MD5(str) 96{ 97 x = str2blks_MD5(str); 98 var a = 1732584193; 99 var b = -271733879; 100 var c = -1732584194; 101 var d = 271733878; 102 103 for(i = 0; i < x.length; i += 16) 104 { 105 var olda = a; 106 var oldb = b; 107 var oldc = c; 108 var oldd = d; 109 110 a = ff(a, b, c, d, x[i+ 0], 7 , -680876936); 111 d = ff(d, a, b, c, x[i+ 1], 12, -389564586); 112 c = ff(c, d, a, b, x[i+ 2], 17, 606105819); 113 b = ff(b, c, d, a, x[i+ 3], 22, -1044525330); 114 a = ff(a, b, c, d, x[i+ 4], 7 , -176418897); 115 d = ff(d, a, b, c, x[i+ 5], 12, 1200080426); 116 c = ff(c, d, a, b, x[i+ 6], 17, -1473231341); 117 b = ff(b, c, d, a, x[i+ 7], 22, -45705983); 118 a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416); 119 d = ff(d, a, b, c, x[i+ 9], 12, -1958414417); 120 c = ff(c, d, a, b, x[i+10], 17, -42063); 121 b = ff(b, c, d, a, x[i+11], 22, -1990404162); 122 a = ff(a, b, c, d, x[i+12], 7 , 1804603682); 123 d = ff(d, a, b, c, x[i+13], 12, -40341101); 124 c = ff(c, d, a, b, x[i+14], 17, -1502002290); 125 b = ff(b, c, d, a, x[i+15], 22, 1236535329); 126 127 a = gg(a, b, c, d, x[i+ 1], 5 , -165796510); 128 d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632); 129 c = gg(c, d, a, b, x[i+11], 14, 643717713); 130 b = gg(b, c, d, a, x[i+ 0], 20, -373897302); 131 a = gg(a, b, c, d, x[i+ 5], 5 , -701558691); 132 d = gg(d, a, b, c, x[i+10], 9 , 38016083); 133 c = gg(c, d, a, b, x[i+15], 14, -660478335); 134 b = gg(b, c, d, a, x[i+ 4], 20, -405537848); 135 a = gg(a, b, c, d, x[i+ 9], 5 , 568446438); 136 d = gg(d, a, b, c, x[i+14], 9 , -1019803690); 137 c = gg(c, d, a, b, x[i+ 3], 14, -187363961); 138 b = gg(b, c, d, a, x[i+ 8], 20, 1163531501); 139 a = gg(a, b, c, d, x[i+13], 5 , -1444681467); 140 d = gg(d, a, b, c, x[i+ 2], 9 , -51403784); 141 c = gg(c, d, a, b, x[i+ 7], 14, 1735328473); 142 b = gg(b, c, d, a, x[i+12], 20, -1926607734); 143 144 a = hh(a, b, c, d, x[i+ 5], 4 , -378558); 145 d = hh(d, a, b, c, x[i+ 8], 11, -2022574463); 146 c = hh(c, d, a, b, x[i+11], 16, 1839030562); 147 b = hh(b, c, d, a, x[i+14], 23, -35309556); 148 a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060); 149 d = hh(d, a, b, c, x[i+ 4], 11, 1272893353); 150 c = hh(c, d, a, b, x[i+ 7], 16, -155497632); 151 b = hh(b, c, d, a, x[i+10], 23, -1094730640); 152 a = hh(a, b, c, d, x[i+13], 4 , 681279174); 153 d = hh(d, a, b, c, x[i+ 0], 11, -358537222); 154 c = hh(c, d, a, b, x[i+ 3], 16, -722521979); 155 b = hh(b, c, d, a, x[i+ 6], 23, 76029189); 156 a = hh(a, b, c, d, x[i+ 9], 4 , -640364487);
157 d = hh(d, a, b, c, x[i+12], 11, -421815835); 158 c = hh(c, d, a, b, x[i+15], 16, 530742520); 159 b = hh(b, c, d, a, x[i+ 2], 23, -995338651); 160 161 a = ii(a, b, c, d, x[i+ 0], 6 , -198630844); 162 d = ii(d, a, b, c, x[i+ 7], 10, 1126891415); 163 c = ii(c, d, a, b, x[i+14], 15, -1416354905); 164 b = ii(b, c, d, a, x[i+ 5], 21, -57434055); 165 a = ii(a, b, c, d, x[i+12], 6 , 1700485571); 166 d = ii(d, a, b, c, x[i+ 3], 10, -1894986606); 167 c = ii(c, d, a, b, x[i+10], 15, -1051523); 168 b = ii(b, c, d, a, x[i+ 1], 21, -2054922799); 169 a = ii(a, b, c, d, x[i+ 8], 6 , 1873313359); 170 d = ii(d, a, b, c, x[i+15], 10, -30611744); 171 c = ii(c, d, a, b, x[i+ 6], 15, -1560198380); 172 b = ii(b, c, d, a, x[i+13], 21, 1309151649); 173 a = ii(a, b, c, d, x[i+ 4], 6 , -145523070); 174 d = ii(d, a, b, c, x[i+11], 10, -1120210379); 175 c = ii(c, d, a, b, x[i+ 2], 15, 718787259); 176 b = ii(b, c, d, a, x[i+ 9], 21, -343485551); 177 178 a = add(a, olda); 179 b = add(b, oldb); 180 c = add(c, oldc); 181 d = add(d, oldd); 182 } 183 return rhex(a) + rhex(b) + rhex(c) + rhex(d); 184} 185 186 187
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.