var siteMenu = Class.create(); siteMenu.prototype = { initialize: function( menu_container_id, opener_class, opened_class, closed_class ) { this.main_container = $(menu_container_id); if( !this.main_container ) { return false; } this.class_opener = opener_class; this.class_opened = opened_class; this.class_closed = closed_class; this.last_target = false; this.submenus = new Array(); this.elements = $A( this.main_container.getElementsByTagName('DIV') ); for( i=0; i