121 for ( var i in others ) |
121 for ( var i in others ) |
122 { |
122 { |
123 if(typeof(others[i]) == 'object') |
123 if(typeof(others[i]) == 'object') |
124 { |
124 { |
125 others[i].style.display = 'none'; |
125 others[i].style.display = 'none'; |
126 others[i].previousSibling.className = ''; |
126 $(others[i].previousSibling).rmClass('liteselected'); |
127 } |
127 } |
128 } |
128 } |
129 var others = obj.parentNode.getElementsByTagName('div'); |
129 var others = obj.parentNode.getElementsByTagName('div'); |
130 for ( var i in others ) |
130 for ( var i in others ) |
131 { |
131 { |
132 if(typeof(others[i]) == 'object') |
132 if(typeof(others[i]) == 'object') |
133 { |
133 { |
134 if ( others[i].className == 'submenu' ) |
134 if ( others[i].className == 'submenu' ) |
135 { |
135 { |
136 others[i].style.display = 'none'; |
136 others[i].style.display = 'none'; |
137 others[i].previousSibling.className = ''; |
137 $(others[i].previousSibling).rmClass('liteselected'); |
138 } |
138 } |
139 } |
139 } |
140 } |
140 } |
141 if(obj.nextSibling.tagName.toLowerCase() == 'ul' || ( obj.nextSibling.tagName.toLowerCase() == 'div' && obj.nextSibling.className == 'submenu' )) |
141 if(obj.nextSibling.tagName.toLowerCase() == 'ul' || ( obj.nextSibling.tagName.toLowerCase() == 'div' && obj.nextSibling.className == 'submenu' )) |
142 { |
142 { |
143 obj.className = 'liteselected'; |
143 $(a).addClass('liteselected'); |
|
144 //obj.className = 'liteselected'; |
144 var ul = obj.nextSibling; |
145 var ul = obj.nextSibling; |
145 var dim = fetch_dimensions(obj); |
146 var dim = fetch_dimensions(obj); |
146 var off = fetch_offset(obj); |
147 var off = fetch_offset(obj); |
147 var dimh = parseInt(dim['h']); |
148 var dimh = parseInt(dim['h']); |
148 var offtop = parseInt(off['top']); |
149 var offtop = parseInt(off['top']); |