var catalogueHandler = Class.create(); catalogueHandler.prototype = { initialize: function( main_container_id, switcher_class, selected_class, use_scrolling ) { this.selected_good = null; this.use_scrolling = use_scrolling; this.mouse_fast_click_blocked = false; this.selected_class = selected_class; this.catalogue_switchers = document.getElementsByClassName( switcher_class, main_container_id ); var ch_copy = this; for( var i=0; i