1 var PanelWindowClass = Class.create({
4 windowIds: ['dashboard', 'container', 'graphs', 'users'],
7 initialize: function() {
8 this.currentWindowId = this.windowIds[0];
11 hideOthers: function() {
12 var hide_panel_by_id = function(id) {
14 if(el.visible() === true && id != this.currentWindowId) {
15 Effect.toggle(el, 'slide', {
17 afterFinish: function() {
23 for (var i = 0; i < this.windowIds.length; i++) {
24 hide_panel_by_id(this.windowIds[i]);
29 if($(id).visible() === true) {
33 this.currentWindowId = id;
34 Effect.toggle(id, 'slide', {
36 beforeStart: function() {
39 afterFinish: function() {
50 document.observe("dom:loaded", function() {
51 PanelWindow = new PanelWindowClass();