author | Dan |
Sun, 30 Sep 2007 19:16:24 -0400 | |
changeset 149 | 42c6c83b8a00 |
parent 57 | b354deeaa4c4 |
child 189 | fd0e9c7a7b28 |
permissions | -rw-r--r-- |
1 | 1 |
// Some final stuff - loader routines, etc. |
2 |
||
3 |
var __tmpEnanoStartup9843275; |
|
4 |
||
5 |
function enanoStartup(e) { |
|
6 |
if ( !e ) |
|
7 |
{ |
|
8 |
// Delay initting sliders until images are loaded |
|
9 |
if ( typeof(window.onload) == 'function' ) |
|
10 |
__tmpEnanoStartup9843275 = window.onload; |
|
11 |
else |
|
12 |
__tmpEnanoStartup9843275 = function(){}; |
|
13 |
window.onload = function(e){__tmpEnanoStartup9843275(e);initSliders();}; |
|
14 |
} |
|
15 |
else |
|
16 |
{ |
|
17 |
initSliders(); |
|
18 |
} |
|
19 |
} |
|
20 |
||
21 |
function mdgInnerLoader(e) |
|
22 |
{ |
|
23 |
jws.startup(); |
|
24 |
enanoStartup(e); |
|
25 |
if(window.location.hash == '#comments') ajaxComments(); |
|
26 |
window.onkeydown=isKeyPressed; |
|
27 |
window.onkeyup=function(e) { isKeyPressed(e); }; |
|
28 |
Fat.fade_all(); |
|
29 |
fadeInfoBoxes(); |
|
30 |
//initTextareas(); |
|
31 |
buildSearchBoxes(); |
|
32 |
jBoxInit(); |
|
33 |
if(typeof (dbx_set_key) == 'function') |
|
34 |
{ |
|
35 |
dbx_set_key(); |
|
36 |
} |
|
37 |
runOnloadHooks(e); |
|
38 |
} |
|
39 |
if(window.onload) var ld = window.onload; |
|
40 |
else var ld = function() {return;}; |
|
41 |
function enano_init(e) { |
|
42 |
ld(e); |
|
43 |
mdgInnerLoader(e); |
|
44 |
} |
|
45 |
||
57
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
1
diff
changeset
|
46 |
if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH ) |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
1
diff
changeset
|
47 |
{ |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
1
diff
changeset
|
48 |
window.onload = enano_init; |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
1
diff
changeset
|
49 |
} |
b354deeaa4c4
Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents:
1
diff
changeset
|
50 |