var dropMenu = Class.create(); dropMenu.prototype = { initialize: function(div_id, opener_class, container_class, dropper_id) { this.menu_container = $(div_id); if( ! this.menu_container ) return false; this.hide( this.menu_container ); this.dropper = $(dropper_id); this.all_menus = $A(this.menu_container.getElementsByTagName('div')); this.temp_array = new Array(); this.temp_index = 0; this.containers = new Array(); this.openers = new Array(); this.selected_branch = -1; this.containers_index = 0; this.openers_index = 0; for( var i=0; i