(function(d){    d.pageTools = {        startup : function() {            this.getLists();            this.workLists();            this.connectButtons();            this.addSearchFormHeader();        },                getLists: function() {            this.lists = d.query('li.widget_categories ul ul',d.byId('sidebar'));        },                workLists: function() {            this.lists.addContent('<span class="categoryExpander" title="Unterkategorien ein-/ausblenden"><img src="/wp-content/themes/default_de/images/spacer.gif" /></span>','before');        },                connectButtons: function() {            d.query('.categoryExpander',d.byId('sidebar')).forEach(function(node){                d.connect(node,'onclick',function(){d.toggleClass(node.parentNode,'childrenVisible');});            },this);        },                addSearchFormHeader: function() {            d.query('#searchform').addContent('<h2 class="widgettitle">Suche</h2>','before');        }    };        d.addOnLoad(d.hitch(d.pageTools,'startup'));    })(dojo);