includes/clientside/static/enano-lib-basic.js
changeset 117 7cfdbb2fd17a
parent 86 c162ca39db8f
child 133 af0f6ec48de3
--- a/includes/clientside/static/enano-lib-basic.js	Thu Sep 06 23:03:51 2007 -0400
+++ b/includes/clientside/static/enano-lib-basic.js	Fri Sep 07 00:48:51 2007 -0400
@@ -35,6 +35,8 @@
 if (checkIt('msie')) IE = true;
 else IE = false;
 
+var is_Opera = ( checkIt('opera') ) ? true : false;
+
 var KILL_SWITCH = false;
 
 if ( IE )
@@ -214,6 +216,39 @@
   }
 }
 
+var onload_hooks = new Array();
+
+function addOnloadHook(func)
+{
+  if ( typeof ( func ) == 'function' )
+  {
+    if ( typeof(onload_hooks.push) == 'function' )
+    {
+      onload_hooks.push(func);
+    }
+    else
+    {
+      onload_hooks[onload_hooks.length] = func;
+    }
+  }
+}
+
+function runOnloadHooks(e)
+{
+  var _errorTrapper = 0;
+  for ( var _oLc = 0; _oLc < onload_hooks.length; _oLc++ )
+  {
+    _errorTrapper++;
+    if ( _errorTrapper >= 1000 )
+      break;
+    var _f = onload_hooks[_oLc];
+    if ( typeof(_f) == 'function' )
+    {
+      _f(e);
+    }
+  }
+}
+
 var head = document.getElementsByTagName('head')[0];
 if ( !KILL_SWITCH )
 {
@@ -270,39 +305,6 @@
   head.appendChild(script);
 }
 
-var onload_hooks = new Array();
-
-function addOnloadHook(func)
-{
-  if ( typeof ( func ) == 'function' )
-  {
-    if ( typeof(onload_hooks.push) == 'function' )
-    {
-      onload_hooks.push(func);
-    }
-    else
-    {
-      onload_hooks[onload_hooks.length] = func;
-    }
-  }
-}
-
-function runOnloadHooks(e)
-{
-  var _errorTrapper = 0;
-  for ( var _oLc = 0; _oLc < onload_hooks.length; _oLc++ )
-  {
-    _errorTrapper++;
-    if ( _errorTrapper >= 1000 )
-      break;
-    var _f = onload_hooks[_oLc];
-    if ( typeof(_f) == 'function' )
-    {
-      _f(e);
-    }
-  }
-}
-
 addOnloadHook(function() {
   if ( $_REQUEST['do'] )
   {