ComCore.MostPlayedGames=Class.create(ComCore.GameMoreController,{initialize:function($super,A){debug("ComCore.MostPlayedGames.initialize()");debug(ComCore.GameMoreController);$super(A);this.period="day";$("rangeSlider").observe("slider:change",this.onSwitchPeriod.bind(this))},onSwitchPeriod:function(B){B.stop();if(B.memo&&B.memo.sliderValue){this.period=B.memo.sliderValue;this.animationRunning=true;ComCore.LoadingIndicator.show();var A=this;var D="action=getMore";D+="&view="+this.type;D+="&categoryid="+ComCore.gameControl.categoryid;D+="&page=0";D+="&period="+this.period;this.gamesWrapper.setOpacity(0.4);var C=new Ajax.Request("/ajax/games/",{method:"post",parameters:D,cache:true,onSuccess:A.onSwitchPeriodCallback.bind(A),onComplete:function(){A.gamesWrapper.setOpacity(1);A.animationRunning=false;ComCore.LoadingIndicator.hide()}})}},onSwitchPeriodCallback:function(B,A){this.gamesWrapper.innerHTML=B.responseJSON.HTML;this.reInit()},_eoo:true});ComCore.Queuer.add(function(){ComCore.mostPlayedGames=new ComCore.MostPlayedGames("mostPlayedGames")});