":" | ";$jq(i).wrap(s)}),$jq(i).wrapInner(" | ||||
").append(p(" ").append(p("",{text:this.noResultsText})))),s=1;s ")+'')},f.prototype._getMenuHtmlPart=function(t){for(var e,n,i,r,s,o=' "},f.prototype._getSubMenuHtmlPart=function(t){for(var e,n="",i=0,r=t.length;i'),t.parent()},y.prototype._downloadContent=function(t,e){var n,s,o;return this._events.fire("beforeBoxDownload",t),this._signs.stopUpdater(),this._showPreload(),s=e,o=t,e=function(t){var i,r="glib-stats-box-"+o.getId(),t=n._config.jQuery(" ").html(t).find(">div");return(t=t.hasClass("nodata-block")?n._wrapEmptyContent(t,o):t).each((i=n,function(t,e){var n=(e.id+"").replace(/\./g,"\\."),n=i._$contentWrapperElement.find("#"+n);return n.length&&i._events.fire("beforeBoxReplace",o,n),n.remove(),i._config.jQuery(e).addClass(r)})),n._$contentWrapperElement.append(t),n._hidePreload(),n._validateSign(o),n._signs.startUpdater(),"function"==typeof s&&s(),n._events.fire("afterBoxDownload",o,t)},(n=this)._request.getTableContent(this._getTableTypeUrlPart(t),e)},y.prototype._validateSign=function(t){var e=t.getTableTypeId(),e=this._table.getTabSignById(+e);if(e)return this._signs.validateSign(e,this._getSignFromHtml(t))},y.prototype._getSign=function(t){t=t.getTableTypeId(),t=this._table.getTabSignById(+t);return t?this._signs.getSignValue(t):""},y.prototype._getSignFromHtml=function(t){t=("box-table-type-"+this._getSelectorPart(t)).replace(/\./g,"\\."),t=this._$contentWrapperElement.find(">div#"+t);return t.length?t.data("hash"):""},y.prototype._createPreloaderElement=function(){var t=' ";return this._$loaderElement=this._config.jQuery(t).appendTo(this._$contentWrapperElement)},y.prototype._showPreload=function(){return this._$loaderElement.show()},y.prototype._hidePreload=function(){return this._$loaderElement.hide()},a=y,v.prototype.getUrl=function(){var t="";return this.hasParentItem()&&(t+=this.getParentItem().getUrl()),t&&(t+=";"),t+=this.getUrlPart()},v.prototype.getUrlPart=function(){return this._data.url},v.prototype.getId=function(){var t="";return this.hasParentItem()&&(t+=this.getParentItem().getId()),t&&(t+="-"),t+this._data.url},v.prototype.getTabFeedKey=function(){return this._tabFeedKey},v.prototype.getIdJqSelector=function(){return this.getId().replace(/\./g,"\\.")},v.prototype.getName=function(){return this.getValue("name")},v.prototype.getTitle=function(){return this.getValue("title","")},v.prototype.getTableTypeId=function(){return this._tableTypeId},v.prototype.getSortKey=function(){return this.getValue("sortKey",999)},v.prototype.getValue=function(t,e){return null==e&&(e=null),null!=this._data[t]?this._data[t]:e},v.prototype.getDefaultTabSort=function(){return this._defaultTabSort},v.prototype.getParentItem=function(){return this._parentItem},v.prototype.setParentItem=function(t){this._parentItem=t},v.prototype.hasParentItem=function(){return null!=this._parentItem},v.prototype.addChildren=function(t){for(var e,n=0,i=t.length;nr.getDefaultTabSort())&&(r=t);return r},v.prototype.getCheckedChild=function(){var t,e,n,i;if(this.hasChildren())for(e=0,n=(i=this.getChildren()).length;e"),$jq("body").append(t),i=$jq(t).get(0).offsetWidth-$jq(t).get(0).clientWidth,$jq(t).remove(),this.browserScrollbarWidth=i)},this.searchInScrollAreaHackInit=function(){($jq.browser.mozilla&&this.searchInScrollAreaHackEnabled||this.mobile())&&$jq("#playoff-env").find(".viewport-wrap").css({width:"auto",height:"auto"})},this.searchInScrollAreaHack=function(){var t,i,s;($jq.browser.mozilla&&this.searchInScrollAreaHackEnabled||this.mobile())&&(t=this.getBrowserScrollbarWidth(),i=$jq("#playoff-env").find(".viewport"),s=$jq("#playoff-env").find(".viewport-wrap"),$jq(s).css({width:$jq(i).outerWidth(!0)+"px",height:$jq(i).outerHeight(!0)+"px"}),$jq(i).css({width:$jq(i).outerWidth(!0)+t,height:$jq(i).outerHeight(!0)+t+"px"}),$jq(s).css("overflow","hidden"),$jq(i).css("overflow","scroll"))},this.participantWayHighlight=function(){var s=$jq(this.scrollEnv).find(".match"),e="participant-way-highlight";$jq(s).hover(function(){var t,i=[];for(t in $jq(this).is(":not(.has-events)")&&$jq(this).addClass("participant-way-highlight"),$jq(this).find(".participant").each(function(){var t=$jq(this).attr("class").match(/\bglib\-participant\-([^\s]*)\b/);null!=t&&void 0!==t[0]&&i.push(t[0])}),i)$jq(s).has(".participant."+i[t]).not(this).addClass(e)},function(){$jq(this).removeClass("participant-way-highlight"),$jq(s).removeClass(e)})},this.create_horizontal_scrollbar=function(){this.el.sx.thumb.unbind(".hcb").bind("mousedown",{},function(t){t.preventDefault(),t.stopPropagation();try{this.options.original_onselectstart=document.onselectstart,document.onselectstart=function(){return!1}}catch(t){}void 0===this.public.i&&(this.public.i=0),this.public.i++;var i=this.el.sx.width()-this.el.sx.thumb.width();$jq("body").bind("mousemove",{start:t.pageX,max:i,h_quotient:i/this.limits.scroll_x},function(t){pos=Math.max(0,Math.min(t.data.max,parseInt(this.el.sx.thumb.css("left"))-(t.data.start-t.pageX))),t.data.start=t.pageX,p=pos/t.data.h_quotient,this.scrollContent.css({left:Math.round(p)+"px"}),this.scrollHeader.content.css({left:Math.round(p)+"px"}),this.el.sx.thumb.css("left",pos+"px"),this.update_horizontal_position(p)}.bind(this))}.bind(this)),this.el.sx.find(".htrack").mousedown(function(t){var i=this.el.sx.find(".hthumb"),s=parseInt(i.css("left")),i=parseInt(i.width()),e=this.scroll.vertical?parseInt(this.el.sy.width()):0,e=$jq(window).width()-e,e=t.pageX>=e?e:t.pageX;this.set_scrollbar_displacement("horizontal",-e+(s+i<=e?i:0),100)}.bind(this)),$jq(document).mouseup(function(t){try{document.onselectstart=this.options.original_onselectstart}catch(t){}$jq("body").unbind("mousemove"),hscroll=void 0}.bind(this))},this.restart=function(){this.ready=!1},this.init=function(t){var i,e,o,n,l,h,a;void 0!==t&&(this.detailVersion=t),(window.dw=this).el.env=$jq("#playoff-env"),1==this.el.env.length&&((!$jq.browser.msie||$jq.browser.msie&&7<=$jq.browser.version)&&this.shorten_result_names(),this.scrollEnv=this.el.env.find(".viewport"),this.scrollContent=this.el.env.find(".overview"),this.scrollHeader=$jq("#playoff-header"),this.scrollHeader.content=this.scrollHeader.find("ul").first(),this.scrollHeader.links=$jq("#playoff-links, .playoff-scroll-buttons"),(2==t||"undefined"!=typeof tournament&&tournament||"undefined"!=typeof tournamentPage&&tournamentPage)&&(this.searchInScrollAreaHackEnabled=!1,t=parseInt($jq("#draw_column_count").text()),i=parseInt($jq("#detail .round").css("width")),this.scrollContent.css("width",i*t),this.scrollEnv.css("height",this.scrollContent.outerHeight()),$jq("#playoff-header ul").css("width",i*t)),1==this.scroll.disabled||(this.scroll.disabled=this.el.env.hasClass("default-scroll"))||(this.scrollEnv.closest("#playoff-env").prepend('
|