var RoomListHabblet=Class.create();RoomListHabblet.prototype={initialize:function(C,A,B){this.opened=false;this.roomListElementClassName="rooms";this.roomListContainer=$(C);this.toggleMoreDataId=A;this.moreDataContainerId=B;if($(this.toggleMoreDataId)){Event.observe($(this.toggleMoreDataId),"click",function(D){Event.stop(D); this.toggleMoreData()}.bind(this))}this.randomizeRoomList();$$("#"+C+" ul.habblet-list").each(function(D){Event.observe(D,"click",function(F){var G=Event.element(F);if(G.tagName.toUpperCase()=="A"){return }Event.stop(F);var E=$(G).up("li").down("span.enter-room-link").readAttribute("roomid");if(E){this.roomForward(E) }}.bind(this))}.bind(this))},toggleMoreData:function(){if(this.opened){new Effect.BlindUp($(this.moreDataContainerId));$(this.toggleMoreDataId).innerHTML=L10N.get("show.more");$(this.toggleMoreDataId).removeClassName("less");this.opened=false}else{new Effect.BlindDown($(this.moreDataContainerId));$(this.toggleMoreDataId).addClassName("less"); $(this.toggleMoreDataId).innerHTML=L10N.get("show.less");this.opened=true}},randomizeRoomList:function(B,D){var C=this.roomListContainer.select("."+this.roomListElementClassName);if(C){var A=new Array();for(i=0;i