rem: var link_obj	= this.lib.getElementById(link_id); var menu_obj	= this.lib.getElementById(menu_id); 
add: var link_obj	= link_id.obj(); var menu_obj	= menu_id.obj(); 
context: 	Init: function(link_id, menu_id) {				// get some vars		var link_obj	= this.lib.getElementById(link_id);		var menu_obj	= this.lib.getElementById(menu_id);				if(menu_obj && link_obj) {				var actions_obj = k4MenuActionsFactory.createInstance();			var filters_obj = k4MenuFiltersFactory.createInstance();								// set some stuff			menu_obj.style.display	= 'none';			menu_obj.style.position = 'absolute';			menu_obj.style.zIndex = '100';						menu_obj.link_id		= link_id;			this.lib.forceCursor(link_obj);						// put this menu into an array of all of our menus			this.lib.array_push(ALL_MENUS, menu_obj);			this.lib.array_push(ALL_MENUSLINKS, new Array(link_obj, menu_obj));						// apply filters to the menu			filters_obj.stopLinkRedirect(link_obj);			filters_obj.highlightMenuRows(menu_obj);			filters_obj.slideResizeMenu(actions_obj, menu_obj);			// get the <body> tag			var body_element = document.getTagsByName('body');						// attach the events			AttachEvent(link_obj,'click',(function(){actions_obj.openMenu(link_obj,menu_obj);}),false);			AttachEvent(link_obj,'mouseover',(function(){actions_obj.openMenuIfOneIsOpen(link_obj,menu_obj);}),false);			AttachEvent(body_element[0],'click',(function(e){var open_menu_find=actions_obj.getOpenMenu();if(actions_obj.shouldCloseMenu(e,open_menu_find)){actions_obj.closeMenu(open_menu_find);}}),false);			AttachEvent(document,'click',(function(e){var open_menu_find=actions_obj.getOpenMenu();if(actions_obj.shouldCloseMenu(e,open_menu_find)){actions_obj.closeMenu(open_menu_find);}}),false);		}	}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/782215d5fb6697f8e778f8800b0a6eb59e168226/k4_menu.js/buggy/trunk/upload/js/k4_menu.js