--- a/includes/clientside/static/dropdown.js Sun Jun 22 18:13:59 2008 -0400
+++ b/includes/clientside/static/dropdown.js Tue Jun 24 23:37:23 2008 -0400
@@ -36,6 +36,7 @@
{
setTimeout('jBoxBatchSetup();', 200);
}
+addOnloadHook(jBoxInit);
// Initializes each menu.
function jBoxBatchSetup()
@@ -144,7 +145,7 @@
}
if(obj.nextSibling.tagName.toLowerCase() == 'ul' || ( obj.nextSibling.tagName.toLowerCase() == 'div' && obj.nextSibling.className == 'submenu' ))
{
- $dynano(a).addClass('liteselected');
+ $dynano(obj).addClass('liteselected');
//obj.className = 'liteselected';
var ul = obj.nextSibling;
var dim = fetch_dimensions(obj);
@@ -419,28 +420,6 @@
document.onclick = jBoxGarbageCollection;
-function removeTextNodes(obj)
-{
- if(obj)
- {
- if(typeof(obj.tagName) != 'string' || ( String(obj) == '[object Text]' && is_Safari ) )
- {
- if ( ( obj.nodeType == 3 && obj.data.match(/^([\s]*)$/ig) ) ) // || ( typeof(obj.innerHTML) == undefined && is_Safari ) )
- {
- obj.parentNode.removeChild(obj);
- return;
- }
- }
- if(obj.firstChild)
- {
- for(var i = 0; i < obj.childNodes.length; i++)
- {
- removeTextNodes(obj.childNodes[i]);
- }
- }
- }
-}
-
var getElementsByClassName = function(parent, type, cls) {
if(!type)
type = '*';
@@ -526,29 +505,25 @@
setMousePos(e);
};
-function domObjChangeOpac(opacity, id) {
- var object = id.style;
- object.opacity = (opacity / 100);
- object.MozOpacity = (opacity / 100);
- object.KhtmlOpacity = (opacity / 100);
- object.filter = "alpha(opacity=" + opacity + ")";
+function removeTextNodes(obj)
+{
+ if(obj)
+ {
+ if(typeof(obj.tagName) != 'string' || ( String(obj) == '[object Text]' && is_Safari ) )
+ {
+ if ( ( obj.nodeType == 3 && obj.data.match(/^([\s]*)$/ig) ) ) // || ( typeof(obj.innerHTML) == undefined && is_Safari ) )
+ {
+ obj.parentNode.removeChild(obj);
+ return;
+ }
+ }
+ if(obj.firstChild)
+ {
+ for(var i = 0; i < obj.childNodes.length; i++)
+ {
+ removeTextNodes(obj.childNodes[i]);
+ }
+ }
+ }
}
-function getScrollOffset()
-{
- var position;
- if (self.pageYOffset)
- {
- position = self.pageYOffset;
- }
- else if (document.documentElement && document.documentElement.scrollTop)
- {
- position = document.documentElement.scrollTop;
- }
- else if (document.body)
- {
- position = document.body.scrollTop;
- }
- return position;
-}
-