Vn.Connections = new Class ({ Extends: Vn.Form ,_intervalId: null ,activate: function () { this._intervalId = setInterval (this.onRefreshClick.bind (this), 60000); } ,deactivate: function () { clearTimeout (this._intervalId); } ,onRefreshClick: function () { this.$('sessions').refresh (); } ,onVisitsClick: function () { this.hash.set ({'form': 'admin/visits'}); } ,onAccessLogClick: function (button, form) { this.hash.set ({ 'form': 'admin/access-log' ,'user': form.get ('user_id') }); } ,onChangeUserClick: function (button, form) { this.gui.supplantUser (form.get ('user_id'), this.onUserSupplant.bind (this)); } ,onUserSupplant: function (userName) { this.hash.set ({'form': 'ecomerce/orders'}); } ,sessionsFunc: function () { return 1; } });