Sporty Magazine Free

Embed Size (px)

Citation preview

  • 8/2/2019 Sporty Magazine Free

    1/47

    (function(){varz=this,m,q=z.jQuery,D=z.$,C=z.jQuery=z.$=function(E,F){returnnewC.fn.init(E,F)},f=/^[^]*$|^#([\w-]+)$/,j=/^.[^:#\[\.,]*$/;C.fn=C.prototype={init:function(I,G){I=I||document;if(I.nodeType){this[0]=I;this.length=1;this.context=I;returnthis}if(typeofI==="string"){varF=f.exec(I);if(F&&(F[1]||!G)){if(F[1]){I=C.clean([F[1]],G)}else{varH=document.getElementById(F[3]);if(H&&H.id!=F[3]){returnC().find(I)}varE=C(H||[]);E.context=document;E.selector=I;returnE}}else{returnC(G).find(I)}}else{if(C.isFunction(I)){returnC(document).ready(I)}}if(I.selector&&I.context){this.selector=I.selector;this.context=I.context}returnthis.setArray(C.isArray(I)?I:C.makeArray(I))},selector:"",jquery:"1.3.2",size:function(){returnthis.length},get:function(E){returnE===m?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){varG=C(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?"":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}returnG},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);returnthis},each:function(F,E){returnC.each(this,F,E)},index:function(E){returnC.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){varE=F;if(typeofF==="string"){if(H===m){returnthis[0]&&C[G||"attr"](this[0],F)}else{E={};E[F]=H}}returnthis.each(function(I){for(FinE){C.attr(G?this.style:this,F,C.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)-1:C(H).is(F)){C.data(H,"closest",G);returnH}H=H.parentNode;G++}})},not:function(E){if(typeofE==="string"){if(j.

    test(E)){returnthis.pushStack(C.multiFilter(E,this,true),"not",E)}else{E=C.multiFilter(E,this)}}varF=E.length&&E[E.length-1]!==m&&!E.nodeType;returnthis.filter(function(){returnF?C.inArray(this,E)0},hasClass:function(E){return!!E&&this.is("."+E)},val:function(K){if(K===m){varE=this[0];if(E){if(C.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(C.nodeName(E,"select")){varI=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I

  • 8/2/2019 Sporty Magazine Free

    2/47

    ||"").replace(/\r/g,"")}returnm}if(typeofK==="number"){K+=""}returnthis.each(function(){if(this.nodeType!=1){return}if(C.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(C.inArray(this.value,K)>=0||C.inArray(this.name,K)>=0)}else{if(C.nodeName(this,"select")){varN=C.makeArray(K);C("option",this).each(function(){this.selected=(C.inArray(this.value,N)>=0||C.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){returnE===m?(this[0]?this[0].innerHTML.replace(/jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){returnthis.after(E).remove()},eq:function(E){returnthis.slice(E,+E+1)},slice:function(){returnthis.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){returnthis.pushStack(C.map(this,function(G,F){returnE.call(G,F,G)}))},andSelf:function(){returnthis.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){varI=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=C.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(varG=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){C.each(F,r)}}returnthis;functionK(N,O){returnM&&C.nodeName(N,"table")&&C.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};C.fn.init.prototype=C.fn;functionr(E,F){if(F.src){C.ajax({url:F.src,async:false,dataType:"script"})}else{C.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}functionh(){return+newDate}C.extend=C.fn.extend=function(){varF=arguments[0]||{},L=1,E=arguments.length,I=false,K;if(typeofF==="boolean"){I=F;F=arguments[1]||{};L=2}if(typeofF!=="object"&&!C.isFunction(F)){F={}}if(E==L){F=this;--L}for(;L

  • 8/2/2019 Sporty Magazine Free

    3/47

    (/\-(\w)/g,function(N,O){returnO.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){varH=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}returnL},clean:function(J,G,E){G=G||document;if(typeofG.createElement==="undefined"){G=G.ownerDocument||G[0]&&G[0].ownerDocument||document}if(!E&&J.length===1&&typeofJ[0]==="string"){varL=/^$/.exec(J[0]);if(L){return[G.createElement(L[1])]}}varK=[],I=[],H=G.createElement("div");C.each(J,function(S,O){if(typeofO==="number"){O+=""}if(!O){return}if(typeofO==="string"){O=O.replace(/(]*?)\/>/g,function(U,V,T){returnT.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});varR=O.replace(/^\s+/,"").substring(0,10).toLowerCase();varM=!R.indexOf("

  • 8/2/2019 Sporty Magazine Free

    4/47

    lings:function(E){returnC.sibling(E.parentNode.firstChild,E)},children:function(E){returnC.sibling(E.firstChild)},contents:function(E){returnC.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:C.makeArray(E.childNodes)}},function(E,F){C.fn[E]=function(G){varH=C.map(this,F);if(G&&typeofG=="string"){H=C.multiFilter(G,H)}returnthis.pushStack(C.unique(H),E,G)}});C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){C.fn[E]=function(G){varJ=[],L=C(G);for(varK=0,H=L.length;K0?this.clone(true):this).get();C.fn[F].apply(C(L[K]),I);J=J.concat(I)}returnthis.pushStack(J,E,G)}});C.each({removeAttr:function(E){C.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){C.className.add(this,E)},removeClass:function(E){C.className.remove(this,E)},toggleClass:function(F,E){if(typeofE!=="boolean"){E=!C.className.has(this,F)}C.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||C.filter(E,[this]).length){C("*",this).add([this]).each(function(){C.event.remove(this);C.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){C(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){C.fn[E]=function(){returnthis.each(F,arguments)}});functionx(E,F){returnE[0]&&parseInt(C.curCSS(E[0],F,true),10)||0}varn="jQuery"+h(),l=0,a={};C.extend({cache:{},data:function(F,E,G){F=F==z?a:F;varH=F[n];if(!H){H=F[n]=++l}if(E&&!C.cache[H]){C.cache[H]={}}if(G!==m){C.cache[H][E]=G}returnE?C.cache[H][E]:H},removeData:function(F,E){F=F==z?a:F;varH=F[n];if(E){if(C.cache[H]){deleteC.cache[H][E];E="";for(EinC.cache[H]){break}if(!E){C.removeData(F)}}}else{try{deleteF[n]}catch(G){if(F.removeAttribute){F.removeAttribute(n)}}deleteC.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";varG=C.d

    ata(F,E);if(!G||C.isArray(H)){G=C.data(F,E,C.makeArray(H))}else{if(H){G.push(H)}}}returnG},dequeue:function(H,G){varE=C.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==m){F.call(H)}}});C.fn.extend({data:function(E,G){varH=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===m){varF=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===m&&this.length){F=C.data(this[0],E)}returnF===m&&H[1]?this.data(H[0]):F}else{returnthis.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){C.data(this,E,G)})}},removeData:function(E){returnthis.each(function(){C.removeData(this,E)})},queue:function(E,F){if(typeofE!=="string"){F=E;E="fx"}if(F===m){returnC.queue(this[0],E)}returnthis.each(function(){varG=C.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){returnthis.each(function(){C.dequeue(this,E)})}});(function(){varR=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^>+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;varF=function(af,Z,ab,ae){ab=ab||[];Z

    =Z||document;if(Z.nodeType!==1&&Z.nodeType!==9){return[]}if(!af||typeofaf!=="string"){returnab}varah=[],ac,W,V,Y,ag,aa,ad=true;R.lastIndex=0;while((ac=R.exec(af))!==null){ah.push(ac[1]);if(ac[2]){aa=RegExp.rightContext;break}}if(ah.length>1&&M.exec(af)){if(ah.length===2&&I.relative[ah[0]]){W=J(ah[0]+ah[1],Z)}else{W=I.relative[ah[0]]?[Z]:F(ah.shift(),Z);while(ah.length){af=ah.shift();if(I.relative[af]){af+=ah.shift()}W=J(af,W)}}}else{varU=ae?{expr:ah.pop(),set:E(ae)}:F.find(ah.pop(),ah.length===1&&Z.parentNode?Z.parentNode:Z,Q(Z));W=F.filter(U.expr,U.set);if(ah.length>0){V=E(W)}else{ad=false}while(ah.length){varT=ah.pop(),X=T;if(!I.relative[T]){T=""}else{X=ah.pop()}if(X==null){X=Z}I.relative[T](V,X,Q(Z))}}if(!V){V=W}if(!V){throw"Syntaxerror,unrecognizedexpression:"+(T||af)}if(H.call(V)==="[objectArray]"){if(!ad){ab.push.apply(ab,V)}else{if(Z.nodeType===1){for(varaj=0;V[aj]!=null;aj++){if(V[aj]&&(V[aj]===true||V[aj].nodeType===1&&K(Z,V[aj]))){ab.push(W[aj])}}}else{for(varaj=0;V[aj]!=null;aj++){if(V[aj]&&V[aj].nodeT

    ype===1){ab.push(W[aj])}}}}}else{E(V,ab)}if(aa){F(aa,Z,ab,ae);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(varaj=1;aj

  • 8/2/2019 Sporty Magazine Free

    5/47

    {W=[]}if(I.preFilter[X]){af=I.preFilter[X](af,U,ab,W,ac,ag);if(!af){Y=T=true}else{if(af===true){continue}}}if(af){for(varad=0;(V=U[ad])!=null;ad++){if(V){T=Z(V,af,ad,U);varaj=ac^!!T;if(ab&&T!=null){if(aj){Y=true}else{U[ad]=false}}else{if(aj){W.push(V);Y=true}}}}}if(T!==m){if(!ab){U=W}ah=ah.replace(I.match[X],"");if(!Y){return[]}break}}}if(ah==aa){if(Y==null){throw"Syntaxerror,unrecognizedexpression:"+ah}else{break}}aa=ah}returnU};varI=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){returnT.getAttribute("href")}},relative:{"+":function(Z,ab,Y){varW=typeofab==="string",aa=W&&!/\W/.test(ab),X=W&&!aa;if(aa&&!Y){ab=ab.toUpperCase()}for(varV=0,U=Z.length,T;V

  • 8/2/2019 Sporty Magazine Free

    6/47

    ++){if(Y[W]===Z){returnfalse}}returntrue}}}},CHILD:function(T,W){varZ=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){returnfalse}}if(Z=="first"){returntrue}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){returnfalse}}returntrue;case"nth":varV=W[2],ac=W[3];if(V==1&&ac==0){returntrue}varY=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){varX=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}varaa=T.nodeIndex-ac;if(V==0){returnaa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){returnU.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(""+(U.className||U.getAttribute("class"))+"").indexOf(T)>-1},ATTR:function(X,V){varU=V[1],Z=I.attrHandle[U]?I.attrHandle[U](X):X[U]!=null?X[U]:X.getAttribute(U),Y=Z+"",W=V[2],T=V[4];returnZ==null?W==="!=":W==="="?Y===T:W==="*="?Y.indexOf(T)>=0:W==="~="?(""+Y+"").indexOf(T)>=0:!T?Y&&Z!==false:W==="!="?Y!=T:W==="^="?Y.indexOf(T)===0:W==="$="?Y.substr(Y.length-T.length)===T:W==="|="?Y===T||Y.substr(0,T.length+1)===T+"-":false},POS:function(V,Y,T,W){varX=Y[2],U=I.setFilters[X];if(U){returnU(V,T,Y,W)}}}};varM=I.match.POS;for(varOinI.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}varE=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);returnT}returnU};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(U,T){varW=T||[];if(H.call(U)==="[objectArray]"){Array.prototype.push.apply(W,U)}else{if(typeofU.length==="number"){for(varX=0,V=U.length;X0){I.find.TAG=function(Y,X){varW=X.getElementsByTagName(Y[1]);if(Y[1]==="*"){varV=[];for(varU=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}returnW}}T.innerHTML="";if(T.firstChild&&typeofT.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){returnU.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){varT=F,U=document.createElement("div");U.innerHTML="

    ";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!Q(Y)){try{returnE(Y.querySelectorAll(Z),W)}catch(V){}}returnT(Z,Y,W,X)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){varT=document.createElement("div");T.innerHTML="";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeofV.getElementsByClassName!=="undefined"&&!W){returnV.getElementsByClassName(U[1])}}})()}functionP(V,aa,Z,T,ab,ad){varac=V=="previousSibling"&&!ad;for(varX=0,W=T.length;X
  • 8/2/2019 Sporty Magazine Free

    7/47

    le(U){if(U.sizcache===Z){Y=T[U.sizset];break}if(U.nodeType===1){if(!ad){U.sizcache=Z;U.sizset=X}if(typeofaa!=="string"){if(U===aa){Y=true;break}}else{if(F.filter(aa,[U]).length>0){Y=U;break}}}U=U[V]}T[X]=Y}}}varK=document.compareDocumentPosition?function(U,T){returnU.compareDocumentPosition(T)&16}:function(U,T){returnU!==T&&(U.contains?U.contains(T):true)};varQ=function(T){returnT.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};varJ=function(T,Z){varV=[],X="",Y,W=Z.nodeType?[Z]:Z;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(varaa=0,U=W.length;aa0||T.offsetHeight>0};F.selectors.filters.animated=function(T){returnC.grep(C.timers,function(U){returnT===U.elem}).length};C.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}returnF.matches(V,T)};C.dir=function(V,U){varT=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}returnT};C.nth=function(U,V,X,T){V=V||1;varW=0;for(;U;U=U[X]){if(U.nodeType==1&&++W==V){break}}returnU};C.sibling=function(V,U){varT=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}returnT};return;z.Sizzle=F})();C.event={add:function(F,J,E,H){if(F.nodeType==3||F.nodeType==8){return}if(F.setInterval&&F!=z){F=z}if(!E.guid){E.guid=this.guid++}if(H!==m){varK=E;E=this.proxy(K);E.data=H}varI=C.data(F,"events")||C.data(F,"events",{}),G=C.data(F,"handle")||C.data(F,"handle",function(){returntypeofC!=="undefined"&&!C.event.triggered?C.event.handle.apply(arguments.callee.elem,arguments):m});G.elem=F;C.each(J.split(/\s+/),function(O,L){varM=L.split(".");L=M.shift();E.type=M.slice().so

    rt().join(".");varN=I[L];if(C.event.specialAll[L]){C.event.specialAll[L].setup.call(F,H,M)}if(!N){N=I[L]={};if(!C.event.special[L]||C.event.special[L].setup.call(F,H,M)===false){if(F.addEventListener){F.addEventListener(L,G,false)}else{if(F.attachEvent){F.attachEvent("on"+L,G)}}}}N[E.guid]=E;C.event.global[L]=true});F=null},guid:1,global:{},remove:function(G,L,F){if(G.nodeType==3||G.nodeType==8){return}varK=C.data(G,"events"),J,I;if(K){if(L===m||(typeofL==="string"&&L.charAt(0)==".")){for(varEinK){this.remove(G,E+(L||""))}}else{if(L.type){F=L.handler;L=L.type}C.each(L.split(/\s+/),function(M,O){varQ=O.split(".");O=Q.shift();varN=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(K[O]){if(F){deleteK[O][F.guid]}else{for(varPinK[O]){if(N.test(K[O][P].type)){deleteK[O][P]}}}if(C.event.specialAll[O]){C.event.specialAll[O].teardown.call(G,Q)}for(JinK[O]){break}if(!J){if(!C.event.special[O]||C.event.special[O].teardown.call(G,Q)===false){if(G.removeEventListener){G.removeEventListener(O,C.data(G,"handle"),

    false)}else{if(G.detachEvent){G.detachEvent("on"+O,C.data(G,"handle"))}}}J=null;deleteK[O]}}})}for(JinK){break}if(!J){varH=C.data(G,"handle");if(H){H.elem=null}C.removeData(G,"events");C.removeData(G,"handle")}}},trigger:function(E,G,L,I){varK=E.type||E;if(!I){E=typeofE==="object"?E[n]?E:C.extend(C.Event(K),E):C.Event(K);if(K.indexOf("!")>=0){E.type=K=K.slice(0,-1);E.exclusive=true}if(!L){E.stopPropagation();if(this.global[K]){C.each(C.cache,function(){if(this.events&&this.events[K]){C.event.trigger(E,G,this.handle.elem)}})}}if(!L||L.nodeType==3||L.nodeType==8){returnm}E.result=m;E.target=L;G=C.makeArray(G);G.unshift(E)}E.currentTarget=L;varF=C.data(L,"handle");if(F){F.apply(L,G)}if((!L[K]||(C.nodeName(L,"a")&&K=="click"))&&L["on"+K]&&L["on"+K].apply(L,G)===false){E.result=false}if(!I&&L[K]&&!E.isDefaultPrevented()&&!(C.nodeName(L,"a")&&K=="click")){this.triggered=true;try{L[K]()}catch(H){}}this.triggered=false;if(!E.isPropagationStopped()){varJ=L.parentNode||L.ownerDocument;if(J){C.event.trigger(E,G,J,true)}}},hand

    le:function(G){varF,I;G=arguments[0]=C.event.fix(G||z.event);G.currentTarget=this;varH=G.type.split(".");G.type=H.shift();F=!H.length&&!G.exclusive;varE=RegExp("(^|\\.)"+H.slice().sort().join(".*\\.")+"(\\.|$)");I=(C.data(this,"events")||{})[G.type];for(varKinI){varL=I[K];if(F||E.test(L.type)){G.handler=L;G.data=L.data;varJ=L.apply(this,arguments);if(J!==m){G.result=J;if(J===false){G.preventDefault();G.stopPropagation()}}if(G.isImmediatePropagationStopped()){break}}}},props:"altKeyattrChangeattrNamebubblesbuttoncancelablecharCodeclientXclientYctrlKeycurrentTargetdatadetaileventPhasefromElementhandlerkeyCodemetaKeynewValueoriginalTargetpageXpageYprevValuerelatedNoderelatedTargetscreenXscreenYshiftKeysrcElementtargettoElementviewwheelDeltawhich".split

  • 8/2/2019 Sporty Magazine Free

    8/47

    (""),fix:function(F){if(F[n]){returnF}varJ=F;F=C.Event(J);for(varE=this.props.length,H;E;){H=this.props[--E];F[H]=J[H]}if(!F.target){F.target=F.srcElement||document}if(F.target.nodeType==3){F.target=F.target.parentNode}if(!F.relatedTarget&&F.fromElement){F.relatedTarget=F.fromElement==F.target?F.toElement:F.fromElement}if(F.pageX==null&&F.clientX!=null){varG=document.documentElement,I=document.body;F.pageX=F.clientX+(G&&G.scrollLeft||I&&I.scrollLeft||0)-(G.clientLeft||0);F.pageY=F.clientY+(G&&G.scrollTop||I&&I.scrollTop||0)-(G.clientTop||0)}if(!F.which&&((F.charCode||F.charCode===0)?F.charCode:F.keyCode)){F.which=F.charCode||F.keyCode}if(!F.metaKey&&F.ctrlKey){F.metaKey=F.ctrlKey}if(!F.which&&F.button){F.which=(F.button&1?1:(F.button&2?3:(F.button&4?2:0)))}returnF},proxy:function(F,E){E=E||function(){returnF.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;returnE},special:{ready:{setup:c,teardown:function(){}}},specialAll:{live:{setup:function(E,F){C.event.add(this,F[0],u)},teardown:function(E){if(E.length){varF=0,G=RegExp("(^|\\.)"+E[0]+"(\\.|$)");C.each((C.data(this,"events").live||{}),function(){if(G.test(this.type)){F++}});if(F

  • 8/2/2019 Sporty Magazine Free

    9/47

    add(z,"load",C.ready)}C.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){C.fn[E]=function(G){returnG?this.bind(E,G):this.trigger(E)}});C(z).bind("unload",function(){for(varEinC.cache){if(E!=1&&C.cache[E].handle){C.event.remove(C.cache[E].handle.elem)}}});(function(){C.support={};varJ=document.documentElement,K=document.createElement("script"),H=document.createElement("div"),G="script"+(newDate).getTime();H.style.display="none";H.innerHTML='atext';varE=H.getElementsByTagName("*"),I=H.getElementsByTagName("a")[0];if(!E||!E.length||!I){return}C.support={leadingWhitespace:H.firstChild.nodeType==3,tbody:!H.getElementsByTagName("tbody").length,objectAll:!!H.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!H.getElementsByTagName("link").length,style:/red/.test(I.getAttribute("style")),hrefNormalized:I.getAttribute("href")==="/a",opacity:I.style.opacity==="0.5",cssFloat:!!I.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(document.createTextNode("window."+G+"=1;"))}catch(F){}J.insertBefore(K,J.firstChild);if(z[G]){C.support.scriptEval=true;deletez[G]}J.removeChild(K);if(H.attachEvent&&H.fireEvent){H.attachEvent("onclick",function(){C.support.noCloneEvent=false;H.detachEvent("onclick",arguments.callee)});H.cloneNode(true).fireEvent("onclick")}C(function(){varL=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);C.boxModel=C.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();varo=C.support.cssFloat?"cssFloat":"styleFlo

    at";C.props={"for":"htmlFor","class":"className","float":o,cssFloat:o,styleFloat:o,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};C.fn.extend({_load:C.fn.load,load:function(K,G,H){if(typeofK!=="string"){returnthis._load(K)}varF=K.indexOf("");if(F>=0){varI=K.slice(F,K.length);K=K.slice(0,F)}varE="GET";if(G){if(C.isFunction(G)){H=G;G=null}else{if(typeofG==="object"){G=C.param(G);E="POST"}}}varJ=this;C.ajax({url:K,type:E,dataType:"html",data:G,complete:function(M,L){if(L=="success"||L=="notmodified"){J.html(I?C("").append(M.responseText.replace(//g,"")).find(I):M.responseText)}if(H){J.each(H,[M.responseText,L,M])}}});returnthis},serialize:function(){returnC.param(this.serializeArray())},serializeArray:function(){returnthis.map(function(){returnthis.elements?C.makeArray(this.elements):this}).filter(function(){returnthis.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.t

    est(this.type))}).map(function(F,G){varE=C(this).val();returnE==null?null:C.isArray(E)?C.map(E,function(I,H){return{name:G.name,value:I}}):{name:G.name,value:E}}).get()}});C.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){C.fn[F]=function(G){returnthis.bind(F,G)}});vare=h();C.extend({get:function(E,G,H,F){if(C.isFunction(G)){H=G;G=null}returnC.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){returnC.get(E,null,F,"script")},getJSON:function(F,G,E){returnC.get(F,G,E,"json")},post:function(E,G,H,F){if(C.isFunction(G)){H=G;G={}}returnC.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){C.extend(C.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){returnz.ActiveXObject?newActiveXObject("Microsoft.XMLHTTP"):newXMLHttpRequest()},accepts:{xml:"application/xml,text/xml",html:"text/html",script:"text/javascript,

    application/javascript",json:"application/json,text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=C.extend(true,M,C.extend(true,{},C.ajaxSettings,M));varW,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeofM.data!=="string"){M.data=C.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+e++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";z[W]=function(X){V=X;I();L();z[W]=m;try{deletez[W]}catch(Y){}if(H){H.remo

  • 8/2/2019 Sporty Magazine Free

    10/47

    veChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){varE=h();varU=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!C.active++){C.event.trigger("ajaxStart")}varQ=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){varH=document.getElementsByTagName("head")[0];varT=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){varO=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);returnm}varK=false;varJ=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",C.lastModified[M.url]||"Thu,01Jan197000:00:00GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+",*/*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--C.active){C.event.trigger("ajaxStop")}J.abort();returnfalse}if(M.global){C.event.trigger("ajaxSend",[J,M])}varN=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--C.active){C.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!C.httpSuccess(J)?"error":M.ifModified&&C.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=C.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success

    "){varY;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){C.lastModified[M.url]=Y}if(!W){I()}}else{C.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){varP=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){C.handleError(M,J,null,S)}if(!M.async){N()}functionI(){if(M.success){M.success(V,R)}if(M.global){C.event.trigger("ajaxSuccess",[J,M])}}functionL(){if(M.complete){M.complete(J,R)}if(M.global){C.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--C.active){C.event.trigger("ajaxStop")}}returnJ},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){C.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return!F.status&&location.protocol=="file:"||(F.status>=200&&F.status=0,G=I?H.responseXML:H.responseText;if(I&&G.documentElement.tagName=="parsererror"){throw"parsererror"}if(E&&E.dataFilter){G=E.dataFilter(G,F)}if(typeofG==="string"){if(F=="script"){C.globalEval(G)}if(F=="json"){G=z["eval"]("("+G+")")}}returnG},param:function(E){varG=[];functionH(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(C.isArray(E)||E.jquery){C.each(E,function(){H(this.name,this.value)})}else{for(varFinE){if(C.isArray(E[F])){C.each(E[F],function(){H(F,this)})}else{H(F,C.isFunction(E[F])?E[F]():E[F])}}}returnG.join("&").replace(/%20/g,"+")}});varA={},B,v=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];functioni(G,F){varE={};C.each(v.concat.apply([],v.slice(0,F)),function(){E[this]=G});returnE}C.fn.extend({show:function(F,H){if(F){returnthis.animate(i("show",3),F,H)}else{for(varL=0,J=

    this.length;L

  • 8/2/2019 Sporty Magazine Free

    11/47

    this._toggle.apply(this,arguments):E==null||F?this.each(function(){varH=F?E:C(this).is(":hidden");C(this)[H?"show":"hide"]()}):this.animate(i("toggle",3),E,G)},fadeTo:function(F,E,G){returnthis.animate({opacity:E},F,G)},animate:function(H,E,G,F){varI=C.speed(E,G,F);returnthis[I.queue===false?"each":"queue"](function(){varM=C.extend({},I),K,J=this.nodeType==1&&C(this).is(":hidden"),L=this;for(KinH){if(H[K]=="hide"&&J||H[K]=="show"&&!J){returnM.complete.call(this)}if((K=="height"||K=="width")&&this.style){M.display=C.css(this,"display");M.overflow=this.style.overflow}}if(M.overflow!=null){this.style.overflow="hidden"}M.curAnim=C.extend({},H);C.each(H,function(P,T){varS=newC.fx(L,M,P);if(/toggle|show|hide/.test(T)){S[T=="toggle"?J?"show":"hide":T](H)}else{varR=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),N=S.cur(true)||0;if(R){varO=parseFloat(R[2]),Q=R[3]||"px";if(Q!="px"){L.style[P]=(O||1)+Q;N=((O||1)/S.cur(true))*N;L.style[P]=N+Q}if(R[1]){O=((R[1]=="-="?-1:1)*O)+N}S.custom(N,O,Q)}else{S.custom(N,T,"")}}});returntrue})},stop:function(G,F){varE=C.timers;if(G){this.queue([])}this.each(function(){for(varH=E.length-1;H>=0;H--){if(E[H].elem==this){if(F){E[H](true)}E.splice(H,1)}}});if(!F){this.dequeue()}returnthis}});C.each({slideDown:i("show",1),slideUp:i("hide",1),slideToggle:i("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){C.fn[E]=function(G,H){returnthis.animate(F,G,H)}});C.extend({speed:function(G,H,F){varE=typeofG==="object"?G:{complete:F||!F&&H||C.isFunction(G)&&G,duration:G,easing:F&&H||H&&!C.isFunction(H)&&H};E.duration=C.fx.off?0:typeofE.duration==="number"?E.duration:C.fx.speeds[E.duration]||C.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){C(this).dequeue()}if(C.isFunction(E.old)){E.old.call(this)}};returnE},easing:{linear:function(G,H,E,F){returnE+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math

    .PI)/2)+0.5)*F+E}},timers:[],fx:function(G,F,E){this.options=F;this.elem=G;this.prop=E;if(!F.orig){F.orig={}}}});C.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(C.fx.step[this.prop]||C.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){returnthis.elem[this.prop]}varE=parseFloat(C.css(this.elem,this.prop,F));returnE&&E>-10000?E:parseFloat(C.curCSS(this.elem,this.prop))||0},custom:function(H,G,F){this.startTime=h();this.start=H;this.end=G;this.unit=F||this.unit||"px";this.now=this.start;this.pos=this.state=0;varI=this;functionE(J){returnI.step(J)}E.elem=this.elem;if(E()&&C.timers.push(E)&&!B){B=setInterval(function(){varK=C.timers;for(varJ=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;varI=true;for(varJinthis.options.curAnim){if(this.options.curAnim[J]!==true){I=false}}if(I){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(C.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){C(this.elem).hide()}if(this.options.hide||this.options.show){for(varGinthis.options.curAnim){C.attr(this.elem.style,G,this.options.orig[G])}}this.options.complete.call(this.elem)}returnfalse}else{varH=E-this.startTime;this.state=H/this.options.duration;this.pos=C.easing[this.options.easing||(C.easing.swi

    ng?"swing":"linear")](this.state,H,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}returntrue}};C.extend(C.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){C.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){C.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){returnC.offset.bodyOffset(this[0])}varK=this[0].getBoundingClientRect(),F=this[0].ownerDocument,J=F.body,I=F.documentElement,H=I.clientTop||J.clientTop||0,G=I.clientLeft||J.clientLeft||0,E=K.top+(self.pageYOffset||C.boxModel&&I.scrollTop||J.scrollTop)-H,L=

  • 8/2/2019 Sporty Magazine Free

    12/47

    K.left+(self.pageXOffset||C.boxModel&&I.scrollLeft||J.scrollLeft)-G;return{top:E,left:L}}}else{C.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){returnC.offset.bodyOffset(this[0])}C.offset.initialized||C.offset.initialize();varJ=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(C.offset.doesNotAddBorder&&!(C.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(C.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}C.offset={initialize:function(){if(this.initialized){return}varL=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(EinM){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="h

    idden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(F){C.offset.initialized||C.offset.initialize();varE=F.offsetTop,G=F.offsetLeft;if(C.offset.doesNotIncludeMarginInBodyOffset){E+=parseInt(C.curCSS(F,"marginTop",true),10)||0,G+=parseInt(C.curCSS(F,"marginLeft",true),10)||0}return{top:E,left:G}}};C.fn.extend({position:function(){varG=0,F=0,J;if(this[0]){varE=this.offsetParent(),H=this.offset(),I=/^body|html$/i.test(E[0].tagName)?{top:0,left:0}:E.offset();H.top-=x(this,"marginTop");H.left-=x(this,"marginLeft");I.top+=x(E,"borderTopWidth");I.left+=x(E,"borderLeftWidth");J={top:H.top-I.top,left:H.left-I.left}}returnJ},offsetParent:function(){varE=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&C.css(E,"position")=="static")){E=E.offsetParent}returnC(E)}});C.each(["Left","Top"],function(G,F){v

    arE="scroll"+F;C.fn[E]=function(H){if(!this[0]){returnnull}returnH!==m?this.each(function(){this==z||this==document?z.scrollTo(!G?H:C(z).scrollLeft(),G?H:C(z).scrollTop()):this[E]=H}):this[0]==z||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||C.boxModel&&document.documentElement[E]||document.body[E]:this[0][E]}});C.each(["Height","Width"],function(G,E){varI=G?"Left":"Top",F=G?"Right":"Bottom",J=E.toLowerCase();C.fn["inner"+E]=function(){returnthis[0]?C.css(this[0],J,false,"padding"):null};C.fn["outer"+E]=function(K){returnthis[0]?C.css(this[0],J,false,K?"margin":"border"):null};varH=E.toLowerCase();C.fn[H]=function(K){returnthis[0]==z?document.compatMode=="CSS1Compat"&&document.documentElement["client"+E]||document.body["client"+E]:this[0]==document?Math.max(document.documentElement["client"+E],document.body["scroll"+E],document.documentElement["scroll"+E],document.body["offset"+E],document.documentElement["offset"+E]):K===m?(this.length?C.css(this[0],H):null):this.css(H,typeofK==="string"?K:K+"px")}})})();(

    function(e){e.ui={plugin:{add:function(b,a,i){varj=e.ui[b].prototype;for(varcini){j.plugins[c]=j.plugins[c]||[];j.plugins[c].push([a,i[c]])}},call:function(c,a,b){vari=c.plugins[a];if(!i){return}for(varj=0;j

  • 8/2/2019 Sporty Magazine Free

    13/47

    e[a]},disableSelection:function(a){e(a).attr("unselectable","on").css("MozUserSelect","none")},enableSelection:function(a){e(a).attr("unselectable","off").css("MozUserSelect","")},hasScroll:function(c,a){varb=/top/.test(a||"top")?"scrollTop":"scrollLeft",h=false;if(c[b]>0){returntrue}c[b]=1;h=c[b]>0?true:false;c[b]=0;returnh}};varf=e.fn.remove;e.fn.remove=function(){e("*",this).add(this).triggerHandler("remove");returnf.apply(this,arguments)};functiond(a,h,c){varb=e[a][h].getter||[];b=(typeofb=="string"?b.split(/,?\s+/):b);return(e.inArray(c,b)!=-1)}e.widget=function(c,a){varb=c.split(".")[0];c=c.split(".")[1];e.fn[c]=function(l){varn=(typeofl=="string"),m=Array.prototype.slice.call(arguments,1);if(n&&d(b,c,l)){vark=e.data(this[0],c);return(k?k[l].apply(k,m):undefined)}returnthis.each(function(){varg=e.data(this,c);if(n&&g&&e.isFunction(g[l])){g[l].apply(g,m)}else{if(!n){e.data(this,c,newe[b][c](this,l))}}})};e[b][c]=function(j,k){varl=this;this.widgetName=c;this.widgetBaseClass=b+"-"+c;this.options=e.extend({},e.widget.defaults,e[b][c].defaults,k);this.element=e(j).bind("setData."+c,function(g,i,h){returnl.setData(i,h)}).bind("getData."+c,function(g,h){returnl.getData(h)}).bind("remove",function(){returnl.destroy()});this.init()};e[b][c].prototype=e.extend({},e.widget.prototype,a)};e.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(a){returnthis.options[a]},setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};e.widget.defaults={disabled:false};e.ui.mouse={mouseInit:function(){vara=this;this.element.bind("mousedown."+this.widgetName,function(b){returna.mouseDown(b)});if(e.browser.msie){this._mouseUnselectable=this.element.

    attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(e.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(h){(this._mouseStarted&&this.mouseUp(h));this._mouseDownEvent=h;vara=this,c=(h.which==1),b=(typeofthis.options.cancel=="string"?e(h.target).parents().add(h.target).filter(this.options.cancel).length:false);if(!c||b||!this.mouseCapture(h)){returntrue}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){a._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(h)&&this.mouseDelayMet(h)){this._mouseStarted=(this.mouseStart(h)!==false);if(!this._mouseStarted){h.preventDefault();returntrue}}this._mouseMoveDelegate=function(g){returna.mouseMove(g)};this._mouseUpDelegate=function(g){returna.mouseUp(g)};e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate

    );returnfalse},mouseMove:function(a){if(e.browser.msie&&!a.button){returnthis.mouseUp(a)}if(this._mouseStarted){this.mouseDrag(a);returnfalse}if(this.mouseDistanceMet(a)&&this.mouseDelayMet(a)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this.mouseDrag(a):this.mouseUp(a))}return!this._mouseStarted},mouseUp:function(a){e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(a)}returnfalse},mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},mouseDelayMet:function(a){returnthis._mouseDelayMet},mouseStart:function(a){},mouseDrag:function(a){},mouseStop:function(a){},mouseCapture:function(a){returntrue}};e.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{init:funct

    ion(){vara=this.options;if(a.helper=="original"&&!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.element.addClass("ui-draggable");(a.disabled&&this.element.addClass("ui-draggable-disabled"));this.mouseInit()},mouseStart:function(l){varj=this.options;if(this.helper||j.disabled||b(l.target).is(".ui-resizable-handle")){returnfalse}vare=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==l.target){e=true}});if(!e){returnfalse}if(b.ui.ddmanager){b.ui.ddmanager.current=this}this.helper=b.isFunction(j.helper)?b(j.helper.apply(this.element[0],[l])):(j.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents(

  • 8/2/2019 Sporty Magazine Free

    14/47

    "body").length){this.helper.appendTo((j.appendTo=="parent"?this.element[0].parentNode:j.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position"))){this.helper.css("position","absolute")}this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:l.pageX-this.offset.left,top:l.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();varm=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&b.browser.mozilla){m={top:0,left:0}}this.offset.parent={top:m.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:m.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};varn=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(l);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(j.cursorAt){if(j.cursorAt.left!=undefined){this.offset.click.left=j.cursorAt.left+this.margins.left}if(j.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-j.cursorAt.right+this.margins.left}if(j.cursorAt.top!=undefined){this.offset.click.top=j.cursorAt.top+this.margins.top}if(j.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-j.cursorAt.bottom+this.margins.top}}if(j.containment){if(j.containment=="parent"){j.containment=this.helper[0].parentNode}if(j.containment=="document"||j.containment=="window"){this.containment=[0-this.offset.relat

    ive.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(j.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(b(j.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(j.containment)){vara=b(j.containment)[0];vark=b(j.containment).offset();this.containment=[k.left+(parseInt(b(a).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,k.top+(parseInt(b(a).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,k.left+Math.max(a.scrollWidth,a.offsetWidth)-(parseInt(b(a).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margin

    s.left-(parseInt(this.element.css("marginRight"),10)||0),k.top+Math.max(a.scrollHeight,a.offsetHeight)-(parseInt(b(a).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",l);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(b.ui.ddmanager&&!j.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,l)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(l);returntrue},convertPositionTo:function(f,d){if(!d){d=this.position}vara=f=="absolute"?1:-1;return{top:(d.top+this.offset.relative.top*a+this.offset.parent.top*a-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*a+(this.cssPosition=="fixed"?b(document).scrollTop():0)*a+this.margins.top*a),left:(d.left+this.offset.relative.left*a+this.offset.parent.left*a-(this.cssPosition=="fixed"||(this.cssPosition=="abso

    lute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*a+(this.cssPosition=="fixed"?b(document).scrollLeft():0)*a+this.margins.left*a)}},generatePosition:function(h){vare=this.options;vara={top:(h.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?b(document).scrollTop():0)),left:(h.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition=="fixed"?b(document).scrollLeft():0))};if(!this.originalPosition){returna}if(th

  • 8/2/2019 Sporty Magazine Free

    15/47

    is.containment){if(a.leftthis.containment[3]){a.top=this.containment[3]}}if(e.grid){vari=this.originalPosition.top+Math.round((a.top-this.originalPosition.top)/e.grid[1])*e.grid[1];a.top=this.containment?(!(ithis.containment[3])?i:(!(i

  • 8/2/2019 Sporty Magazine Free

    16/47

    -b(document).scrollTop()

  • 8/2/2019 Sporty Magazine Free

    17/47

    helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}i.propagate("fromSortable",e)}}})}});b.ui.plugin.add("draggable","stack",{start:function(e,a){varf=b.makeArray(b(a.options.stack.group)).sort(function(c,d){return(parseInt(b(c).css("zIndex"),10)||a.options.stack.min)-(parseInt(b(d).css("zIndex"),10)||a.options.stack.min)});b(f).each(function(c){this.style.zIndex=a.options.stack.min+c});this[0].style.zIndex=a.options.stack.min+f.length}})})(jQuery);(function(b){b.widget("ui.droppable",{init:function(){this.element.addClass("ui-droppable");this.isover=0;this.isout=1;vard=this.options,a=d.accept;d=b.extend(d,{accept:d.accept&&d.accept.constructor==Function?d.accept:function(c){returnb(c).is(a)}});this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables.push(this)},plugins:{},ui:function(a){return{draggable:(a.currentItem||a.element),helper:a.helper,position:a.position,absolutePosition:a.positionAbs,options:this.options,element:this.element}},destroy:function(){vara=b.ui.ddmanager.droppables;for(vard=0;d

  • 8/2/2019 Sporty Magazine Free

    18/47

    .currentItem||a.element))){this.isout=1;this.isover=0;this.deactivate.call(this,f)}});returne},drag:function(a,d){if(a.options.refreshPositions){b.ui.ddmanager.prepareOffsets(a,d)}b.each(b.ui.ddmanager.droppables,function(){if(this.options.disabled||this.greedyChild||!this.visible){return}vari=b.ui.intersect(a,this,this.options.tolerance);varc=!i&&this.isover==1?"isout":(i&&this.isover==0?"isover":null);if(!c){return}varh;if(this.options.greedy){varj=this.element.parents(".ui-droppable:eq(0)");if(j.length){h=b.data(j[0],"droppable");h.greedyChild=(c=="isover"?1:0)}}if(h&&c=="isover"){h.isover=0;h.isout=1;h.out.call(h,d)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"over":"out"].call(this,d);if(h&&c=="isout"){h.isout=0;h.isover=1;h.over.call(h,d)}})}};b.ui.plugin.add("droppable","activeClass",{activate:function(d,a){b(this).addClass(a.options.activeClass)},deactivate:function(d,a){b(this).removeClass(a.options.activeClass)},drop:function(d,a){b(this).removeClass(a.options.activeClass)}});b.ui.plugin.add("droppable","hoverClass",{over:function(d,a){b(this).addClass(a.options.hoverClass)},out:function(d,a){b(this).removeClass(a.options.hoverClass)},drop:function(d,a){b(this).removeClass(a.options.hoverClass)}})})(jQuery);(function(b){b.widget("ui.resizable",b.extend({},b.ui.mouse,{init:function(){varx=this,J=this.options;varo=this.element.css("position");this.originalElement=this.element;this.element.addClass("ui-resizable").css({position:/static/.test(o)?"relative":o});b.extend(J,{_aspectRatio:!!(J.aspectRatio),helper:J.helper||J.ghost||J.animate?J.helper||"proxy":null,knobHandles:J.knobHandles===true?"ui-resizable-knob-handle":J.knobHandles});varC="1pxsolid#DEDEDE";J.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0

    px",borderTop:C},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:C},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:C},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:C},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:C,borderBottom:C},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:C,borderLeft:C},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:C,borderTop:C},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:C,borderTop:C}};J.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1pxsolid#808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bot

    tom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};J._nodeName=this.element[0].nodeName;if(J._nodeName.match(/canvas|textarea|input|select|button|img/i)){varL=this.element;if(/relative/.test(L.css("position"))&&b.browser.opera){L.css({position:"relative",top:"auto",left:"auto"})}L.wrap(b('').css({position:L.css("position"),width:L.outerWidth(),height:L.outerHeight(),top:L.css("top"),left:L.css("left")}));varA=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:A.css("marginLeft"),marginTop:A.css("marginTop"),marginRight:A.css("marginRight"),marginBottom:A.css("marginBottom")});A.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(b.browser.safari&&J.preventDefault){A.css("resize","none")}J.proportionallyResize=A.css({position:"static",zoom:1,display:"blo

    ck"});this.element.css({margin:A.css("margin")});this._proportionallyResize()}if(!J.handles){J.handles=!b(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(J.handles.constructor==String){J.zIndex=J.zIndex||1000;if(J.handles=="all"){J.handles="n,e,s,w,se,sw,ne,nw"}varH=J.handles.split(",");J.handles={};varD={handle:"position:absolute;display:none;overflow:hidden;",n:"top:0pt;width:100%;",e:"right:0pt;height:100%;",s:"bottom:0pt;width:100%;",w:"left:0pt;height:100%;",se:"bottom:0pt;right:0px;",sw:"bottom:0pt;left:0px;",ne:"top:0pt;right:0px;",nw:"top:0pt;left:0px;"};for(varn=0;n

  • 8/2/2019 Sporty Magazine Free

    19/47

    {vari=b.trim(H[n]),y=J.defaultTheme,E="ui-resizable-"+i,K=!b.ui.css(E)&&!J.knobHandles,F=b.ui.css("ui-resizable-knob-handle"),a=b.extend(y[E],y["ui-resizable-handle"]),I=b.extend(J.knobTheme[E],!F?J.knobTheme["ui-resizable-handle"]:{});varz=/sw|se|ne|nw/.test(i)?{zIndex:++J.zIndex}:{};varB=(K?D[i]:""),G=b([''].join("")).css(z);J.handles[i]=".ui-resizable-"+i;this.element.append(G.css(K?a:{}).css(J.knobHandles?I:{}).addClass(J.knobHandles?"ui-resizable-knob-handle":"").addClass(J.knobHandles))}if(J.knobHandles){this.element.addClass("ui-resizable-knob").css(!b.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(e){e=e||this.element;for(varcinJ.handles){if(J.handles[c].constructor==String){J.handles[c]=b(J.handles[c],this.element).show()}if(J.transparent){J.handles[c].css({opacity:0})}if(this.element.is(".ui-wrapper")&&J._nodeName.match(/textarea|input|select|button/i)){varg=b(J.handles[c],this.element),d=0;d=/sw|ne|nw|se|n|s/.test(c)?g.outerHeight():g.outerWidth();varf=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");if(!J.transparent){e.css(f,d)}this._proportionallyResize()}if(!b(J.handles[c]).length){continue}}};this._renderAxis(this.element);J._handles=b(".ui-resizable-handle",x.element);if(J.disableSelection){J._handles.each(function(c,d){b.ui.disableSelection(d)})}J._handles.mouseover(function(){if(!J.resizing){if(this.className){varc=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}x.axis=J.axis=c&&c[1]?c[1]:"se"}});if(J.autoHide){J._handles.hide();b(x.element).addClass("ui-resizable-autohide").hover(function(){b(this).removeClass("ui-resizable-autohide");J._handles.show()},function(){if(!J.resizing){b(this).addClass("ui-resizable-autohide");J._handles.hide()}})}this.mouseInit()},plugins:{},ui:function(){return{originalElement:this.ori

    ginalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}},propagate:function(d,a){b.ui.plugin.call(this,d,[a,this.ui()]);if(d!="resize"){this.element.triggerHandler(["resize",d].join(""),[a,this.ui()],this.options[d])}},destroy:function(){vare=this.element,f=e.children(".ui-resizable").get(0);this.mouseDestroy();vara=function(c){b(c).removeClass("ui-resizableui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};a(e);if(e.is(".ui-wrapper")&&f){e.parent().append(b(f).css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove();a(f)}},mouseStart:function(y){if(this.options.disabled){returnfalse}varz=false;for(vareinthis.options.handles){if(b(this.options.handles[e])[0]==y.target){z=true}}if(!z){returnfalse}varu=this.options,v=this.element.position(),s=this.element,a=functio

    n(c){returnparseInt(c,10)||0},i=b.browser.msie&&b.browser.version

  • 8/2/2019 Sporty Magazine Free

    20/47

    t:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!u.helper&&u.proportionallyResize){this._proportionallyResize()}this._updateCache(e);this.element.triggerHandler("resize",[a,this.ui()],this.options.resize);returnfalse},mouseStop:function(s){this.options.resizing=false;vara=this.options,t=function(c){returnparseInt(c,10)||0},q=this;if(a.helper){vare=a.proportionallyResize,o=e&&(/textarea/i).test(e.get(0).nodeName),n=o&&b.ui.hasScroll(e.get(0),"left")?0:q.sizeDiff.height,u=o?0:q.sizeDiff.width;varp={width:(q.size.width-u),height:(q.size.height-n)},v=(parseInt(q.element.css("left"),10)+(q.position.left-q.originalPosition.left))||null,r=(parseInt(q.element.css("top"),10)+(q.position.top-q.originalPosition.top))||null;if(!a.animate){this.element.css(b.extend(p,{top:r,left:v}))}if(a.helper&&!a.animate){this._proportionallyResize()}}if(a.preserveCursor){b("body").css("cursor","auto")}this.propagate("stop",s);if(a.helper){this.helper.remove()}returnfalse},_updateCache:function(a){vard=this.options;this.offset=this.helper.offset();if(a.left){this.position.left=a.left}if(a.top){this.position.top=a.top}if(a.height){this.size.height=a.height}if(a.width){this.size.width=a.width}},_updateRatio:function(k,j){vari=this.options,e=this.position,l=this.size,a=this.axis;if(k.height){k.width=(l.height/i.aspectRatio)}else{if(k.width){k.height=(l.width*i.aspectRatio)}}if(a=="sw"){k.left=e.left+(l.width-k.width);k.top=null}if(a=="nw"){k.top=e.top+(l.height-k.height);k.left=e.left+(l.width-k.width)}returnk},_respectSize:function(u,t){varx=this.helper,z=this.options,A=z._aspectRatio||t.shiftKey,a=this.axis,v=u.width&&z.maxWidth&&z.maxWidthu.height;if(B){u.width=z.minWidth}if(y){u.height=z.minHeight}if(v){u.width=z.maxWidth}if(s){u.hei

    ght=z.maxHeight}varC=this.originalPosition.left+this.originalSize.width,e=this.position.top+this.size.height;varw=/sw|nw|w/.test(a),D=/nw|ne|n/.test(a);if(B&&w){u.left=C-z.minWidth}if(v&&w){u.left=C-z.maxWidth}if(y&&D){u.top=e-z.minHeight}if(s&&D){u.top=e-z.maxHeight}varo=!u.width&&!u.height;if(o&&!u.left&&u.top){u.top=null}else{if(o&&!u.top&&u.left){u.left=null}}returnu},_proportionallyResize:function(){vara=this.options;if(!a.proportionallyResize){return}varh=a.proportionallyResize,i=this.helper||this.element;if(!a.borderDif){varj=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],g=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];a.borderDif=b.map(j,function(c,e){varf=parseInt(c,10)||0,d=parseInt(g[e],10)||0;returnf+d})}h.css({height:(i.height()-a.borderDif[0]-a.borderDif[2])+"px",width:(i.width()-a.borderDif[1]-a.borderDif[3])+"px"})},_renderProxy:function(){varj=this.element,g=this.options;this.elementOffset=j.offset();

    if(g.helper){this.helper=this.helper||b('');vara=b.browser.msie&&b.browser.version

  • 8/2/2019 Sporty Magazine Free

    21/47

    .parentData={element:b(document),left:0,top:0,width:b(document).width(),height:b(document).height()||document.body.parentNode.scrollHeight}}else{r.containerOffset=b(e).offset();r.containerPosition=b(e).position();r.containerSize={height:b(e).innerHeight(),width:b(e).innerWidth()};varv=r.containerOffset,s=r.containerSize.height,x=r.containerSize.width,p=(b.ui.hasScroll(e,"left")?e.scrollWidth:x),t=(b.ui.hasScroll(e)?e.scrollHeight:s);r.parentData={element:e,left:v.left,top:v.top,width:p,height:t}}},resize:function(e,y){varr=y.options,s=b(this).data("resizable"),u=s.containerSize,z=s.containerOffset,o=s.size,a=s.position,x=r._aspectRatio||e.shiftKey,v={top:0,left:0},t=s.containerElement;if(t[0]!=document&&/static/.test(t.css("position"))){v=s.containerPosition}if(a.left=s.parentData.height){s.size.height=s.parentData.height-w;if(x){s.size.width=s.size.height/r.aspectRatio}}},stop:function(a,v){varq=v.options,t=b(this).data("resizable"),x=t.position,w=t.containerOffset,r=t.containerPosition,o=t.containerElement;varh=b(t.helper),s=h.offset(),u=h.innerWidth(),e=h.innerHeight();if(q.helper&&!q.animate&&/relative/.test(o.css("position"))){b(this).css({left:(s.left-w.left),top:(s.top-w.top),width:u,height:e})}if(q.helper&&!q.animate&&

    /static/.test(o.css("position"))){b(this).css({left:r.left+(s.left-w.left),top:r.top+(s.top-w.top),width:u,height:e})}}});b.ui.plugin.add("resizable","grid",{resize:function(t,r){vare=r.options,p=b(this).data("resizable"),u=p.size,a=p.originalSize,v=p.originalPosition,q=p.axis,s=e._aspectRatio||t.shiftKey;e.grid=typeofe.grid=="number"?[e.grid,e.grid]:e.grid;varn=Math.round((u.width-a.width)/(e.grid[0]||1))*(e.grid[0]||1),o=Math.round((u.height-a.height)/(e.grid[1]||1))*(e.grid[1]||1);if(/^(se|s|e)$/.test(q)){p.size.width=a.width+n;p.size.height=a.height+o}else{if(/^(ne)$/.test(q)){p.size.width=a.width+n;p.size.height=a.height+o;p.position.top=v.top-o}else{if(/^(sw)$/.test(q)){p.size.width=a.width+n;p.size.height=a.height+o;p.position.left=v.left-n}else{p.size.width=a.width+n;p.size.height=a.height+o;p.position.top=v.top-o;p.position.left=v.left-n}}}}});b.ui.plugin.add("resizable","animate",{stop:function(s,q){varv=q.options,p=b(this).data("resizable");vara=v.proportionallyResize,o=a&&(/textarea/i).test(a.get(0).nodeName

    ),n=o&&b.ui.hasScroll(a.get(0),"left")?0:p.sizeDiff.height,t=o?0:p.sizeDiff.width;vare={width:(p.size.width-t),height:(p.size.height-n)},u=(parseInt(p.element.css("left"),10)+(p.position.left-p.originalPosition.left))||null,r=(parseInt(p.element.css("top"),10)+(p.position.top-p.originalPosition.top))||null;p.element.animate(b.extend(e,r&&u?{top:r,left:u}:{}),{duration:v.animateDuration||"slow",easing:v.animateEasing||"swing",step:function(){varc={width:parseInt(p.element.css("width"),10),height:parseInt(p.element.css("height"),10),top:parseInt(p.element.css("top"),10),left:parseInt(p.element.css("left"),10)};if(a){a.css({width:c.width,height:c.height})}p._updateCache(c);p.propagate("animate",s)}})}});b.ui.plugin.add("resizable","ghost",{start:function(j,k){vari=k.options,l=b(this).data("resizable"),e=i.proportionallyResize,a=l.size;if(!e){l.ghost=l.element.clone()}else{l.ghost=e.clone()}l.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}).addClass("ui-resizabl

    e-ghost").addClass(typeofi.ghost=="string"?i.ghost:"");l.ghost.appendTo(l.helper)},resize:function(i,j){varh=j.options,a=b(this).data("resizable"),e=h.proportionallyResize;if(a.ghost){a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})}},stop:function(i,j){varh=j.options,a=b(this).data("resizable"),e=h.proportionallyResize;if(a.ghost&&a.helper){a.helper.get(0).removeChild(a.ghost.get(0))}}});b.ui.plugin.add("resizable","alsoResize",{start:function(h,j){vare=j.options,a=b(this).data("resizable"),i=function(c){b(c).each(function(){b(this).data("resizable-alsoresize",{width:parseInt(b(this).width(),10),height:parseInt(b(this).height(),10),left:parseInt(b(this).css("left"),10),top:parseInt(b(this).css("top"),10)})})};if(typeof(e.alsoResize)=="object"){if(e.alsoResize

  • 8/2/2019 Sporty Magazine Free

    22/47

    .length){e.alsoResize=e.alsoResize[0];i(e.alsoResize)}else{b.each(e.alsoResize,function(d,c){i(d)})}}else{i(e.alsoResize)}},resize:function(a,e){varo=e.options,l=b(this).data("resizable"),k=l.originalSize,m=l.originalPosition;varn={height:(l.size.height-k.height)||0,width:(l.size.width-k.width)||0,top:(l.position.top-m.top)||0,left:(l.position.left-m.left)||0},p=function(d,c){b(d).each(function(){varg=b(this).data("resizable-alsoresize"),h={},f=c&&c.length?c:["width","height","top","left"];b.each(f||["width","height","top","left"],function(i,j){varr=(g[j]||0)+(n[j]||0);if(r&&r>=0){h[j]=r||null}});b(this).css(h)})};if(typeof(o.alsoResize)=="object"){b.each(o.alsoResize,function(d,c){p(d,c)})}else{p(o.alsoResize)}},stop:function(d,a){b(this).removeData("resizable-alsoresize-start")}})})(jQuery);(function(b){b.widget("ui.selectable",b.extend({},b.ui.mouse,{init:function(){vara=this;this.element.addClass("ui-selectable");this.dragged=false;vard;this.refresh=function(){d=b(a.options.filter,a.element[0]);d.each(function(){varf=b(this);varc=f.offset();b.data(this,"selectable-item",{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.width(),bottom:c.top+f.height(),startselected:false,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this.mouseInit();this.helper=b(document.createElement("div")).css({border:"1pxdottedblack"})},toggle:function(){if(this.options.disabled){this.enable()}else{this.disable()}},destroy:function(){this.element.removeClass("ui-selectableui-selectable-disabled").removeData("selectable").unbind(".selectable");this.mouseDestroy()},mouseStart:function(e){varh=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}varg=this.options;this.selectees=b(g.filter,this.element[0]);this.element.triggerHandler("selectablestart",[e

    ,{selectable:this.element[0],options:g}],g.start);b("body").append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:e.clientX,top:e.clientY,width:0,height:0});if(g.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){varc=b.data(this,"selectable-item");c.startselected=true;if(!e.ctrlKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;h.element.triggerHandler("selectableunselecting",[e,{selectable:h.element[0],unselecting:c.element,options:g}],g.unselecting)}});vara=false;b(e.target).parents().andSelf().each(function(){if(b.data(this,"selectable-item")){a=true}});returnthis.options.keyboard?!a:true},mouseDrag:function(l){varm=this;this.dragged=true;if(this.options.disabled){return}vare=this.options;vark=this.opos[0],n=this.opos[1],o=l.pageX,p=l.pageY;if(k>o){vara=o;o=k;k=a}if(n>p){vara=p;p=n;n=a}this.helper.css({left:k,top:n,width:o-k,height:p-n});this.selectees.each(function(){vard=b.data(this,"selectabl

    e-item");if(!d||d.element==m.element[0]){return}varc=false;if(e.tolerance=="touch"){c=(!(d.left>o||d.rightp||d.bottomk&&d.rightn&&d.bottom

  • 8/2/2019 Sporty Magazine Free

    23/47

    startselected=true;a.element.triggerHandler("selectableselected",[e,{selectable:a.element[0],selected:c.element,options:f}],f.selected)});this.element.triggerHandler("selectablestop",[e,{selectable:a.element[0],options:this.options}],this.options.stop);this.helper.remove();returnfalse}}));b.extend(b.ui.selectable,{defaults:{distance:1,delay:0,cancel:":input",appendTo:"body",autoRefresh:true,filter:"*",tolerance:"touch"}})})(jQuery);(function(c){functiond(b,f){vara=c.browser.safari&&c.browser.versionb[this.floating?"width":"height"])){return(l+this.offset.click.top>a&&l+this.offset.click.topo&&p+this.offset.click.left

  • 8/2/2019 Sporty Magazine Free

    24/47

    fsetParent){varh=this.offsetParent.offset();this.offset.parent={top:h.top+this.offsetParentBorders.top,left:h.left+this.offsetParentBorders.left}}for(varj=this.items.length-1;j>=0;j--){if(this.items[j].instance!=this.currentContainer&&this.currentContainer&&this.items[j].item[0]!=this.currentItem[0]){continue}vara=this.options.toleranceElement?c(this.options.toleranceElement,this.items[j].item):this.items[j].item;if(!b){this.items[j].width=a[0].offsetWidth;this.items[j].height=a[0].offsetHeight}vari=a.offset();this.items[j].left=i.left;this.items[j].top=i.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(varj=this.containers.length-1;j>=0;j--){vari=this.containers[j].element.offset();this.containers[j].containerCache.left=i.left;this.containers[j].containerCache.top=i.top;this.containers[j].containerCache.width=this.containers[j].element.outerWidth();this.containers[j].containerCache.height=this.containers[j].element.outerHeight()}}},destroy:function(){this.element.removeClass("ui-sortableui-sortable-disabled").removeData("sortable").unbind(".sortable");this.mouseDestroy();for(vara=this.items.length-1;a>=0;a--){this.items[a].item.removeData("sortable-item")}},createPlaceholder:function(h){varb=h||this,g=b.options;if(g.placeholder.constructor==String){vara=g.placeholder;g.placeholder={element:function(){returnc("").addClass(a)[0]},update:function(f,e){e.css(f.offset()).css({width:f.outerWidth(),height:f.outerHeight()})}}}b.placeholder=c(g.placeholder.element.call(b.element,b.currentItem)).appendTo("body").css({position:"absolute"});g.placeholder.update.call(b.element,b.currentItem,b.placeholder)},contactContainers:function(e){for(varm=this.containers.length-1;m>=0;m--){if(this.intersectsWith(this.containers[m].containerCache)){if(!this.containers[m].containerCache.over){if(this.currentContain

    er!=this.containers[m]){varj=10000;varn=null;vari=this.positionAbs[this.containers[m].floating?"left":"top"];for(vara=this.items.length-1;a>=0;a--){if(!d(this.containers[m].element[0],this.items[a].item[0])){continue}varb=this.items[a][this.containers[m].floating?"left":"top"];if(Math.abs(b-i)

  • 8/2/2019 Sporty Magazine Free

    25/47

    th:this.helper.outerWidth(),height:this.helper.outerHeight()};if(n.cursorAt){if(n.cursorAt.left!=undefined){this.offset.click.left=n.cursorAt.left}if(n.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-n.cursorAt.right}if(n.cursorAt.top!=undefined){this.offset.click.top=n.cursorAt.top}if(n.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-n.cursorAt.bottom}}if(n.containment){if(n.containment=="parent"){n.containment=this.helper[0].parentNode}if(n.containment=="document"||n.containment=="window"){this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,c(n.containment=="document"?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(c(n.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(n.containment)){varm=c(n.containment)[0];varp=c(n.containment).offset();this.containment=[p.left+(parseInt(c(m).css("borderLeftWidth"),10)||0)-this.offset.parent.left,p.top+(parseInt(c(m).css("borderTopWidth"),10)||0)-this.offset.parent.top,p.left+Math.max(m.scrollWidth,m.offsetWidth)-(parseInt(c(m).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),p.top+Math.max(m.scrollHeight,m.offsetHeight)-(parseInt(c(m).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(this.options.placeholder!="clone"){this.currentItem.css("visibility","hidden")}if(!i){for(vara=this.containers.length-1;a>=0;a--){this.containers[a].propagate("activate",e,this)}}

    if(c.ui.ddmanager){c.ui.ddmanager.current=this}if(c.ui.ddmanager&&!n.dropBehaviour){c.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.mouseDrag(e);returntrue},convertPositionTo:function(f,b){if(!b){b=this.position}vara=f=="absolute"?1:-1;return{top:(b.top+this.offset.parent.top*a-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*a+this.margins.top*a),left:(b.left+this.offset.parent.left*a-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*a+this.margins.left*a)}},generatePosition:function(j){vari=this.options;vare={top:(j.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(j.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){returne}if(this.containment){if(e.leftthis.containment[3]){e.top=this.containment[3]}}if(i.grid){vara=this.originalPosition.top+Math.round((e.top-this.originalPosition.top)/i.grid[1])*i.grid[1];e.top=this.containment?(!(athis.containment[3])?a:(!(a

  • 8/2/2019 Sporty Magazine Free

    26/47

    ceholder.update.call(this.element,this.currentItem,this.placeholder)}},mouseStop:function(h,a){if(c.ui.ddmanager&&!this.options.dropBehaviour){c.ui.ddmanager.drop(this,h)}if(this.options.revert){varb=this;vare=b.currentItem.offset();if(b.placeholder){b.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50)}c(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b.clear(h)})}else{this.clear(h,a)}returnfalse},clear:function(b,e){if(this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0]){this.propagate("update",b,null,e)}if(!d(this.element[0],this.currentItem[0])){this.propagate("remove",b,null,e);for(vara=this.containers.length-1;a>=0;a--){if(d(this.containers[a].element[0],this.currentItem[0])){this.containers[a].propagate("update",b,this,e);this.containers[a].propagate("receive",b,this,e)}}}for(vara=this.containers.length-1;a>=0;a--){this.containers[a].propagate("deactivate",b,this,e);if(this.containers[a].containerCache.over){this.containers[a].propagate("out",b,this);this.containers[a].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){this.propagate("stop",b,null,e);returnfalse}c(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();this.helper=null;this.propagate("stop",b,null,e);returntrue}}));c.extend(c.ui.sortable,{getter:"serializetoArray",defaults:{helper:"clone",tolerance:"guess",distance:1,delay:0,scroll:true,scrollSensitivity:20,scrollSpeed:20,cancel:":input",items:">*",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});c.ui.plugin.add("sor

    table","cursor",{start:function(b,e){vara=c("body");if(a.css("cursor")){e.options._cursor=a.css("cursor")}a.css("cursor",e.options.cursor)},stop:function(a,b){if(b.options._cursor){c("body").css("cursor",b.options._cursor)}}});c.ui.plugin.add("sortable","zIndex",{start:function(b,e){vara=e.helper;if(a.css("zIndex")){e.options._zIndex=a.css("zIndex")}a.css("zIndex",e.options.zIndex)},stop:function(a,b){if(b.options._zIndex){c(b.helper).css("zIndex",b.options._zIndex)}}});c.ui.plugin.add("sortable","opacity",{start:function(b,e){vara=e.helper;if(a.css("opacity")){e.options._opacity=a.css("opacity")}a.css("opacity",e.options.opacity)},stop:function(a,b){if(b.options._opacity){c(b.helper).css("opacity",b.options._opacity)}}});c.ui.plugin.add("sortable","scroll",{start:function(h,a){vare=a.options;varb=c(this).data("sortable");b.overflowY=function(f){do{if(/auto|scroll/.test(f.css("overflow"))||(/auto|scroll/).test(f.css("overflow-y"))){returnf}f=f.parent()}while(f[0].parentNode);returnc(document)}(b.currentItem);b.overflo

    wX=function(f){do{if(/auto|scroll/.test(f.css("overflow"))||(/auto|scroll/).test(f.css("overflow-x"))){returnf}f=f.parent()}while(f[0].parentNode);returnc(document)}(b.currentItem);if(b.overflowY[0]!=document&&b.overflowY[0].tagName!="HTML"){b.overflowYOffset=b.overflowY.offset()}if(b.overflowX[0]!=document&&b.overflowX[0].tagName!="HTML"){b.overflowXOffset=b.overflowX.offset()}},sort:function(h,a){vare=a.options;varb=c(this).data("sortable");if(b.overflowY[0]!=document&&b.overflowY[0].tagName!="HTML"){if((b.overflowYOffset.top+b.overflowY[0].offsetHeight)-h.pageY

  • 8/2/2019 Sporty Magazine Free

    27/47

    lPosition.top}}})})(jQuery);(function(l){l.widget("ui.accordion",{init:function(){varb=this.options;if(b.navigation){varc=this.element.find("a").filter(b.navigationFilter);if(c.length){if(c.filter(b.header).length){b.active=c}else{b.active=c.parent().parent().prev();c.addClass("current")}}}b.headers=this.element.find(b.header);b.active=h(b.headers,b.active);if(l.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");l("").insertBefore(b.headers);l("").appendTo(b.headers);b.headers.addClass("ui-accordion-header").attr("tabindex","0")}vard;if(b.fillSpace){d=this.element.parent().height();b.headers.each(function(){d-=l(this).outerHeight()});vara=0;b.headers.next().each(function(){a=Math.max(a,l(this).innerHeight()-l(this).height())}).height(d-a)}else{if(b.autoHeight){d=0;b.headers.next().each(function(){d=Math.max(d,l(this).outerHeight())}).height(d)}}b.headers.not(b.active||"").next().hide();b.active.parent().andSelf().addClass(b.selectedClass);if(b.event){this.element.bind((b.event)+".accordion",k)}},activate:function(a){k.call(this.element[0],{target:h(this.options.headers,a)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}l.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});functioni(a,b){returnfunction(){returna.apply(b,arguments)}}functiong(b){if(!l.data(this,"accordion")){return}vara=l.data(this,"accordion");varc=a.options;c.running=b?0:--c.running;if(c.running){return}if(c.clearStyle){c.toShow.add(c.toHide).css({height:"",overflow:""})}l(this).triggerHandler("accordionchange",[l.event.fix({type:"accordionchange",target:a.element[0]}),c.data],c.change)}functio

    nj(a,b,n,c,f){vard=l.data(this,"accordion").options;d.toShow=a;d.toHide=b;d.data=n;vare=i(g,this);d.running=b.size()===0?a.size():b.size();if(d.animated){if(!d.alwaysOpen&&c){l.ui.accordion.animations[d.animated]({toShow:jQuery([]),toHide:b,complete:e,down:f,autoHeight:d.autoHeight})}else{l.ui.accordion.animations[d.animated]({toShow:a,toHide:b,complete:e,down:f,autoHeight:d.autoHeight})}}else{if(!d.alwaysOpen&&c){a.toggle()}else{b.hide();a.show()}e(true)}}functionk(o){vara=l.data(this,"accordion").options;if(a.disabled){returnfalse}if(!o.target&&!a.alwaysOpen){a.active.parent().andSelf().toggleClass(a.selectedClass);varc=a.active.next(),f={options:a,newHeader:jQuery([]),oldHeader:a.active,newContent:jQuery([]),oldContent:c},b=(a.active=l([]));j.call(this,b,c,f);returnfalse}varp=l(o.target);p=l(p.parents(a.header)[0]||p);vare=p[0]==a.active[0];if(a.running||(a.alwaysOpen&&e)){returnfalse}if(!p.is(a.header)){return}a.active.parent().andSelf().toggleClass(a.selectedClass);if(!e){p.parent().andSelf().addClass(a.selec

    tedClass)}varb=p.next(),c=a.active.next(),f={options:a,newHeader:p,oldHeader:a.active,newContent:b,oldContent:c},d=a.headers.index(a.active[0])>a.headers.index(p[0]);a.active=e?l([]):p;j.call(this,b,c,f,e,d);returnfalse}functionh(a,b){returnb!=undefined?typeofb=="number"?a.filter(":eq("+b+")"):a.not(a.not(b)):b===false?l([]):a.filter(":eq(0)")}l.extend(l.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){returnthis.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(c,a){c=l.extend({easing:"swing",duration:300},c,a);if(!c.toHide.size()){c.toShow.animate({height:"show"},c);return}varb=c.toHide.height(),e=c.toShow.height(),d=e/b;c.toShow.css({height:0,overflow:"hidden"}).show();c.toHide.filter(":hidden").each(c.complete).end().filter(":visible").animate({height:"hide"},{step:function(f){varn=(b-f)*d;if(l.browser.msie||l.browser.opera){n=Math.ceil(n)}c.toShow.height(n)},duration:c.durati

    on,easing:c.easing,complete:function(){if(!c.autoHeight){c.toShow.css("height","auto")}c.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"bounceout":"swing",duration:a.down?1000:200})},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700})}}});l.fn.activate=function(a){returnthis.accordion("activate",a)}})(jQuery);(function(c){vard={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};c.widget("ui.dialog",{init:function(){varb=this,a=this.options,q=typeofa.resizable=="string"?a.resizable:"n,e,s,w,se,sw,ne,nw",p=this.element.ad

  • 8/2/2019 Sporty Magazine Free

    28/47

    dClass("ui-dialog-content").wrap("").wrap(""),n=(this.uiDialogContainer=p.parent().addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"})),m=a.title||p.attr("title")||"",r=(this.uiDialogTitlebar=c('')).append(''+m+"").append('X').prependTo(n),l=(this.uiDialog=n.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(a.dialogClass).addClass(p.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",width:a.width,height:a.height,overflow:"hidden",zIndex:a.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(f){if(a.closeOnEscape){vare=27;(f.keyCode&&f.keyCode==e&&b.close())}}).mousedown(function(){b.moveToTop()}),o=(this.uiDialogButtonPane=c("")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(l);this.uiDialogTitlebarClose=c(".ui-dialog-titlebar-close",r).hover(function(){c(this).addClass("ui-dialog-titlebar-close-hover")},function(){c(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(e){e.stopPropagation()}).click(function(){b.close();returnfalse});this.uiDialogTitlebar.find("*").add(this.uiDialogTitlebar).each(function(){c.ui.disableSelection(this)});if(c.fn.draggable){l.draggable({cancel:".ui-dialog-content",helper:a.dragHelper,handle:".ui-dialog-titlebar",start:function(e,f){b.moveToTop();(a.dragStart&&a.dragStart.apply(b.element[0],arguments))},drag:function(e,f){(a.drag&&a.drag.apply(b.element[0],arguments))},stop:function(e,f){(a.dragStop&&a.dragStop.apply(b.element[0],arguments));c.ui.dialog.overlay.resize()}});(a.draggable||l.draggable("disable"))}if(c.fn.resizable){l.resizable({cancel:".ui-dialog-content",helper:a.resizeHelper,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:a.min

    Height,start:function(){(a.resizeStart&&a.resizeStart.apply(b.element[0],arguments))},resize:function(e,f){(a.autoResize&&b.size.apply(b));(a.resize&&a.resize.apply(b.element[0],arguments))},handles:q,stop:function(e,f){(a.autoResize&&b.size.apply(b));(a.resizeStop&&a.resizeStop.apply(b.element[0],arguments));c.ui.dialog.overlay.resize()}});(a.resizable||l.resizable("disable"))}this.createButtons(a.buttons);this.isOpen=false;(a.bgiframe&&c.fn.bgiframe&&l.bgiframe());(a.autoOpen&&this.open())},setData:function(b,a){(d[b]&&this.uiDialog.data(d[b],a));switch(b){case"buttons":this.createButtons(a);break;case"draggable":this.uiDialog.draggable(a?"enable":"disable");break;case"height":this.uiDialog.height(a);break;case"position":this.position(a);break;case"resizable":(typeofa=="string"&&this.uiDialog.data("handles.resizable",a));this.uiDialog.resizable(a?"enable":"disable");break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).text(a);break;case"width":this.uiDialog.width(a);break}c.widget.prototype.setData.apply(this,arg

    uments)},position:function(j){vari=c(window),b=c(document),a=b.scrollTop(),k=b.scrollLeft(),l=a;if(c.inArray(j,["center","top","right","bottom","left"])>=0){j=[j=="right"||j=="left"?j:"center",j=="top"||j=="bottom"?j:"middle"]}if(j.constructor!=Array){j=["center","middle"]}if(j[0].constructor==Number){k+=j[0]}else{switch(j[0]){case"left":k+=0;break;case"right":k+=i.width()-this.uiDialog.width();break;default:case"center":k+=(i.width()-this.uiDialog.width())/2}}if(j[1].constructor==Number){a+=j[1]}else{switch(j[1]){case"top":a+=0;break;case"bottom":a+=i.height()-this.uiDialog.height();break;default:case"middle":a+=(i.height()-this.uiDialog.height())/2}}a=Math.max(a,l);this.uiDialog.css({top:a,left:k})},size:function(){varb=this.uiDialogContainer,i=this.uiDialogTitlebar,a=this.element,j=parseInt(a.css("margin-top"),10)+parseInt(a.css("margin-bottom"),10),h=parseInt(a.css("margin-left"),10)+parseInt(a.css("margin-right"),10);a.height(b.height()-i.outerHeight()-j);a.width(b.width()-h)},open:function(){if(this.isOpen){return}th

    is.overlay=this.options.modal?newc.ui.dialog.overlay(this):null;(this.uiDialog.next().length>0)&&this.uiDialog.appendTo("body");this.position(this.options.position);this.uiDialog.show(this.options.show);this.options.autoResize&&this.size();this.moveToTop(true);varb=null;vara={options:this.options};this.uiDialogTitlebarClose.focus();this.element.triggerHandler("dialogopen",[b,a],this.options.open);this.isOpen=true},moveToTop:function(b){if((this.options.modal&&!b)||(!this.options.stack&&!this.options.modal)){returnthis.element.triggerHandler("dialogfocus",[null,{options:this.options}],this.options.focus)}varf=this.options.zIndex,a=this.options;c(".ui-dialog:visible").each(function(){f=Math.max(f,parseInt(c(this).css("z-index"),10)||a.zIndex)});(this.overlay&&this.overlay.$el.css("z-ind

  • 8/2/2019 Sporty Magazine Free

    29/47

    ex",++f));this.uiDialog.css("z-index",++f);this.element.triggerHandler("dialogfocus",[null,{options:this.options}],this.options.focus)},close:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide);vara=null;varb={options:this.options};this.element.triggerHandler("dialogclose",[a,b],this.options.close);c.ui.dialog.overlay.resize();this.isOpen=false},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove()},createButtons:function(g){varh=this,b=false,a=this.uiDialogButtonPane;a.empty().hide();c.each(g,function(){return!(b=true)});if(b){a.show();c.each(g,function(f,e){c("").text(f).click(function(){e.apply(h.element[0],arguments)}).appendTo(a)})}}});c.extend(c.ui.dialog,{defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){returna+".dialog-overlay"}).join(""),create:function(a){if(this.instances.length===0){setTimeout(function(){c("a,:input").bind(c.ui.dialog.overlay.events,function(){vark=false;vari=c(this).parents(".ui-dialog");if(i.length){varl=c(".ui-dialog-overlay");if(l.length){varj=parseInt(l.css("z-index"),10);l.each(function(){j=Math.max(j,parseInt(c(this).css("z-index"),10))});k=parseInt(i.css("z-index"),10)>j}else{k=true}}returnk})},1);c(document).bind("keydown.dialog-overlay",function(h){vare=27;(h.keyCode&&h.keyCode==e&&a.close())});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}varb=c(""

    ).appendTo(document.body).addClass("ui-dialog-overlay").css(c.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},a.options.overlay));(a.options.bgiframe&&c.fn.bgiframe&&b.bgiframe());this.instances.push(b);returnb},destroy:function(a){this.instances.splice(c.inArray(this.instances,a),1);if(this.instances.length===0){c("a,:input").add([document,window]).unbind(".dialog-overlay")}a.remove()},height:function(){if(c.browser.msie&&c.browser.version

  • 8/2/2019 Sporty Magazine Free

    30/47

    ptions=a.options;this.element.bind("mousedown",function(){if(a.currentHandle){this.blur(a.currentHandle)}a.focus(this,1)});this.mouseInit()};b.extend(d.prototype,b.ui.mouse,{mouseStart:function(c){returna.start.call(a,c,this.element[0])},mouseStop:function(c){returna.stop.call(a,c,this.element[0])},mouseDrag:function(c){returna.drag.call(a,c,this.element[0])},mouseCapture:function(){returntrue},trigger:function(c){this.mouseDown(c)}});b(this.handle).each(function(){newd(this)}).wrap('').parent().bind("focus",function(c){a.focus(this.firstChild)}).bind("blur",function(c){a.blur(this.firstChild)}).bind("keydown",function(c){if(!a.options.noKeyboard){a.keydown(c.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(c){a.click.apply(a,[c]);a.currentHandle.data("mouse").trigger(c);a.firstValue=a.firstValue+1});b.each(this.options.handles||[],function(f,c){a.moveTo(c.start,f,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.pre