window.Modernizr=function(e,d,o){function n(e){v.cssText=e}function t(e,t){return n(b.join(e+";")+(t||""))}function a(e,t){return typeof e===t}function r(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var n in e){var i=e[n];if(!r(i,"-")&&v[i]!==o)return t=="pfx"?i:!0}return!1}function c(e,t,n){for(var i in e){var r=t[e[i]];if(r!==o)return n===!1?e[i]:a(r,"function")?r.bind(n||t):r}return!1}function i(e,t,n){var i=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+k.join(i+" ")+i).split(" ");return a(t,"string")||a(t,"undefined")?s(r,t):(r=(e+" "+E.join(i+" ")+i).split(" "),c(r,t,n))}var l="2.6.2",u={},f=!0,p=d.documentElement,h="modernizr",m=d.createElement(h),v=m.style,g,y={}.toString,b=" -webkit- -moz- -o- -ms- ".split(" "),w="Webkit Moz O ms",k=w.split(" "),E=w.toLowerCase().split(" "),C={},x={},D={},j=[],L=j.slice,S,z=function(e,t,n,i){var r,o,a,s,c=d.createElement("div"),l=d.body,u=l||d.createElement("body");if(parseInt(n,10))while(n--)a=d.createElement("div"),a.id=i?i[n]:h+(n+1),c.appendChild(a);return r=["",'"].join(""),c.id=h,(l?c:u).innerHTML+=r,u.appendChild(c),l||(u.style.background="",u.style.overflow="hidden",s=p.style.overflow,p.style.overflow="hidden",p.appendChild(u)),o=t(c,e),l?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),p.style.overflow=s),!!o},N={}.hasOwnProperty,T;!a(N,"undefined")&&!a(N.call,"undefined")?T=function(e,t){return N.call(e,t)}:T=function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(i){var r=this;if(typeof r!="function")throw new TypeError;var o=L.call(arguments,1),a=function(){if(this instanceof a){var e=function(){};e.prototype=r.prototype;var t=new e,n=r.apply(t,o.concat(L.call(arguments)));return Object(n)===n?n:t}return r.apply(i,o.concat(L.call(arguments)))};return a}),C.touch=function(){var t;return"ontouchstart"in e||e.DocumentTouch&&d instanceof DocumentTouch?t=!0:z(["@media (",b.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){t=e.offsetTop===9}),t},C.cssanimations=function(){return i("animationName")},C.csstransitions=function(){return i("transition")};for(var $ in C)T(C,$)&&(S=$.toLowerCase(),u[S]=C[$](),j.push((u[S]?"":"no-")+S));return u.addTest=function(e,t){if(typeof e=="object")for(var n in e)T(e,n)&&u.addTest(n,e[n]);else{e=e.toLowerCase();if(u[e]!==o)return u;t=typeof t=="function"?t():t,typeof f!="undefined"&&f&&(p.className+=" "+(t?"":"no-")+e),u[e]=t}return u},n(""),m=g=null,function(e,a){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x",i.insertBefore(n.lastChild,i.firstChild)}function s(){var e=g.elements;return typeof e=="string"?e.split(" "):e}function c(e){var t=m[e[p]];return t||(t={},h++,e[p]=h,m[h]=t),t}function i(e,t,n){t||(t=a);if(v)return t.createElement(e);n||(n=c(t));var i;return n.cache[e]?i=n.cache[e].cloneNode():d.test(e)?i=(n.cache[e]=n.createElem(e)).cloneNode():i=n.createElem(e),i.canHaveChildren&&!u.test(e)?n.frag.appendChild(i):i}function t(e,t){e||(e=a);if(v)return e.createDocumentFragment();t=t||c(e);var n=t.frag.cloneNode(),i=0,r=s(),o=r.length;for(;i",f="hidden"in e,v=e.childNodes.length==1||function(){a.createElement("a");var e=a.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(e){f=!0,v=!0}})();var g={elements:l.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:l.shivCSS!==!1,supportsUnknownElements:v,shivMethods:l.shivMethods!==!1,type:"default",shivDocument:o,createElement:i,createDocumentFragment:t};e.html5=g,o(a)}(this,d),u._version=l,u._prefixes=b,u._domPrefixes=E,u._cssomPrefixes=k,u.testProp=function(e){return s([e])},u.testAllProps=i,u.testStyles=z,u.prefixed=function(e,t,n){return t?i(e,t,n):i(e,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+j.join(" "):""),u}(this,this.document),function(e,f,c){function d(e){return"[object Function]"==i.call(e)}function p(e){return"string"==typeof e}function h(){}function m(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function v(){var e=b.shift();w=1,e?e.t?g(function(){("c"==e.t?L.injectCss:L.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),v()):w=0}function o(n,i,e,t,r,o,a){function s(e){if(!l&&m(c.readyState)&&(d.r=l=1,!w&&v(),c.onload=c.onreadystatechange=null,e)){"img"!=n&&g(function(){E.removeChild(c)},50);for(var t in D[i])D[i].hasOwnProperty(t)&&D[i][t].onload()}}var a=a||L.errorTimeout,c=f.createElement(n),l=0,u=0,d={t:e,s:i,e:r,a:o,x:a};1===D[i]&&(u=1,D[i]=[]),"object"==n?c.data=i:(c.src=i,c.type=n),c.width=c.height="0",c.onerror=c.onload=c.onreadystatechange=function(){s.call(this,u)},b.splice(t,0,d),"img"!=n&&(u||2===D[i]?(E.insertBefore(c,k?null:y),g(s,a)):D[i].push(c))}function t(e,t,n,i,r){return w=0,t=t||"j",p(e)?o("c"==t?s:a,e,t,this.i++,n,i,r):(b.splice(this.i++,0,e),1==b.length&&v()),this}function l(){var e=L;return e.loader={load:t,i:0},e}var n=f.documentElement,g=e.setTimeout,y=f.getElementsByTagName("script")[0],i={}.toString,b=[],w=0,r="MozAppearance"in n.style,k=r&&!!f.createRange().compareNode,E=k?n:y.parentNode,n=e.opera&&"[object Opera]"==i.call(e.opera),n=!!f.attachEvent&&!n,a=r?"object":n?"script":"img",s=n?"script":a,C=Array.isArray||function(e){return"[object Array]"==i.call(e)},x=[],D={},j={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},u,L;L=function(e){function s(e){var e=e.split("!"),t=x.length,n=e.pop(),i=e.length,n={url:n,origUrl:n,prefixes:e},r,o,a;for(o=0;o');if(navigator.userAgent.toLowerCase().indexOf("msie")>-1){t.height(this.height()+parseInt(this.css("padding-top"))+parseInt(this.css("padding-bottom")));t.width(this.width()+parseInt(this.css("padding-left"))+parseInt(this.css("padding-right")))}if(navigator.userAgent.toLowerCase().indexOf("msie 6")>-1){this.find("select").addClass("masked-hidden")}this.append(t);if(typeof e=="string"){var n=i('');n.append(""+e+"
");this.append(n);n.css("top",Math.round(this.height()/2-(n.height()-parseInt(n.css("padding-top"))-parseInt(n.css("padding-bottom")))/2)+"px");n.css("left",Math.round(this.width()/2-(n.width()-parseInt(n.css("padding-left"))-parseInt(n.css("padding-right")))/2)+"px");n.show()}};i.fn.unmask=function(e){this.find(".loadmask-msg,.loadmask").remove();this.removeClass("masked");this.removeClass("masked-relative");this.find("select").removeClass("masked-hidden")}})(jQuery);(function(w){var k="iCheck",E=k+"-helper",C="checkbox",x="radio",D="checked",p="un"+D,j="disabled",h="determinate",L="in"+h,S="update",z="type",N="click",T="touchbegin.i touchend.i",$="addClass",M="removeClass",F="trigger",I="label",m="cursor",O=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);w.fn[k]=function(t,n){var i='input[type="'+C+'"], input[type="'+x+'"]',r=w(),e=function(e){e.each(function(){var e=w(this);if(e.is(i)){r=r.add(e)}else{r=r.add(e.find(i))}})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t)){t=t.toLowerCase();e(this);return r.each(function(){var e=w(this);if(t=="destroy"){B(e,"ifDestroyed")}else{P(e,true,t)}if(w.isFunction(n)){n()}})}else if(typeof t=="object"||!t){var p=w.extend({checkedClass:D,disabledClass:j,indeterminateClass:L,labelHover:true},t),o=p.handle,h=p.hoverClass||"hover",m=p.focusClass||"focus",v=p.activeClass||"active",g=!!p.labelHover,y=p.labelHoverClass||"hover",b=(""+p.increaseArea).replace("%","")|0;if(o==C||o==x){i='input[type="'+o+'"]'}if(b<-50){b=-50}e(this);return r.each(function(){var i=w(this);B(i);var r=this,e=r.id,t=-b+"%",n=100+b*2+"%",o={position:"absolute",top:t,left:t,display:"block",width:n,height:n,margin:0,padding:0,background:"#fff",border:0,opacity:0},a=O?{position:"absolute",visibility:"hidden"}:b?o:{position:"absolute",opacity:0},s=r[z]==C?p.checkboxClass||"i"+C:p.radioClass||"i"+x,c=w(I+'[for="'+e+'"]').add(i.closest(I)),l=!!p.aria,u=k+"-"+Math.random().toString(36).substr(2,6),d='")[F]("ifCreated").parent().append(p.insert);f=w('').css(o).appendTo(d);i.data(k,{o:p,s:i.attr("style")}).css(a);!!p.inheritClass&&d[$](r.className||"");!!p.inheritID&&e&&d.attr("id",k+"-"+e);d.css("position")=="static"&&d.css("position","relative");P(i,true,S);if(c.length){c.on(N+".i mouseover.i mouseout.i "+T,function(e){var t=e[z],n=w(this);if(!r[j]){if(t==N){if(w(e.target).is("a")){return}P(i,false,true)}else if(g){if(/ut|nd/.test(t)){d[M](h);n[M](y)}else{d[$](h);n[$](y)}}if(O){e.stopPropagation()}else{return false}}})}i.on(N+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[z],n=e.keyCode;if(t==N){return false}else if(t=="keydown"&&n==32){if(!(r[z]==x&&r[D])){if(r[D]){A(i,D)}else{_(i,D)}}return false}else if(t=="keyup"&&r[z]==x){!r[D]&&_(i,D)}else if(/us|ur/.test(t)){d[t=="blur"?M:$](m)}});f.on(N+" mousedown mouseup mouseover mouseout "+T,function(e){var t=e[z],n=/wn|up/.test(t)?v:h;if(!r[j]){if(t==N){P(i,false,true)}else{if(/wn|er|in/.test(t)){d[$](n)}else{d[M](n+" "+v)}if(c.length&&g&&n==h){c[/ut|nd/.test(t)?M:$](y)}}if(O){e.stopPropagation()}else{return false}}})})}else{return this}};function P(e,t,n){var i=e[0],r=/er/.test(n)?L:/bl/.test(n)?j:D,o=n==S?{checked:i[D],disabled:i[j],indeterminate:e.attr(L)=="true"||e.attr(h)=="false"}:i[r];if(/^(ch|di|in)/.test(n)&&!o){_(e,r)}else if(/^(un|en|de)/.test(n)&&o){A(e,r)}else if(n==S){for(var a in o){if(o[a]){_(e,a,true)}else{A(e,a,true)}}}else if(!t||n=="toggle"){if(!t){e[F]("ifClicked")}if(o){if(i[z]!==x){A(e,r)}}else{_(e,r)}}}function _(e,t,n){var i=e[0],r=e.parent(),o=t==D,a=t==L,s=t==j,c=a?h:o?p:"enabled",l=v(e,c+g(i[z])),u=v(e,t+g(i[z]));if(i[t]!==true){if(!n&&t==D&&i[z]==x&&i.name){var d=e.closest("form"),f='input[name="'+i.name+'"]';f=d.length?d.find(f):w(f);f.each(function(){if(this!==i&&w(this).data(k)){A(w(this),t)}})}if(a){i[t]=true;if(i[D]){A(e,D,"force")}}else{if(!n){i[t]=true}if(o&&i[L]){A(e,L,false)}}y(e,o,t,n)}if(i[j]&&!!v(e,m,true)){r.find("."+E).css(m,"default")}r[$](u||v(e,t)||"");if(!!r.attr("role")&&!a){r.attr("aria-"+(s?j:D),"true")}r[M](l||v(e,c)||"")}function A(e,t,n){var i=e[0],r=e.parent(),o=t==D,a=t==L,s=t==j,c=a?h:o?p:"enabled",l=v(e,c+g(i[z])),u=v(e,t+g(i[z]));if(i[t]!==false){if(a||!n||n=="force"){i[t]=false}y(e,o,c,n)}if(!i[j]&&!!v(e,m,true)){r.find("."+E).css(m,"pointer")}r[M](u||v(e,t)||"");if(!!r.attr("role")&&!a){r.attr("aria-"+(s?j:D),"false")}r[$](l||v(e,c)||"")}function B(e,t){if(e.data(k)){e.parent().html(e.attr("style",e.data(k).s||""));if(t){e[F](t)}e.off(".i").unwrap();w(I+'[for="'+e[0].id+'"]').add(e.closest(I)).off(".i")}}function v(e,t,n){if(e.data(k)){return e.data(k).o[t+(n?"":"Class")]}}function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}function y(e,t,n,i){if(!i){if(t){e[F]("ifToggled")}e[F]("ifChanged")[F]("if"+g(n))}}})(window.jQuery||window.Zepto);jQuery(document).on({click:function(){if($("#user-arrow-box").hasClass("hidden")){$("#user-arrow-box").removeClass("hidden");$("#notifications-arrow-box").addClass("hidden")}else{$("#user-arrow-box").addClass("hidden")}}},".own-profile-image.mt");$(".container.cbp-spmenu-push").on("click",function(){if(!$("#user-arrow-box").hasClass("hidden"))$("#user-arrow-box").addClass("hidden")});(function(e){"use strict";!e.addEventListener&&e.Element&&function(){function e(e,t){Window.prototype[e]=HTMLDocument.prototype[e]=Element.prototype[e]=t}var r=[];e("addEventListener",function(e,t){var n=this;r.unshift({__listener:function(e){e.currentTarget=n;e.pageX=e.clientX+document.documentElement.scrollLeft;e.pageY=e.clientY+document.documentElement.scrollTop;e.preventDefault=function(){e.returnValue=false};e.relatedTarget=e.fromElement||null;e.stopPropagation=function(){e.cancelBubble=true};e.relatedTarget=e.fromElement||null;e.target=e.srcElement||n;e.timeStamp=+new Date;t.call(n,e)},listener:t,target:n,type:e});this.attachEvent("on"+e,r[0].__listener)});e("removeEventListener",function(e,t){for(var n=0,i=r.length;n input.sb-search-input");this._initEvents()}t.prototype={_initEvents:function(){var t=this,e=function(e){e.stopPropagation();t.inputEl.value=t.inputEl.value.trim();if(!classie.has(t.el,"sb-search-open")){e.preventDefault();t.open()}else if(classie.has(t.el,"sb-search-open")&&/^\s*$/.test(t.inputEl.value)){e.preventDefault();t.close()}};this.el.addEventListener("click",e);this.el.addEventListener("touchstart",e);this.inputEl.addEventListener("click",function(e){e.stopPropagation()});this.inputEl.addEventListener("touchstart",function(e){e.stopPropagation()})},open:function(){var t=this;classie.add(this.el,"sb-search-open");if(!i()){this.inputEl.focus()}var n=function(e){t.close();this.removeEventListener("click",n);this.removeEventListener("touchstart",n)};document.addEventListener("click",n);document.addEventListener("touchstart",n)},close:function(){this.inputEl.blur();classie.remove(this.el,"sb-search-open")}};e.UISearch=t})(window);