{"version":3,"sources":["superfly-menu.js"],"names":["SF_DEBUG","window","transitions","transition","WebkitTransition","MozTransition","OTransition","elem","document","createElement","t","style","transitionEnd","a","define","amd","exports","require","jQuery","b","c","preventDefault","event","remove","v","q","originalEvent","touches","toUpperCase","d","e","h","Event","x","trigger","target","isDefaultPrevented","indexOf","add","u","f","s","g","l","timeStamp","Date","j","w","y","time","orientation","end","i","k","setTimeout","pressDuration","dx","dy","adx","Math","abs","ady","motionThreshold","clearTimeout","direction","parentNode","call","this","flickDuration","m","doubleTapInterval","n","navigator","userAgent","o","exec","p","r","Finger","each","split","fn","on","eval","parseInt","String","fromCharCode","toString","replace","RegExp","_T","rotate","deg","rad","parseFloat","PI","costheta","cos","sintheta","sin","$M","skew","radX","radY","tan","translate","scale","substr","length","fromString","$","attachStyles","body","type","test","styleSheet","cssText","innerText","innerHTML","getElementsByTagName","appendChild","write","getVendorPropertyName","prop","vendorProp","prefixes","div","prop_","charAt","deparam","query","pairs","keyValuePair","key","value","map","slice","decodeURIComponent","undefined","console","log","lh","location","href","hasClasses","classes","hasClass","addClasses","addClass","one","$win","$html","$body","originalWrite","opts","SF_Opts","prepend","SFM_template","execFunc","alt_menu","LM","init","Menu","build","$sidebar","parent","is","viewsL","min","find","maxWidth","sidebar_behaviour","clickTapEvent","itemEventHandler","sidebar_style","bind","events","off","$overlay","css","$fixed","isIE","unshiftFixed","removeClass","isIE9","mouseenter","animTimer","$custom","sub_opening_type","isMobile","sub_type","cursor","opening_type","hideSidebar","mouseleave","hideCustom","$rollback","relatedTarget","showSidebar","togglers","eventCancelTimeout","stopImmediatePropagation","state","setupSize","dragging","closest","submit","position","top","scrollTop","attachSwipesHandler","populateSocialBarWith","social","behaviour","bodyClasses","blur","ajaxComplete","test_mode","opacity","visibility","$cf7form","evObj","_data","wpcf7InitForm","reset","customOpened","transProp","backgroundColor","defTranslationStr","data","setupFont","wh","innerHeight","documentElement","offsetHeight","clientHeight","th","outerHeight","children","$links","num","space","line","item_padding","fontSize","lineHeight","$children","not","el","shiftFixed","scrollLeft","goToLink","$el","$a","$t","hr","blank","attr","hash","smooth","offset","stop","animate","open","fade","fadeOut","$tar","currentEvent","eventFor","_cursor","cancel","$sub","$et","startPos","customWidth","calcWidth","customBg","$currCont","level","match","$sibs","siblings","_ww","ww","_wh","currLevel","first","html","slideUp","filter","slideDown","sums","sidebar_pos","width","ev","height","innerWidth","cache","margin","hh","$head","sh","$socialbar","ch","$cont","ah","classesToAdd","classesToRemove","appVersion","bh","$offsetP","nu","oLeft","oTop","coords","newCSS","_b","transf","translation","left","isFF","hide","right","bottom","show","isNaN","toChangeHor","toChangeVert","htmlMargins","newCss","name","hasOwnProperty","appendTo","startX","startY","startTime","moveX","moveY","getTime","pageX","clientY","swipeDirection","finalY","finalX","now","SFM_is_mobile","mobile","$defmenu","push","width_panel_1","width_panel_2","width_panel_3","width_panel_4","bodyCss","$bodybg","pre","toLowerCase","bbg","backgroundImage","backgroundAttachment","backgroundSize","backgroundPosition","backgroundRepeat","backgroundOrigin","backgroundClip","last","menuOpts","search","addHomeLink","addHomeText","subMenuSupport","subMenuSelector","activeClassSelector","allowedTags","transitionDuration","extra","menuData","unique","$newMenu","clone","removeAttr","processDefMenu","hostname","buildSubMenus","removeSubMenus","wrapInner","append","attachExtraTo","prependTo","siteBase","$menu","tags","$items","id","className","tag","trim","text","join","len","detectLevel","https","protocol","hidemob","img","icon","icon_color","set","LAIconManagerUtil","getSet","getIcon","md5","getIconClass","sline","chapter","before","content","bg","parents","toggleActiveClasses","toggleClass","getState","SFM_EVENT_DISPATCHED"],"mappings":"AAAA,GAAIA,WAAW,GAEd,SAAWC,GACR,GAAIC,IACIC,WAAc,gBACdC,iBAAoB,sBACpBC,cAAiB,gBACjBC,YAAe,kBAEnBC,EAAOC,SAASC,cAAc,MAElC,KAAK,GAAIC,KAAKR,GACV,GAA6B,mBAAlBK,GAAKI,MAAMD,GAAoB,CACtCT,EAAOW,cAAgBV,EAAYQ,EACnC,OAGHT,EAAOW,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yBAiEnDjC,OAAOiB","file":"public.min.js","sourcesContent":["var SF_DEBUG = true;\r\n\r\n;(function (window) {\r\n var transitions = {\r\n 'transition': 'transitionend',\r\n 'WebkitTransition': 'webkitTransitionEnd',\r\n 'MozTransition': 'transitionend',\r\n 'OTransition': 'otransitionend'\r\n },\r\n elem = document.createElement('div');\r\n\r\n for (var t in transitions) {\r\n if (typeof elem.style[t] !== 'undefined') {\r\n window.transitionEnd = transitions[t];\r\n break;\r\n }\r\n }\r\n if (!window.transitionEnd) window.transitionEnd = false;\r\n})(window);\r\n\r\n/*! jquery.finger - v0.1.4 - 2015-12-02\r\n * https://github.com/ngryman/jquery.finger\r\n * Copyright (c) 2015 Nicolas Gryman; Licensed MIT */\r\n!function (a) {\r\n \"function\" == typeof define && define.amd ? define([\"jquery\"], a) : a(\"object\" == typeof exports ? require(\"jquery\") : jQuery)\r\n}(function (a) {\r\n function b(c) {\r\n c.preventDefault(), a.event.remove(v, \"click\", b)\r\n }\r\n\r\n function c(a, b) {\r\n return (q ? b.originalEvent.touches[0] : b)[\"page\" + a.toUpperCase()]\r\n }\r\n\r\n function d(c, d, e) {\r\n var h = a.Event(d, x);\r\n a.event.trigger(h, {originalEvent: c}, c.target), h.isDefaultPrevented() && (~d.indexOf(\"tap\") && !q ? a.event.add(v, \"click\", b) : c.preventDefault()), e && (a.event.remove(v, t + \".\" + u, f), a.event.remove(v, s + \".\" + u, g))\r\n }\r\n\r\n function e(e) {\r\n var l = e.timeStamp || +new Date;\r\n j != l && (j = l, w.x = x.x = c(\"x\", e), w.y = x.y = c(\"y\", e), w.time = l, w.target = e.target, x.orientation = null, x.end = !1, h = !1, i = !1, k = setTimeout(function () {\r\n i = !0, d(e, \"press\")\r\n }, y.pressDuration), a.event.add(v, t + \".\" + u, f), a.event.add(v, s + \".\" + u, g), y.preventDefault && (e.preventDefault(), a.event.add(v, \"click\", b)))\r\n }\r\n\r\n function f(b) {\r\n if (x.x = c(\"x\", b), x.y = c(\"y\", b), x.dx = x.x - w.x, x.dy = x.y - w.y, x.adx = Math.abs(x.dx), x.ady = Math.abs(x.dy), h = x.adx > y.motionThreshold || x.ady > y.motionThreshold) {\r\n for (clearTimeout(k), x.orientation || (x.adx > x.ady ? (x.orientation = \"horizontal\", x.direction = x.dx > 0 ? 1 : -1) : (x.orientation = \"vertical\", x.direction = x.dy > 0 ? 1 : -1)); b.target && b.target !== w.target;)b.target = b.target.parentNode;\r\n return b.target !== w.target ? (b.target = w.target, void g.call(this, a.Event(s + \".\" + u, b))) : void d(b, \"drag\")\r\n }\r\n }\r\n\r\n function g(a) {\r\n var b, c = a.timeStamp || +new Date, e = c - w.time;\r\n if (clearTimeout(k), h || i || a.target !== w.target)a.target = w.target, e < y.flickDuration && d(a, \"flick\"), x.end = !0, b = \"drag\"; else {\r\n var f = l === a.target && c - m < y.doubleTapInterval;\r\n b = f ? \"doubletap\" : \"tap\", l = f ? null : w.target, m = c\r\n }\r\n d(a, b, !0)\r\n }\r\n\r\n var h, i, j, k, l, m, n = navigator.userAgent, o = /chrome/i.exec(n), p = /android/i.exec(n), q = \"ontouchstart\" in window && !(o && !p), r = q ? \"touchstart\" : \"mousedown\", s = q ? \"touchend touchcancel\" : \"mouseup mouseleave\", t = q ? \"touchmove\" : \"mousemove\", u = \"finger\", v = a(\"html\")[0], w = {}, x = {}, y = a.Finger = {\r\n pressDuration: 300,\r\n doubleTapInterval: 300,\r\n flickDuration: 150,\r\n motionThreshold: 5\r\n };\r\n return a.event.add(v, r + \".\" + u, e), a.each(\"tap doubletap press drag flick\".split(\" \"), function (b, c) {\r\n a.fn[c] = function (a) {\r\n return a ? this.on(c, a) : this.trigger(c)\r\n }\r\n }), y\r\n});\r\n\r\neval(function (p, a, c, k, e, r) {\r\n e = function (c) {\r\n return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))\r\n };\r\n if (!''.replace(/^/, String)) {\r\n while (c--) r[e(c)] = k[c] || e(c);\r\n k = [\r\n function (e) {\r\n return r[e]\r\n }\r\n ];\r\n e = function () {\r\n return '\\\\w+'\r\n };\r\n c = 1\r\n }\r\n ;\r\n while (c--)\r\n if (k[c]) p = p.replace(new RegExp('\\\\b' + e(c) + '\\\\b', 'g'), k[c]);\r\n return p\r\n}('9 17={3i:\\'0.1.3\\',16:1e-6};l v(){}v.23={e:l(i){8(i<1||i>7.4.q)?w:7.4[i-1]},2R:l(){8 7.4.q},1u:l(){8 F.1x(7.2u(7))},24:l(a){9 n=7.4.q;9 V=a.4||a;o(n!=V.q){8 1L}J{o(F.13(7.4[n-1]-V[n-1])>17.16){8 1L}}H(--n);8 2x},1q:l(){8 v.u(7.4)},1b:l(a){9 b=[];7.28(l(x,i){b.19(a(x,i))});8 v.u(b)},28:l(a){9 n=7.4.q,k=n,i;J{i=k-n;a(7.4[i],i+1)}H(--n)},2q:l(){9 r=7.1u();o(r===0){8 7.1q()}8 7.1b(l(x){8 x/r})},1C:l(a){9 V=a.4||a;9 n=7.4.q,k=n,i;o(n!=V.q){8 w}9 b=0,1D=0,1F=0;7.28(l(x,i){b+=x*V[i-1];1D+=x*x;1F+=V[i-1]*V[i-1]});1D=F.1x(1D);1F=F.1x(1F);o(1D*1F===0){8 w}9 c=b/(1D*1F);o(c<-1){c=-1}o(c>1){c=1}8 F.37(c)},1m:l(a){9 b=7.1C(a);8(b===w)?w:(b<=17.16)},34:l(a){9 b=7.1C(a);8(b===w)?w:(F.13(b-F.1A)<=17.16)},2k:l(a){9 b=7.2u(a);8(b===w)?w:(F.13(b)<=17.16)},2j:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x+V[i-1]})},2C:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x-V[i-1]})},22:l(k){8 7.1b(l(x){8 x*k})},x:l(k){8 7.22(k)},2u:l(a){9 V=a.4||a;9 i,2g=0,n=7.4.q;o(n!=V.q){8 w}J{2g+=7.4[n-1]*V[n-1]}H(--n);8 2g},2f:l(a){9 B=a.4||a;o(7.4.q!=3||B.q!=3){8 w}9 A=7.4;8 v.u([(A[1]*B[2])-(A[2]*B[1]),(A[2]*B[0])-(A[0]*B[2]),(A[0]*B[1])-(A[1]*B[0])])},2A:l(){9 m=0,n=7.4.q,k=n,i;J{i=k-n;o(F.13(7.4[i])>F.13(m)){m=7.4[i]}}H(--n);8 m},2Z:l(x){9 a=w,n=7.4.q,k=n,i;J{i=k-n;o(a===w&&7.4[i]==x){a=i+1}}H(--n);8 a},3g:l(){8 S.2X(7.4)},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(y){8(F.13(y-x)<=17.16)?x:y})},1o:l(a){o(a.K){8 a.1o(7)}9 V=a.4||a;o(V.q!=7.4.q){8 w}9 b=0,2b;7.28(l(x,i){2b=x-V[i-1];b+=2b*2b});8 F.1x(b)},3a:l(a){8 a.1h(7)},2T:l(a){8 a.1h(7)},1V:l(t,a){9 V,R,x,y,z;2S(7.4.q){27 2:V=a.4||a;o(V.q!=2){8 w}R=S.1R(t).4;x=7.4[0]-V[0];y=7.4[1]-V[1];8 v.u([V[0]+R[0][0]*x+R[0][1]*y,V[1]+R[1][0]*x+R[1][1]*y]);1I;27 3:o(!a.U){8 w}9 C=a.1r(7).4;R=S.1R(t,a.U).4;x=7.4[0]-C[0];y=7.4[1]-C[1];z=7.4[2]-C[2];8 v.u([C[0]+R[0][0]*x+R[0][1]*y+R[0][2]*z,C[1]+R[1][0]*x+R[1][1]*y+R[1][2]*z,C[2]+R[2][0]*x+R[2][1]*y+R[2][2]*z]);1I;2P:8 w}},1t:l(a){o(a.K){9 P=7.4.2O();9 C=a.1r(P).4;8 v.u([C[0]+(C[0]-P[0]),C[1]+(C[1]-P[1]),C[2]+(C[2]-(P[2]||0))])}1d{9 Q=a.4||a;o(7.4.q!=Q.q){8 w}8 7.1b(l(x,i){8 Q[i-1]+(Q[i-1]-x)})}},1N:l(){9 V=7.1q();2S(V.4.q){27 3:1I;27 2:V.4.19(0);1I;2P:8 w}8 V},2n:l(){8\\'[\\'+7.4.2K(\\', \\')+\\']\\'},26:l(a){7.4=(a.4||a).2O();8 7}};v.u=l(a){9 V=25 v();8 V.26(a)};v.i=v.u([1,0,0]);v.j=v.u([0,1,0]);v.k=v.u([0,0,1]);v.2J=l(n){9 a=[];J{a.19(F.2F())}H(--n);8 v.u(a)};v.1j=l(n){9 a=[];J{a.19(0)}H(--n);8 v.u(a)};l S(){}S.23={e:l(i,j){o(i<1||i>7.4.q||j<1||j>7.4[0].q){8 w}8 7.4[i-1][j-1]},33:l(i){o(i>7.4.q){8 w}8 v.u(7.4[i-1])},2E:l(j){o(j>7.4[0].q){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][j-1])}H(--n);8 v.u(a)},2R:l(){8{2D:7.4.q,1p:7.4[0].q}},2D:l(){8 7.4.q},1p:l(){8 7.4[0].q},24:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}o(7.4.q!=M.q||7.4[0].q!=M[0].q){8 1L}9 b=7.4.q,15=b,i,G,10=7.4[0].q,j;J{i=15-b;G=10;J{j=10-G;o(F.13(7.4[i][j]-M[i][j])>17.16){8 1L}}H(--G)}H(--b);8 2x},1q:l(){8 S.u(7.4)},1b:l(a){9 b=[],12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;b[i]=[];J{j=10-G;b[i][j]=a(7.4[i][j],i+1,j+1)}H(--G)}H(--12);8 S.u(b)},2i:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}8(7.4.q==M.q&&7.4[0].q==M[0].q)},2j:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x+M[i-1][j-1]})},2C:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x-M[i-1][j-1]})},2B:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}8(7.4[0].q==M.q)},22:l(a){o(!a.4){8 7.1b(l(x){8 x*a})}9 b=a.1u?2x:1L;9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}o(!7.2B(M)){8 w}9 d=7.4.q,15=d,i,G,10=M[0].q,j;9 e=7.4[0].q,4=[],21,20,c;J{i=15-d;4[i]=[];G=10;J{j=10-G;21=0;20=e;J{c=e-20;21+=7.4[i][c]*M[c][j]}H(--20);4[i][j]=21}H(--G)}H(--d);9 M=S.u(4);8 b?M.2E(1):M},x:l(a){8 7.22(a)},32:l(a,b,c,d){9 e=[],12=c,i,G,j;9 f=7.4.q,1p=7.4[0].q;J{i=c-12;e[i]=[];G=d;J{j=d-G;e[i][j]=7.4[(a+i-1)%f][(b+j-1)%1p]}H(--G)}H(--12);8 S.u(e)},31:l(){9 a=7.4.q,1p=7.4[0].q;9 b=[],12=1p,i,G,j;J{i=1p-12;b[i]=[];G=a;J{j=a-G;b[i][j]=7.4[j][i]}H(--G)}H(--12);8 S.u(b)},1y:l(){8(7.4.q==7.4[0].q)},2A:l(){9 m=0,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(F.13(7.4[i][j])>F.13(m)){m=7.4[i][j]}}H(--G)}H(--12);8 m},2Z:l(x){9 a=w,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(7.4[i][j]==x){8{i:i+1,j:j+1}}}H(--G)}H(--12);8 w},30:l(){o(!7.1y){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][i])}H(--n);8 v.u(a)},1K:l(){9 M=7.1q(),1c;9 n=7.4.q,k=n,i,1s,1n=7.4[0].q,p;J{i=k-n;o(M.4[i][i]==0){2e(j=i+1;j17.16){1Y++;1I}}H(--G)}H(--a);8 1Y},3d:l(){8 7.1Y()},2W:l(a){9 M=a.4||a;o(1g(M[0][0])==\\'1f\\'){M=S.u(M).4}9 T=7.1q(),1p=T.4[0].q;9 b=T.4.q,15=b,i,G,10=M[0].q,j;o(b!=M.q){8 w}J{i=15-b;G=10;J{j=10-G;T.4[i][1p+j]=M[i][j]}H(--G)}H(--b);8 T},2w:l(){o(!7.1y()||7.2y()){8 w}9 a=7.4.q,15=a,i,j;9 M=7.2W(S.I(a)).1K();9 b,1n=M.4[0].q,p,1c,2v;9 c=[],2c;J{i=a-1;1c=[];b=1n;c[i]=[];2v=M.4[i][i];J{p=1n-b;2c=M.4[i][p]/2v;1c.19(2c);o(p>=15){c[i].19(2c)}}H(--b);M.4[i]=1c;2e(j=0;j3||b.4.q>3){8 w}9 c=b.1u();o(c===0){8 w}7.K=a;7.U=v.u([b.4[0]/c,b.4[1]/c,b.4[2]/c]);8 7}};14.u=l(a,b){9 L=25 14();8 L.1Z(a,b)};14.X=14.u(v.1j(3),v.i);14.Y=14.u(v.1j(3),v.j);14.Z=14.u(v.1j(3),v.k);l 11(){}11.23={24:l(a){8(7.1h(a.K)&&7.1m(a))},1q:l(){8 11.u(7.K,7.W)},2U:l(a){9 V=a.4||a;8 11.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.W)},1m:l(a){9 b;o(a.W){b=7.W.1C(a.W);8(F.13(b)<=17.16||F.13(F.1A-b)<=17.16)}1d o(a.U){8 7.W.2k(a.U)}8 w},2k:l(a){9 b=7.W.1C(a.W);8(F.13(F.1A/2-b)<=17.16)},1o:l(a){o(7.1v(a)||7.1h(a)){8 0}o(a.K){9 A=7.K.4,B=a.K.4,N=7.W.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;8 F.13((A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2])}},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x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*N[0]+R[0][1]*N[1]+R[0][2]*N[2],R[1][0]*N[0]+R[1][1]*N[1]+R[1][2]*N[2],R[2][0]*N[0]+R[2][1]*N[1]+R[2][2]*N[2]])},1t:l(a){o(a.W){9 A=7.K.4,N=7.W.4;9 b=A[0],18=A[1],1a=A[2],2M=N[0],2L=N[1],2Q=N[2];9 c=7.K.1t(a).4;9 d=b+2M,2p=18+2L,2m=1a+2Q;9 Q=a.1r([d,2p,2m]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2p)-c[1],Q[2]+(Q[2]-2m)-c[2]];8 11.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 11.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.W)}},1Z:l(a,b,c){a=v.u(a);a=a.1N();o(a===w){8 w}b=v.u(b);b=b.1N();o(b===w){8 w}o(1g(c)==\\'1f\\'){c=w}1d{c=v.u(c);c=c.1N();o(c===w){8 w}}9 d=a.4[0],18=a.4[1],1a=a.4[2];9 e=b.4[0],1W=b.4[1],1X=b.4[2];9 f,1i;o(c!==w){9 g=c.4[0],2l=c.4[1],2t=c.4[2];f=v.u([(1W-18)*(2t-1a)-(1X-1a)*(2l-18),(1X-1a)*(g-d)-(e-d)*(2t-1a),(e-d)*(2l-18)-(1W-18)*(g-d)]);1i=f.1u();o(1i===0){8 w}f=v.u([f.4[0]/1i,f.4[1]/1i,f.4[2]/1i])}1d{1i=F.1x(e*e+1W*1W+1X*1X);o(1i===0){8 w}f=v.u([b.4[0]/1i,b.4[1]/1i,b.4[2]/1i])}7.K=a;7.W=f;8 7}};11.u=l(a,b,c){9 P=25 11();8 P.1Z(a,b,c)};11.2I=11.u(v.1j(3),v.k);11.2H=11.u(v.1j(3),v.i);11.2G=11.u(v.1j(3),v.j);11.36=11.2I;11.35=11.2H;11.3j=11.2G;9 $V=v.u;9 $M=S.u;9 $L=14.u;9 $P=11.u;', 62, 206, '||||elements|||this|return|var||||||||||||function|||if||length||||create|Vector|null|||||||||Math|nj|while||do|anchor||||||||Matrix||direction||normal||||kj|Plane|ni|abs|Line|ki|precision|Sylvester|A2|push|A3|map|els|else||undefined|typeof|contains|mod|Zero|D3|D2|isParallelTo|kp|distanceFrom|cols|dup|pointClosestTo|np|reflectionIn|modulus|intersects|A1|sqrt|isSquare|X2|PI|X3|angleFrom|mod1|C2|mod2|sin|cos|break|C3|toRightTriangular|false|Y3|to3D|E2|E1|E3|Rotation|Y2|Y1|intersectionWith|rotate|v12|v13|rank|setVectors|nc|sum|multiply|prototype|eql|new|setElements|case|each|PA3|PA2|part|new_element|round|for|cross|product|AD2|isSameSizeAs|add|isPerpendicularTo|v22|AN3|inspect|AD3|AN2|toUnitVector|PsubQ3|PsubQ2|v23|dot|divisor|inverse|true|isSingular|determinant|max|canMultiplyFromLeft|subtract|rows|col|random|ZX|YZ|XY|Random|join|N2|N1|D1|slice|default|N3|dimensions|switch|liesIn|translate|snapTo|augment|Diagonal|trace|indexOf|diagonal|transpose|minor|row|isAntiparallelTo|ZY|YX|acos|RotationZ|RotationY|liesOn|RotationX|inv|rk|tr|det|toDiagonalMatrix|toUpperTriangular|version|XZ'.split('|'), 0, {}));\r\n\r\nvar _T = {\r\n rotate: function (deg) {\r\n var rad = parseFloat(deg) * (Math.PI / 180),\r\n costheta = Math.cos(rad),\r\n sintheta = Math.sin(rad);\r\n\r\n var a = costheta,\r\n b = sintheta,\r\n c = -sintheta,\r\n d = costheta;\r\n\r\n return $M([\r\n [a, c, 0],\r\n [b, d, 0],\r\n [0, 0, 1]\r\n ]);\r\n },\r\n\r\n skew: function (dx, dy) {\r\n var radX = parseFloat(dx) * (Math.PI / 180),\r\n radY = parseFloat(dy) * (Math.PI / 180),\r\n c = Math.tan(radX),\r\n b = Math.tan(radY);\r\n\r\n\r\n return $M([\r\n [1, c, 0],\r\n [b, 1, 0],\r\n [0, 0, 1]\r\n ]);\r\n },\r\n\r\n translate: function (x, y) {\r\n var e = x || 0,\r\n f = y || 0;\r\n\r\n return $M([\r\n [1, 0, e],\r\n [0, 1, f],\r\n [0, 0, 1]\r\n ]);\r\n },\r\n\r\n scale: function (x, y) {\r\n var a = x || 0,\r\n d = y || 0;\r\n\r\n return $M([\r\n [a, 0, 0],\r\n [0, d, 0],\r\n [0, 0, 1]\r\n ]);\r\n },\r\n\r\n toString: function (m) {\r\n var s = 'matrix(',\r\n r, c;\r\n\r\n for (c = 1; c <= 3; c++) {\r\n for (r = 1; r <= 2; r++)\r\n s += m.e(r, c) + ', ';\r\n }\r\n\r\n s = s.substr(0, s.length - 2) + ')';\r\n\r\n return s;\r\n },\r\n\r\n fromString: function (s) {\r\n var t = /^matrix\\((\\S*), (\\S*), (\\S*), (\\S*), (\\S*), (\\S*)\\)$/g.exec(s),\r\n a = parseFloat(!t ? 1 : t[1]),\r\n b = parseFloat(!t ? 0 : t[2]),\r\n c = parseFloat(!t ? 0 : t[3]),\r\n d = parseFloat(!t ? 1 : t[4]),\r\n e = parseFloat(!t ? 0 : t[5]),\r\n f = parseFloat(!t ? 0 : t[6]);\r\n\r\n return $M([\r\n [a, c, e],\r\n [b, d, f],\r\n [0, 0, 1]\r\n ]);\r\n }\r\n};\r\n\r\n\r\n(function ($) {\r\n\r\n var console = window.console && window.SF_DEBUG ? window.console : {\r\n log: function () {\r\n }\r\n }\r\n var lh = location.href.replace(/\\#.?/, '');\r\n\r\n var set = function (obj, prop, val) {\r\n Object.defineProperty(obj, prop, {\r\n value: val\r\n })\r\n return val;\r\n };\r\n\r\n $.fn.hasClasses = function (e) {\r\n var classes = e.replace(/\\s/g, \"\").split(\",\"),\r\n t = this;\r\n for (var i in classes) {\r\n if ($(t).hasClass(classes[i])) return true;\r\n }\r\n return false\r\n }\r\n\r\n $.fn.addClasses = function (e) {\r\n var classes = e.replace(/\\s/g, \"\").split(\",\"),\r\n t = this;\r\n for (var i in classes) $(t).addClass(classes[i]);\r\n return this;\r\n };\r\n\r\n\r\n jQuery(document).one('sfm_doc_body_arrived', function () {\r\n\r\n var $win = $(window);\r\n var $html = $('html');\r\n var $body = $('body');\r\n var originalWrite = document.write;\r\n\t\tvar opts = window.SF_Opts;\r\n\r\n document.write = function () {\r\n console.log('Superfly plugin debug: using document.write is bad practice and not supported')\r\n };\r\n $body.prepend(window.SFM_template);\r\n document.write = originalWrite;\r\n\r\n\t\tvar execFunc = opts.alt_menu ? $ : setTimeout;\r\n\t\texecFunc(function () {\r\n var LM = window.LM || (function () {\r\n var isMobile = window.SFM_is_mobile;\r\n\t\t\t\t\tvar clickTapEvent = isMobile ? ( $.mobile ? 'vclick' : 'tap') : 'click'; // todo check android\r\n\r\n var eventCancelTimeout;\r\n\r\n var $rollback = $('.sfm-rollback');\r\n var $sidebar = $('#sfm-sidebar');\r\n var $overlay = $('#sfm-overlay-wrapper');\r\n var $socialbar = $('.sfm-social', $sidebar);\r\n var $defmenu = opts.alt_menu ? $(opts.alt_menu) : $('#sfm-nav');\r\n var $custom = $('.sfm-view-level-custom'), customOpened = false;\r\n var $cont;\r\n var $head = $('.sfm-logo');\r\n var sums = [];\r\n sums.push(parseInt(opts.width_panel_1));\r\n sums.push(sums[0] + parseInt(opts.width_panel_2));\r\n sums.push(sums[1] + parseInt(opts.width_panel_3));\r\n sums.push(sums[2] + parseInt(opts.width_panel_4));\r\n\r\n if (opts.alt_menu && $defmenu.length) {\r\n $('#sfm-nav').remove()\r\n } else {\r\n $defmenu = $('#sfm-nav')\r\n }\r\n\r\n //\r\n if (SF_DEBUG) {\r\n //$defmenu.find('a').attr('target', '_blank')\r\n }\r\n\r\n var direction = opts.sidebar_pos;\r\n var opposite = direction === 'left' ? 'right' : 'left';\r\n var pre = 'sfm';\r\n\r\n var isIE = /msie|trident.*rv\\:11\\./.test(navigator.userAgent.toLowerCase());\r\n var isFF = /firefox/.test(navigator.userAgent.toLowerCase());\r\n var transProp = getVendorPropertyName('transform');\r\n var translation = _T.translate((direction === 'left' ? opts.width_panel_1 : -opts.width_panel_1), 0);\r\n var defTranslationStr = _T.toString(_T.translate(0, 0));\r\n var htmlMargins = {\r\n top: parseInt($html.css('marginTop')),\r\n bottom: parseInt($html.css('marginBottom'))\r\n }\r\n\r\n var currentEvent = 'mouseenter';\r\n\r\n var bbg = $body.css('backgroundImage');\r\n var bodyCss;\r\n var $bodybg;\r\n var $children;\r\n\r\n if (opts.sidebar_behaviour === 'push') {\r\n\r\n if (bbg !== 'none') {\r\n\r\n $body.prepend('
');\r\n $bodybg = $('#sfm-body-bg');\r\n\r\n bodyCss = {\r\n 'backgroundColor': $body.css('backgroundColor'),\r\n 'backgroundImage': $body.css('backgroundImage'),\r\n 'backgroundAttachment': $body.css('backgroundAttachment'),\r\n 'backgroundSize': $body.css('backgroundSize'),\r\n 'backgroundPosition': $body.css('backgroundPosition'),\r\n 'backgroundRepeat': $body.css('backgroundRepeat'),\r\n 'backgroundOrigin': $body.css('backgroundOrigin'),\r\n 'backgroundClip': $body.css('backgroundClip')\r\n };\r\n\r\n if (bodyCss.backgroundColor.indexOf('(0, 0, 0, 0') + 1 || bodyCss.backgroundColor.indexOf('transparent') + 1) {\r\n bodyCss.backgroundColor = '#fff';\r\n }\r\n\r\n $children = $body.children().not('#sfm-body-bg, #sfm-fixed-container, script, style');\r\n\r\n if (parseInt($children.first().css('marginTop')) || parseInt($children.last().css('marginBottom'))) {\r\n $body.addClass('sfm-body-float');\r\n }\r\n\r\n if (bodyCss.backgroundAttachment === 'fixed') {\r\n bodyCss.position = 'fixed';\r\n bodyCss.backgroundAttachment = 'scroll';\r\n }\r\n\r\n $bodybg.css(bodyCss);\r\n attachStyles('body > * {position: relative} body {overflow-x:hidden!important}');\r\n }\r\n }\r\n\r\n var menuOpts = {\r\n search: opts.search,\r\n addHomeLink: opts.addHomeLink === 'yes',\r\n addHomeText: opts.addHomeText || 'Home',\r\n subMenuSupport: opts.subMenuSupport === 'yes' /*&& opts.sidebar_style !== 'full'*/,\r\n subMenuSelector: opts.subMenuSelector,\r\n activeClassSelector: opts.activeClassSelector || '',\r\n allowedTags: 'DIV, NAV, UL, OL, LI, A, P, H1, H2, H3, H4, SPAN, STRONG',\r\n transitionDuration: 300,\r\n extra: opts.menuData\r\n }\r\n //console.log(menuOpts)\r\n\r\n var Menu = {\r\n unique: 1,\r\n build: function () {\r\n\r\n var $newMenu;\r\n\r\n $newMenu = $defmenu.clone().removeAttr(\"id class\");\r\n $newMenu = this.processDefMenu($newMenu);\r\n $defmenu.remove();\r\n\r\n if (menuOpts.addHomeLink) {\r\n $newMenu.prepend('
  • ' + menuOpts.addHomeText + \"
  • \");\r\n }\r\n\r\n if ($newMenu.prop(\"tagName\") === 'UL') {\r\n $newMenu.addClass(pre + \"-menu-level-0\");\r\n } else {\r\n $newMenu.find(\"ul\").first().addClass(pre + \"-menu-level-0\").siblings(\"ul\").addClass(pre + \"-menu-level-0\");\r\n }\r\n\r\n menuOpts.subMenuSelector && menuOpts.subMenuSupport ? this.buildSubMenus($newMenu) : this.removeSubMenus($newMenu);\r\n\r\n $newMenu.find('a').each(function () {\r\n var $t = $(this);\r\n if (!$t.children('span').length) $(this).wrapInner($(''));\r\n if (!menuOpts.subMenuSupport) return;\r\n\r\n if ($t.parent().is('.sfm-has-child-menu')) {\r\n $t.append('')\r\n }\r\n });\r\n\r\n if (menuOpts.extra) this.attachExtraTo($newMenu.find(\"[class*=menu-item]\"))\r\n\r\n $newMenu.prependTo('.sfm-nav .sfm-va-middle').show();\r\n\r\n if (menuOpts.search === 'show') {\r\n $('.sfm-va-middle').prepend('
    ');\r\n }\r\n $cont = $(\".\" + pre + \"-nav\");\r\n\r\n $newMenu.removeClass(pre + \"-has-child-menu\").addClass('sfm-menu');\r\n },\r\n\r\n processDefMenu: function ($menu) {\r\n\r\n var activeClassSelector = menuOpts.activeClassSelector ? menuOpts.activeClassSelector : \"\";\r\n var classes = menuOpts.subMenuSelector ? menuOpts.subMenuSelector : \"\";\r\n var tags = menuOpts.allowedTags.replace(/\\s/g, \"\").split(\",\");\r\n var $items = $menu.find(\"[class*=menu-item]\");\r\n\r\n $menu.find('.skip-link, .menu-toggle, a[title*=\"Skip to content\"]').remove();\r\n\r\n $items.each(function () {\r\n var id = this.id ? this.id.replace('menu-item-', '') : (this.className.match(/menu-item-(\\d+):?\\b/) ? this.className.match(/menu-item-(\\d+):?\\b/)[1] : '');\r\n $(this).data('sfm-id', id);\r\n })\r\n\r\n $menu.find(\"*\").each(function () {\r\n var $t = $(this);\r\n var tag = $t.prop('tagName');\r\n var cls = $t.prop('className');\r\n\r\n if (tags.indexOf(tag) === -1 || $.trim($t.text()) === \"\" || $t.is('.uber-close')) {\r\n return $t.remove();\r\n }\r\n\r\n if ($t.hasClasses(classes)) {\r\n $t.removeAttr(\"class id\").addClass(classes.split(\",\").join(' '));\r\n\r\n } else {\r\n if ($t.hasClasses(activeClassSelector)) {\r\n $t.removeAttr(\"class id\").addClass(pre + \"-active-class\");\r\n } else {\r\n $t.removeAttr(\"class id\");\r\n }\r\n }\r\n\r\n $t.removeAttr(\"style\");\r\n\r\n if (tag === 'LI') {\r\n $t.addClass('sfm-menu-item-' + $t.data('sfm-id'));\r\n }\r\n\r\n });\r\n return $menu;\r\n },\r\n\r\n buildSubMenus: function ($menu) {\r\n var children = menuOpts.subMenuSelector.replace(/\\s/g, \"\").split(\",\");\r\n\r\n for (var i = 0, len = children.length; i < len; i++) {\r\n $menu.find(\".\" + children[i]).each(function () {\r\n var $t = $(this);\r\n $t.removeAttr(\"id class\")\r\n .addClass(pre + \"-child-menu \")\r\n .parent()\r\n .addClass(pre + \"-has-child-menu\")\r\n });\r\n }\r\n\r\n this.detectLevel($menu)\r\n },\r\n\r\n attachExtraTo: function ($items) {\r\n var data;\r\n var https = location.protocol === 'https:';\r\n\r\n $items.each(function () {\r\n var $t = $(this);\r\n var id = $t.data('sfm-id');\r\n var data;\r\n if (menuOpts.extra[id]) {\r\n data = deparam(menuOpts.extra[id]);\r\n if (data.hidemob && isMobile) {\r\n $t.remove();\r\n return;\r\n }\r\n if (data.img) {\r\n if (direction == 'right' && opts.sidebar_style == 'skew') {\r\n $t.find('> a').append('')\r\n } else {\r\n $t.find('> a').prepend('')\r\n }\r\n } else if (data.icon) {\r\n var style = data.icon_color ? 'color: ' + data.icon_color + ';' : '';\r\n var icon = data.icon\r\n var set = LAIconManagerUtil.getSet(icon) ? LAIconManagerUtil.getSet(icon) : 'Font Awesome';\r\n if (set === '####') {\r\n icon = LAIconManagerUtil.getIcon(icon)\r\n if (direction == 'right' && opts.sidebar_style == 'skew') {\r\n $t.find('> a').append('');\r\n } else {\r\n $t.find('> a').prepend('');\r\n }\r\n } else {\r\n icon = icon.indexOf('fa-') !== -1 ? 'la' + md5('Font Awesome') + '-' + icon.substr(3) : LAIconManagerUtil.getIconClass(icon);\r\n if (direction == 'right' && opts.sidebar_style == 'skew') {\r\n $t.find('> a').append('');\r\n } else {\r\n $t.find('> a').prepend('');\r\n }\r\n }\r\n }\r\n ;\r\n if (data.sline) {\r\n $t.find('> a span').append('
    ' + data.sline.replace(/\\+/g, ' ') + '');\r\n }\r\n ;\r\n if (data.chapter) {\r\n $t.before('
  • ' + data.chapter.replace(/\\+/g, ' ') + '
  • ')\r\n }\r\n ;\r\n if (data.content) {\r\n if (!$t.find(\".sfm-sm-indicator\").length && menuOpts.subMenuSupport) {\r\n $t.addClass(pre + '-has-child-menu');\r\n $t.find(' > a').append('');\r\n }\r\n }\r\n $t.data('sfm-extra', data)\r\n if (data.width) $t.attr('data-extra-width', data.width);\r\n if (data.bg) $t.attr('data-bg', data.bg);\r\n $t.attr('data-sfm-id', id);\r\n } else {\r\n return\r\n }\r\n\r\n })\r\n\r\n },\r\n\r\n detectLevel: function ($menu) {\r\n $menu.find(\".\" + pre + \"-child-menu\").each(function () {\r\n var $t = $(this);\r\n var t = $t.parents(\".\" + pre + \"-child-menu\").length + 1;\r\n $t.addClass(pre + \"-menu-level-\" + t);\r\n\r\n if (!$sidebar.find('.' + pre + '-view-level-' + t).length) $sidebar.append($('
    '))\r\n })\r\n },\r\n\r\n removeSubMenus: function ($menu) {\r\n if (!menuOpts.subMenuSupport) {\r\n\r\n return $menu.children().each(function () {\r\n $(this).find(\"ul\").remove();\r\n });\r\n } else {\r\n var o = menuOpts.subMenuSelector.replace(/\\s/g, \"\").split(\",\");\r\n for (var l in o) $menu.find(\".\" + o[l]).each(function () {\r\n $(this).remove()\r\n })\r\n }\r\n },\r\n\r\n toggleActiveClasses: function ($menu) {\r\n $menu.find(\".\" + pre + \"-has-child-menu\").each(function () {\r\n var $t = $(this);\r\n if ($t.find(\"*\").children(\".\" + pre + \"-active-class\").length > 0) {\r\n $t.toggleClass(pre + \"-child-menu-open\");\r\n setTimeout(function () {\r\n $t.addClass(pre + \"-child-menu-open\");\r\n $t.find(\".\" + pre + \"-child-menu\").first().show()\r\n }, menuOpts.transitionDuration);\r\n }\r\n })\r\n }\r\n };\r\n\r\n var currLevel = 0;\r\n var cursor;\r\n var animTimer;\r\n var state = 'hidden';\r\n var events = 'off';\r\n var ww;\r\n var wh;\r\n var maxWidth = 0;\r\n var dragging = false;\r\n var cancel = false;\r\n var isIE9 = /MSIE 9/.test(navigator.userAgent);\r\n\r\n function init() {\r\n\r\n Menu.build();\r\n\r\n if (!$sidebar.parent().is('body')) $body.prepend($('#sfm-body-bg, .sfm-rollback, #sfm-sidebar, #sfm-mob-navbar, #sfm-overlay-wrapper'))\r\n\r\n var viewsL = Math.min(1 + $sidebar.find('.sfm-view').length, 4);\r\n for (var i = 1; i <= viewsL; i++) {\r\n maxWidth += parseInt(opts['width_panel_' + i]);\r\n }\r\n\r\n if (opts.sidebar_behaviour === 'always') {\r\n $sidebar.on('mouseenter ' + clickTapEvent, '.sfm-menu li:not(.sfm-chapter)', itemEventHandler);\r\n }\r\n else if (opts.sidebar_style === 'full') {\r\n $sidebar.on(clickTapEvent, '.sfm-menu li:not(.sfm-chapter)', itemEventHandler);\r\n }\r\n else {\r\n $sidebar.bind(window.transitionEnd, function (e) {\r\n\r\n if (!$(e.target).is($sidebar)) return;\r\n\r\n if ($sidebar.is('.sfm-sidebar-exposed') && events === 'off') {\r\n\r\n $sidebar.on('mouseenter ' + clickTapEvent, '.sfm-menu li:not(.sfm-chapter)', itemEventHandler);\r\n\r\n events = 'on';\r\n //todo check cursor\r\n\r\n } else if (!$sidebar.is('.sfm-sidebar-exposed')) {\r\n\r\n $sidebar.off('mouseenter ' + clickTapEvent, '.sfm-menu-level-0 > li, .sfm-view ul > li');\r\n events = 'off';\r\n $overlay.css('visibility', 'hidden');\r\n\r\n if (opts.sidebar_behaviour === 'push') {\r\n\r\n //setTimeout(function(){\r\n var $fixed = $('.sfm-inner-fixed')\r\n if (!isIE) $fixed.each(unshiftFixed);\r\n $fixed.removeClass('sfm-inner-fixed');\r\n //}, 0)\r\n }\r\n }\r\n });\r\n }\r\n\r\n if (isIE9) {\r\n $sidebar.on('mouseenter', '.sfm-menu-level-0 > li:not(.sfm-chapter), .sfm-view ul > li:not(.sfm-chapter)', itemEventHandler);\r\n }\r\n\r\n $('.sfm-view').mouseenter(function () {\r\n clearTimeout(animTimer);\r\n });\r\n\r\n $custom.on((opts.sub_opening_type === 'hover' && !isMobile && opts.sub_type !== 'yes') ? 'mouseenter' : clickTapEvent, function () {\r\n cursor = this;\r\n });\r\n\r\n if (opts.opening_type === 'hover' && !isMobile) {\r\n\r\n if (opts.sidebar_behaviour !== 'always') {\r\n $rollback.mouseenter(function (e) {\r\n if (!$(e.relatedTarget).is('.sfm-sidebar-close')) showSidebar()\r\n });\r\n }\r\n\r\n $sidebar.mouseleave(function (e) {\r\n setTimeout(function () {\r\n hideSidebar()\r\n }, 250)\r\n });\r\n\r\n } else if (opts.opening_type === 'click' || isMobile || opts.sub_type === 'yes') {\r\n\r\n $('#sfm-overlay').on(clickTapEvent, hideSidebar);\r\n\r\n if (opts.sub_opening_type === 'hover') {\r\n $sidebar.mouseleave(function (e) {\r\n setTimeout(function () {\r\n $body.removeClass('sfm-view-pushed-custom sfm-view-pushed-1 sfm-view-visible-1 sfm-view-pushed-2 sfm-view-visible-2 sfm-view-pushed-3 sfm-view-visible-3');\r\n hideCustom(true);\r\n $sidebar.find('.sfm-active-item').removeClass('sfm-active-item');\r\n if (opts.sidebar_behaviour === 'always') {\r\n setTimeout(function () {\r\n $overlay.css('visibility', 'hidden')\r\n }, 400);\r\n }\r\n }, 250)\r\n });\r\n }\r\n }\r\n\r\n if (opts.togglers) {\r\n /*\r\n var $togglers = $body.find(opts.togglers);\r\n if ($togglers) {\r\n\r\n }\r\n */\r\n $body.on(clickTapEvent, opts.togglers, function (e) {\r\n\r\n // preventing immediate double tap events occuring in some themes\r\n if (eventCancelTimeout) {\r\n return;\r\n } else {\r\n eventCancelTimeout = setTimeout(function () {\r\n eventCancelTimeout = null\r\n }, 10)\r\n }\r\n \r\n e.preventDefault();\r\n e.stopImmediatePropagation();\r\n state === 'hidden' ? showSidebar() : hideSidebar();\r\n return false;\r\n });\r\n }\r\n\r\n $sidebar.on('click', '.sfm-menu a', function (e) {\r\n console.log('preventing');\r\n if (!isIE9) e.preventDefault();\r\n });\r\n\r\n $win.on('resize orientationchange', setupSize);\r\n\r\n\r\n $sidebar.on(\"touchmove\", function () {\r\n dragging = true;\r\n });\r\n\r\n $sidebar.on(\"touchend\", function () {\r\n dragging = false;\r\n });\r\n\r\n $rollback.find('.sfm-navicon-button').add('#sfm-mob-navbar .sfm-navicon-button, .sfm-sidebar-close').on(clickTapEvent, function (e) {\r\n //e.stopImmediatePropagation();\r\n\r\n if (state === 'hidden') {\r\n showSidebar();\r\n $(this).addClass(\"sfm-open\");\r\n } else {\r\n hideSidebar();\r\n $(this).removeClass(\"sfm-open\");\r\n }\r\n\r\n return false;\r\n });\r\n\r\n $('#sfm-sidebar .sfm-search-form span').on(clickTapEvent, function () {\r\n console.log('yo')\r\n $(this).closest('form').submit()\r\n })\r\n\r\n if (isMobile) {\r\n if (/iPad|iPhone/.test(navigator.userAgent)) {\r\n $sidebar.on('focus', 'input', function (e) {\r\n $body.css('overflowX', 'visible');\r\n $sidebar.css({'position': 'absolute', top: '-62px'})\r\n $(document).scrollTop(0);\r\n\r\n }).on('blur', 'input', function () {\r\n $sidebar.css('position', '');\r\n $body.css('overflowX', 'hidden');\r\n });\r\n }\r\n attachSwipesHandler();\r\n }\r\n\r\n populateSocialBarWith(opts.social);\r\n\r\n var behaviour = opts.sidebar_style == 'full' ? 'full' : opts.sidebar_behaviour;\r\n\r\n var bodyClasses = 'superfly-on sfm-style-' + opts.sidebar_style + ' sfm-sidebar-' + behaviour + ' sfm-toggle-' + opts.opening_type + (opts.blur === 'blur' ? ' sfm-blur' : '');\r\n console.log(bodyClasses);\r\n $body.addClass(bodyClasses);\r\n\r\n $( document ).ajaxComplete(function() {\r\n setTimeout(function(){\r\n if(!$body.is('.superfly-on')) {\r\n $body.addClass(bodyClasses);\r\n }\r\n }, 0);\r\n });\r\n\r\n setTimeout(function () {\r\n\r\n if (opts.sidebar_behaviour === 'always') {\r\n setTimeout(function () {\r\n setupSize();\r\n $sidebar.css('opacity', '1');\r\n }, 300);\r\n } else {\r\n $sidebar.css('opacity', '1');\r\n }\r\n }, 0);\r\n\r\n if (opts.test_mode === 'yes') {\r\n $sidebar.addClass('sfm-test-mode');\r\n }\r\n\r\n $('.sfm-close').bind(clickTapEvent, function () {\r\n $custom.removeClass('sfm-modal');\r\n var css = {'opacity': '', 'visibility': ''};\r\n $custom.css(css);\r\n $custom.find('.sfm-active').removeClass('sfm-active');\r\n })\r\n\r\n\t\t\t\t\t\t// fix for CF7\r\n\t\t\t\t\t\t$(function(){\r\n\t\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\t\tvar $cf7form = $('#sfm-sidebar .wpcf7 form');\r\n\t\t\t\t\t\t\t\tif (!$cf7form.length) return;\r\n\t\t\t\t\t\t\t\tvar evObj = $._data( $('#sfm-sidebar .wpcf7 form')[0], \"events\" );\r\n\t\t\t\t\t\t\t\tif (!evObj) {\r\n\t\t\t\t\t\t\t\t\t$('div.wpcf7 > form').wpcf7InitForm();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},0)\r\n\t\t\t\t\t\t});\r\n\r\n LM.init = function () {\r\n };\r\n return this;\r\n }\r\n\r\n function hideCustom(reset) {\r\n if (customOpened) {\r\n var css = {'opacity': '', 'visibility': '', transProp: '', backgroundColor: ''};\r\n if (reset) {\r\n css[transProp] = defTranslationStr;\r\n css['width'] = '';\r\n }\r\n else css[transProp] = $custom.data('startPos') || defTranslationStr;\r\n $custom.css(css)//.data('startPos', '');\r\n $custom.find('.sfm-active').removeClass('sfm-active');\r\n }\r\n }\r\n\r\n function setupFont() {\r\n var wh = window.innerHeight || document.documentElement.offsetHeight || document.documentElement.clientHeight;\r\n var th = wh - $('.sfm-logo').outerHeight() - $('.sfm-social').outerHeight() - 60;\r\n var th = wh - ($('.sfm-logo img').length ? 80 : 0 ) - ($('.sfm-social').children().length ? 85 : 0 ) - 30;\r\n var $links = $sidebar.find('.sfm-nav .sfm-menu li > a');\r\n var num = $links.length;\r\n var space = th / num;\r\n var line = Math.min(space - opts.item_padding * 2, isMobile ? 45 : 65);\r\n $links.css({'fontSize': line, 'lineHeight': space - opts.item_padding + 'px'})\r\n //$links.css('lineHeight', space + 'px')\r\n //console.log('line', th, space, space - opts.item_padding * 2, line)\r\n }\r\n\r\n function showSidebar() {\r\n var $children;\r\n if (state !== 'hidden') return;\r\n\r\n clearTimeout(animTimer);\r\n setupSize();\r\n\r\n $sidebar.addClass('sfm-sidebar-exposed')\r\n $rollback.find('.sfm-navicon-button').add('#sfm-mob-navbar .sfm-navicon-button').addClass('sfm-open');\r\n $overlay.css('visibility', 'visible');\r\n\r\n /*animTimer = */\r\n\r\n $body.addClass('sfm-body-pushed');\r\n\r\n if (opts.sidebar_behaviour === 'push' && opts.sidebar_style != 'full') {\r\n\r\n $children = $body.children().not('[id*=sfm-], script, style');\r\n\r\n $children.find('*').each(function (i, el) {\r\n shiftFixed(i, el, $win.scrollTop(), $win.scrollLeft())\r\n });\r\n }\r\n\r\n state = 'open';\r\n\r\n return false;\r\n }\r\n\r\n function hideSidebar() {\r\n clearTimeout(animTimer);\r\n if (isIE && (opts.sidebar_behaviour === 'push')) {\r\n $('.sfm-inner-fixed').each(unshiftFixed);\r\n }\r\n\r\n if (opts.sidebar_behaviour === 'always' || opts.sidebar_style === 'full') {\r\n setTimeout(function () {\r\n $overlay.css('visibility', 'hidden')\r\n }, 400);\r\n }\r\n $sidebar.find('.sfm-active-item').removeClass('sfm-active-item');\r\n\r\n hideCustom(true);\r\n\r\n //animTimer = setTimeout(function(){\r\n\r\n $body.removeClass('sfm-body-pushed sfm-view-pushed-custom sfm-view-pushed-1 sfm-view-pushed-2 sfm-view-pushed-3 sfm-view-pushed-4 sfm-view-visible-1 sfm-view-visible-2 sfm-view-visible-3 sfm-view-visible-4')\r\n $sidebar.removeClass('sfm-sidebar-exposed')\r\n $rollback.find('.sfm-navicon-button').add('#sfm-mob-navbar .sfm-navicon-button').removeClass('sfm-open');\r\n state = 'hidden';\r\n //}, 75);\r\n }\r\n\r\n function itemEventHandler(e) {\r\n\r\n // preventing immediate double tap events occuring in some themes\r\n if (eventCancelTimeout) {\r\n return;\r\n } else {\r\n eventCancelTimeout = setTimeout(function () {\r\n eventCancelTimeout = null\r\n }, 10)\r\n }\r\n\r\n e.stopImmediatePropagation();\r\n\r\n var $t = $(this);\r\n var $tar;\r\n\r\n function goToLink() {\r\n\r\n var $a = $t.find('a');\r\n var hr = $a.prop('href');\r\n var blank = $a.attr('target') === '_blank';\r\n var hash = $a.prop('hash');\r\n var smooth = hash && hash.length > 0 && hr == lh + hash, scrollTop, $el;\r\n if (smooth) {\r\n hideSidebar();\r\n /*if (opts.sidebar_style === 'static') {\r\n $sidebar.find('.sfm-active-smooth').removeClass('sfm-active-smooth');\r\n $t.addClass('sfm-active-smooth');\r\n }*/\r\n if (hash !== '#') {\r\n $el = $(hash);\r\n if (!$el.length) {\r\n $el = $('[name=\"' + hash.replace('#', '') + '\"]');\r\n }\r\n }\r\n scrollTop = $el && $el.length ? $el.offset().top : 0;\r\n $('html, body').stop().animate({\r\n scrollTop: scrollTop\r\n }, 600);\r\n }\r\n else if (blank) {\r\n window.open(hr, '_blank');\r\n } else {\r\n //hideSidebar();\r\n if (opts.fade === 'yes') {\r\n //TODO don't fade when #\r\n if (hr.indexOf('#') !== -1 && hash === '') {\r\n return\r\n }\r\n $body.fadeOut(200, function () {\r\n location.href = hr\r\n });\r\n } else {\r\n location.href = hr\r\n }\r\n }\r\n }\r\n\r\n if (e.type === clickTapEvent) {\r\n if (currentEvent === 'mouseenter') {\r\n goToLink();\r\n } else {\r\n $tar = $(e.target);\r\n if ($tar.closest('.sfm-sm-indicator').length || isMobile || opts.sub_type === 'yes' || opts.sidebar_style === 'full') {\r\n console.log('ev 1', e.target)\r\n eventFor($t, e);\r\n } else {\r\n e.stopImmediatePropagation();\r\n goToLink();\r\n }\r\n }\r\n\r\n }\r\n else if (e.type !== currentEvent) {\r\n return;\r\n } else {\r\n var _cursor = this;\r\n var timer = setTimeout(function () {\r\n if (_cursor === cursor) {\r\n eventFor($t, e);\r\n }\r\n }, 225);\r\n\r\n cursor = this;\r\n }\r\n\r\n\r\n //e.stopImmediatePropagation();\r\n //return false\r\n }\r\n\r\n function eventFor($t, e) {\r\n\r\n if (dragging) {\r\n return;\r\n }\r\n console.log('event for')\r\n\r\n cancel = false;\r\n clearTimeout(animTimer);\r\n\r\n var level = parseInt(($t.closest('ul').attr('class') || '0').match(/\\d/)[0]) + 1;\r\n var $sub, $et;\r\n var $sibs = $t.siblings('.sfm-active-item'), css;\r\n var $a = $t.find('a');\r\n var hr, blank, hash, smooth, scrollTop;\r\n var _ww = ww;\r\n var _wh = wh;\r\n var id;\r\n var startPos, customWidth, calcWidth, customBg, $currCont, classes;\r\n\r\n hideCustom(level <= currLevel);\r\n\r\n if ($t.is('.sfm-has-child-menu')) {\r\n\r\n //console.log('child menu item');\r\n $sub = $t.children('.sfm-child-menu').first();\r\n\r\n if ($sub.length) {\r\n\r\n if (maxWidth < _ww && !isMobile && opts.sub_type !== 'yes' && opts.sidebar_style !== 'full') {\r\n\r\n cancel = true;\r\n\r\n if ($body.is('.sfm-view-pushed-' + level) && !$sibs.length) {\r\n cancel = false;\r\n }\r\n\r\n $sibs.removeClass('sfm-active-item');\r\n\r\n $body.removeClass('sfm-view-pushed-custom sfm-view-pushed-' + (level + 1) + ' sfm-view-visible-' + (level + 1) + ' sfm-view-pushed-' + (level + 2) + ' sfm-view-visible-' + (level + 2));\r\n\r\n if (!$sidebar.is('.sfm-sidebar-exposed') && opts.sidebar_behaviour !== 'always') return;\r\n $('.sfm-view-level-' + level).attr('class',\r\n function (i, c) {\r\n return c.replace(/(^|\\s)sfm-current-\\S+/g, '');\r\n }).html('
      ' + $sub.html() + '
    ').addClass('sfm-current-' + $t.data('sfmId'));\r\n\r\n animTimer = setTimeout(function () {\r\n $body.addClass('sfm-view-pushed-' + level);\r\n if (opts.sidebar_behaviour === 'always') $overlay.css('visibility', 'visible');\r\n currLevel = level;\r\n }, 25);\r\n\r\n $t.addClass('sfm-active-item');\r\n\r\n } else {\r\n $et = $(e.target);\r\n hr = $a.attr('href');\r\n var hash = $a.prop('hash');\r\n if ($et.closest('.sfm-sm-indicator').length || hash === '#' || hr === '#' || hr === '/') {\r\n\r\n if (!$t.is('.sfm-submenu-visible')) {\r\n console.log('sub', $sub)\r\n $t.siblings().filter('.sfm-submenu-visible').removeClass('sfm-submenu-visible').find('> ul').slideUp()\r\n $t.addClass('sfm-submenu-visible');\r\n $sub.slideDown();\r\n cancel = true;\r\n } else {\r\n if ($a.length && e.type === clickTapEvent) {\r\n $t.removeClass('sfm-submenu-visible');\r\n $sub.slideUp();\r\n cancel = true;\r\n }\r\n }\r\n }\r\n }\r\n } else {\r\n // Custom content\r\n customWidth = $t.attr('data-extra-width');\r\n customBg = $t.attr('data-bg');\r\n calcWidth = parseInt(customWidth || opts['width_panel_' + (level + 1)]);\r\n\r\n if (sums[level - 1] + calcWidth < _ww && opts.sidebar_style !== 'full') {\r\n cancel = true;\r\n $currCont = $custom.find('#sfm-cc-' + $t.attr('data-sfm-id'));\r\n\r\n if ($body.is('.sfm-view-pushed-' + level) && !$sibs.length) {\r\n cancel = false;\r\n }\r\n\r\n $sibs.removeClass('sfm-active-item');\r\n $body.removeClass('sfm-view-pushed-custom sfm-view-pushed-' + level + ' sfm-view-visible-' + level + ' sfm-view-pushed-' + (level + 1) + ' sfm-view-visible-' + (level + 1))\r\n .addClass('sfm-view-pushed-custom');\r\n\r\n if (!$sidebar.is('.sfm-sidebar-exposed') && opts.sidebar_behaviour !== 'always') return;\r\n\r\n if (opts.sidebar_behaviour === 'always') $overlay.css('visibility', 'visible');\r\n\r\n $t.addClass('sfm-active-item');\r\n\r\n if (isMobile || opts.sub_type === 'yes') {\r\n startPos = _T.toString(_T.translate(0));\r\n console.log(startPos)\r\n } else {\r\n startPos = _T.toString(_T.translate(opts.sidebar_pos === 'right' ? sums[level - 1] - sums[0] : sums[level - 1] - calcWidth));\r\n }\r\n\r\n css = {\r\n 'opacity': 1,\r\n 'visibility': 'visible',\r\n 'backgroundColor': customBg,\r\n 'width': calcWidth\r\n };\r\n css[transProp] = startPos;\r\n $custom.css(css).data('startPos', startPos);\r\n\r\n $custom.find('.sfm-active').removeClass('sfm-active');\r\n\r\n $currCont.width(calcWidth);\r\n\r\n if (_wh > $currCont.outerHeight()) {\r\n $currCont.addClass('sfm-vert-align sfm-active');\r\n } else {\r\n $currCont.removeClass('sfm-vert-align').addClass('sfm-active');\r\n }\r\n\r\n setTimeout(function () {\r\n if (isMobile || opts.sub_type === 'yes') {\r\n $custom.css(transProp, _T.toString(_T.translate(sums[0])));\r\n } else {\r\n $custom.css(transProp, _T.toString(_T.translate(opts.sidebar_pos === 'right' ? -calcWidth - (sums[level - 1] - sums[0]) : sums[level - 1])));\r\n }\r\n }, 0);\r\n\r\n customOpened = true;\r\n\r\n } else {\r\n // open modal for custom content\r\n $et = $(e.target);\r\n\r\n if ($et.closest('.sfm-sm-indicator').length || isMobile || opts.sub_type === 'yes') {\r\n if (!$t.is('.sfm-submenu-visible')) {\r\n console.log('sub', $sub);\r\n customBg = $t.attr('data-bg');\r\n $t.siblings().filter('.sfm-submenu-visible').removeClass('sfm-submenu-visible').find('> ul').slideUp()\r\n\r\n $custom.addClass('sfm-modal');\r\n css = {\r\n 'opacity': 1,\r\n 'visibility': 'visible',\r\n 'backgroundColor': customBg,\r\n 'width': _ww\r\n };\r\n $custom.find('.sfm-active').removeClass('sfm-active');\r\n $custom.find('#sfm-cc-' + $t.attr('data-sfm-id')).addClass('sfm-active')\r\n $custom.css(css);\r\n cancel = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n } else {\r\n\r\n if (maxWidth < _ww + 200) {\r\n //console.log('siblings', $t.siblings('.sfm-active-item').length)\r\n $t.siblings('.sfm-active-item').removeClass('sfm-active-item');\r\n\r\n animTimer = setTimeout(function () {\r\n $body.removeClass('sfm-view-pushed-custom sfm-view-pushed-' + level + ' sfm-view-visible-' + level + ' sfm-view-pushed-' + (level + 1) + ' sfm-view-visible-' + (level + 1) + ' sfm-view-pushed-' + (level + 2) + ' sfm-view-visible-' + (level + 2));\r\n }, 50);\r\n }\r\n\r\n }\r\n\r\n var ev = isIE9 ? 'mouseenter' : clickTapEvent;\r\n\r\n\r\n if ($a.length && e.type === ev && !cancel && !isIE9) {\r\n hr = $a.prop('href');\r\n blank = $a.attr('target') === '_blank';\r\n hash = $a.prop('hash');\r\n smooth = hash && hash.length > 1 && hr == lh + hash, scrollTop;\r\n\r\n if (smooth) {\r\n hideSidebar();\r\n $t.addClass('sfm-active-item');\r\n scrollTop = $a.prop('hash') === '#' ? 0 : $($a.prop('hash')).offset().top;\r\n $('html, body').stop().animate({\r\n scrollTop: scrollTop\r\n }, 600);\r\n }\r\n else if (blank) {\r\n window.open(hr, '_blank');\r\n } else {\r\n // todo\r\n //$body.fadeOut(200,function(){location.href = hr});\r\n location.href = hr\r\n }\r\n }\r\n }\r\n\r\n function setupSize(e) {\r\n wh = window.innerHeight ? window.innerHeight : $win.height();\r\n ww = window.innerWidth ? window.innerWidth : $win.width();\r\n var init = !setupSize.cache;\r\n\r\n if (init) {\r\n $sidebar.addClass('sfm-compact')\r\n }\r\n\r\n var margin = parseInt(opts.item_padding) * 2;\r\n\r\n setupSize.cache = setupSize.cache || {\r\n hh: $head.is(':empty') ? 0 : $head.outerHeight() + 70 + margin,\r\n sh: $socialbar.is(':empty') ? 0 : 145 + margin,\r\n ch: $cont.outerHeight()\r\n };\r\n\r\n if (init) {\r\n $sidebar.removeClass('sfm-compact')\r\n }\r\n var ch = setupSize.cache.ch;\r\n var hh = setupSize.cache.hh;\r\n var sh = setupSize.cache.sh;\r\n var ah = ( wh - ch ) / 2;\r\n var classesToAdd = '';\r\n var classesToRemove = '';\r\n if (ah < hh || ah < sh || isMobile || opts.sub_type === 'yes') {\r\n if (opts.sidebar_style !== 'full') {\r\n classesToAdd = 'sfm-compact';\r\n if (ah < hh) {\r\n classesToAdd += ' sfm-compact-header';\r\n if (ah > sh) {\r\n classesToRemove = 'sfm-compact-footer';\r\n }\r\n }\r\n if (ah < sh) {\r\n classesToAdd += ' sfm-compact-footer'\r\n if (ah > hh) {\r\n classesToRemove = 'sfm-compact-header';\r\n }\r\n }\r\n }\r\n } else {\r\n classesToRemove = 'sfm-compact';\r\n }\r\n\r\n if (maxWidth > ww || isMobile || opts.sub_type === 'yes' || opts.sidebar_style === 'full') {\r\n classesToAdd += ' sfm-vertical-nav';\r\n currentEvent = clickTapEvent;\r\n } else {\r\n classesToRemove += ' sfm-vertical-nav';\r\n currentEvent = 'mouseenter';\r\n }\r\n\r\n if (navigator.appVersion.indexOf(\"Mac\") != -1) {\r\n classesToAdd += ' sfm-mac';\r\n }\r\n\r\n if (classesToAdd) $sidebar.addClass(classesToAdd);\r\n if (classesToRemove && !init) $sidebar.removeClass(classesToRemove);\r\n opts.sidebar_style === 'full' && setupFont(wh);\r\n }\r\n\r\n function shiftFixed(i, el, scrollTop, scrollLeft, bh, wh) {\r\n\r\n var $t = $(el);\r\n var $offsetP;\r\n var t;\r\n var nu;\r\n var offset;\r\n var oLeft;\r\n var oTop;\r\n var coords;\r\n var newCSS;\r\n var _b;\r\n var transf;\r\n\r\n if ($t.css('position') === 'fixed') {\r\n\r\n $t.addClass('sfm-inner-fixed');\r\n\r\n if (isIE) {\r\n\r\n t = $t.css(transProp);\r\n\r\n if (t !== 'none') {\r\n $t.data('sfm-old-matrix', t);\r\n t = _T.fromString(t);\r\n nu = t.x(translation); // add translation\r\n $t.css(transProp, _T.toString(nu)).data('sfm-transformed', 1);\r\n } else {\r\n $t.css(transProp, _T.toString(translation)/*, transition: trans + 'transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1)', transitionDelay: '90ms'*/).data('sfm-transformed', 1);\r\n }\r\n\r\n } else {\r\n\r\n $offsetP = $t;\r\n\r\n while ($offsetP = $offsetP.parent()) {\r\n transf = $offsetP.css('webkitTransform');\r\n if ((transf && transf !== 'none') || $offsetP.is('body')) {\r\n break\r\n }\r\n }\r\n\r\n //console.log('offset parent' , $offsetP[0])\r\n\r\n offset = $offsetP.offset();\r\n oLeft = offset.left;\r\n oTop = offset.top;\r\n//if (oTop === htmlMargins.top) oTop = 0;\r\n\r\n if (isFF && $t.is(':visible')) {\r\n $t.hide().data('sfm-ff-hidden', 1);\r\n }\r\n\r\n coords = {\r\n left: $t.css('left'),\r\n right: $t.css('right'),\r\n top: $t.css('top'),\r\n bottom: $t.css('bottom')\r\n }\r\n\r\n if (isFF && $t.data('sfm-ff-hidden')) $t.show();\r\n\r\n newCSS = {};\r\n _b = parseInt(coords.bottom);\r\n _b = isNaN(_b) ? 0 : _b;\r\n\r\n if (coords.left !== 'auto') {\r\n coords.toChangeHor = 'left';\r\n newCSS[coords.toChangeHor] = '-=' + (oLeft - scrollLeft);\r\n } else if (coords.right !== 'auto') {\r\n coords.toChangeHor = 'right';\r\n newCSS[coords.toChangeHor] = '-=' + (oLeft - scrollLeft);\r\n } else {\r\n coords.toChangeHor = 'left'\r\n }\r\n\r\n if (coords.top !== 'auto') {\r\n coords.toChangeVert = 'top';\r\n newCSS[coords.toChangeVert] = oTop - scrollTop > 0 ? parseInt(coords.top) - (oTop - scrollTop) : parseInt(coords.top) + (scrollTop - oTop);\r\n } else if (coords.bottom !== 'auto') {\r\n coords.toChangeVert = 'bottom';\r\n newCSS[coords.toChangeVert] = $body.height() + htmlMargins.top + htmlMargins.bottom + _b - $win.height() - scrollTop + 'px';\r\n } else {\r\n coords.toChangeVert = 'top';\r\n newCSS[coords.toChangeVert] = scrollTop;\r\n }\r\n\r\n//\t\t\t\t\t\t\tconsole.log('transf', transProp);\r\n//\t\t\t\t\t\t\tconsole.log('el', el);\r\n//\t\t\t\t\t\t\tconsole.log('parent', $offsetP[0]);\r\n//\t\t\t\t\t\t\tconsole.log('coords', coords);\r\n//\t\t\t\t\t\t\tconsole.log('newCSS', newCSS);\r\n//\t\t\t\t\t\t\tconsole.log('offsetTop', oTop);\r\n//\t\t\t\t\t\t\tconsole.log(scrollTop, scrollLeft);\r\n\r\n $t.css(newCSS).data('sfm-old-pos', coords)\r\n }\r\n }\r\n }\r\n\r\n function unshiftFixed(i, el) {\r\n var $el = $(el);\r\n var coords;\r\n var newCss;\r\n if (isIE) {\r\n if ($el.data('sfm-old-matrix')) {\r\n $el.css(transProp, $el.data('sfm-old-matrix')).data('sfm-old-matrix', '');\r\n } else {\r\n $el.css(transProp, defTranslationStr).data('sfm-transformed', '');\r\n }\r\n } else {\r\n coords = $el.data('sfm-old-pos');\r\n //console.log('coords', coords);\r\n newCss = {};\r\n if (coords) {\r\n newCss[coords.toChangeHor] = coords[coords.toChangeHor];\r\n newCss[coords.toChangeVert] = coords[coords.toChangeVert];\r\n if (coords.toChangeVert === 'bottom') newCss['top'] = '';\r\n $el.css(newCss);\r\n $el.data('sfm-old-pos', '');\r\n } else {\r\n $el.css({left: '', top: '', bottom: '', right: ''})\r\n }\r\n }\r\n }\r\n\r\n\r\n function populateSocialBarWith(social) {\r\n var name;\r\n for (name in social) {\r\n if (social.hasOwnProperty(name)) {\r\n if (name === 'skype') {\r\n $('
  • ').appendTo($socialbar);\r\n } else if (name === 'email') {\r\n $('
  • ').appendTo($socialbar);\r\n } else {\r\n $('
  • ').appendTo($socialbar);\r\n }\r\n }\r\n }\r\n }\r\n\r\n function attachSwipesHandler() {\r\n var startX, startY, startTime, moveX, moveY;\r\n $sidebar.add($overlay).bind('touchstart', function (e) {\r\n if (state === 'open') {\r\n startTime = (new Date).getTime();\r\n startX = e.originalEvent.touches[0].pageX;\r\n startY = e.originalEvent.touches[0].clientY;\r\n }\r\n })\r\n .bind('touchmove', function (e) {\r\n if (state === 'open') {\r\n moveX = e.originalEvent.touches[0].pageX;\r\n moveY = e.originalEvent.touches[0].clientY\r\n }\r\n })\r\n .bind('touchend', function () {\r\n if (state === 'open') {\r\n var swipeDirection = moveX > startX ? \"right\" : \"left\";\r\n var finalY = moveY - startY > 30 || -30 > moveY - startY;\r\n var finalX = moveX - startX > 60 || -60 > moveX - startX;\r\n var now = (new Date).getTime();\r\n if (!(now - startTime > 200 || finalY) && finalX) {\r\n switch (swipeDirection) {\r\n case \"left\":\r\n \"left\" === direction ? hideSidebar() : showSidebar();\r\n break;\r\n case \"right\":\r\n \"left\" === direction ? showSidebar() : hideSidebar()\r\n }\r\n }\r\n }\r\n });\r\n }\r\n\r\n function freezeBodyScroll(e) {\r\n var scrollTo = null;\r\n\r\n if (e.type == 'mousewheel') {\r\n scrollTo = (e.originalEvent.wheelDelta * -1);\r\n }\r\n else if (e.type == 'DOMMouseScroll') {\r\n scrollTo = 40 * e.originalEvent.detail;\r\n }\r\n\r\n if (scrollTo) {\r\n e.preventDefault();\r\n $(this).scrollTop(scrollTo + $(this).scrollTop());\r\n }\r\n }\r\n\r\n function freezeBody(e) {\r\n if (e.type == 'mousewheel' || e.type == 'DOMMouseScroll') {\r\n e.preventDefault()\r\n }\r\n }\r\n\r\n function checkOrientation() {\r\n var o = window.orientation;\r\n if (o) {\r\n if (o != 90 && o != -90) {\r\n return 'portrait';\r\n } else {\r\n return 'landscape';\r\n }\r\n } else {\r\n if ($win.height() > $win.width()) {\r\n return 'portrait';\r\n } else {\r\n return 'landscape';\r\n }\r\n }\r\n }\r\n\r\n\r\n return {\r\n init: init,\r\n showSidebar: showSidebar,\r\n hideSidebar: hideSidebar,\r\n getState: function () {\r\n return state\r\n }\r\n }\r\n }());\r\n\r\n window.LM = LM.init();\r\n\r\n\r\n }, 0);\r\n\r\n });\r\n\r\n\tif (window.SFM_EVENT_DISPATCHED) $(document).trigger('sfm_doc_body_arrived');\r\n\r\n function attachStyles(t) {\r\n if (document.body) {\r\n var s = document.createElement('style');\r\n s.type = 'text/css';\r\n if (/WebKit|MSIE/i.test(navigator.userAgent)) {\r\n if (s.styleSheet) {\r\n s.styleSheet.cssText = t;\r\n } else {\r\n s.innerText = t;\r\n }\r\n } else {\r\n s.innerHTML = t;\r\n }\r\n document.getElementsByTagName('head')[0].appendChild(s);\r\n } else {\r\n document.write('');\r\n }\r\n }\r\n\r\n function getVendorPropertyName(prop) {\r\n\r\n var prefixes = ['Moz', 'Webkit', 'O', 'ms'],\r\n vendorProp, i,\r\n div = document.createElement('div'),\r\n prop_ = prop.charAt(0).toUpperCase() + prop.substr(1);\r\n\r\n if (prop in div.style) {\r\n return prop;\r\n }\r\n\r\n for (i = 0; i < prefixes.length; ++i) {\r\n\r\n vendorProp = prefixes[i] + prop_;\r\n\r\n if (vendorProp in div.style) {\r\n return vendorProp;\r\n }\r\n\r\n }\r\n\r\n // Avoid memory leak in IE.\r\n this.div = null;\r\n };\r\n\r\n function deparam(query) {\r\n var pairs, i, keyValuePair, key, value, map = {};\r\n // remove leading question mark if its there\r\n if (query.slice(0, 1) === '?') {\r\n query = query.slice(1);\r\n }\r\n if (query !== '') {\r\n pairs = query.split('&');\r\n for (i = 0; i < pairs.length; i += 1) {\r\n keyValuePair = pairs[i].split('=');\r\n key = decodeURIComponent(keyValuePair[0]);\r\n value = (keyValuePair.length > 1) ? decodeURIComponent(keyValuePair[1]) : undefined;\r\n map[key] = value;\r\n }\r\n }\r\n return map;\r\n }\r\n\r\n\r\n})(window.jQuery);"],"sourceRoot":"/source/"}