blob: 42bff85de150c49b0301c0a1e16fae6c70fc146d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//<![CDATA[
var browser = '';
var version = '';
var entrance = '';
var cond = '';
// BROWSER?
if (browser == '') {
if (navigator.appName.indexOf('Microsoft') != -1)
browser = 'IE'
else if (navigator.appName.indexOf('Netscape') != -1)
browser = 'Netscape'
else
browser = 'IE';
}
if (version == '') {
version= navigator.appVersion;
paren = version.indexOf('(');
whole_version = navigator.appVersion.substring(0,paren-1);
version = parseInt(whole_version);
}
if (browser == 'IE' && version < 7) {
document.write('<script type="text/javascript" src="/themes/code-red/javascript/ie7/ie7-standard-p.js"></script>');
}
document.write('<script type="text/javascript" src="/themes/code-red/javascript/niftyjsCode.js"></script>');
//]]>
|