window.Modernizr=function(e,f,s){function i(e){v.cssText=e}function t(e,t){return i(y.join(e+";")+(t||""))}function r(e,t){return typeof e===t}function o(e,t){return!!~(""+e).indexOf(t)}function a(e,t){for(var i in e){var n=e[i];if(!o(n,"-")&&v[n]!==s)return t=="pfx"?n:!0}return!1}function l(e,t,i){for(var n in e){var o=t[e[n]];if(o!==s)return i===!1?e[n]:r(o,"function")?o.bind(i||t):o}return!1}function n(e,t,i){var n=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+C.join(n+" ")+n).split(" ");return r(t,"string")||r(t,"undefined")?a(o,t):(o=(e+" "+x.join(n+" ")+n).split(" "),l(o,t,i))}var c="2.6.2",u={},d=!0,h=f.documentElement,p="modernizr",m=f.createElement(p),v=m.style,g,b={}.toString,y=" -webkit- -moz- -o- -ms- ".split(" "),w="Webkit Moz O ms",C=w.split(" "),x=w.toLowerCase().split(" "),$={},k={},S={},T=[],E=T.slice,A,M=function(e,t,i,n){var o,s,r,a,l=f.createElement("div"),c=f.body,u=c||f.createElement("body");if(parseInt(i,10))while(i--)r=f.createElement("div"),r.id=n?n[i]:p+(i+1),l.appendChild(r);return o=["­",'"].join(""),l.id=p,(c?l:u).innerHTML+=o,u.appendChild(l),c||(u.style.background="",u.style.overflow="hidden",a=h.style.overflow,h.style.overflow="hidden",h.appendChild(u)),s=t(l,e),c?l.parentNode.removeChild(l):(u.parentNode.removeChild(u),h.style.overflow=a),!!s},_={}.hasOwnProperty,z;!r(_,"undefined")&&!r(_.call,"undefined")?z=function(e,t){return _.call(e,t)}:z=function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(n){var o=this;if(typeof o!="function")throw new TypeError;var s=E.call(arguments,1),r=function(){if(this instanceof r){var e=function(){};e.prototype=o.prototype;var t=new e,i=o.apply(t,s.concat(E.call(arguments)));return Object(i)===i?i:t}return o.apply(n,s.concat(E.call(arguments)))};return r}),$.touch=function(){var t;return"ontouchstart"in e||e.DocumentTouch&&f instanceof DocumentTouch?t=!0:M(["@media (",y.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){t=e.offsetTop===9}),t},$.cssanimations=function(){return n("animationName")},$.csstransitions=function(){return n("transition")};for(var I in $)z($,I)&&(A=I.toLowerCase(),u[A]=$[I](),T.push((u[A]?"":"no-")+A));return u.addTest=function(e,t){if(typeof e=="object")for(var i in e)z(e,i)&&u.addTest(i,e[i]);else{e=e.toLowerCase();if(u[e]!==s)return u;t=typeof t=="function"?t():t,typeof d!="undefined"&&d&&(h.className+=" "+(t?"":"no-")+e),u[e]=t}return u},i(""),m=g=null,function(e,r){function i(e,t){var i=e.createElement("p"),n=e.getElementsByTagName("head")[0]||e.documentElement;return i.innerHTML="x",n.insertBefore(i.lastChild,n.firstChild)}function a(){var e=g.elements;return typeof e=="string"?e.split(" "):e}function l(e){var t=m[e[h]];return t||(t={},p++,e[h]=p,m[p]=t),t}function n(e,t,i){t||(t=r);if(v)return t.createElement(e);i||(i=l(t));var n;return i.cache[e]?n=i.cache[e].cloneNode():f.test(e)?n=(i.cache[e]=i.createElem(e)).cloneNode():n=i.createElem(e),n.canHaveChildren&&!u.test(e)?i.frag.appendChild(n):n}function t(e,t){e||(e=r);if(v)return e.createDocumentFragment();t=t||l(e);var i=t.frag.cloneNode(),n=0,o=a(),s=o.length;for(;n",d="hidden"in e,v=e.childNodes.length==1||function(){r.createElement("a");var e=r.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(e){d=!0,v=!0}})();var g={elements:c.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:c.shivCSS!==!1,supportsUnknownElements:v,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:s,createElement:n,createDocumentFragment:t};e.html5=g,s(r)}(this,f),u._version=c,u._prefixes=y,u._domPrefixes=x,u._cssomPrefixes=C,u.testProp=function(e){return a([e])},u.testAllProps=n,u.testStyles=M,u.prefixed=function(e,t,i){return t?n(e,t,i):n(e,"pfx")},h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(d?" js "+T.join(" "):""),u}(this,this.document),function(e,d,l){function f(e){return"[object Function]"==n.call(e)}function h(e){return"string"==typeof e}function p(){}function m(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function v(){var e=y.shift();w=1,e?e.t?g(function(){("c"==e.t?E.injectCss:E.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),v()):w=0}function s(i,n,e,t,o,s,r){function a(e){if(!c&&m(l.readyState)&&(f.r=c=1,!w&&v(),l.onload=l.onreadystatechange=null,e)){"img"!=i&&g(function(){x.removeChild(l)},50);for(var t in S[n])S[n].hasOwnProperty(t)&&S[n][t].onload()}}var r=r||E.errorTimeout,l=d.createElement(i),c=0,u=0,f={t:e,s:n,e:o,a:s,x:r};1===S[n]&&(u=1,S[n]=[]),"object"==i?l.data=n:(l.src=n,l.type=i),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){a.call(this,u)},y.splice(t,0,f),"img"!=i&&(u||2===S[n]?(x.insertBefore(l,C?null:b),g(a,r)):S[n].push(l))}function t(e,t,i,n,o){return w=0,t=t||"j",h(e)?s("c"==t?a:r,e,t,this.i++,i,n,o):(y.splice(this.i++,0,e),1==y.length&&v()),this}function c(){var e=E;return e.loader={load:t,i:0},e}var i=d.documentElement,g=e.setTimeout,b=d.getElementsByTagName("script")[0],n={}.toString,y=[],w=0,o="MozAppearance"in i.style,C=o&&!!d.createRange().compareNode,x=C?i:b.parentNode,i=e.opera&&"[object Opera]"==n.call(e.opera),i=!!d.attachEvent&&!i,r=o?"object":i?"script":"img",a=i?"script":r,$=Array.isArray||function(e){return"[object Array]"==n.call(e)},k=[],S={},T={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},u,E;E=function(e){function a(e){var e=e.split("!"),t=k.length,i=e.pop(),n=e.length,i={url:i,origUrl:i,prefixes:e},o,s,r;for(s=0;s=o.breakpoints[i]&&r=o.breakpoints[i]){s("body").removeClass("media-width-"+o.breakpoints[i]);s(window).trigger("exitMedia"+o.breakpoints[i])}if(o.distinct&&e>=o.breakpoints[i]&&ee&&r>0&&!s("body").hasClass("media-width-"+o.breakpoints[i])){s("body").addClass("media-width-"+o.breakpoints[i]);s(window).trigger("enterMedia"+o.breakpoints[i])}}if(r!=e){r=e}},250)}})(jQuery);jQuery(function(){jQuery(window).bind("exitMedia320",function(){});jQuery(window).bind("enterMedia320",function(){});jQuery(window).bind("exitMedia480",function(){});jQuery(window).bind("enterMedia480",function(){});jQuery(window).bind("exitMedia768",function(){});jQuery(window).bind("enterMedia768",function(){});jQuery(window).bind("exitMedia980",function(){});jQuery(window).bind("enterMedia980",function(){});jQuery(window).bind("exitMedia1200",function(){});jQuery(window).bind("enterMedia1200",function(){});jQuery(window).setBreakpoints()});if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(c){"use strict";var o=function(e,t){this.$element=c(e);this.options=c.extend({},o.DEFAULTS,t);this.transitioning=null;if(this.options.parent)this.$parent=c(this.options.parent);if(this.options.toggle)this.toggle()};o.VERSION="3.2.0";o.DEFAULTS={toggle:true};o.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"};o.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var e=c.Event("show.bs.collapse");this.$element.trigger(e);if(e.isDefaultPrevented())return;var t=this.$parent&&this.$parent.find("> .panel > .in");if(t&&t.length){var i=t.data("bs.collapse");if(i&&i.transitioning)return;u.call(t,"hide");i||t.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0);this.transitioning=1;var o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")};if(!c.support.transition)return o.call(this);var s=c.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",c.proxy(o,this)).emulateTransitionEnd(350)[n](this.$element[0][s])};o.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var e=c.Event("hide.bs.collapse");this.$element.trigger(e);if(e.isDefaultPrevented())return;var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse").removeClass("in");this.transitioning=1;var i=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!c.support.transition)return i.call(this);this.$element[t](0).one("bsTransitionEnd",c.proxy(i,this)).emulateTransitionEnd(350)};o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};function u(n){return this.each(function(){var e=c(this);var t=e.data("bs.collapse");var i=c.extend({},o.DEFAULTS,e.data(),typeof n=="object"&&n);if(!t&&i.toggle&&n=="show")n=!n;if(!t)e.data("bs.collapse",t=new o(this,i));if(typeof n=="string")t[n]()})}var e=c.fn.collapse;c.fn.collapse=u;c.fn.collapse.Constructor=o;c.fn.collapse.noConflict=function(){c.fn.collapse=e;return this};c(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t;var i=c(this);var n=i.attr("data-target")||e.preventDefault()||(t=i.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");var o=c(n);var s=o.data("bs.collapse");var r=s?"toggle":i.data();var a=i.attr("data-parent");var l=a&&c(a);if(!s||!s.transitioning){if(l)l.find('[data-toggle="collapse"][data-parent="'+a+'"]').not(i).addClass("collapsed");i[o.hasClass("in")?"addClass":"removeClass"]("collapsed")}u.call(o,r)})}(jQuery);+function(s){"use strict";function o(e,t){var i=s.proxy(this.process,this);this.$body=s("body");this.$scrollElement=s(e).is("body")?s(window):s(e);this.options=s.extend({},o.DEFAULTS,t);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",i);this.refresh();this.process()}o.VERSION="3.2.0";o.DEFAULTS={offset:10};o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};o.prototype.refresh=function(){var n="offset";var o=0;if(!s.isWindow(this.$scrollElement[0])){n="position";o=this.$scrollElement.scrollTop()}this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();var e=this;this.$body.find(this.selector).map(function(){var e=s(this);var t=e.data("target")||e.attr("href");var i=/^#./.test(t)&&s(t);return i&&i.length&&i.is(":visible")&&[[i[n]().top+o,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]);e.targets.push(this[1])})};o.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset;var t=this.getScrollHeight();var i=this.options.offset+t-this.$scrollElement.height();var n=this.offsets;var o=this.targets;var s=this.activeTarget;var r;if(this.scrollHeight!=t){this.refresh()}if(e>=i){return s!=(r=o[o.length-1])&&this.activate(r)}if(s&&e<=n[0]){return s!=(r=o[0])&&this.activate(r)}for(r=n.length;r--;){s!=o[r]&&e>=n[r]&&(!n[r+1]||e<=n[r+1])&&this.activate(o[r])}};o.prototype.activate=function(e){this.activeTarget=e;s(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]';var i=s(t).parents("li").addClass("active");if(i.parent(".dropdown-menu").length){i=i.closest("li.dropdown").addClass("active")}i.trigger("activate.bs.scrollspy")};function t(n){return this.each(function(){var e=s(this);var t=e.data("bs.scrollspy");var i=typeof n=="object"&&n;if(!t)e.data("bs.scrollspy",t=new o(this,i));if(typeof n=="string")t[n]()})}var e=s.fn.scrollspy;s.fn.scrollspy=t;s.fn.scrollspy.Constructor=o;s.fn.scrollspy.noConflict=function(){s.fn.scrollspy=e;return this};s(window).on("load.bs.scrollspy.data-api",function(){s('[data-spy="scroll"]').each(function(){var e=s(this);t.call(e,e.data())})})}(jQuery);+function(o){"use strict";function e(){var e=document.createElement("bootstrap");var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t){if(e.style[i]!==undefined){return{end:t[i]}}}return false}o.fn.emulateTransitionEnd=function(e){var t=false;var i=this;o(this).one("bsTransitionEnd",function(){t=true});var n=function(){if(!t)o(i).trigger(o.support.transition.end)};setTimeout(n,e);return this};o(function(){o.support.transition=e();if(!o.support.transition)return;o.event.special.bsTransitionEnd={bindType:o.support.transition.end,delegateType:o.support.transition.end,handle:function(e){if(o(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);(function(e){"use strict";function i(e){return new RegExp("(^|\\s+)"+e+"(\\s+|$)")}var n,o,s;if("classList"in document.documentElement){n=function(e,t){return e.classList.contains(t)};o=function(e,t){e.classList.add(t)};s=function(e,t){e.classList.remove(t)}}else{n=function(e,t){return i(t).test(e.className)};o=function(e,t){if(!n(e,t)){e.className=e.className+" "+t}};s=function(e,t){e.className=e.className.replace(i(t)," ")}}function t(e,t){var i=n(e,t)?s:o;i(e,t)}var r={hasClass:n,addClass:o,removeClass:s,toggleClass:t,has:n,add:o,remove:s,toggle:t};if(typeof define==="function"&&define.amd){define(r)}else{e.classie=r}})(window);jQuery.cookie=function(e,t,i){if(typeof t!="undefined"){i=i||{};if(t===null){t="";i.expires=-1}var n="";if(i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)){var o;if(typeof i.expires=="number"){o=new Date;o.setTime(o.getTime()+i.expires*24*60*60*1e3)}else{o=i.expires}n="; expires="+o.toUTCString()}var s=i.path?"; path="+i.path:"";var r=i.domain?"; domain="+i.domain:"";var a=i.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),n,s,r,a].join("")}else{var l=null;if(document.cookie&&document.cookie!=""){var c=document.cookie.split(";");for(var u=0;u');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 i=n('');i.append("
"+e+"
");this.append(i);i.css("top",Math.round(this.height()/2-(i.height()-parseInt(i.css("padding-top"))-parseInt(i.css("padding-bottom")))/2)+"px");i.css("left",Math.round(this.width()/2-(i.width()-parseInt(i.css("padding-left"))-parseInt(i.css("padding-right")))/2)+"px");i.show()}};n.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(e){"use strict";function i(e,t){for(var i in t){if(t.hasOwnProperty(i)){e[i]=t[i]}}return e}function t(e,t){this.el=e;this.options=i({},this.options);i(this.options,t);this._init()}t.prototype.options={start:0};t.prototype._init=function(){this.tabs=[].slice.call(this.el.querySelectorAll("nav > ul > li"));this.items=[].slice.call(this.el.querySelectorAll(".content-wrap > section"));this.current=-1;this._show();this._initEvents()};t.prototype._initEvents=function(){var i=this;this.tabs.forEach(function(e,t){e.addEventListener("click",function(e){e.preventDefault();i._show(t)})})};t.prototype._show=function(e){try{if(this.current>=0){this.tabs[this.current].className=this.items[this.current].className=""}this.current=e!=undefined?e:this.options.start>=0&&this.options.start0},u=function(e){return e&&!(e.style.overflow&&e.style.overflow==="hidden")&&(e.clientWidth&&e.scrollWidth>e.clientWidth||e.clientHeight&&e.scrollHeight>e.clientHeight)},D=function(e,t){var i=parseInt(e,10)||0;if(t&&L(e)){i=O.getViewport()[t]/100*i}return Math.ceil(i)},H=function(e,t){return D(e,t)+"px"};j.extend(O,{version:"2.1.5",defaults:{padding:0,margin:50,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:800,pixelRatio:1,autoSize:true,autoHeight:true,autoWidth:true,autoResize:true,autoCenter:!l,fitToView:true,aspectRatio:false,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:true,closeBtn:true,closeClick:false,nextClick:false,mouseWheel:true,autoPlay:false,playSpeed:3e3,preload:3,modal:false,loop:true,ajax:{dataType:"html",headers:{"X-fancyBox":true}},iframe:{scrolling:"auto",preload:true},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:false,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:true,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:true,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{locked:true},title:true},onCancel:j.noop,beforeLoad:j.noop,afterLoad:j.noop,beforeShow:j.noop,afterShow:function(){j(".tooltip").detach()},beforeChange:j.noop,beforeClose:j.noop,afterClose:j.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:false,isOpen:false,isOpened:false,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:false},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(u,f){if(!u){return}if(!j.isPlainObject(f)){f={}}if(false===O.close(true)){return}if(!j.isArray(u)){u=h(u)?j(u).get():[u]}j.each(u,function(e,t){var i={},n,o,s,r,a,l,c;if(j.type(t)==="object"){if(t.nodeType){t=j(t)}if(h(t)){i={href:t.data("fancybox-href")||t.attr("href"),title:t.data("fancybox-title")||t.attr("title"),isDom:true,element:t};if(j.metadata){j.extend(true,i,t.metadata())}}else{i=t}}n=f.href||i.href||(p(t)?t:null);o=f.title!==d?f.title:i.title||"";s=f.content||i.content;r=s?"html":f.type||i.type;if(!r&&i.isDom){r=t.data("fancybox-type");if(!r){a=t.prop("class").match(/fancybox\.(\w+)/);r=a?a[1]:null}}if(p(n)){if(!r){if(O.isImage(n)){r="image"}else if(O.isSWF(n)){r="swf"}else if(n.charAt(0)==="#"){r="inline"}else if(p(t)){r="html";s=t}}if(r==="ajax"){l=n.split(/\s+/,2);n=l.shift();c=l.shift()}}if(!s){if(r==="inline"){if(n){s=j(p(n)?n.replace(/.*(?=#[^\s]+$)/,""):n)}else if(i.isDom){s=t}}else if(r==="html"){s=n}else if(!r&&!n&&i.isDom){r="inline";s=t}}j.extend(i,{href:n,type:r,content:s,title:o,selector:c});u[e]=i});O.opts=j.extend(true,{},O.defaults,f);if(f.keys!==d){O.opts.keys=f.keys?j.extend({},O.defaults.keys,f.keys):false}O.group=u;return O._start(O.opts.index)},cancel:function(){var e=O.coming;if(!e||false===O.trigger("onCancel")){return}O.hideLoading();if(O.ajaxLoad){O.ajaxLoad.abort()}O.ajaxLoad=null;if(O.imgPreload){O.imgPreload.onload=O.imgPreload.onerror=null}if(e.wrap){e.wrap.stop(true,true).trigger("onReset").remove()}O.coming=null;if(!O.current){O._afterZoomOut(e)}},close:function(e){if(j("body").hasClass("be")){var t=j("#view-player>div").attr("id");if(t!="undefined"){if(j("#"+t).hasClass("video-js")){var i=n.getElementById(t);videojs(i).dispose()}}}O.cancel();if(false===O.trigger("beforeClose")){return}O.unbindEvents();if(!O.isActive){return}if(!O.isOpen||e===true){j(".fancybox-wrap").stop(true).trigger("onReset").remove();O._afterZoomOut()}else{O.isOpen=O.isOpened=false;O.isClosing=true;j(".fancybox-item, .fancybox-nav").remove();O.wrap.stop(true,true).removeClass("fancybox-opened");O.transitions[O.current.closeMethod]()}},play:function(e){e=false;var t=function(){clearTimeout(O.player.timer)},i=function(){t();if(O.current&&O.player.isActive){O.player.timer=setTimeout(O.next,O.current.playSpeed)}},n=function(){t();c.unbind(".player");O.player.isActive=false;O.trigger("onPlayEnd")},o=function(){if(O.current&&(O.current.loop||O.current.index=n.index?"next":"prev"];O.router=i||"jumpto";if(n.loop){if(e<0){e=n.group.length+e%n.group.length}e=e%n.group.length}if(n.group[e]!==d){O.cancel();O._start(e)}},reposition:function(e,t){var i=O.current,n=i?i.wrap:null,o;if(n){o=O._getPosition(t);if(e&&e.type==="scroll"){delete o.position;n.stop(true,true).animate(o,200)}else{n.css(o);i.pos=j.extend({},i.dim,o)}}},update:function(t){var i=t&&t.type,n=!i||i==="orientationchange";if(n){clearTimeout(a);a=null}if(!O.isOpen||a){return}a=setTimeout(function(){var e=O.current;if(!e||O.isClosing){return}O.wrap.removeClass("fancybox-tmp");if(n||i==="load"||i==="resize"&&e.autoResize){O._setDimension()}if(!(i==="scroll"&&e.canShrink)){O.reposition(t)}O.trigger("onUpdate");a=null},n&&!l?0:300)},toggle:function(e){if(O.isOpen){O.current.fitToView=j.type(e)==="boolean"?e:!O.current.fitToView;if(l){O.wrap.removeAttr("style").addClass("fancybox-tmp");O.trigger("onUpdate")}O.update()}},hideLoading:function(){c.unbind(".loading");j("#fancybox-loading").remove()},showLoading:function(){var e,t;O.hideLoading();e=j('
').click(O.cancel).appendTo("body");c.bind("keydown.loading",function(e){if((e.which||e.keyCode)===27){e.preventDefault();O.cancel()}});if(!O.defaults.fixed){t=O.getViewport();e.css({position:"absolute",top:t.h*.5+t.y,left:t.w*.5+t.x})}},getViewport:function(){var e=O.current&&O.current.locked||false,t={x:s.scrollLeft(),y:s.scrollTop()};if(e){t.w=e[0].clientWidth;t.h=e[0].clientHeight}else{t.w=l&&i.innerWidth?i.innerWidth:s.width();t.h=l&&i.innerHeight?i.innerHeight:s.height()}return t},unbindEvents:function(){if(O.wrap&&h(O.wrap)){O.wrap.unbind(".fb")}c.unbind(".fb");s.unbind(".fb")},bindEvents:function(){var a=O.current,t;if(!a){return}s.bind("orientationchange.fb"+(l?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),O.update);t=a.keys;if(t){c.bind("keydown.fb",function(i){var n=i.which||i.keyCode,e=i.target||i.srcElement;if(n===27&&O.coming){return false}if(!i.ctrlKey&&!i.altKey&&!i.shiftKey&&!i.metaKey&&!(e&&(e.type||j(e).is("[contenteditable]")))){j.each(t,function(e,t){if(a.group.length>1&&t[n]!==d){O[e](t[n]);i.preventDefault();return false}if(j.inArray(n,t)>-1){O[e]();i.preventDefault();return false}})}})}if(j.fn.mousewheel&&a.mouseWheel){O.wrap.bind("mousewheel.fb",function(e,t,i,n){var o=e.target||null,s=j(o),r=false;while(s.length){if(r||s.is(".fancybox-skin")||s.is(".fancybox-wrap")){break}r=u(s[0]);s=j(s).parent()}if(t!==0&&!r){if(O.group.length>1&&!a.canShrink){if(n>0||i>0){O.prev(n>0?"down":"left")}else if(n<0||i<0){O.next(n<0?"up":"right")}e.preventDefault()}}})}},trigger:function(i,e){var t,n=e||O.coming||O.current;if(!n){return}if(j.isFunction(n[i])){t=n[i].apply(n,Array.prototype.slice.call(arguments,1))}if(t===false){return false}if(n.helpers){j.each(n.helpers,function(e,t){if(t&&O.helpers[e]&&j.isFunction(O.helpers[e][i])){O.helpers[e][i](j.extend(true,{},O.helpers[e].defaults,t),n)}})}c.trigger(i)},isImage:function(e){return p(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return p(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var i={},t,n,o,s,r;e=D(e);t=O.group[e]||null;if(!t){return false}i=j.extend(true,{},O.opts,t);s=i.margin;r=i.padding;if(j.type(s)==="number"){i.margin=[s,s,s,s]}if(j.type(r)==="number"){i.padding=[r,r,r,r]}if(i.modal){j.extend(true,i,{closeBtn:false,closeClick:false,nextClick:false,arrows:false,mouseWheel:false,keys:null,helpers:{overlay:{closeClick:false}}})}if(i.autoSize){i.autoWidth=i.autoHeight=true}if(i.width==="auto"){i.autoWidth=true}if(i.height==="auto"){i.autoHeight=true}i.group=O.group;i.index=e;O.coming=i;if(false===O.trigger("beforeLoad")){O.coming=null;return}o=i.type;n=i.href;if(!o){O.coming=null;if(O.current&&O.router&&O.router!=="jumpto"){O.current.index=e;return O[O.router](O.direction)}return false}O.isActive=true;if(o==="image"||o==="swf"){i.autoHeight=i.autoWidth=false;i.scrolling="visible"}if(o==="image"){i.aspectRatio=true}if(o==="iframe"&&l){i.scrolling="scroll"}i.wrap=j(i.tpl.wrap).addClass("fancybox-"+(l?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+i.wrapCSS).appendTo(i.parent||"body");j.extend(i,{skin:j(".fancybox-skin",i.wrap),outer:j(".fancybox-outer",i.wrap),inner:j(".fancybox-inner",i.wrap)});j.each(["Top","Right","Bottom","Left"],function(e,t){i.skin.css("padding"+t,H(i.padding[e]))});O.trigger("onReady");if(o==="inline"||o==="html"){if(!i.content||!i.content.length){return O._error("content")}}else if(!n){return O._error("href")}if(o==="image"){O._loadImage()}else if(o==="ajax"){O._loadAjax()}else if(o==="iframe"){O._loadIframe()}else{O._afterLoad()}},_error:function(e){j.extend(O.coming,{type:"html",autoWidth:true,autoHeight:true,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:O.coming.tpl.error});O._afterLoad()},_loadImage:function(){var e=O.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null;O.coming.width=this.width/O.opts.pixelRatio;O.coming.height=this.height/O.opts.pixelRatio;O._afterLoad()};e.onerror=function(){this.onload=this.onerror=null;O._error("image")};e.src=O.coming.href;if(e.complete!==true){O.showLoading()}},_loadAjax:function(){var i=O.coming;O.showLoading();O.ajaxLoad=j.ajax(j.extend({},i.ajax,{url:i.href,error:function(e,t){if(O.coming&&t!=="abort"){O._error("ajax",e)}else{O.hideLoading()}},success:function(e,t){if(t==="success"){i.content=e;O._afterLoad()}}}))},_loadIframe:function(){var e=O.coming,t=j(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",l?"auto":e.iframe.scrolling).attr("src",e.href);j(e.wrap).bind("onReset",function(){try{j(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}});if(e.iframe.preload){O.showLoading();t.one("load",function(){j(this).data("ready",1);if(!l){j(this).bind("load.fb",O.update)}j(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();O._afterLoad()})}e.content=t.appendTo(e.inner);if(!e.iframe.preload){O._afterLoad()}},_preloadImages:function(){var e=O.group,t=O.current,i=e.length,n=t.preload?Math.min(t.preload,i-1):0,o,s;for(s=1;s<=n;s+=1){o=e[(t.index+s)%i];if(o.type==="image"&&o.href){(new Image).src=o.href}}},_afterLoad:function(){var e=O.coming,t=O.current,i="fancybox-placeholder",n,o,s,r,a,l;O.hideLoading();if(!e||O.isActive===false){return}if(false===O.trigger("afterLoad",e,t)){e.wrap.stop(true).trigger("onReset").remove();O.coming=null;return}if(t){O.trigger("beforeChange",t);t.wrap.stop(true).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()}O.unbindEvents();n=e;o=e.content;s=e.type;r=e.scrolling;j.extend(O,{wrap:n.wrap,skin:n.skin,outer:n.outer,inner:n.inner,current:n,previous:t});a=n.href;switch(s){case"inline":case"ajax":case"html":if(n.selector){o=j("
").html(o).find(n.selector)}else if(h(o)){if(!o.data(i)){o.data(i,j('
').insertAfter(o).hide())}o=o.show().detach();n.wrap.bind("onReset",function(){if(j(this).find(o).length){o.hide().replaceAll(o.data(i)).data(i,false)}})}break;case"image":o=n.tpl.image.replace("{href}",a);break;case"swf":o='';l="";j.each(n.swf,function(e,t){o+='';l+=" "+e+'="'+t+'"'});o+='";break}if(!(h(o)&&o.parent().is(n.inner))){n.inner.append(o)}O.trigger("beforeShow");n.inner.css("overflow",r==="yes"?"scroll":r==="no"?"hidden":r);O._setDimension();O.reposition();O.isOpen=false;O.coming=null;O.bindEvents();if(!O.isOpened){j(".fancybox-wrap").not(n.wrap).stop(true).trigger("onReset").remove()}else if(t.prevMethod){O.transitions[t.prevMethod]()}O.transitions[O.isOpened?n.nextMethod:n.openMethod]();O._preloadImages()},_setDimension:function(){var e=O.getViewport(),t=0,i=false,n=false,o=O.wrap,s=O.skin,r=O.inner,a=O.current,l=a.width,c=a.height,u=a.minWidth,f=a.minHeight,d=a.maxWidth,h=a.maxHeight,p=a.scrolling,m=a.scrollOutside?a.scrollbarWidth:0,v=a.margin,g=D(v[1]+v[3]),b=D(v[0]+v[2]),y,w,C,x,$,k,S,T,E,A,M,_,z,I,P;o.add(s).add(r).width("auto").height("auto").removeClass("fancybox-tmp");y=D(s.outerWidth(true)-s.width());w=D(s.outerHeight(true)-s.height());C=g+y;x=b+w;$=L(l)?(e.w-C)*D(l)/100:l;k=L(c)?(e.h-x)*D(c)/100:c;if(a.type==="iframe"){I=a.content;if(a.autoHeight&&I.data("ready")===1){try{if(I[0].contentWindow.document.location){r.width($).height(9999);P=I.contents().find("body");if(m){P.css("overflow-x","hidden")}k=P.outerHeight(true)}}catch(e){}}}else if(a.autoWidth||a.autoHeight){r.addClass("fancybox-tmp");if(!a.autoWidth){r.width($)}if(!a.autoHeight){r.height(k)}if(a.autoWidth){$=r.width()}if(a.autoHeight){k=r.height()}r.removeClass("fancybox-tmp")}l=D($);c=D(k);E=$/k;u=D(L(u)?D(u,"w")-C:u);d=D(L(d)?D(d,"w")-C:d);f=D(L(f)?D(f,"h")-x:f);h=D(L(h)?D(h,"h")-x:h);S=d;T=h;if(a.fitToView){d=Math.min(e.w-C,d);h=Math.min(e.h-x,h)}_=e.w-g;z=e.h-b;if(a.aspectRatio){if(l>d){l=d;c=D(l/E)}if(c>h){c=h;l=D(c*E)}if(l_||M>z)&&l>u&&c>f){if(t++>19){break}c=Math.max(f,Math.min(h,c-10));l=D(c*E);if(ld){l=d;c=D(l/E)}r.width(l).height(c);o.width(l+y);A=o.width();M=o.height()}}else{l=Math.max(u,Math.min(l,l-(A-_)));c=Math.max(f,Math.min(c,c-(M-z)))}}if(m&&p==="auto"&&c_||M>z)&&l>u&&c>f;n=a.aspectRatio?lf&&c1){O.inner.css("cursor","pointer").bind("click.fb",function(e){if(!j(e.target).is("a")&&!j(e.target).parent().is("a")){e.preventDefault();O[t.closeClick?"close":"next"]()}})}if(t.closeBtn){j(t.tpl.closeBtn).appendTo(j(".fancybox-inner h3")).bind("click.fb",function(e){e.preventDefault();O.close()})}if(t.arrows&&O.group.length>1){if(t.loop||t.index>0){j(t.tpl.prev).appendTo(O.outer).bind("click.fb",O.prev)}if(t.loop||t.index
').appendTo(O.coming?O.coming.parent:e.parent);this.fixed=false;if(e.fixed&&O.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=true}},open:function(e){var t=this;e=j.extend({},this.defaults,e);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}else{this.create(e)}if(!this.fixed){s.bind("resize.overlay",j.proxy(this.update,this));this.update()}if(e.closeClick){this.overlay.bind("click.overlay",function(e){if(j(e.target).hasClass("fancybox-overlay")){if(O.isActive){O.close()}else{t.close()}return false}})}this.overlay.css(e.css).show()},close:function(){var e,t;s.unbind("resize.overlay");if(this.el.hasClass("fancybox-lock")){j(".fancybox-margin").removeClass("fancybox-margin");e=s.scrollTop();t=s.scrollLeft();this.el.removeClass("fancybox-lock");s.scrollTop(e).scrollLeft(t)}j(".fancybox-overlay").remove().hide();j.extend(this,{overlay:null,fixed:false})},update:function(){var e="100%",t;this.overlay.width(e).height("100%");if(r){t=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth);if(c.width()>t){e=c.width()}}else if(c.width()>s.width()){e=c.width()}this.overlay.width(e).height(c.height())},onReady:function(e,t){var i=this.overlay;j(".fancybox-overlay").stop(true,true);if(!i){this.create(e)}if(e.locked&&this.fixed&&t.fixed){if(!i){this.margin=c.height()>s.height()?j("html").css("margin-right").replace("px",""):false}t.locked=this.overlay.append(t.wrap);t.fixed=false}if(e.showEarly===true){this.beforeShow.apply(this,arguments)}},beforeShow:function(e,t){var i,n;if(t.locked){if(this.margin!==false){j("*").filter(function(){return j(this).css("position")==="fixed"&&!j(this).hasClass("fancybox-overlay")&&!j(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin");this.el.addClass("fancybox-margin")}i=s.scrollTop();n=s.scrollLeft();this.el.addClass("fancybox-lock");s.scrollTop(i).scrollLeft(n)}this.open(e)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(e){if(this.overlay&&!O.coming){this.overlay.fadeOut(e.speedOut,j.proxy(this.close,this))}}};O.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=O.current,i=t.title,n=e.type,o,s;if(j.isFunction(i)){i=i.call(t.element,t)}if(!p(i)||j.trim(i)===""){return}o=j('
'+i+"
");switch(n){case"inside":s=O.skin;break;case"outside":s=O.wrap;break;case"over":s=O.inner;break;default:s=O.skin;o.appendTo("body");if(r){o.width(o.width())}o.wrapInner('');O.current.margin[2]+=Math.abs(D(o.css("margin-bottom")));break}o[e.position==="top"?"prependTo":"appendTo"](s)}};j.fn.fancybox=function(s){var r,a=j(this),l=this.selector||"",e=function(e){var t=j(this).blur(),i=r,n,o;if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&!t.is(".fancybox-wrap")){n=s.groupAttr||"data-fancybox-group";o=t.attr(n);if(!o){n="rel";o=t.get(0)[n]}if(o&&o!==""&&o!=="nofollow"){t=l.length?j(l):a;t=t.filter("["+n+'="'+o+'"]');i=t.index(this)}s.index=i;if(O.open(t,s)!==false){e.preventDefault()}}};s=s||{};r=s.index||0;if(!l||s.live===false){a.unbind("click.fb-start").bind("click.fb-start",e)}else{c.undelegate(l,"click.fb-start").delegate(l+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e)}this.filter("[data-fancybox-start=1]").trigger("click");return this};c.ready(function(){var e,t;if(j.scrollbarWidth===d){j.scrollbarWidth=function(){var e=j('
').appendTo("body"),t=e.children(),i=t.innerWidth()-t.height(99).innerWidth();e.remove();return i}}if(j.support.fixedPosition===d){j.support.fixedPosition=function(){var e=j('
').appendTo("body"),t=e[0].offsetTop===20||e[0].offsetTop===15;e.remove();return t}()}j.extend(O.defaults,{scrollbarWidth:j.scrollbarWidth(),fixed:j.support.fixedPosition,parent:j("body")});e=j(i).width();o.addClass("fancybox-lock-test");t=j(i).width();o.removeClass("fancybox-lock-test")})})(window,document,jQuery);$(document).ready(function(){$("#categories-accordion li").mouseout(function(){t=$(this);setTimeout(function(){if(!t.hasClass("menu-panel-entry-active")){if(!t.find("a.active").hasClass("selected")){t.find("a.active").removeClass("active")}}},1)});$(".menu-panel-entry").click(function(e){var t=$(this).attr("id");if($(this).hasClass("main-menu-panel-entry-active")||t=="account-menu-entry9"||t=="account-menu-entry10"||t=="account-menu-entry11"||t=="account-menu-entry12"||t=="account-menu-entry13"){return}if(typeof $(this).find("a").attr("rel-a")!="undefined"){window.location=$(this).find("a").attr("href");return false}if(typeof $(this).attr("rel-m")!="undefined"){menu_section=$(this).attr("rel-m")}if(typeof $(this).attr("rel-s")!="undefined"){inner_section=$(this).attr("rel-s");if(typeof $("section.filter .viewType").html()=="undefined"||$("#wrapper").hasClass("tpl_search")||$("#wrapper").hasClass("tpl_channel")||$("#wrapper").hasClass("tpl_subs")||$("#sub1-menu li").hasClass("menu-panel-entry-active")){window.location=current_url+menu_section+"/"+inner_section;return false}}if(typeof $(this).attr("rel-usr")!="undefined"){usr=$(this).attr("rel-usr");if(typeof $("section.filter .viewType").html()=="undefined"||$("#categories-accordion li").hasClass("menu-panel-entry-active")||$("#wrapper").hasClass("tpl_channel")||$("#wrapper").hasClass("tpl_subs")||$("#wrapper").hasClass("tpl_browse")||$("#wrapper").hasClass("tpl_search")){window.location=current_url+menu_section+"/"+usr;return false}}if($(this).hasClass("menu-panel-entry-active")&&!$(".menu-panel-entry-sub").hasClass("menu-panel-entry-sub-active"))return false;if(!$("#wrapper").hasClass("tpl_files-off")&&!$("#wrapper").hasClass("tpl_manage_channel")&&!$("#wrapper").hasClass("tpl_account")&&!$("#wrapper").hasClass("tpl_messages")){$("a.dcjq-parent.active").removeClass("active");$(".menu-panel-entry-sub, .menu-panel-entry").removeClass("menu-panel-entry-sub-active");$(".menu-panel-entry, .pl-entry").removeClass("menu-panel-entry-active")}else{$("#categories-accordion a.dcjq-parent.active").removeClass("active");$(".menu-panel-entry-sub, #categories-accordion .menu-panel-entry").removeClass("menu-panel-entry-sub-active");$("#categories-accordion .menu-panel-entry, .pl-entry").removeClass("menu-panel-entry-active")}$(this).find("a:first").addClass("dcjq-parent active");$(this).addClass("menu-panel-entry-active");if(typeof fe_mask!="undefined"){if(typeof $("#file-sort-div-val").val()!="undefined"){var i="&do="+$("#file-sort-div-val").val()+"&for="+($("#type-menu-val").val()!="sort-"?$("#type-menu-val").val():$("#file-type-div-val").val())}else if(typeof s_url!=="undefined"){if(s_url=="channels"){var i="&sort="+$(".sort-active").attr("id")}if(s_url=="search"){var i="&sort="+$(".sort-active").attr("id")}}else var i="";wrapLoad(current_url+menu_section+"?s="+t+i,t)}else{var n="";if(t=="backend-menu-entry6"||t=="backend-menu-entry11"){n="&u="+$("#p-user-key").val()}wrapLoad(current_url+menu_section+"?s="+t+n)}});$(".menu-panel-entry-sub").on("click",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=true;var t=$(this).attr("id");var i=$("#"+t+" span.bold").text();if($(this).hasClass("menu-panel-entry-sub-active")&&!$(".menu-panel-entry-sub").hasClass("menu-panel-entry-sub-active"))return false;if($(this).hasClass("menu-panel-entry-sub")&&$(this).hasClass("menu-panel-entry-active"))return false;if(!$("#wrapper").hasClass("tpl_files")&&!$("#wrapper").hasClass("tpl_manage_channel")&&!$("#wrapper").hasClass("tpl_account")&&!$("#wrapper").hasClass("tpl_messages")){$("a.dcjq-parent.active").removeClass("active");$(".menu-panel-entry-sub, .menu-panel-entry").removeClass("menu-panel-entry-sub-active");$(".menu-panel-entry").removeClass("menu-panel-entry-active")}else{$("#categories-accordion a.dcjq-parent.active").removeClass("active");$(".menu-panel-entry-sub, #categories-accordion .menu-panel-entry").removeClass("menu-panel-entry-sub-active");$("#categories-accordion .menu-panel-entry").removeClass("menu-panel-entry-active")}$(this).addClass("menu-panel-entry-active");view_mode_type=$(".view-mode-type.active").attr("id").replace("view-mode-","");id=jQuery(".content-current .main-view-mode-"+view_mode_type+".active").attr("id");type=jQuery(".content-current .main-view-mode-"+view_mode_type+".active").val();type_all=type+"-"+view_mode_type;nr=id.split("-");idnr=nr[3];m=idnr==1?4:idnr==3?6:4;c_url=current_url+menu_section+"?s="+t;c_url+="&p=0&sort="+type+"&t="+view_mode_type;if($("#section-playlists").hasClass("active")||$("#ch-pl").hasClass("tab-current")){c_url+="&pp=1";if($("#ch-pl").hasClass("tab-current")){c_url+="&ch"}}wrapLoad(c_url,t)})});function wrapLoad(e,t){if(typeof s_url!="undefined"&&s_url=="uactivity"&&typeof $("#uact-id").val()!="undefined"){var i=".fancybox-inner"}else{if($("#channel-tabs #section-playlists").hasClass("content-current")){var i="#channel-tabs > .content-wrap"}else if(typeof $(".filter-link").html()!=="undefined"){var i="#ct-wrapper #section-playlists"}else{var i="#siteContent"}}if(typeof t!=="undefined"&&t=="page"){i=p_str;if($(".content-current div[id=paging-bottom]").length>1){$(".content-current #paging-bottom:last").detach()}}$(i).mask("");$(i).load(e,function(){if(typeof $(".btn-group.viewType").html()!="undefined"&&typeof $("section.filter").html()!="undefined"){setTimeout(function(){ViewModeSizeSetFunctions()},500);setTimeout(function(){thumbFade()},100)}$(i).unmask();if($("body").hasClass("media-width-480")||$("body").hasClass("media-width-320")){smoothscrolltop()}if($(window).width()<=768&&$(".sidebar-container").is(":visible")){$(".sidebar-container").hide("fast")}if(typeof linkify!="undefined"){$(".comment_h p,p.p-info,pre.hp-pre,.full-details-holder p,.msg-body pre").linkify({defaultProtocol:"https",validate:{email:function(e){return false}},ignoreTags:["script","style"]})}})}function smoothscrolltop(){var e=document.documentElement.scrollTop||document.body.scrollTop;if(e>0){window.requestAnimationFrame(smoothscrolltop);window.scrollTo(0,e-e/5)}}function postLoad(e,t,i){var n="#siteContent";$(n).mask("");$.post(e,$(t).serialize(),function(e){$(n).html(e);$(n).unmask()})}function mobilecheck(){var t=false;(function(e){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))t=true})(navigator.userAgent||navigator.vendor||window.opera);return t}function enterSubmit(e,t){$(e).bind("keydown",function(e){if(e.keyCode==13){$(t).click();return false}})}function display_c(){return;var e=1e3;mytime=setTimeout("display_ct()",e)}function display_ct(){return;var e=new Date;var t=e.getHours();var i=e.getMinutes();var n=e.getSeconds();var o=e.getYear();var s=e.getMonth();var r=e.getDate();i=(i<10?"0":"")+i;n=(n<10?"0":"")+n;var a=t<12?"AM":"PM";t=t>12?t-12:t;t=t==0?12:t;var l=o+1900;var c=s+1;var u=l+"/"+c+"/"+r+" "+t+":"+i+":"+n+" "+a;document.getElementById("clock").firstChild.nodeValue=u;tt=display_c()}(function(a,t,e){"use strict";var n=t.Modernizr,i=a("body");a.DLMenu=function(e,t){this.$el=a(t);this._init(e)};a.DLMenu.defaults={animationClasses:{classin:"dl-animate-in-1",classout:"dl-animate-out-1"},onLevelClick:function(e,t){return false},onLinkClick:function(e,t){return false}};a.DLMenu.prototype={_init:function(e){this.options=a.extend(true,{},a.DLMenu.defaults,e);this._config();var t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.animEndEventName=t[n.prefixed("animation")]+".dlmenu";this.transEndEventName=i[n.prefixed("transition")]+".dlmenu",this.supportAnimations=n.cssanimations,this.supportTransitions=n.csstransitions;this._initEvents()},_config:function(){this.open=false;this.$trigger=this.$el.children(".dl-trigger");this.$menu=this.$el.children("ul.dl-menu");this.$menuitems=this.$menu.find("li:not(.dl-back)");this.$el.find("ul.dl-submenu").prepend('
  • back
  • ');this.$back=this.$menu.find("li.dl-back")},_initEvents:function(){var r=this;this.$trigger.on("click.dlmenu",function(){if(r.open){r._closeMenu()}else{r._openMenu()}return false});this.$menuitems.on("click.dlmenu",function(e){e.stopPropagation();var t=a(this),i=t.children("ul.dl-submenu");if(i.length>0){var n=i.clone().css("opacity",0).insertAfter(r.$menu),o=function(){r.$menu.off(r.animEndEventName).removeClass(r.options.animationClasses.classout).addClass("dl-subview");t.addClass("dl-subviewopen").parents(".dl-subviewopen:first").removeClass("dl-subviewopen").addClass("dl-subview");n.remove()};setTimeout(function(){n.addClass(r.options.animationClasses.classin);r.$menu.addClass(r.options.animationClasses.classout);if(r.supportAnimations){r.$menu.on(r.animEndEventName,o)}else{o.call()}r.options.onLevelClick(t,t.children("a:first").text())});return false}else{r.options.onLinkClick(t,e)}});this.$back.on("click.dlmenu",function(e){var t=a(this),i=t.parents("ul.dl-submenu:first"),n=i.parent(),o=i.clone().insertAfter(r.$menu);var s=function(){r.$menu.off(r.animEndEventName).removeClass(r.options.animationClasses.classin);o.remove()};setTimeout(function(){o.addClass(r.options.animationClasses.classout);r.$menu.addClass(r.options.animationClasses.classin);if(r.supportAnimations){r.$menu.on(r.animEndEventName,s)}else{s.call()}n.removeClass("dl-subviewopen");var e=t.parents(".dl-subview:first");if(e.is("li")){e.addClass("dl-subviewopen")}e.removeClass("dl-subview")});return false})},closeMenu:function(){if(this.open){this._closeMenu()}},_closeMenu:function(){var e=this,t=function(){e.$menu.off(e.transEndEventName);e._resetMenu()};this.$menu.removeClass("dl-menuopen");this.$menu.addClass("dl-menu-toggle");this.$trigger.removeClass("dl-active");a(".main-filter-mode").removeClass("active-open");if(this.supportTransitions){this.$menu.on(this.transEndEventName,t)}else{t.call()}this.open=false},openMenu:function(){if(!this.open){this._openMenu()}},_openMenu:function(){var e=this;i.off("click").on("click.dlmenu",function(){e._closeMenu()});this.$menu.addClass("dl-menuopen dl-menu-toggle").on(this.transEndEventName,function(){a(this).removeClass("dl-menu-toggle")});this.$trigger.addClass("dl-active");this.open=true;a("#channel-search-term").focus();a(".main-filter-mode").addClass("active-open");a("#channel-search-term").on("keyup",function(e){e.preventDefault()})},_resetMenu:function(){this.$menu.removeClass("dl-subview");this.$menuitems.removeClass("dl-subview dl-subviewopen");a(".main-filter-mode").removeClass("active-open")}};var o=function(e){if(t.console){t.console.error(e)}};a.fn.dlmenu=function(t){if(typeof t==="string"){var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=a.data(this,"dlmenu");if(!e){o("cannot call methods on dlmenu prior to initialization; "+"attempted to call method '"+t+"'");return}if(!a.isFunction(e[t])||t.charAt(0)==="_"){o("no such method '"+t+"' for dlmenu instance");return}e[t].apply(e,i)})}else{this.each(function(){var e=a.data(this,"dlmenu");if(e){e._init()}else{e=a.data(this,"dlmenu",new a.DLMenu(t,this))}})}return this}})(jQuery,window);(function(e){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof exports==="object"&&typeof require==="function"){e(require("jquery"))}else{e(jQuery)}})(function(p){"use strict";var n=function(){return{escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");t.className=e;t.style.position="absolute";t.style.display="none";return t}}}(),i={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};function s(e,t){var i=function(){},n=this,o={ajaxSettings:{},autoSelectFirst:false,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:s.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:false,onSearchStart:i,onSearchComplete:i,onSearchError:i,preserveInput:false,containerClass:"autocomplete-suggestions",tabDisabled:false,dataType:"text",currentRequest:null,triggerSelectOnValidInput:true,preventBadQueries:true,lookupFilter:function(e,t,i){return e.value.toLowerCase().indexOf(i)!==-1},paramName:"query",transformResult:function(e){return typeof e==="string"?p.parseJSON(e):e},showNoSuggestionNotice:false,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:false};n.element=e;n.el=p(e);n.suggestions=[];n.badQueries=[];n.selectedIndex=-1;n.currentValue=n.element.value;n.intervalId=0;n.cachedResponse={};n.onChangeInterval=null;n.onChange=null;n.isLocal=false;n.suggestionsContainer=null;n.noSuggestionsContainer=null;n.options=p.extend({},o,t);n.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};n.hint=null;n.hintValue="";n.selection=null;n.initialize();n.setOptions(t)}s.utils=n;p.Autocomplete=s;s.formatResult=function(e,t){var i="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(i,"gi"),"$1").replace(/'/g,"'").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")};s.prototype={killerFn:null,initialize:function(){var t=this,e="."+t.classes.suggestion,i=t.classes.selected,n=t.options,o;t.element.setAttribute("autocomplete","off");t.killerFn=function(e){if(p(e.target).closest("."+t.options.containerClass).length===0){t.killSuggestions();t.disableKillerFn()}};t.noSuggestionsContainer=p('
    ').html(this.options.noSuggestionNotice).get(0);t.suggestionsContainer=s.utils.createNode(n.containerClass);o=p(t.suggestionsContainer);o.appendTo(n.appendTo);if(n.width!=="auto"){o.width(n.width)}o.on("mouseover.autocomplete",e,function(){t.activate(p(this).data("index"))});o.on("mouseout.autocomplete",function(){t.selectedIndex=-1;o.children("."+i).removeClass(i)});o.on("click.autocomplete",e,function(){t.select(p(this).data("index"))});t.fixPositionCapture=function(){if(t.visible){t.fixPosition()}};p(window).on("resize.autocomplete",t.fixPositionCapture);t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)});t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)});t.el.on("blur.autocomplete",function(){t.onBlur()});t.el.on("focus.autocomplete",function(){t.onFocus()});t.el.on("change.autocomplete",function(e){t.onKeyUp(e)});t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition();if(e.options.minChars===0&&e.el.val().length===0){e.onValueChange()}},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;if(e.currentRequest){e.currentRequest.abort();e.currentRequest=null}},setOptions:function(e){var t=this,i=t.options;p.extend(i,e);t.isLocal=p.isArray(i.lookup);if(t.isLocal){i.lookup=t.verifySuggestionsFormat(i.lookup)}i.orientation=t.validateOrientation(i.orientation,"bottom");p(t.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){var e=this;e.disabled=true;clearInterval(e.onChangeInterval);e.abortAjax()},enable:function(){this.disabled=false},fixPosition:function(){var e=this,t=p(e.suggestionsContainer),i=t.parent().get(0);if(i!==document.body&&!e.options.forceFixPosition){return}var n=e.options.orientation,o=t.outerHeight(),s=e.el.outerHeight(),r=e.el.offset(),a={top:r.top,left:r.left};if(n==="auto"){var l=p(window).height(),c=p(window).scrollTop(),u=-c+r.top-o,f=c+l-(r.top+s+o);n=Math.max(u,f)===u?"top":"bottom"}if(n==="top"){a.top+=-o}else{a.top+=s}if(i!==document.body){var d=t.css("opacity"),h;if(!e.visible){t.css("opacity",0).show()}h=t.offsetParent().offset();a.top-=h.top;a.left-=h.left;if(!e.visible){t.css("opacity",d).hide()}}if(e.options.width==="auto"){a.width=e.el.outerWidth()-2+"px"}t.css(a)},enableKillerFn:function(){var e=this;p(document).on("click.autocomplete",e.killerFn)},disableKillerFn:function(){var e=this;p(document).off("click.autocomplete",e.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions();e.intervalId=window.setInterval(function(){e.hide();e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this,t=e.el.val().length,i=e.element.selectionStart,n;if(typeof i==="number"){return i===t}if(document.selection){n=document.selection.createRange();n.moveStart("character",-t);return t===n.text.length}return true},onKeyPress:function(e){var t=this;if(!t.disabled&&!t.visible&&e.which===i.DOWN&&t.currentValue){t.suggest();return}if(t.disabled||!t.visible){return}switch(e.which){case i.ESC:t.el.val(t.currentValue);t.hide();break;case i.RIGHT:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case i.TAB:if(t.hint&&t.options.onHint){t.selectHint();return}if(t.selectedIndex===-1){t.hide();return}t.select(t.selectedIndex);if(t.options.tabDisabled===false){return}break;case i.RETURN:if(t.selectedIndex===-1){t.hide();return}t.select(t.selectedIndex);break;case i.UP:t.moveUp();break;case i.DOWN:t.moveDown();break;default:return}e.stopImmediatePropagation();e.preventDefault()},onKeyUp:function(e){var t=this;if(t.disabled){return}switch(e.which){case i.UP:case i.DOWN:return}clearInterval(t.onChangeInterval);if(t.currentValue!==t.el.val()){t.findBestHint();if(t.options.deferRequestBy>0){t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy)}else{t.onValueChange()}}},onValueChange:function(){var e=this,t=e.options,i=e.el.val(),n=e.getQuery(i);if(e.selection&&e.currentValue!==n){e.selection=null;(t.onInvalidateSelection||p.noop).call(e.element)}clearInterval(e.onChangeInterval);e.currentValue=i;e.selectedIndex=-1;if(t.triggerSelectOnValidInput&&e.isExactMatch(n)){e.select(0);return}if(n.lengths){r.suggestions=r.suggestions.slice(0,s)}return r},getSuggestions:function(n){var e,o=this,s=o.options,t=s.serviceUrl,i,r,a;s.params[s.paramName]=n;i=s.ignoreParams?null:s.params;if(s.onSearchStart.call(o.element,s.params)===false){return}if(p.isFunction(s.lookup)){s.lookup(n,function(e){o.suggestions=e.suggestions;o.suggest();s.onSearchComplete.call(o.element,n,e.suggestions)});return}if(o.isLocal){e=o.getSuggestionsLocal(n)}else{if(p.isFunction(t)){t=t.call(o.element,n)}r=t+"?"+p.param(i||{});e=o.cachedResponse[r]}if(e&&p.isArray(e.suggestions)){o.suggestions=e.suggestions;o.suggest();s.onSearchComplete.call(o.element,n,e.suggestions)}else if(!o.isBadQuery(n)){o.abortAjax();a={url:t,data:i,type:s.type,dataType:s.dataType};p.extend(a,s.ajaxSettings);o.currentRequest=p.ajax(a).done(function(e){var t;o.currentRequest=null;t=s.transformResult(e,n);o.processResponse(t,n,r);s.onSearchComplete.call(o.element,n,t.suggestions)}).fail(function(e,t,i){s.onSearchError.call(o.element,n,e,t,i)})}else{s.onSearchComplete.call(o.element,n,[])}},isBadQuery:function(e){if(!this.options.preventBadQueries){return false}var t=this.badQueries,i=t.length;while(i--){if(e.indexOf(t[i])===0){return true}}return false},hide:function(){var e=this,t=p(e.suggestionsContainer);if(p.isFunction(e.options.onHide)&&e.visible){e.options.onHide.call(e.element,t)}e.visible=false;e.selectedIndex=-1;clearInterval(e.onChangeInterval);p(e.suggestionsContainer).hide();e.signalHint(null)},suggest:function(){if(this.suggestions.length===0){if(this.options.showNoSuggestionNotice){this.noSuggestions()}else{this.hide()}return}var e=this,t=e.options,n=t.groupBy,i=t.formatResult,o=e.getQuery(e.currentValue),s=e.classes.suggestion,r=e.classes.selected,a=p(e.suggestionsContainer),l=p(e.noSuggestionsContainer),c=t.beforeRender,u="",f,d=function(e,t){var i=e.data[n];if(f===i){return""}f=i;return'
    '+f+"
    "};if(t.triggerSelectOnValidInput&&e.isExactMatch(o)){e.select(0);return}p.each(e.suggestions,function(e,t){if(n){u+=d(t,o,e)}u+='
    '+i(t,o)+"
    "});this.adjustContainerWidth();l.detach();a.html(u);if(p.isFunction(c)){c.call(e.element,a)}e.fixPosition();a.show();if(t.autoSelectFirst){e.selectedIndex=0;a.scrollTop(0);a.children("."+s).first().addClass(r)}e.visible=true;e.findBestHint()},noSuggestions:function(){var e=this,t=p(e.suggestionsContainer),i=p(e.noSuggestionsContainer);this.adjustContainerWidth();i.detach();t.empty();t.append(i);e.fixPosition();t.show();e.visible=true},adjustContainerWidth:function(){var e=this,t=e.options,i,n=p(e.suggestionsContainer);if(t.width==="auto"){i=e.el.outerWidth()-2;n.width(i>0?i:300)}},findBestHint:function(){var e=this,n=e.el.val().toLowerCase(),o=null;if(!n){return}p.each(e.suggestions,function(e,t){var i=t.value.toLowerCase().indexOf(n)===0;if(i){o=t}return!i});e.signalHint(o)},signalHint:function(e){var t="",i=this;if(e){t=i.currentValue+e.value.substr(i.currentValue.length)}if(i.hintValue!==t){i.hintValue=t;i.hint=e;(this.options.onHint||p.noop)(t)}},verifySuggestionsFormat:function(e){if(e.length&&typeof e[0]==="string"){return p.map(e,function(e){return{value:e,data:null}})}return e},validateOrientation:function(e,t){e=p.trim(e||"").toLowerCase();if(p.inArray(e,["auto","bottom","top"])===-1){e=t}return e},processResponse:function(e,t,i){var n=this,o=n.options;e.suggestions=n.verifySuggestionsFormat(e.suggestions);if(!o.noCache){n.cachedResponse[i]=e;if(o.preventBadQueries&&e.suggestions.length===0){n.badQueries.push(t)}}if(t!==n.getQuery(n.currentValue)){return}n.suggestions=e.suggestions;n.suggest()},activate:function(e){var t=this,i,n=t.classes.selected,o=p(t.suggestionsContainer),s=o.find("."+t.classes.suggestion);o.find("."+n).removeClass(n);t.selectedIndex=e;if(t.selectedIndex!==-1&&s.length>t.selectedIndex){i=s.get(t.selectedIndex);p(i).addClass(n);return i}return null},selectHint:function(){var e=this,t=p.inArray(e.hint,e.suggestions);e.select(t)},select:function(e){var t=this;t.hide();t.onSelect(e)},moveUp:function(){var e=this;if(e.selectedIndex===-1){return}if(e.selectedIndex===0){p(e.suggestionsContainer).children().first().removeClass(e.classes.selected);e.selectedIndex=-1;e.el.val(e.currentValue);e.findBestHint();return}e.adjustScroll(e.selectedIndex-1)},moveDown:function(){var e=this;if(e.selectedIndex===e.suggestions.length-1){return}e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(e){var t=this,i=t.activate(e);if(!i){return}var n,o,s,r=p(i).outerHeight();n=i.offsetTop;o=p(t.suggestionsContainer).scrollTop();s=o+t.options.maxHeight-r;if(ns){p(t.suggestionsContainer).scrollTop(n-t.options.maxHeight+r)}if(!t.options.preserveInput){t.el.val(t.getValue(t.suggestions[e].value))}t.signalHint(null)},onSelect:function(e){var t=this,i=t.options.onSelect,n=t.suggestions[e];t.currentValue=t.getValue(n.value);if(t.currentValue!==t.el.val()&&!t.options.preserveInput){t.el.val(t.currentValue)}t.signalHint(null);t.suggestions=[];t.selection=n;if(p.isFunction(i)){i.call(t.element,n)}},getValue:function(e){var t=this,i=t.options.delimiter,n,o;if(!i){return e}n=t.currentValue;o=n.split(i);if(o.length===1){return e}return n.substr(0,n.length-o[o.length-1].length)+e},dispose:function(){var e=this;e.el.off(".autocomplete").removeData("autocomplete");e.disableKillerFn();p(window).off("resize.autocomplete",e.fixPositionCapture);p(e.suggestionsContainer).remove()}};p.fn.autocomplete=p.fn.devbridgeAutocomplete=function(i,n){var o="autocomplete";if(arguments.length===0){return this.first().data(o)}return this.each(function(){var e=p(this),t=e.data(o);if(typeof i==="string"){if(t&&typeof t[i]==="function"){t[i](n)}}else{if(t&&t.dispose){t.dispose()}t=new s(this,i);e.data(o,t)}})}});$(document).ready(function(){setTimeout(function(){var n=0;var e=$("[rel=tooltip]"),o=false,s=false,t=false;if($("body").hasClass("is-mobile"))return;$(document).on({mouseenter:function(e){o=$(this);tip=o.attr("title");s=$('
    ');if(!tip||tip=="")return false;$(".tooltip").detach();o.removeAttr("title");s.css("opacity",0).html(tip).appendTo("body");var t=function(){if($(window).width()$(window).width()){e=o.offset().left-s.outerWidth()+o.outerWidth()/2+20;s.addClass("right")}else s.removeClass("right");if(t<0){var t=o.offset().top+o.outerHeight();s.addClass("top")}else s.removeClass("top");if(o.hasClass("top-notif")){e=e-7}if(o.hasClass("top-upload")){if(typeof $("#top-login-form").html()!="undefined"){e=e-82;t=t+15}else{e=e-(getWidth()<701?23:55)}}s.css({left:e,top:t}).animate({top:"+=10",opacity:1},n)};t();$(window).resize(t);var i=function(){tip=s.html();s.animate({top:"-=10",opacity:0},n,function(){$(this).remove()});o.attr("title",tip)};o.bind("mouseleave",i);s.bind("click",i)}},"[rel=tooltip]")},1e3)});(function(s){var n=true;s.fn.truncate=function(e){var o=s.extend({},s.fn.truncate.defaults,e);s(this).each(function(){var e=s.trim(a(s(this).text())).length;if(e<=o.max_length)return;var t=o.max_length-o.more.length-3;var i=r(this,t);var n=s(this).hide();i.insertAfter(n);l(i).append(' '+o.more+"...");c(n).append(' '+o.less+"...");i.find("a:last").click(function(){i.hide();n.show();return false});n.find("a:last").click(function(){i.show();n.hide();return false})})};s.fn.truncate.defaults={max_length:100,more:"…more",less:"less"};function r(e,t){return e.nodeType==3?o(e,t):i(e,t)}function i(e,t){var e=s(e);var i=e.clone().empty();var n;e.contents().each(function(){var e=t-i.text().length;if(e==0)return;n=r(this,e);if(n)i.append(n)});return i}function o(e,t){var i=a(e.data);if(n)i=i.replace(/^ /,"");n=!!i.match(/ $/);var i=i.slice(0,t);i=s("
    ").text(i).html();return i}function a(e){return e.replace(/\s+/g," ")}function l(e){var t=s(e);var i=t.children(":last");if(!i)return e;var n=i.css("display");if(!n||n=="inline")return t;return l(i)}function c(e){var t=s(e);var i=t.children(":last");if(i&&i.is("p"))return i;return e}})(jQuery);jQuery(document).on({click:function(e){$("i.menu-trigger").click()}},".dark-bg");function vpmenu(){if(!$(".sidebar-container").hasClass("menu-slide-in")){$(".sidebar-container").show(0,function(){$(".sidebar-container-off").customScrollbar({skin:"default-skin",hScroll:false,updateOnWindowResize:true,preventDefaultScroll:true})}).addClass("menu-slide-in").removeClass("menu-slide-out");$(".inner-block").addClass("with-menu");$("#ct-header-bottom").removeClass("no-menu");$("footer").addClass("with-menu");u="?m=";$("#wrapper").removeClass("g5");if($("#wrapper").hasClass("tpl_view"))$(".dark-overlay").removeClass("no-display").addClass("dark-bg")}else{$("#wrapper").addClass("g5");$(".sidebar-container").removeClass("menu-slide-in").addClass("menu-slide-out");$(".inner-block").removeClass("with-menu");$("#ct-header-bottom").addClass("no-menu");$("footer").removeClass("with-menu");u="?n=";if($("#wrapper").hasClass("tpl_view"))$(".dark-overlay").addClass("no-display").removeClass("dark-bg")}if(typeof SizeSetFunctions=="function"){SizeSetFunctions()}else if(typeof dinamicSizeSetFunction_view=="function"){setTimeout(function(){dinamicSizeSetFunction_view()},1)}$(".owl-carousel").each(function(){var e=$(this);var t=e.data("owlCarousel");t.onResize()})}function stmenu(){if(!$(".sidebar-container").is(":visible")){$(".sidebar-container").stop().show(0,function(){$(".sidebar-container-off").customScrollbar({skin:"default-skin",hScroll:false,updateOnWindowResize:true,preventDefaultScroll:true})});$(".inner-block").addClass("with-menu");$("#ct-header-bottom").removeClass("no-menu");$("footer").addClass("with-menu");u="?m=";$("#wrapper").removeClass("g5");if($("#wrapper").hasClass("tpl_view"))$(".dark-overlay").removeClass("no-display").addClass("dark-bg")}else{$("#wrapper").addClass("g5");$(".sidebar-container").stop().hide();$(".inner-block").removeClass("with-menu");$("#ct-header-bottom").addClass("no-menu");$("footer").removeClass("with-menu");u="?n=";if($("#wrapper").hasClass("tpl_view"))$(".dark-overlay").addClass("no-display").removeClass("dark-bg")}if(typeof SizeSetFunctions=="function"){SizeSetFunctions()}else if(typeof dinamicSizeSetFunction_view=="function"){setTimeout(function(){dinamicSizeSetFunction_view()},1)}$(".owl-carousel").each(function(){var e=$(this);var t=e.data("owlCarousel");t.onResize()});$("#menu-trigger-response").load(current_url+""+u)}$(document).ready(function(){$("#notifications-box-off").customScrollbar({skin:"default-skin",hScroll:false,updateOnWindowResize:true,preventDefaultScroll:true});$("i.menu-trigger").click(function(){if($("#wrapper").hasClass("tpl_view")){vpmenu()}else{stmenu()}})});(function(l){l.fn.customScrollbar=function(t,i){var n={skin:undefined,hScroll:true,vScroll:true,updateOnWindowResize:false,animationSpeed:300,onCustomScroll:undefined,swipeSpeed:1,wheelSpeed:40,fixedThumbWidth:undefined,fixedThumbHeight:undefined,preventDefaultScroll:false};var o=function(e,t){this.$element=l(e);this.options=t;this.addScrollableClass();this.addSkinClass();this.addScrollBarComponents();if(this.options.vScroll)this.vScrollbar=new s(this,new a);if(this.options.hScroll)this.hScrollbar=new s(this,new r);this.$element.data("scrollable",this);this.initKeyboardScrolling();this.bindEvents()};o.prototype={addScrollableClass:function(){if(!this.$element.hasClass("scrollable")){this.scrollableAdded=true;this.$element.addClass("scrollable")}},removeScrollableClass:function(){if(this.scrollableAdded)this.$element.removeClass("scrollable")},addSkinClass:function(){if(typeof this.options.skin=="string"&&!this.$element.hasClass(this.options.skin)){this.skinClassAdded=true;this.$element.addClass(this.options.skin)}},removeSkinClass:function(){if(this.skinClassAdded)this.$element.removeClass(this.options.skin)},addScrollBarComponents:function(){this.assignViewPort();if(this.$viewPort.length==0){this.$element.wrapInner('
    ');this.assignViewPort();this.viewPortAdded=true}this.assignOverview();if(this.$overview.length==0){this.$viewPort.wrapInner('
    ');this.assignOverview();this.overviewAdded=true}this.addScrollBar("vertical","prepend");this.addScrollBar("horizontal","append")},removeScrollbarComponents:function(){this.removeScrollbar("vertical");this.removeScrollbar("horizontal");if(this.overviewAdded)this.$element.unwrap();if(this.viewPortAdded)this.$element.unwrap()},removeScrollbar:function(e){if(this[e+"ScrollbarAdded"])this.$element.find(".scroll-bar."+e).remove()},assignViewPort:function(){this.$viewPort=this.$element.find(".viewport")},assignOverview:function(){this.$overview=this.$viewPort.find(".overview")},addScrollBar:function(e,t){if(this.$element.find(".scroll-bar."+e).length==0){this.$element[t]("
    ");this[e+"ScrollbarAdded"]=true}},resize:function(e){if(this.vScrollbar)this.vScrollbar.resize(e);if(this.hScrollbar)this.hScrollbar.resize(e)},scrollTo:function(e){if(this.vScrollbar)this.vScrollbar.scrollToElement(e);if(this.hScrollbar)this.hScrollbar.scrollToElement(e)},scrollToXY:function(e,t){this.scrollToX(e);this.scrollToY(t)},scrollToX:function(e){if(this.hScrollbar)this.hScrollbar.scrollOverviewTo(e,true)},scrollToY:function(e){if(this.vScrollbar)this.vScrollbar.scrollOverviewTo(e,true)},remove:function(){this.removeScrollableClass();this.removeSkinClass();this.removeScrollbarComponents();this.$element.data("scrollable",null);this.removeKeyboardScrolling();if(this.vScrollbar)this.vScrollbar.remove();if(this.hScrollbar)this.hScrollbar.remove()},setAnimationSpeed:function(e){this.options.animationSpeed=e},isInside:function(e,t){var i=l(e);var n=l(t);var o=i.offset();var s=n.offset();return o.top>=s.top&&o.left>=s.left&&o.top+i.height()<=s.top+n.height()&&o.left+i.width()<=s.left+n.width()},initKeyboardScrolling:function(){var t=this;this.elementKeydown=function(e){if(document.activeElement===t.$element[0]){if(t.vScrollbar)t.vScrollbar.keyScroll(e);if(t.hScrollbar)t.hScrollbar.keyScroll(e)}};this.$element.attr("tabindex","-1").keydown(this.elementKeydown)},removeKeyboardScrolling:function(){this.$element.removeAttr("tabindex").unbind("keydown",this.elementKeydown)},bindEvents:function(){if(this.options.onCustomScroll)this.$element.on("customScroll",this.options.onCustomScroll)}};var s=function(e,t){this.scrollable=e;this.sizing=t;this.$scrollBar=this.sizing.scrollBar(this.scrollable.$element);this.$thumb=this.$scrollBar.find(".thumb");this.setScrollPosition(0,0);this.resize();this.initMouseMoveScrolling();this.initMouseWheelScrolling();this.initTouchScrolling();this.initMouseClickScrolling();this.initWindowResize()};s.prototype={resize:function(e){this.scrollable.$viewPort.height(this.scrollable.$element.height());this.sizing.size(this.scrollable.$viewPort,this.sizing.size(this.scrollable.$element));this.viewPortSize=this.sizing.size(this.scrollable.$viewPort);this.overviewSize=this.sizing.size(this.scrollable.$overview);this.ratio=this.viewPortSize/this.overviewSize;this.sizing.size(this.$scrollBar,this.viewPortSize);this.thumbSize=this.calculateThumbSize();this.sizing.size(this.$thumb,this.thumbSize);this.maxThumbPosition=this.calculateMaxThumbPosition();this.maxOverviewPosition=this.calculateMaxOverviewPosition();this.enabled=this.overviewSize>this.viewPortSize;if(this.scrollPercent===undefined)this.scrollPercent=0;if(this.enabled)this.rescroll(e);else this.setScrollPosition(0,0);this.$scrollBar.toggle(this.enabled)},calculateThumbSize:function(){var e=this.sizing.fixedThumbSize(this.scrollable.options);var t;if(e)t=e;else t=this.ratio*this.viewPortSize;return Math.max(t,this.sizing.minSize(this.$thumb))},initMouseMoveScrolling:function(){var t=this;this.$thumb.mousedown(function(e){if(t.enabled)t.startMouseMoveScrolling(e)});this.documentMouseup=function(e){t.stopMouseMoveScrolling(e)};l(document).mouseup(this.documentMouseup);this.documentMousemove=function(e){t.mouseMoveScroll(e)};l(document).mousemove(this.documentMousemove);this.$thumb.click(function(e){e.stopPropagation()})},removeMouseMoveScrolling:function(){this.$thumb.unbind();l(document).unbind("mouseup",this.documentMouseup);l(document).unbind("mousemove",this.documentMousemove)},initMouseWheelScrolling:function(){var s=this;this.scrollable.$element.mousewheel(function(e,t,i,n){if(s.enabled){var o=s.mouseWheelScroll(i,n);s.stopEventConditionally(e,o)}})},removeMouseWheelScrolling:function(){this.scrollable.$element.unbind("mousewheel")},initTouchScrolling:function(){if(document.addEventListener){var t=this;this.elementTouchstart=function(e){if(t.enabled)t.startTouchScrolling(e)};this.scrollable.$element[0].addEventListener("touchstart",this.elementTouchstart);this.documentTouchmove=function(e){t.touchScroll(e)};document.addEventListener("touchmove",this.documentTouchmove);this.elementTouchend=function(e){t.stopTouchScrolling(e)};this.scrollable.$element[0].addEventListener("touchend",this.elementTouchend)}},removeTouchScrolling:function(){if(document.addEventListener){this.scrollable.$element[0].removeEventListener("touchstart",this.elementTouchstart);document.removeEventListener("touchmove",this.documentTouchmove);this.scrollable.$element[0].removeEventListener("touchend",this.elementTouchend)}},initMouseClickScrolling:function(){var t=this;this.scrollBarClick=function(e){t.mouseClickScroll(e)};this.$scrollBar.click(this.scrollBarClick)},removeMouseClickScrolling:function(){this.$scrollBar.unbind("click",this.scrollBarClick)},initWindowResize:function(){if(this.scrollable.options.updateOnWindowResize){var e=this;this.windowResize=function(){e.resize()};l(window).resize(this.windowResize)}},removeWindowResize:function(){l(window).unbind("resize",this.windowResize)},isKeyScrolling:function(e){return this.keyScrollDelta(e)!=null},keyScrollDelta:function(e){for(var t in this.sizing.scrollingKeys)if(t==e)return this.sizing.scrollingKeys[e](this.viewPortSize);return null},startMouseMoveScrolling:function(e){this.mouseMoveScrolling=true;l("html").addClass("not-selectable");this.setUnselectable(l("html"),"on");this.setScrollEvent(e)},stopMouseMoveScrolling:function(e){this.mouseMoveScrolling=false;l("html").removeClass("not-selectable");this.setUnselectable(l("html"),null)},setUnselectable:function(e,t){if(e.attr("unselectable")!=t){e.attr("unselectable",t);e.find(":not(input)").attr("unselectable",t)}},mouseMoveScroll:function(e){if(this.mouseMoveScrolling){var t=this.sizing.mouseDelta(this.scrollEvent,e);this.scrollThumbBy(t);this.setScrollEvent(e)}},startTouchScrolling:function(e){if(e.touches&&e.touches.length==1){this.setScrollEvent(e.touches[0]);this.touchScrolling=true;e.stopPropagation()}},touchScroll:function(e){if(this.touchScrolling&&e.touches&&e.touches.length==1){var t=-this.sizing.mouseDelta(this.scrollEvent,e.touches[0])*this.scrollable.options.swipeSpeed;var i=this.scrollOverviewBy(t);if(i)this.setScrollEvent(e.touches[0]);this.stopEventConditionally(e,i)}},stopTouchScrolling:function(e){this.touchScrolling=false;e.stopPropagation()},mouseWheelScroll:function(e,t){var i=-this.sizing.wheelDelta(e,t)*this.scrollable.options.wheelSpeed;if(i!=0)return this.scrollOverviewBy(i)},mouseClickScroll:function(e){var t=this.viewPortSize-20;if(e["page"+this.sizing.scrollAxis()]t)return t;else return e},triggerCustomScroll:function(e){this.scrollable.$element.trigger("customScroll",{scrollAxis:this.sizing.scrollAxis(),direction:this.sizing.scrollDirection(e,this.scrollPercent),scrollPercent:this.scrollPercent*100})},rescroll:function(e){if(e){var t=this.positionOrMax(this.overviewPosition(),this.maxOverviewPosition);this.scrollPercent=t/this.maxOverviewPosition;var i=this.scrollPercent*this.maxThumbPosition;this.setScrollPosition(t,i)}else{var i=this.scrollPercent*this.maxThumbPosition;var t=this.scrollPercent*this.maxOverviewPosition;this.setScrollPosition(t,i)}},setScrollPosition:function(e,t){this.$thumb.css(this.sizing.offsetComponent(),t+"px");this.scrollable.$overview.css(this.sizing.offsetComponent(),-e+"px")},setScrollPositionWithAnimation:function(e,t){var i={};var n={};i[this.sizing.offsetComponent()]=t+"px";this.$thumb.animate(i,this.scrollable.options.animationSpeed);n[this.sizing.offsetComponent()]=-e+"px";this.scrollable.$overview.animate(n,this.scrollable.options.animationSpeed)},calculateMaxThumbPosition:function(){return Math.max(0,this.sizing.size(this.$scrollBar)-this.thumbSize)},calculateMaxOverviewPosition:function(){return Math.max(0,this.sizing.size(this.scrollable.$overview)-this.sizing.size(this.scrollable.$viewPort))},setScrollEvent:function(e){var t="page"+this.sizing.scrollAxis();if(!this.scrollEvent||this.scrollEvent[t]!=e[t])this.scrollEvent={pageX:e.pageX,pageY:e.pageY}},scrollToElement:function(e){var t=l(e);if(this.sizing.isInside(t,this.scrollable.$overview)&&!this.sizing.isInside(t,this.scrollable.$viewPort)){var i=t.offset();var n=this.scrollable.$overview.offset();var o=this.scrollable.$viewPort.offset();this.scrollOverviewTo(i[this.sizing.offsetComponent()]-n[this.sizing.offsetComponent()],true)}},remove:function(){this.removeMouseMoveScrolling();this.removeMouseWheelScrolling();this.removeTouchScrolling();this.removeMouseClickScrolling();this.removeWindowResize()},stopEventConditionally:function(e,t){if(t||this.scrollable.options.preventDefaultScroll){e.preventDefault();e.stopPropagation()}}};var r=function(){};r.prototype={size:function(e,t){if(t)return e.width(t);else return e.width()},minSize:function(e){return parseInt(e.css("min-width"))||0},fixedThumbSize:function(e){return e.fixedThumbWidth},scrollBar:function(e){return e.find(".scroll-bar.horizontal")},mouseDelta:function(e,t){return t.pageX-e.pageX},offsetComponent:function(){return"left"},wheelDelta:function(e,t){return e},scrollAxis:function(){return"X"},scrollDirection:function(e,t){return e=s.left&&o.left+i.width()<=s.left+n.width()}};var a=function(){};a.prototype={size:function(e,t){if(t)return e.height(t);else return e.height()},minSize:function(e){return parseInt(e.css("min-height"))||0},fixedThumbSize:function(e){return e.fixedThumbHeight},scrollBar:function(e){return e.find(".scroll-bar.vertical")},mouseDelta:function(e,t){return t.pageY-e.pageY},offsetComponent:function(){return"top"},wheelDelta:function(e,t){return t},scrollAxis:function(){return"Y"},scrollDirection:function(e,t){return e=s.top&&o.top+i.height()<=s.top+n.height()}};return this.each(function(){if(t==undefined)t=n;if(typeof t=="string"){var e=l(this).data("scrollable");if(e)e[t](i)}else if(typeof t=="object"){t=l.extend(n,t);new o(l(this),t)}else throw"Invalid type of options"})}})(jQuery);(function(a){var t=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks){for(var e=t.length;e;){a.event.fixHooks[t[--e]]=a.event.mouseHooks}}a.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var e=t.length;e;){this.addEventListener(t[--e],i,false)}}else{this.onmousewheel=i}},teardown:function(){if(this.removeEventListener){for(var e=t.length;e;){this.removeEventListener(t[--e],i,false)}}else{this.onmousewheel=null}}};a.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}});function i(e){var t=e||window.event,i=[].slice.call(arguments,1),n=0,o=true,s=0,r=0;e=a.event.fix(t);e.type="mousewheel";if(t.wheelDelta){n=t.wheelDelta/120}if(t.detail){n=-t.detail/3}r=n;if(t.axis!==undefined&&t.axis===t.HORIZONTAL_AXIS){r=0;s=n}if(t.wheelDeltaY!==undefined){r=t.wheelDeltaY/120}if(t.wheelDeltaX!==undefined){s=t.wheelDeltaX/120}i.unshift(e,n,s,r);return(a.event.dispatch||a.event.handle).apply(this,i)}})(jQuery);$(window).load(function(){$(".sidebar-container-off").customScrollbar({skin:"default-skin",hScroll:false,updateOnWindowResize:true,preventDefaultScroll:true})});(function(d){d.fn.hoverIntent=function(e,t,i){var n={interval:100,sensitivity:6,timeout:0};if(typeof e==="object"){n=d.extend(n,e)}else{if(d.isFunction(t)){n=d.extend(n,{over:e,out:t,selector:i})}else{n=d.extend(n,{over:e,out:e,selector:t})}}var o,s,r,a;var l=function(e){o=e.pageX;s=e.pageY};var c=function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t);if(Math.sqrt((r-o)*(r-o)+(a-s)*(a-s)) a").addClass(f.classActive)}u();if(f.eventType=="hover"){var t={sensitivity:2,interval:f.hoverDelay,over:s,timeout:f.hoverDelay,out:r};p("li a",i).hoverIntent(t);var n={sensitivity:2,interval:1e3,over:a,timeout:1e3,out:l};p(i).hoverIntent(n);if(f.disableLink==true){p("li a",i).click(function(e){if(p(this).siblings("ul").length>0){e.preventDefault()}})}}else{p("li a",i).click(function(e){$activeLi=p(this).parent("li");$parentsLi=$activeLi.parents("li");$parentsUl=$activeLi.parents("ul");if(f.disableLink==true){if(p(this).siblings("ul").length>0){e.preventDefault()}}if(f.autoClose==true){c($parentsLi,$parentsUl)}if(p("> ul",$activeLi).is(":visible")){p("ul",$activeLi).slideUp(f.speed);p("a",$activeLi).removeClass(f.classActive)}else{p(this).siblings("ul").slideToggle(f.speed);p("> a",$activeLi).addClass(f.classActive)}if(f.saveState==true){h(f.cookie,i)}})}function o(){$arrow='';var e=f.classParent+"-li";p("> ul",i).show();p("li",i).each(function(){if(p("> ul",this).length>0){p(this).addClass(e);p("> a",this).addClass(f.classParent).append($arrow)}});p("> ul",i).hide();if(f.showCount==true){p("li."+e,i).each(function(){if(f.disableLink==true){var e=parseInt(p("ul a:not(."+f.classParent+")",this).length)}else{var e=parseInt(p("ul a",this).length)}p("> a",this).append(' ('+e+")")})}}function s(){$activeLi=p(this).parent("li");$parentsLi=$activeLi.parents("li");$parentsUl=$activeLi.parents("ul");if(f.autoClose==true){c($parentsLi,$parentsUl)}if(p("> ul",$activeLi).is(":visible")){p("ul",$activeLi).slideUp(f.speed);p("a",$activeLi).removeClass(f.classActive)}else{p(this).siblings("ul").slideToggle(f.speed);p("> a",$activeLi).addClass(f.classActive)}if(f.saveState==true){h(f.cookie,i)}}function r(){}function a(){}function l(){if(f.menuClose==true){p("ul",i).slideUp(f.speed);p("a",i).removeClass(f.classActive);h(f.cookie,i)}}function c(e,t){p("ul",i).not(t).slideUp(f.speed);p("a",i).removeClass(f.classActive);p("> a",e).addClass(f.classActive)}function u(){p("ul",i).hide();$allActiveLi=p("a."+f.classActive,i);$allActiveLi.siblings("ul").show()}});function d(e,o){var t=p.cookie(e);if(t!=null){var i=t.split(",");p.each(i,function(e,t){var i=p("li:eq("+t+")",o);p("> a",i).addClass(f.classActive);var n=i.parents("li");p("> a",n).addClass(f.classActive)})}}function h(e,n){var o=[];p("li a."+f.classActive,n).each(function(e){var t=p(this).parent("li");var i=p("li",n).index(t);o.push(i)});p.cookie(e,o,{path:"/"})}}})(jQuery);(function(w){var C="iCheck",x=C+"-helper",$="checkbox",k="radio",S="checked",h="un"+S,T="disabled",p="determinate",E="in"+p,A="update",M="type",_="click",z="touchbegin.i touchend.i",I="addClass",P="removeClass",j="trigger",O="label",m="cursor",L=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);w.fn[C]=function(t,i){var n='input[type="'+$+'"], input[type="'+k+'"]',o=w(),e=function(e){e.each(function(){var e=w(this);if(e.is(n)){o=o.add(e)}else{o=o.add(e.find(n))}})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(t)){t=t.toLowerCase();e(this);return o.each(function(){var e=w(this);if(t=="destroy"){B(e,"ifDestroyed")}else{D(e,true,t)}if(w.isFunction(i)){i()}})}else if(typeof t=="object"||!t){var h=w.extend({checkedClass:S,disabledClass:T,indeterminateClass:E,labelHover:true},t),s=h.handle,p=h.hoverClass||"hover",m=h.focusClass||"focus",v=h.activeClass||"active",g=!!h.labelHover,b=h.labelHoverClass||"hover",y=(""+h.increaseArea).replace("%","")|0;if(s==$||s==k){n='input[type="'+s+'"]'}if(y<-50){y=-50}e(this);return o.each(function(){var n=w(this);B(n);var o=this,e=o.id,t=-y+"%",i=100+y*2+"%",s={position:"absolute",top:t,left:t,display:"block",width:i,height:i,margin:0,padding:0,background:"#fff",border:0,opacity:0},r=L?{position:"absolute",visibility:"hidden"}:y?s:{position:"absolute",opacity:0},a=o[M]==$?h.checkboxClass||"i"+$:h.radioClass||"i"+k,l=w(O+'[for="'+e+'"]').add(n.closest(O)),c=!!h.aria,u=C+"-"+Math.random().toString(36).substr(2,6),f='
    ")[j]("ifCreated").parent().append(h.insert);d=w('').css(s).appendTo(f);n.data(C,{o:h,s:n.attr("style")}).css(r);!!h.inheritClass&&f[I](o.className||"");!!h.inheritID&&e&&f.attr("id",C+"-"+e);f.css("position")=="static"&&f.css("position","relative");D(n,true,A);if(l.length){l.on(_+".i mouseover.i mouseout.i "+z,function(e){var t=e[M],i=w(this);if(!o[T]){if(t==_){if(w(e.target).is("a")){return}D(n,false,true)}else if(g){if(/ut|nd/.test(t)){f[P](p);i[P](b)}else{f[I](p);i[I](b)}}if(L){e.stopPropagation()}else{return false}}})}n.on(_+".i focus.i blur.i keyup.i keydown.i keypress.i",function(e){var t=e[M],i=e.keyCode;if(t==_){return false}else if(t=="keydown"&&i==32){if(!(o[M]==k&&o[S])){if(o[S]){R(n,S)}else{H(n,S)}}return false}else if(t=="keyup"&&o[M]==k){!o[S]&&H(n,S)}else if(/us|ur/.test(t)){f[t=="blur"?P:I](m)}});d.on(_+" mousedown mouseup mouseover mouseout "+z,function(e){var t=e[M],i=/wn|up/.test(t)?v:p;if(!o[T]){if(t==_){D(n,false,true)}else{if(/wn|er|in/.test(t)){f[I](i)}else{f[P](i+" "+v)}if(l.length&&g&&i==p){l[/ut|nd/.test(t)?P:I](b)}}if(L){e.stopPropagation()}else{return false}}})})}else{return this}};function D(e,t,i){var n=e[0],o=/er/.test(i)?E:/bl/.test(i)?T:S,s=i==A?{checked:n[S],disabled:n[T],indeterminate:e.attr(E)=="true"||e.attr(p)=="false"}:n[o];if(/^(ch|di|in)/.test(i)&&!s){H(e,o)}else if(/^(un|en|de)/.test(i)&&s){R(e,o)}else if(i==A){for(var r in s){if(s[r]){H(e,r,true)}else{R(e,r,true)}}}else if(!t||i=="toggle"){if(!t){e[j]("ifClicked")}if(s){if(n[M]!==k){R(e,o)}}else{H(e,o)}}}function H(e,t,i){var n=e[0],o=e.parent(),s=t==S,r=t==E,a=t==T,l=r?p:s?h:"enabled",c=v(e,l+g(n[M])),u=v(e,t+g(n[M]));if(n[t]!==true){if(!i&&t==S&&n[M]==k&&n.name){var f=e.closest("form"),d='input[name="'+n.name+'"]';d=f.length?f.find(d):w(d);d.each(function(){if(this!==n&&w(this).data(C)){R(w(this),t)}})}if(r){n[t]=true;if(n[S]){R(e,S,"force")}}else{if(!i){n[t]=true}if(s&&n[E]){R(e,E,false)}}b(e,s,t,i)}if(n[T]&&!!v(e,m,true)){o.find("."+x).css(m,"default")}o[I](u||v(e,t)||"");if(!!o.attr("role")&&!r){o.attr("aria-"+(a?T:S),"true")}o[P](c||v(e,l)||"")}function R(e,t,i){var n=e[0],o=e.parent(),s=t==S,r=t==E,a=t==T,l=r?p:s?h:"enabled",c=v(e,l+g(n[M])),u=v(e,t+g(n[M]));if(n[t]!==false){if(r||!i||i=="force"){n[t]=false}b(e,s,l,i)}if(!n[T]&&!!v(e,m,true)){o.find("."+x).css(m,"pointer")}o[P](u||v(e,t)||"");if(!!o.attr("role")&&!r){o.attr("aria-"+(a?T:S),"false")}o[I](c||v(e,l)||"")}function B(e,t){if(e.data(C)){e.parent().html(e.attr("style",e.data(C).s||""));if(t){e[j](t)}e.off(".i").unwrap();w(O+'[for="'+e[0].id+'"]').add(e.closest(O)).off(".i")}}function v(e,t,i){if(e.data(C)){return e.data(C).o[t+(i?"":"Class")]}}function g(e){return e.charAt(0).toUpperCase()+e.slice(1)}function b(e,t,i,n){if(!n){if(t){e[j]("ifToggled")}e[j]("ifChanged")[j]("if"+g(i))}}})(window.jQuery||window.Zepto);var SelectList={fn:{prepare:function(e){var t="";var i="";if(e=="ipp_jump"||e=="ipp_select"){var n=e=="ipp_select"?"Items per page":e=="ipp_jump"?"Jump to page":"";t='';i=""}var o=$('
    ');var s='
    '+t+$("option:selected","select[name='"+e+"']").html()+i+"
    ";s+='
      ';$("option","select[name='"+e+"']").each(function(){var e=$(this);var t=e.val();var i=e.html();if(e.is(":selected")){s+='
    • '+i+"
    • "}else{s+='
    • '+i+"
    • "}});s+="
    ";o.html(s).insertBefore("select[name='"+e+"']")},showHide:function(e){$("#trigger-"+e,"#select-box-"+e).unbind().bind("click",function(){var e=$(this);var t=e.next();if(t.is(":hidden")){t.slideDown("fast",function(){$("#ct-wrapper").bind("click",bodyHideSelect);return})}else{t.slideUp("fast",function(){$("#ct-wrapper").unbind("click",bodyHideSelect);return})}})},select:function(i){var n=$("#trigger-"+i);var o=$("select[name='"+i+"']");var s=$("#view");$("li","#choices-"+i).on("click",function(){var e=$(this);var t=e.html();$("#choices-"+i+" li").show();$("#choices-"+i+" li").each(function(){var e=$(this).text();if(e==t){$(this).hide()}});n.text($("
    ").html(t).text());e.parent().slideUp("fast",function(){o.changeVal(e.data("value"));s.trigger("click")})})}},init:function(e){for(var t in this.fn){this.fn[t](e)}}};$.fn.changeVal=function(e){return $(this).val(e).trigger("change")};function bodyHideSelect(){$("#paging-top .choices").each(function(){if($(this).attr("id")==="choices-ipp_select"&&$(this).css("display")==="block"){$(this).slideUp("fast",function(){$("#ct-wrapper").unbind("click",bodyHideSelect);return});return}})}function bodyHideSelect2(){$("#paging-top .choices").each(function(){if($(this).attr("id")==="choices-ipp_select"&&$(this).css("display")==="block"){$(this).slideUp("fast",function(){$("#ct-wrapper").unbind("click",bodyHideSelect);return});return}});$(".entry-form-class .choices").each(function(){var e=$(this);if(e.attr("id")!==$(this).find(".choices").attr("id")){if($(this).find(".choices").css("display")==="block"){e.slideUp("fast",function(){$("#ct-wrapper").unbind("click",bodyHideSelect);return});return}}})}!function(u,z){"use strict";function r(h,m,p,e,t){function i(){x=u.devicePixelRatio>1,n(p),m.delay>=0&&setTimeout(function(){o(!0)},m.delay),(m.delay<0||m.combined)&&(e.e=s(m.throttle,function(e){"resize"===e.type&&(l=c=-1),o(e.all)}),e.a=function(e){n(e),p.push.apply(p,e)},e.g=function(){return p=I(p).filter(function(){return!I(this).data(m.loadedName)})},e.f=function(e){for(var t=0;tt.top&&-nt.left&&-n=0?l:l=I(u).width()}function a(){return c>=0?c:c=I(u).height()}function b(e){return e.tagName.toLowerCase()}function d(e,t){if(t){var i=e.split(",");e="";for(var n=0,o=i.length;no||!m.enableThrottle||t?i():r=setTimeout(i,o-n)}}function y(){--C,p.length||C||w("onFinishedAll")}function w(e,t,i){return!!(e=m[e])&&(e.apply(h,[].slice.call(arguments,1)),!0)}var C=0,l=-1,c=-1,x=!1,$="afterLoad",k="load",S="error",T="img",E="src",A="srcset",M="sizes",_="background-image";"event"==m.bind||f?i():I(u).on(k+"."+t,i)}function c(e,t){var i=this,n=I.extend({},i.config,t),o={},s=n.name+"-"+ ++a;return i.config=function(e,t){return t===z?n[e]:(n[e]=t,i)},i.addItems=function(e){return o.a&&o.a("string"===I.type(e)?I(e):e),i},i.getItems=function(){return o.g?o.g():{}},i.update=function(e){return o.e&&o.e({},!e),i},i.force=function(e){return o.f&&o.f("string"===I.type(e)?I(e):e),i},i.loadAll=function(){return o.e&&o.e({all:!0},!0),i},i.destroy=function(){return I(n.appendScroll).off("."+s,o.e),I(u).off("."+s),o={},z},r(i,n,e,o,s),n.chainable?e:i}var I=u.jQuery||u.Zepto,a=0,f=!1;I.fn.Lazy=I.fn.lazy=function(e){return new c(this,e)},I.Lazy=I.lazy=function(e,t,i){if(I.isFunction(t)&&(i=t,t=[]),I.isFunction(i)){e=I.isArray(e)?e:[e],t=I.isArray(t)?t:[t];for(var n=c.prototype.config,o=n._f||(n._f={}),s=0,r=e.length;s