var LoadMore=function(n){var t={display:{mobile:5,desktop:-1}};n(document).ready(function(){n(".load-more").off("click.loadmore").on("click.loadmore",function(){var r=n(this),u=r.attr("data-items"),e=n({}),i=n(window).width()>512?t.display.desktop:t.display.mobile,f;u==""&&(u=".video-item");f=r.parent().find(u).filter(function(){return this.style.display=="none"});(i==-1||f.length<=i)&&($elemByID=document.getElementById("SuggestionLink"),$elemByID.innerHTML!="Go back to top"?$elemByID.innerHTML="Go back to top":n("html, body").animate({scrollTop:0},"fast"));f.each(function(t,u){if(i!=-1&&t>=i)return!1;var f=n(u);e.delay(20).queue(function(n){f.stop().css({opacity:0,display:"block"}).animate({opacity:1},{queue:!1,duration:200});r.parents(".tabs").trigger("changeHeight");n()})})})})}(jQuery),Modal=function(n){function o(){t=[self.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,self.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop];var i=n("html");f=i.css("overflow");i.css("overflow","hidden");window.scrollTo(t[0],t[1])}function s(){if(t!=null&&!(t.length<2)){var i=n("html");i.css("overflow",f);window.scrollTo(t[0],t[1])}}function h(){o();i.stop().css("display","block").animate({opacity:1},{duration:400,queue:!1})}function u(){s();i.stop().animate({opacity:0},{duration:300,queue:!1,complete:function(){i.css("display","none")}})}var e={headerHeight:66},t,f,i,r;return n(document).ready(function(){n(window).on("scroll",function(){var t=n(window).scrollTop();r.css("top",Math.max(0,e.headerHeight-t))});i=n('<div class="blackout"><\/div>').on("click.lightbox",u).appendTo(document.body);r=n('<div class="lightbox"><\/div>').on("click.lightbox",function(n){n.stopPropagation()}).appendTo(i);n('<a href="javascript:void(0)" class="lightbox-close" data-icon="x"><\/a>').on("click.lightbox",u).appendTo(r);$lightboxContent=n('<div class="lightbox-content"><\/div>').appendTo(r)}),{loadRecordBreakerModal:function(){$lightboxContent.empty().addClass("record-breaker").load("/world-record/modal/"+AttemptID,function(){h()})},close:u}}(jQuery),Tabs=function(n){var t={minHeight:{mobile:50,desktop:100},show:{duration:400,easing:"linear"},hide:{duration:400,easing:"linear"},height:{duration:400,easing:"easeOutCubic"}},i,r;return n(document).ready(function(){r=n(window);i=r.width()<=512?"mobile":"desktop";n(window).on("resize.tabs",function(){(r.width<=512&&i=="desktop"||r.width>512&&i=="mobile")&&(i=i=="mobile"?"desktop":"mobile");n(".tabs").each(function(r,u){var f=n(u),e=f.children(".tab-nav").first(),o=f.children(".tab-content").first(),s=o.children(".tab"),h=f.attr("data-tabs-height")!="no",c=f.data("tab-index");h&&f.stop().css("height",Math.max(t.minHeight[i],s.eq(c).outerHeight()+e.outerHeight()))})});n(".tabs").each(function(r,u){function l(n){n==!1?f.stop().css({height:Math.max(t.minHeight[i],s.eq(e).outerHeight()+h.outerHeight())}):f.stop().animate({height:Math.max(t.minHeight[i],s.eq(e).outerHeight()+h.outerHeight())},{duration:t.height.duration,easing:t.height.easing,queue:!1})}function c(i){i!=e&&(f.data("tab-index",i),o.removeClass("active").eq(i).addClass("active"),isNaN(e)||s.eq(e).stop().animate({opacity:0},{duration:t.hide.duration,easing:t.hide.easing,queue:!1,complete:function(){n(this).css("display","none")}}),s.eq(i).stop().css({display:"block"}).animate({opacity:1},{duration:t.show.duration,easing:t.show.easing,queue:!1}),e=i,v&&l())}var f=n(u),h=f.children(".tab-nav").first(),o=h.children("li"),a=f.children(".tab-content").first(),s=a.children(".tab").css("opacity",0),v=f.attr("data-tabs-height")!="no",e;c(o.index(o.filter(".active").first()));o.click(function(){c(o.index(this))});f.on("change.tabs",function(n,t){c(t)});f.on("changeHeight.tabs",function(){l(!1)})})}),{goto:function(n,t){n.trigger("change",t)},calculateHeight:function(n){n.trigger("changeHeight")}}}(jQuery),RecordVideo,count;$(document).ready(function(){});$("#txtEmbed, #divShort").click(function(){$(this).select()});$("#record_fb_share").click(function(){login.loggedin&&followRecord();FB.ui({method:"feed",link:AttemptUrl,picture:MediaImage,name:jsencodedDescription,caption:jsencodedUnitOfMeasure,description:jsencodedDescriptionNoHtml});var n=!1;recordData&&recordData.userHandle=="@(Model.Record.HolderHandle)"&&(n=!0)});$("#record_tw_share").click(function(n){n.preventDefault();window.open(this.href,"twitter","width=545,height=420")});$("#record_follow").click(function(){if(login.loggedin)followRecord();else{$("body").trigger("showSignup",[function(){followRecord()}]);return}});initFunctions.push(function(){recordData.followingRecord&&$("#record_follow").addClass("followed")});RecordVideo=function(n){function t(){n(".main-banner-video .inner").css("max-height",n(window).height()*i.maxHeight)}var i={maxHeight:.7};n(document).ready(function(){n(window).resize(t);t()})}(jQuery);count=$("<div class='numCount'/>");$("#record_fb_share").append(count);$("body").bind("fbInit",function(){FB.api("?id=https://recordsetter.com"+window.location.pathname,function(n){n.shares?count.html(n.shares):count.html("0")})})