jQuery(document).ready(function(e){ jQuery("#sfsi_floater").attr("data-top",jQuery(document).height()); }); function showErrorSuc(s, i, e){ if("error"==s) var t="errorMsg"; else var t="sucMsg"; return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(), SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function(){ SFSI("." + t).slideUp("slow"); }, 5e3), !1; } function beForeLoad(){ SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none"); } function sfsi_make_popBox(){ var s=0; SFSI(".sfsi_sample_icons >li").each(function(){ "none"!=SFSI(this).css("display")&&(s=1); }), 0==s ? SFSI(".sfsi_Popinner").hide() :SFSI(".sfsi_Popinner").show(), ""!=SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()), SFSI(".sfsi_Popinner >h2").show()) :SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({ "border-color":SFSI('input[name="sfsi_popup_border_color"]').val(), "border-width":SFSI('input[name="sfsi_popup_border_thickness"]').val(), "border-style":"solid" }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()), SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()), SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())), SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"), "yes"==SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") :SFSI(".sfsi_Popinner").css("box-shadow", "none"); } function sfsi_stick_widget(s){ 0==initTop.length&&(SFSI(".sfsi_widget").each(function(s){ initTop[s]=SFSI(this).position().top; }), console.log(initTop)); var i=SFSI(window).scrollTop(), e=[], t=[]; SFSI(".sfsi_widget").each(function(s){ e[s]=SFSI(this).position().top, t[s]=SFSI(this); }); var n = !1; for (var o in e){ var a=parseInt(o) + 1; e[o] < i&&e[a] > i&&a < e.length ? (SFSI(t[o]).css({ position:"fixed", top:s }), SFSI(t[a]).css({ position:"", top:initTop[a] }), n = !0) :SFSI(t[o]).css({ position:"", top:initTop[o] }); } if(!n){ var r=e.length - 1, c=-1; e.length > 1&&(c=e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({ position:"fixed", top:s }), c >=0&&SFSI(t[c]).css({ position:"", top:initTop[c] })) :(SFSI(t[r]).css({ position:"", top:initTop[r] }), c >=0&&e[c] < i); }} function sfsi_float_widget(s){ function i(){ r="Microsoft Internet Explorer"===navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset, Math.abs(r) > 0 ? (window.removeEventListener("scroll", i), a -=r * o, SFSI("#sfsi_floater").css({ top:(a + t).toString() + "px" }), setTimeout(i, n)) :window.addEventListener("scroll", i, !1); } function e(){ var documentheight=SFSI("#sfsi_floater").attr("data-top"); var fltrhght=parseInt(SFSI("#sfsi_floater").height()); var fltrtp=parseInt(SFSI("#sfsi_floater").css("top")); if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight){ window.addEventListener("scroll", i, !1); }else{ window.removeEventListener("scroll", i); SFSI("#sfsi_floater").css("top",documentheight+"px"); }} if("center"==s){ var t=(SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2; } else if("bottom"==s){ var t=window.innerHeight - SFSI("#sfsi_floater").height(); }else{ var t=parseInt(s); } var n=50, o=.1, a=0, r=0; SFSI("#sfsi_floater"); var prev_onscroll=window.onscroll; window.onscroll=function(){ if('function'===typeof prev_onload){ prev_onload(),e(); }else{ e(); }} } function sfsi_shuffle(){ var s=[]; SFSI(".sfsi_wicons ").each(function(i){ SFSI(this).text().match(/^\s*$/)||(s[i]="
" + SFSI(this).html() + "
", SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".sfsi_wicons")), SFSI(this).fadeIn("slow")); }), s=Shuffle(s), $("#sfsi_wDiv").html(""); for (var i=0; i < testArray.length; i++) $("#sfsi_wDiv").append(s[i]); } function Shuffle(s){ for (var i, e, t=s.length; t; i=parseInt(Math.random() * t), e=s[--t], s[t]=s[i], s[i]=e) ; return s; } function sfsi_setCookie(s, i, e){ var t=new Date(); t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e); var n="expires=" + t.toGMTString(); document.cookie=s + "=" + i + "; " + n; } function sfsfi_getCookie(s){ for (var i=s + "=", e=document.cookie.split(";"), t=0; t < e.length; t++){ var n=e[t].trim(); if(0==n.indexOf(i)) return n.substring(i.length, n.length); } return ""; } function sfsi_hideFooter(){} window.onerror=function(){}, SFSI=jQuery.noConflict(), SFSI(window).load(function(){ SFSI("#sfpageLoad").fadeOut(2e3); }); var global_error=0; SFSI(document).ready(function(s){ SFSI("head").append(''), SFSI("head").append(''), SFSI("head").append(''), SFSI(document).click(function(s){ var i=SFSI(".sfsi_FrntInner"), e=SFSI(".sfsi_wDiv"), t=SFSI("#at15s"); i.is(s.target)||0!==i.has(s.target).length||e.is(s.target)||0!==e.has(s.target).length||t.is(s.target)||0!==t.has(s.target).length||i.fadeOut(); }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function(){ SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg"); }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function(){ SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg"); }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function(){ SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg"); }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function(){ SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg"); }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function(){ SFSI(this).css("opacity", "0.9"); }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function(){ SFSI(this).css("opacity", "1"); }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function(){ SFSI(this).css("opacity", "0.9"); }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function(){ SFSI(this).css("opacity", "1"); }), SFSI(".pop-up").on("click", function(){ ("fbex-s2"==SFSI(this).attr("data-id")||"googlex-s2"==SFSI(this).attr("data-id")||"linkex-s2"==SFSI(this).attr("data-id"))&&(SFSI("." + SFSI(this).attr("data-id")).hide(), SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), SFSI("." + SFSI(this).attr("data-id")).show("slow"); }), /*SFSI("#close_popup").live("click", function(){*/SFSI(document).on("click", '#close_popup', function (){ SFSI(".read-overlay").hide("slow"); }); var e=0; sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox), SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox), /*SFSI(".radio").live("click", function(){*/ SFSI(document).on("click", '.radio', function (){ var s=SFSI(this).parent().find("input:radio:first"); "sfsi_popup_border_shadow"==s.attr("name")&&sfsi_make_popBox(); }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s){ s.stopPropagation(); var i=SFSI("#sfsi_floater_sec").val(); SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(), SFSI(this).parent().parent().parent().parent().siblings("li").length > 0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"), SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ "z-index":"999" }), SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 })), ("top-left"==i||"top-right"==i)&&SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0&&"sfsi_floater"==SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":1e3 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()); }) :SFSI("img.sfsi_wicon").on("mouseenter", function(){ var s=SFSI("#sfsi_floater_sec").val(); SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(), SFSI(this).parent().parent().parent().parent().siblings("li").length > 0&&(SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"), SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()), SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({ "z-index":"999" }), SFSI(this).attr("effect")&&"fade_in"==SFSI(this).attr("effect")&&(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect")&&"scale"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect")&&"combo"==SFSI(this).attr("effect")&&(SFSI(this).parent().addClass("scale"), SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 })), ("top-left"==s||"top-right"==s)&&SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0&&"sfsi_floater"==SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({ opacity:1, "z-index":10 }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()); }), SFSI("div.sfsi_wicons").on("mouseleave", function(){ SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&"fade_in"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&"scale"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"), SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&"combo"==SFSI(this).children("div.inerCnt").children("a.sficn").attr("effect")&&(SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale")), "sfsiid_google"==SFSI(this).children("div.inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function(){ SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide(); }) :(SFSI(this).css({ "z-index":"0" }), SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide()); }), SFSI("body").on("click", function(){ SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide(); }), SFSI(".adminTooltip >a").on("hover", function(){ SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show(); }), SFSI(".adminTooltip").on("mouseleave", function(){ "none"!=SFSI(".gpls_tool_bdr").css("display")&&0!=SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function(){ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide(); }) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide()); }), SFSI(".expand-area").on("click", function(){ "Read more"==SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"), SFSI(this).text("Read more")); }), SFSI(".sfsi_wDiv").length > 0&&setTimeout(function(){ var s=parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px"; SFSI(".sfsi_holders").each(function(){ SFSI(this).css("height", s); SFSI(".sfsi_widget").css("min-height", "auto"); }); }, 200); }); function sfsihidemepopup(){ SFSI(".sfsi_FrntInner_chg").fadeOut(); } var initTop=new Array(); jQuery.easing.jswing=jQuery.easing.swing; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c: d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/ e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)* b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){a=1.70158;var f=0,l=d;if(0==b)return c;if(1==(b/=e))return c+d;f||(f=.3*e);lb?-.5*l*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/f)+c:.5*l*Math.pow(2,-10*--b)*Math.sin(2*(b*e-a)*Math.PI/f)+d+c},easeInBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158); return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158);return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158);return 1>(b/=e/2)?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-= 2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b—').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(b)[0].clientWidth;a("#menu-fontsize").remove();f.each(function(b){b=a(this);var c=b.children(),d=c.children("a"),f=c.css("white-space","nowrap").css("float");b.add(c).add(d).css({"float":"none",width:"auto"}); d=b[0].clientWidth/l;d+=e.extraWidth;d>e.maxWidth?d=e.maxWidth:d=-1*r[t]||0<=k){v=a(b).width();if(0Q&&(Q=m.getSliderOffset(this,"x"),L=a)});O=r[t]-A[L];m.setSliderOffset(a(c)[L],O);M.splice(0,0,-1*O+y);M.splice(M.length-1,1);r[t]=-1*M[0]+y;z[t]=r[t]+v-h;D[t]--;C[t]++}for(;k>-1*r[t];)L=0,Q=m.getSliderOffset(a(c[0]),"x"),a(c).each(function(a){m.getSliderOffset(this,"x")>Q&&(Q=m.getSliderOffset(this,"x"),L=a)}),O=r[t]-A[L],m.setSliderOffset(a(c)[L],O),M.splice(0,0,-1*O+y),M.splice(M.length-1,1), r[t]=-1*M[0]+y,z[t]=r[t]+v-h,D[t]--}}G=!1;h=m.calcActiveOffset(F,k,M,h,D[t],u,w,t);O=(h+D[t]+u)%u;F.infiniteSlider?O!=ba[t]&&(G=!0):h!=C[t]&&(G=!0);if(G&&(u=new m.args("change",F,b,a(b).children(":eq("+O+")"),O,q),a(b).parent().data("args",u),""!=F.onSlideChange))F.onSlideChange(u);C[t]=h;ba[t]=O;k=Math.floor(k);if(t!=a(b).parent().data("args").data.sliderNumber)return!0;m.setSliderOffset(b,k);F.scrollbar&&(e=Math.floor((-1*k-r[t]+y)/(z[t]-r[t]+y)*(g-l-f)),b=f-p,k>=-1*r[t]+y?(b=f-p- -1*e,m.setSliderOffset(a("."+ d),0)):(k<=-1*z[t]+1&&(b=g-l-p-e),m.setSliderOffset(a("."+d),e)),a("."+d).css({width:b+"px"}))},slowScrollHorizontal:function(b,c,k,d,e,f,g,l,p,w,y,M,O,u,A,t,B,q,F,I,S){var v,h=m.getSliderOffset(b,"x");f=[];var E=0,n=25/1024*l;frictionCoefficient=S.frictionCoefficient;elasticFrictionCoefficient=S.elasticFrictionCoefficient;snapFrictionCoefficient=S.snapFrictionCoefficient;e>S.snapVelocityThreshold&&S.snapToChildren&&!F?E=1:e<-1*S.snapVelocityThreshold&&S.snapToChildren&&!F&&(E=-1);e<-1*n?e=-1*n:e> n&&(e=n);a(b)[0]!==a(q)[0]&&(E*=-1,e*=-2);q=D[A];if(S.infiniteSlider)var J=r[A],L=z[A];F=[];n=[];for(v=0;ve;){e*=frictionCoefficient;h+=e;(h>-1*r[A]||h<-1*z[A])&&!S.infiniteSlider&&(e*=elasticFrictionCoefficient,h+=e);if(S.infiniteSlider){if(h<=-1*L){L=a(b).width();var G=0,Q=n[0];for(v=0;v=-1*J){L= a(b).width();G=0;Q=n[0];for(v=0;vQ&&(Q=n[v],G=v);v=J-u[G];n[G]=v;F.splice(0,0,-1*v+I);F.splice(F.length-1,1);J=-1*F[0]+I;L=J+L-l;q--}}f[f.length]=h}n=!1;e=m.calcActiveOffset(S,h,F,l,q,B,C[A],A);S.snapToChildren&&(S.infiniteSlider?(e+q+B)%B!=ba[A]&&(n=!0):e!=C[A]&&(n=!0),0>E&&!n?(e++,e>=O.length&&!S.infiniteSlider&&(e=O.length-1)):0e&&!S.infiniteSlider&&(e=0)));if(S.snapToChildren||(h>-1*r[A]||h<-1*z[A])&&!S.infiniteSlider){for((h>-1*r[A]||h<-1*z[A])&&!S.infiniteSlider? f.splice(0,f.length):(f.splice(.1*f.length,f.length),h=0F[e]+.5;)h=(h-F[e])*snapFrictionCoefficient+F[e],f[f.length]=h;f[f.length]=F[e]}E=1;0!=f.length%2&&(E=0);for(h=0;h=f.length-2)J=f[h],k[k.length]=m.slowScrollHorizontalIntervalTimer(10*h,b,c,f[h],d,g,l,p,w,y,e,M,O,t,B,u,A,I,q,S);J=(e+D[A]+B)%B;""!=S.onSlideComplete&&1").css({msTransform:"matrix(1,1,1,1,1,1)",webkitTransform:"matrix(1,1,1,1,1,1)",MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});""==c.attr("style")?b=!1:y&&21<=parseInt(navigator.userAgent.split("/")[3],10)?b=!1:void 0!=c.attr("style")&&(b=!0);return b}, getSlideNumber:function(a,b,c){return(a-D[b]+c)%c},calcActiveOffset:function(a,b,c,d,e,f,g,l){e=!1;a=[];var k;b>c[0]&&(k=0);bb-d&&(e||c[f]==b||(a[a.length]=c[f-1]),a[a.length]=c[f],e=!0);0==a.length&&(a[0]=c[c.length-1]);for(f=e=0;fn&&-1==J?n+=a(c).width():0=J.length-2)E=J[h],d[h]=m.slowScrollHorizontalIntervalTimer(10*(h+1),c,k,J[h],e,f,g,l,p,w,b,y,r,A,t,B,u,z,v,q);0==h&&""!=q.onSlideStart&&(n=(C[u]+D[u]+t)%t,q.onSlideStart(new m.args("start",q,c,a(c).children(":eq("+n+")"),n,b)))}E=!1;q.infiniteSlider?v!=ba[u]&&(E=!0):b!=C[u]&&(E=!0);E&&""!=q.onSlideComplete&&(d[d.length]=m.onSlideCompleteTimer(10*(h+1),q,c,a(c).children(":eq("+v+")"),v,u));X[u]=d;m.hideScrollbar(q,d,h,J,e,f, g,p,w,u);m.autoSlide(c,k,d,e,f,g,l,p,w,y,r,B,u,A,t,z,q)},changeOffset:function(b,c,k,d,e,f,g,l,p,w,y,B,O,u,A,t,P,q){m.autoSlidePause(u);for(var h=0;h-1*r[u]+P?-1*r[u]+P:b,b=b<-1*z[u]?-1*z[u]:b);var v=Math.ceil(q.autoSlideTransTimer/10)+1,E=m.getSliderOffset(c,"x");h=(m.calcActiveOffset(q,b,B,g,D,t,C[u],u)+D[u]+t)%t;var n=B.slice();if(q.snapToChildren&&!q.infiniteSlider)b=B[h];else if(q.infiniteSlider&&q.snapToChildren){for(;b>=n[0];)n.splice(0, 0,n[t-1]+a(c).width()),n.splice(t,1);for(;b<=n[t-1];)n.splice(t,0,n[0]-a(c).width()),n.splice(0,1);h=m.calcActiveOffset(q,b,n,g,D,t,C[u],u);b=n[h]}var J=b-E;b=[];m.showScrollbar(q,e);for(n=0;n<=v;n++){var L=n;L/=v;L--;L=E+J*(Math.pow(L,5)+1);b[b.length]=L}v=(h+D[u]+t)%t;for(n=E=0;n=b.length-2)E=b[n],d[n]=m.slowScrollHorizontalIntervalTimer(10*(n+1),c,k,b[n],e,f,g,l,p,w,h,y,B,A,t,O,u,P,v,q);0==n&&""!=q.onSlideStart&&(v=(C[u]+D[u]+t)%t,q.onSlideStart(new m.args("start", q,c,a(c).children(":eq("+v+")"),v,h)))}E=!1;q.infiniteSlider?v!=ba[u]&&(E=!0):h!=C[u]&&(E=!0);E&&""!=q.onSlideComplete&&(d[d.length]=m.onSlideCompleteTimer(10*(n+1),q,c,a(c).children(":eq("+v+")"),v,u));X[u]=d;m.hideScrollbar(q,d,n,b,e,f,g,p,w,u);m.autoSlide(c,k,d,e,f,g,l,p,w,y,B,O,u,A,t,P,q)},autoSlide:function(a,b,c,d,e,f,g,l,p,w,r,y,B,u,A,t,z){if(!V[B].autoSlide)return!1;m.autoSlidePause(B);Y[B]=setTimeout(function(){!z.infiniteSlider&&C[B]>r.length-1&&(C[B]-=A);m.changeSlide(C[B]+D[B]+1,a,b,c, d,e,f,g,l,p,w,r,y,B,u,A,t,z);m.autoSlide(a,b,c,d,e,f,g,l,p,w,r,y,B,u,A,t,z)},z.autoSlideTimer+z.autoSlideTransTimer)},autoSlidePause:function(a){clearTimeout(Y[a])},isUnselectable:function(b,c){return""!=c.unselectableSelector&&1==a(b).closest(c.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(a,b,c,d,e,f,g,l,p,w,r,B,y,u,A,t,z,q,P,R){return setTimeout(function(){m.slowScrollHorizontalInterval(b,c,d,e,f,g,l,p,w,r,B,y,u,A,t,z,q,P,R)},a)},onSlideCompleteTimer:function(a, b,c,d,e,f){return setTimeout(function(){m.onSlideComplete(b,c,d,e,f)},a)},hideScrollbarIntervalTimer:function(a,b,c,d,e,f,g,l,p,w){return setTimeout(function(){m.hideScrollbarInterval(b,c,d,e,f,g,l,p,w)},a)},updateBackfaceVisibilityTimer:function(a,b,c,d,e){return setTimeout(function(){m.updateBackfaceVisibility(b,c,d,e)},a)},updateBackfaceVisibility:function(b,c,k,d){c=(C[c]+D[c]+k)%k;for(var e=[],f=0;f<2*d.hardwareAccelBuffer;f++){var g=m.mod(c+f-d.hardwareAccelBuffer,k);if("visible"==a(b).eq(g).css("-webkit-backface-visibility")){e[e.length]= g;var v=m.mod(g+2*d.hardwareAccelBuffer,k),l=m.mod(g-2*d.hardwareAccelBuffer,k);a(b).eq(g).css("-webkit-backface-visibility","hidden");-1==e.indexOf(l)&&a(b).eq(l).css("-webkit-backface-visibility","");-1==e.indexOf(v)&&a(b).eq(v).css("-webkit-backface-visibility","")}}},mod:function(a,b){var c=a%b;return 0>c?c+b:c},args:function(b,c,k,d,e,f){this.prevSlideNumber=void 0==a(k).parent().data("args")?void 0:a(k).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==a(k).parent().data("args")? void 0:a(k).parent().data("args").prevSlideObject;this.targetSlideNumber=f+1;this.targetSlideObject=a(k).children(":eq("+f+")");this.slideChanged=!1;"load"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==b?(this.slideChanged=!0,this.prevSlideNumber=void 0==a(k).parent().data("args")?c.startAtSlide:a(k).parent().data("args").currentSlideNumber,this.prevSlideObject=a(k).children(":eq("+this.prevSlideNumber+")")):"complete"==b&&(this.slideChanged=a(k).parent().data("args").slideChanged);this.settings=c;this.data=a(k).parent().data("iosslider");this.sliderObject=k;this.sliderContainerObject=a(k).parent();this.currentSlideObject=d;this.currentSlideNumber=e+1;this.currentSliderOffset=-1*m.getSliderOffset(k,"x")},preventDrag:function(a){a.preventDefault()},preventClick:function(a){a.stopImmediatePropagation();return!1},enableClick:function(){return!0}};m.setBrowserInfo();var da={init:function(n,J){g=m.has3DTransform();var k= a.extend(!0,{elasticPullResistance:.6,frictionCoefficient:.92,elasticFrictionCoefficient:.6,snapFrictionCoefficient:.92,snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1,scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarPaging:!1,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:.9,desktopClickDrag:!1, keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",autoSlideToggleSelector:"",autoSlide:!1,autoSlideTimer:5E3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,hardwareAccelBuffer:5,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"", onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},n);void 0==J&&(J=this);return a(J).each(function(g){function v(){var b;m.autoSlidePause(h);ya=a(K).find("a");Da=a(K).find("[onclick]");ra=a(K).find("*");a(F).css("width","");a(F).css("height","");a(K).css("width","");H=a(K).children().not("script").get();na=[];T=[];k.responsiveSlides&&a(H).css("width","100%");z[h]=0;x=[];t=a(F).parent().width();I=a(F).outerWidth(!0);k.responsiveSlideContainer&& (I=a(F).outerWidth(!0)>t?t:a(F).width());a(F).css({position:k.stageCSS.position,top:k.stageCSS.top,left:k.stageCSS.left,overflow:k.stageCSS.overflow,zIndex:k.stageCSS.zIndex,webkitPerspective:1E3,webkitBackfaceVisibility:"hidden",msTouchAction:"pan-y",width:I});a(k.unselectableSelector).css({cursor:"default"});for(b=0;bI?(c=I+-1*(T[b]-na[b]),na[b]=c,T[b]=I):c=na[b],a(H[b]).css({width:c}));a(H[b]).css({overflow:"hidden", position:"absolute"});x[b]=-1*z[h];z[h]=z[h]+c+(T[b]-na[b])}k.snapSlideCenter&&(q=.5*(I-T[0]),k.responsiveSlides&&T[0]>I&&(q=0));ca[h]=2*z[h];for(b=0;bx.length?x.length:V[h].startAtSlide,k.infiniteSlider?(V[h].startAtSlide= (V[h].startAtSlide-1+N)%N,C[h]=V[h].startAtSlide):(V[h].startAtSlide=0>V[h].startAtSlide-1?x.length-1:V[h].startAtSlide,C[h]=V[h].startAtSlide-1),ba[h]=C[h]);r[h]=z[h]+q;a(K).css({position:"relative",cursor:B,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:z[h]+"px"});fa=z[h];z[h]=2*z[h]-I+2*q;(ha=fa+qY?Y:S);a(F).css({height:S});m.setSliderOffset(K,x[C[h]]); if(k.infiniteSlider&&!ha){c=m.getSliderOffset(a(K),"x");for(var d=(D[h]+N)%N*-1;0>d;){var e=0,f=m.getSliderOffset(a(H[0]),"x");a(H).each(function(a){m.getSliderOffset(this,"x")v&&(v=m.getSliderOffset(this,"x"), g=a)});b=r[h]-T[g];m.setSliderOffset(a(H)[g],b);x.splice(0,0,-1*b+q);x.splice(x.length-1,1);r[h]=-1*x[0]+q;z[h]=r[h]+fa-I;D[h]--;C[h]++}for(;c<=-1*z[h];)e=0,f=m.getSliderOffset(a(H[0]),"x"),a(H).each(function(a){m.getSliderOffset(this,"x")
"):a(K).parent().append("
"));if(!v())return!0;a(this).find("a").bind("mousedown",m.preventDrag);a(this).find("[onclick]").bind("click",m.preventDrag).each(function(){a(this).data("onclick",this.onclick)});g=m.calcActiveOffset(k, m.getSliderOffset(a(K),"x"),x,I,D[h],N,void 0,h);g=(g+D[h]+N)%N;g=new m.args("load",k,K,a(K).children(":eq("+g+")"),g,g);a(F).data("args",g);if(""!=k.onSliderLoaded)k.onSliderLoaded(g);k.scrollbarPaging&&k.scrollbar&&!ha&&(a(O).css("cursor","pointer"),a(O).bind("click.iosSliderEvent",function(b){this==b.target&&(b.pageX>a(M).offset().left?da.nextPage(F):da.prevPage(F))}));if(V[h].responsiveSlides||V[h].responsiveSlideContainer)g=l?"orientationchange":"resize",a(window).bind(g+".iosSliderEvent-"+h, function(){if(!v())return!0;var b=a(F).data("args");if(""!=k.onSliderResize)k.onSliderResize(b)});!k.keyboardControls&&!k.tabToAdvance||ha||a(document).bind("keydown.iosSliderEvent",function(a){p||w||(a=a.originalEvent);if("INPUT"==a.target.nodeName||ja[h])return!0;if(37==a.keyCode&&k.keyboardControls)a.preventDefault(),a=(C[h]+D[h]+N)%N,(0-1*r[h]+q+fa?(b=-1*r[h]+q+fa,m.setSliderOffset(a("."+G),b),a("."+G).css({width:A-W+"px"})):b<-1*z[h]&&(b=-1*z[h],m.setSliderOffset(a("."+G),u-U-A),a("."+G).css({width:A-W+"px"}));b=a(this)[0]===a(M)[0]?r[h]:0;ka=-1*(m.getSliderOffset(this,"x")-eventX-b);m.getSliderOffset(this,"y");J[1]=eventX;y[1]=eventY;qa=!1});a(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent", function(b){p||w||(b=b.originalEvent);if(ja[h]||ha||Ba||!ma)return!0;var f=0;if("touchmove"==b.type)eventX=b.touches[0].pageX,eventY=b.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(w)try{document.selection.empty()}catch(Ia){}else document.selection.empty();eventX=b.pageX;eventY=b.pageY;if(!za||!P&&("undefined"!=typeof b.webkitMovementX||"undefined"!=typeof b.webkitMovementY)&& 0===b.webkitMovementY&&0===b.webkitMovementX)return!0}J[0]=J[1];J[1]=eventX;c=(J[1]-J[0])/2;y[0]=y[1];y[1]=eventY;d=(y[1]-y[0])/2;if(!ia){var g=(C[h]+D[h]+N)%N;g=new m.args("start",k,K,a(K).children(":eq("+g+")"),g,void 0);a(F).data("args",g);if(""!=k.onSlideStart)k.onSlideStart(g)}(d>k.verticalSlideLockThreshold||d<-1*k.verticalSlideLockThreshold)&&"touchmove"==b.type&&!ia&&(ta=!0);(c>k.horizontalSlideLockThreshold||c<-1*k.horizontalSlideLockThreshold)&&"touchmove"==b.type&&b.preventDefault();if(c> k.slideStartVelocityThreshold||c<-1*k.slideStartVelocityThreshold)ia=!0;if(ia&&!ta){var v=m.getSliderOffset(K,"x"),l=a(la)[0]===a(M)[0]?r[h]:q,E=a(la)[0]===a(M)[0]?(r[h]-z[h]-q)/(u-U-A):1,n=a(la)[0]===a(M)[0]?k.scrollbarElasticPullResistance:k.elasticPullResistance,t=k.snapSlideCenter&&a(la)[0]===a(M)[0]?0:q,B=k.snapSlideCenter&&a(la)[0]===a(M)[0]?q:0;"touchmove"==b.type&&(Ga!=b.touches.length&&(ka=-1*v+eventX),Ga=b.touches.length);if(k.infiniteSlider){if(v<=-1*z[h])if(g=a(K).width(),v<=-1*ca[h]){var L= -1*Z[0];a(H).each(function(b){m.setSliderOffset(a(H)[b],L+q);b=-1*r[h]||0<=v)if(g=a(K).width(),0<=v)for(L=-1*Z[0],a(H).each(function(b){m.setSliderOffset(a(H)[b], L+q);bY&&(Y=m.getSliderOffset(this,"x"),O=a)});n=r[h]-T[O];m.setSliderOffset(a(H)[O],n);x.splice(0,0,-1*n+q);x.splice(x.length-1,1);r[h]=-1*x[0]+q;z[h]=r[h]+g-I;D[h]--;C[h]++}else O=0,Y=m.getSliderOffset(a(H[0]),"x"),a(H).each(function(a){m.getSliderOffset(this,"x")>Y&&(Y=m.getSliderOffset(this,"x"),O=a)}),n=r[h]- T[O],m.setSliderOffset(a(H)[O],n),x.splice(0,0,-1*n+q),x.splice(x.length-1,1),r[h]=-1*x[0]+q,z[h]=r[h]+g-I,D[h]--}else g=a(K).width(),v>-1*r[h]+q&&(f=(r[h]+-1*(ka-l-eventX+t)*E-l)*n*-1/E),v<-1*z[h]&&(f=(z[h]+B+-1*(ka-l-eventX)*E-l)*n*-1/E);m.setSliderOffset(K,-1*(ka-l-eventX-f)*E-l+B);k.scrollbar&&(m.showScrollbar(k,G),e=Math.floor((ka-eventX-f-r[h]+t)/(z[h]-r[h]+q)*(u-U-A)*E),g=A,0>=e?(g=A-W- -1*e,m.setSliderOffset(a("."+G),0),a("."+G).css({width:g+"px"})):e>=u-U-W-A?(g=u-U-W-e,m.setSliderOffset(a("."+ G),e),a("."+G).css({width:g+"px"})):m.setSliderOffset(a("."+G),e));"touchmove"==b.type&&(Ca=b.touches[0].pageX);b=!1;f=m.calcActiveOffset(k,-1*(ka-eventX-f),x,I,D[h],N,void 0,h);g=(f+D[h]+N)%N;k.infiniteSlider?g!=ba[h]&&(b=!0):f!=C[h]&&(b=!0);if(b){C[h]=f;ba[h]=g;qa=!0;g=new m.args("change",k,K,a(K).children(":eq("+g+")"),g,g);a(F).data("args",g);if(""!=k.onSlideChange)k.onSlideChange(g);m.updateBackfaceVisibility(H,h,N,k)}}});g=a(window);if(w||p)g=a(document);a(ua).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent", function(a){a=a.originalEvent;if(Aa)return!1;Aa=!0;if(ja[h]||ha||Ba)return!0;if(0!=a.touches.length)for(var b=0;bD[e.sliderNumber]&&C[e.sliderNumber]--,d.data("args").currentSlideNumber>=c&&C[e.sliderNumber]++):(c<=e.numberOfSlides?a(e.scrollerNode).children(":eq("+(c-1)+")").before(b):a(e.scrollerNode).children(":eq("+(c-2)+")").after(b),d.data("args").currentSlideNumber>=c&&d.data("args").currentSlideNumber++);d.data("iosslider").numberOfSlides++;da.update(this)})},removeSlide:function(b){return this.each(function(){var c=a(this),d=c.data("iosslider");if(void 0==d)return!1;a(d.scrollerNode).children(":eq("+ (b-1)+")").remove();C[d.sliderNumber]>b-1&&C[d.sliderNumber]--;c.data("iosslider").numberOfSlides--;da.update(this)})},goToSlide:function(b,c,d){void 0==d&&(d=this);return a(d).each(function(){var d=a(this).data("iosslider");if(void 0==d||d.shortContent)return!1;b=b>d.childrenOffsets.length?d.childrenOffsets.length-1:b-1;void 0!=c&&(d.settings.autoSlideTransTimer=c);m.changeSlide(b,a(d.scrollerNode),a(d.slideNodes),X[d.sliderNumber],d.scrollbarClass,d.scrollbarWidth,d.stageWidth,d.scrollbarStageWidth, d.scrollMargin,d.scrollBorder,d.originalOffsets,d.childrenOffsets,d.slideNodeOuterWidths,d.sliderNumber,d.infiniteSliderWidth,d.numberOfSlides,d.centeredSlideOffset,d.settings)})},prevSlide:function(b){return this.each(function(){var c=a(this).data("iosslider");if(void 0==c||c.shortContent)return!1;var d=(C[c.sliderNumber]+D[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides;void 0!=b&&(c.settings.autoSlideTransTimer=b);(0k;k++)if(f=g[k],f.parsed&&(f=f.el[0]),f===c.el[0]){b.index=k;break}}else b.items=a.isArray(c.items)? c.items:[c.items],b.index=c.index||0;if(b.isOpen)return b.updateItemHTML(),void 0;b.types=[];l="";b.ev=c.mainEl&&c.mainEl.length?c.mainEl.eq(0):e;c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={};b.st=a.extend(!0,{},a.magnificPopup.defaults,c);b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos;b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1); b.bgOverlay||(b.bgOverlay=B("bg").on("click.mfp",function(){b.close()}),b.wrap=B("wrap").attr("tabindex",-1).on("click.mfp",function(a){b._checkIfClose(a.target)&&b.close()}),b.container=B("container",b.wrap));b.contentContainer=B("content");b.st.preloader&&(b.preloader=B("preloader",b.container,b.st.tLoading));f=a.magnificPopup.modules;for(k=0;f.length>k;k++)g=f[k],g=g.charAt(0).toUpperCase()+g.slice(1),b["init"+g].call(b);R("BeforeOpen");b.st.showCloseBtn&&(b.st.closeBtnInside?(y("MarkupParse", function(a,b,c,d){c.close_replaceWith=Y(d.type)}),l+=" mfp-close-btn-in"):b.wrap.append(Y()));b.st.alignTop&&(l+=" mfp-align-top");b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:P.scrollTop(),position:"absolute"});(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:e.height(),position:"absolute"});b.st.enableEscapeKey&&e.on("keyup.mfp",function(a){27===a.keyCode&&b.close()});P.on("resize.mfp", function(){b.updateSize()});b.st.closeOnContentClick||(l+=" mfp-auto-cursor");l&&b.wrap.addClass(l);k=b.wH=P.height();f={};b.fixedContentPos&&b._hasScrollBar(k)&&(g=b._getScrollbarSize())&&(f.marginRight=g);b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):f.overflow="hidden");g=b.st.mainClass;return b.isIE7&&(g+=" mfp-ie7"),g&&b._addClassToMFP(g),b.updateItemHTML(),R("BuildControls"),a("html").css(f),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||d),b._lastFocusedEl=document.activeElement, setTimeout(function(){b.content?(b._addClassToMFP("mfp-ready"),b._setFocus()):b.bgOverlay.addClass("mfp-ready");e.on("focusin.mfp",b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),R("Open"),c},close:function(){b.isOpen&&(R("BeforeClose"),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP("mfp-removing"),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){R("Close");var c="mfp-removing mfp-ready ";if(b.bgOverlay.detach(),b.wrap.detach(), b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos)c={marginRight:""},b.isIE7?a("body, html").css("overflow",""):c.overflow="",a("html").css(c);e.off("keyup.mfp focusin.mfp");b.ev.off(".mfp");b.wrap.attr("class","mfp-wrap").removeAttr("style");b.bgOverlay.attr("class","mfp-bg");b.container.attr("class","mfp-container");!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(); b._lastFocusedEl&&a(b._lastFocusedEl).focus();b.currItem=null;b.content=null;b.currTemplate=null;b.prevHeight=0;R("AfterClose")},updateSize:function(a){b.isIOS?(a=document.documentElement.clientWidth/window.innerWidth*window.innerHeight,b.wrap.css("height",a),b.wH=a):b.wH=a||P.height();b.fixedContentPos||b.wrap.css("height",b.wH);R("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach();b.content&&b.content.detach();c.parsed||(c=b.parseEl(b.index));var d=c.type;if(R("BeforeChange", [b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var e=b.st[d]?b.st[d].markup:!1;R("FirstMarkupParse",e);b.currTemplate[d]=e?a(e):!0}f&&f!==c.type&&b.container.removeClass("mfp-"+f+"-holder");e=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(e,d);c.preloaded=!0;R("Change",c);f=c.type;b.container.prepend(b.contentContainer);R("AfterChange")},appendContent:function(a,c){(b.content=a)?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]? b.content.find(".mfp-close").length||b.content.append(Y()):b.content=a:b.content="";R("BeforeAppend");b.container.addClass("mfp-"+c+"-holder");b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,k=0;f.length>k;k++)if(e.el.hasClass("mfp-"+f[k])){d=f[k];break}e.src=e.el.attr("data-mfp-src");e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e, R("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this;b._openClick(d,a,c)};c||(c={});c.mainEl=a;c.items?(c.isObj=!0,a.off("click.magnificPopup").on("click.magnificPopup",d)):(c.isObj=!1,c.delegate?a.off("click.magnificPopup").on("click.magnificPopup",c.delegate,d):(c.items=a,a.off("click.magnificPopup").on("click.magnificPopup",d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f= void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(b))return!0}else if(f>P.width())return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation());e.el=a(c.mfpEl);e.delegate&&(e.items=d.find(e.delegate));b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c);d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};R("UpdateStatus",e);a=e.status;d=e.text;b.preloader.html(d);b.preloader.find("a").on("click", function(a){a.stopImmediatePropagation()});b.container.addClass("mfp-s-"+a);c=a}},_checkIfClose:function(c){if(!a(c).hasClass("mfp-prevent-close")){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e||!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a);b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a); b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?e.height():document.body.scrollHeight)>(a||P.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c));R("MarkupParse",[b,c,d]);a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),1'):d.attr(e[1],c)}}else b.find(".mfp-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm";a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(a);b.scrollbarSize=a.offsetWidth-a.clientWidth; document.body.removeChild(a)}return b.scrollbarSize}};a.magnificPopup={instance:null,proto:p.prototype,modules:[],open:function(b,c){return V(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options);a.extend(this.proto,c.proto);this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"", closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}};a.fn.magnificPopup=function(c){V();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=w?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)|| 0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g));b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),w?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var X,C,ba,D=function(){ba&&(C.after(ba.addClass(X)).detach(),ba=null)};a.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push("inline"); y("Close.inline",function(){D()})},getInline:function(c,d){if(D(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(C||(X=e.hiddenClass,C=B(X),X="mfp-"+X),ba=f.after(C).detach().removeClass(X));b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var r,z=function(){r&&d.removeClass(r);b.req&&b.req.abort()};a.magnificPopup.registerModule("ajax",{options:{settings:null, cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push("ajax");r=b.st.ajax.cursor;y("Close.ajax",z);y("BeforeChange.ajax",z)},getAjax:function(c){r&&d.addClass(r);b.updateStatus("loading");var e=a.extend({url:c.src,success:function(e,f,g){e={data:e,xhr:g};R("ParseAjax",e);b.appendContent(a(e.data),"ajax");c.finished=!0;r&&d.removeClass(r);b._setFocus();setTimeout(function(){b.wrap.addClass("mfp-ready")},16);b.updateStatus("ready"); R("AjaxContentAdded")},error:function(){r&&d.removeClass(r);c.finished=c.loadError=!0;b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var ca,ja=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
', cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var a=b.st.image;b.types.push("image");y("Open.image",function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)});y("Close.image",function(){a.cursor&&d.removeClass(a.cursor);P.off("resize.mfp")});y("Resize.image",b.resizeImage);b.isLowIE&&y("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c= 0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10));a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,ca&&clearInterval(ca),a.isCheckingImgSize=!1,R("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){ca&&clearInterval(ca);ca=setInterval(function(){return 0e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",k.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},k=b.st.image,l=d.find(".mfp-img"); if(l.length){var p=document.createElement("img");p.className="mfp-img";c.img=a(p).on("load.mfploader",f).on("error.mfploader",g);p.src=c.src;l.is("img")&&(c.img=c.img.clone());p=c.img[0];0
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"}, gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push("iframe");y("BeforeChange",function(a,b,c){b!==c&&("iframe"===b?da():"iframe"===c&&da(!0))});y("Close.iframe",function(){da()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return-1c-1?a-c:0>a?c+a:a},J=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)", tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,d=!!a.fn.mfpFastClick;return b.direction=!0,c&&c.enabled?(l+=" mfp-gallery",y("Open.mfp-gallery",function(){c.navigateByImgClick&&b.wrap.on("click.mfp-gallery",".mfp-img",function(){return 1=b.index;b.index=a;b.updateItemHTML()},preloadNearbyImages:function(){var a=b.st.gallery.preload,c=Math.min(a[0],b.items.length),d=Math.min(a[1],b.items.length);for(a=1;(b.direction?d:c)>=a;a++)b._preloadItem(b.index+a);for(a=1;(b.direction?c:d)>=a;a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=n(c),!b.items[c].preloaded){var d=b.items[c]; d.parsed||(d=b.parseEl(c));R("LazyLoad",d);"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0;d.loadError=!0;R("LazyLoadError",d)}).attr("src",d.src));d.preloaded=!0}}}});a.magnificPopup.registerModule("retina",{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(1").attr(c.extend(d(this),{type:"text"}))}f.removeAttr("name").data({"placeholder-password":a,"placeholder-id":b}).bind("focus.placeholder",e);a.data({"placeholder-textinput":f,"placeholder-id":b}).before(f)}a=a.removeAttr("id").hide().prev().attr("id",b).show()}a.addClass("placeholder");a[0].value=a.attr("placeholder")}else a.removeClass("placeholder")}function l(){try{return b.activeElement}catch(B){}} var g="placeholder"in b.createElement("input"),p="placeholder"in b.createElement("textarea"),w=c.fn,P=c.valHooks,y=c.propHooks;g&&p?(w=w.placeholder=function(){return this},w.input=w.textarea=!0):(w=w.placeholder=function(){this.filter((g?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder");return this},w.input=g,w.textarea=p,w={get:function(a){var b=c(a),d=b.data("placeholder-password"); return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),g=d.data("placeholder-password");if(g)return g[0].value=b;if(!d.data("placeholder-enabled"))return a.value=b;""==b?(a.value=b,a!=l()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b;return d}},g||(P.input=w,y.value=w),p||(P.textarea=w,y.value=w),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)}, 10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))})(this,document,jQuery); (function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;cjQuery(window).width()||768>jQuery(window).height())&&!1===tdDetect.isIpad?tdDetect.isPhoneScreen=!0:tdDetect.isPhoneScreen=!1},set:function(a,b){tdDetect[a]=b}};tdDetect.htmlJqueryObj=jQuery("html");-1!==navigator.appVersion.indexOf("Win")&& tdDetect.set("isWinOs",!0);"ontouchstart"in window&&!tdDetect.isWinOs&&tdDetect.set("isTouchDevice",!0);tdDetect.htmlJqueryObj.is(".ie8")&&(tdDetect.set("isIe8",!0),tdDetect.set("isIe",!0));tdDetect.htmlJqueryObj.is(".ie9")&&(tdDetect.set("isIe9",!0),tdDetect.set("isIe",!0));-1").css({height:"1px",position:"absolute",top:"-1px",left:"0",right:"0",visibility:"hidden","z-index":"-1"}),this.divJqueryObject.appendTo("body"),this.divAdded=!0);return this.divJqueryObject.width()}},log:function(a){}};tdViewport.init()})();var tdMenu={}; (function(){tdMenu={_itemsWithSubmenu:null,_mainMenu:null,_outsideClickArea:null,_outsideClickExcludedAreas:"#td-header-menu .sf-menu, #td-header-menu .sf-menu *, .menu-top-container, .menu-top-container *",_openMenuClass:"sfHover",_openMenuBodyClass:"td-open-menu",init:function(){var a=jQuery("#td-header-menu .sf-menu"),b=jQuery("#td-header-menu .sf-menu, .top-header-menu"),c=b.find(".menu-item-has-children > a, .td-mega-menu > a");c.append('');a.supersubs({minWidth:10, maxWidth:20,extraWidth:1});c.addClass("sf-with-ul");b.addClass("sf-js-enabled");c.parent().find("ul").first().css("display","none");tdMenu._mainMenu=a;tdMenu._itemsWithSubmenu=c;tdMenu._outsideClickArea=jQuery(window).not(tdMenu._outsideClickExcludedAreas);tdMenu._setHover(c,a)},_getSubmenuPosition:function(a){var b=jQuery(window).width();a=a.children("ul").first();if(0b&&(a.parent().parent().hasClass("sf-menu")?a.css("left","-"+(c-b)+"px"):a.addClass("reversed").css("left", "-"+(a.width()+0)+"px"))}},_getMouseAngleDirection:function(a,b,c,d){return Math.atan2(c-a,d-b)/Math.PI*180},_setHover:function(a,b){if(tdDetect.isTouchDevice)jQuery(document).on("touchstart","body",function(b){var c=a.parent(),d=jQuery("body");d.hasClass(tdMenu._openMenuBodyClass)&&!c.is(b.target)&&0===c.has(b.target).length&&(c.removeClass(tdMenu._openMenuClass),c.children("ul").hide(),d.removeClass(tdMenu._openMenuBodyClass))}),a.on("touchstart",function(b){b.preventDefault();b.stopPropagation(); var c=jQuery(this);b=c.parent();var d=jQuery("body");b.hasClass(tdMenu._openMenuClass)?null!==c.attr("href")&&"#"!==c.attr("href")?window.location.href=c.attr("href"):((b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu"))&&d.removeClass(tdMenu._openMenuBodyClass),b.removeClass(tdMenu._openMenuClass),b.find("ul").hide(),b.find("li").removeClass(tdMenu._openMenuClass)):(b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu")?(a.parent().removeClass(tdMenu._openMenuClass), a.parent().children("ul").hide()):(c=b.siblings(),c.removeClass(tdMenu._openMenuClass),c.find("ul").hide(),c.find("li").removeClass(tdMenu._openMenuClass)),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),tdMenu._getSubmenuPosition(b),d.addClass(tdMenu._openMenuBodyClass))});else{var c={},d,e=!0;b.on("mouseleave",function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();c={}});b.find(".menu-item").hover(function(){var b=jQuery(this),l="",g,p;if(b.hasClass("menu-item-has-children")|| b.hasClass("td-mega-menu"))if(b.parent().hasClass("sf-menu"))if(jQuery.isEmptyObject(c))b.addClass(tdMenu._openMenuClass),b.children("ul").show(),c=b;else{if(b[0]!==c[0]){var w=p=g=0,P=null;!0===e&&(e=!1,d=setTimeout(function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();b.addClass(tdMenu._openMenuClass);b.children("ul").show();c=b},400));b.on("mousemove",function(f){5<=g?(g=0,P=tdMenu._getMouseAngleDirection(p,w,f.pageX,f.pageY),p=f.pageX,w=f.pageY):(g++,0===p&& 0===w&&(p=f.pageX,w=f.pageY));null!==P&&(85P)&&(a.parent().removeClass(tdMenu._openMenuClass),a.parent().children("ul").hide(),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),b.off("mousemove"),clearTimeout(d),e=!0,c=b)})}}else l=b.siblings(),l.removeClass(tdMenu._openMenuClass),l.find("ul").hide(),l.find("li").removeClass(tdMenu._openMenuClass),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),tdMenu._getSubmenuPosition(b);else b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu")? jQuery.isEmptyObject(c)||(w=p=g=0,P=null,!0===e&&(e=!1,d=setTimeout(function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();c={}},400)),b.on("mousemove",function(f){5<=g?(g=0,P=tdMenu._getMouseAngleDirection(p,w,f.pageX,f.pageY),p=f.pageX,w=f.pageY):(g++,0===p&&0===w&&(p=f.pageX,w=f.pageY));null!==P&&(85P)&&(a.parent().removeClass(tdMenu._openMenuClass),a.parent().children("ul").hide(),b.off("mousemove"),clearTimeout(d),e=!0,c={})})):(c=b.parent(),l=b.siblings(), l.removeClass(tdMenu._openMenuClass),l.find("ul").hide(),l.find("li").removeClass(tdMenu._openMenuClass))},function(){var a=jQuery(this);!1===e&&(clearTimeout(d),e=!0);a.off("mousemove")})}},unsetHover:function(){null!==tdMenu._itemsWithSubmenu&&tdMenu._itemsWithSubmenu.off();null!==tdMenu._outsideClickArea&&tdMenu._outsideClickArea.off()}}})();jQuery().ready(function(){tdMenu.init()});var tdUtil={}; (function(){tdUtil={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,stopBubble:function(a){a&&a.stopPropagation?a.stopPropagation():window.event.cancelBubble=!0},isEmail:function(a){return tdUtil.email_pattern.test(a)},imageMoveClassToFigure:function(a){jQuery("figure ."+a).each(function(){jQuery(this).parents("figure:first").addClass(a);jQuery(this).removeClass(a)})},getBackendVar:function(a){return"undefined"===typeof window[a]? "":window[a]},isUndefined:function(a){return void 0===a},scrollToElement:function(a,b){tdIsScrollingAnimation=!0;jQuery("html, body").stop();var c=a.offset().top>jQuery(document).height()-jQuery(window).height()?jQuery(document).height()-jQuery(window).height():a.offset().top;jQuery("html, body").animate({scrollTop:c},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},scrollIntoView:function(a){tdIsScrollingAnimation=!0;if(!0!==tdDetect.isMobileDevice){jQuery("html, body").stop(); a=a.offset().top;a-=150;var b=Math.abs(jQuery(window).scrollTop()-a)/5;jQuery("html, body").animate({scrollTop:a},{duration:1100+b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})}},scrollToPosition:function(a,b){tdIsScrollingAnimation=!0;jQuery("html, body").stop();jQuery("html, body").animate({scrollTop:a},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},tdMoveY:function(a,b){var c="translate3d(0px,"+b+"px, 0px)";a.style["-webkit-transform"]= c;a.style["-moz-transform"]=c;a.style["-ms-transform"]=c;a.style["-o-transform"]=c;a.style.transform=c},isValidUrl:function(a){return/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(#[-a-z\d_]*)?$/i.test(a)?!0:!1},round:function(a,b,c){b=Math.pow(10,b|0);a*=b;var d=0a),e=a%1===.5*d,f=Math.floor(a);if(e)switch(c){case "PHP_ROUND_HALF_DOWN":a=f+(0>d);break;case "PHP_ROUND_HALF_EVEN":a=f+f%2*d;break;case "PHP_ROUND_HALF_ODD":a= f+!(f%2);break;default:a=f+(0tdAffix.scroll_window_scrollTop_last?"down":"up",c=Math.abs(a-tdAffix.scroll_window_scrollTop_last));tdAffix.scroll_window_scrollTop_last=a}""!==tdAffix.tds_snap_menu&&""!==tdAffix.tds_snap_menu_logo&&jQuery(".td-main-menu-logo").addClass("td-logo-sticky"); if(a>tdAffix.top_offset+(tdAffix.main_menu_height/2-tdAffix._get_menu_affix_height()/2)||!0===tdAffix.is_menu_affix&&"smart_snap_always"===tdAffix.tds_snap_menu&&a>tdAffix.top_offset-tdAffix._get_menu_affix_height()||!0===tdAffix.is_top_menu){var d=jQuery(tdAffix.menu_selector);tdAffix._affix_on(d);"snap"===tdAffix.tds_snap_menu||"smart_snap_mobile"===tdAffix.tds_snap_menu&&!1===tdDetect.isPhoneScreen||(!1===tdAffix.menu_offset_max_hit&&"down"===b||!1===tdAffix.menu_offset_min_hit&&"up"===b)&&window.requestAnimationFrame(function(){var e= 0;0td_more_articles_box.distance_from_top?!1===td_more_articles_box.is_box_visible&&(jQuery(".td-more-articles-box").addClass("td-front-end-display-block"),td_more_articles_box.is_box_visible=!0):!0===td_more_articles_box.is_box_visible&&(jQuery(".td-more-articles-box").removeClass("td-front-end-display-block"),td_more_articles_box.is_box_visible=!1))}},td_resize_timer_id; jQuery(window).resize(function(){clearTimeout(td_resize_timer_id);td_resize_timer_id=setTimeout(function(){td_done_resizing()},200)});function td_done_resizing(){td_resize_videos()} function td_resize_videos(){jQuery(document).find('iframe[src*="youtube.com"]').each(function(){var a=jQuery(this).parent().parent().parent(),b=jQuery(this).parent().hasClass("td_wrapper_playlist_player_vimeo"),c=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||c||a||(b=jQuery(this),b.attr("width","100%"),c=b.width(),b.css("height",.5625*c,"important"))});jQuery(document).find('iframe[src*="vimeo.com"]').each(function(){var a=jQuery(this).parent().parent().parent(), b=jQuery(this).parent().hasClass("td_wrapper_playlist_player_vimeo"),c=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||c||a||(b=jQuery(this),b.attr("width","100%"),c=b.width(),b.css("height",.5625*c,"important"))});jQuery(document).find('iframe[src*="dailymotion.com"]').each(function(){var a=jQuery(this).parent().parent().parent(),b=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||a||(b=jQuery(this),b.attr("width","100%"),a=b.width(), b.css("height",.6*a,"important"))})}function td_mobile_menu(){} function td_mobile_menu_toogle(){jQuery("#td-top-mobile-toggle a, .td-mobile-close a").click(function(){jQuery("body").hasClass("td-menu-mob-open-menu")?jQuery("body").removeClass("td-menu-mob-open-menu"):jQuery("body").addClass("td-menu-mob-open-menu")});jQuery(document).find("#td-mobile-nav .menu-item-has-children").each(function(a){a="td_mobile_elem_with_submenu_"+a;jQuery(this).addClass(a);jQuery(this).children("a").addClass("td-link-element-after");jQuery(this).click(function(a){var b=jQuery(a.target); !b.length||!b.hasClass("td-element-after")&&!b.hasClass("td-link-element-after")||"#"!==b.attr("href")&&void 0!==b.attr("href")||(a.preventDefault(),a.stopPropagation(),jQuery(this).toggleClass("td-sub-menu-open"))})})} function td_retina(){1=d){var a=1-d/800;!0===tdDetect.isIe8&&(a=1);a=Math.round(100*a)/100;b.style.opacity=a;tdUtil.tdMoveY(c,- -Math.round(d/4));e=-Math.round(d/8);tdUtil.tdMoveY(b,-e)}f=!1}var b=document.getElementById("td_parallax_header_6"),c=document.getElementById("td-full-screen-header-image"),d="",e;jQuery(window).scroll(function(){!1===f&&window.requestAnimationFrame(a);f=!0});var f=!1} function td_smart_lists_magnific_popup(){jQuery(".td-lightbox-enabled").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},image:{tError:"The image #%curr% could not be loaded.",titleSrc:function(a){return a.el.attr("data-caption")}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}}, callbacks:{change:function(a){if(""!=a.el[0].id){var b=a.el[0].id.split("_");jQuery(".td-iosSlider").iosSlider("goToSlide",parseInt(b[1])+1)}else tdModalImageLastEl=a.el,setTimeout(function(){tdUtil.scrollIntoView(a.el)},100)},beforeClose:function(){""!=tdModalImageLastEl&&tdUtil.scrollIntoView(tdModalImageLastEl)}}})} function td_get_document_width(){var a=0;self.innerHeight?a=self.innerWidth:document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientWidth:document.body&&(a=document.body.clientWidth);return a}function td_get_document_height(){var a=0;self.innerHeight?a=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientHeight:document.body&&(a=document.body.clientHeight);return a} function setMenuMinHeight(){if("undefined"===typeof tdEvents.previousWindowInnerWidth)tdEvents.previousWindowInnerWidth=tdEvents.window_innerWidth;else if(tdEvents.previousWindowInnerWidth===tdEvents.window_innerWidth)return;tdEvents.previousWindowInnerWidth=tdEvents.window_innerWidth;var a=jQuery("#td-mobile-nav"),b=tdEvents.window_innerHeight+1;a.length&&a.css("min-height",b+"px");if(tdDetect.isMobileDevice){a=jQuery(".td-menu-background");var c=jQuery(".td-search-background");a.length&&a.css("height", b+70+"px");c.length&&c.css("height",b+70+"px")}} function td_comments_form_validation(){jQuery(".comment-form").submit(function(a){jQuery("form#commentform :input").each(function(){var b=jQuery(this),c=jQuery(this).parent().parent();b.attr("aria-required")&&(""==b.val()?(a.preventDefault(),c.addClass("td-comment-form-warnings"),"comment"==b.attr("id")?(c.find(".td-warning-comment").show(200),b.css("border","1px solid #ff7a7a")):"author"==b.attr("id")?(c.find(".td-warning-author").show(200),b.css("border","1px solid #ff7a7a")):"email"==b.attr("id")&& (c.find(".td-warning-email").show(200),b.css("border","1px solid #ff7a7a"))):"email"==b.attr("id")&&!1===tdUtil.isEmail(b.val())&&(a.preventDefault(),c.addClass("td-comment-form-warnings"),c.find(".td-warning-email-error").show(200)))})});jQuery("form#commentform :input").each(function(){var a=jQuery(this).parent().parent(),b=jQuery(this);b.focus(function(){"comment"==b.attr("id")?(a.find(".td-warning-comment").hide(200),b.css("border","1px solid #e1e1e1")):"author"==b.attr("id")?(a.find(".td-warning-author").hide(200), b.css("border","1px solid #e1e1e1")):"email"==b.attr("id")&&(a.find(".td-warning-email").hide(200),a.find(".td-warning-email-error").hide(200),b.css("border","1px solid #e1e1e1"))})})}var tdLoadingBox={}; (function(){tdLoadingBox={speed:40,arrayColorsTemp:"rgba(99, 99, 99, 0);rgba(99, 99, 99, 0.05);rgba(99, 99, 99, 0.08);rgba(99, 99, 99, 0.2);rgba(99, 99, 99, 0.3);rgba(99, 99, 99, 0.5);rgba(99, 99, 99, 0.6);rgba(99, 99, 99, 1)".split(";"),arrayColors:[],statusAnimation:"stop",stop:function(){tdLoadingBox.statusAnimation="stop"},init:function(a,b){!1===tdUtil.isUndefined(b)&&(tdLoadingBox.speed=b);var c=/^#[a-zA-Z0-9]{3,6}$/;a&&c.test(a)?(c=tdLoadingBox.hexToRgb(a),c="rgba("+c.r+", "+c.g+", "+c.b+", ", tdLoadingBox.arrayColors[7]=c+" 0.9)",tdLoadingBox.arrayColors[6]=c+" 0.7)",tdLoadingBox.arrayColors[5]=c+" 0.5)",tdLoadingBox.arrayColors[4]=c+" 0.3)",tdLoadingBox.arrayColors[3]=c+" 0.15)",tdLoadingBox.arrayColors[2]=c+" 0.15)",tdLoadingBox.arrayColors[1]=c+" 0.15)",tdLoadingBox.arrayColors[0]=c+" 0.15)"):tdLoadingBox.arrayColors=tdLoadingBox.arrayColorsTemp.slice(0);"stop"===tdLoadingBox.statusAnimation&&(tdLoadingBox.statusAnimation="display",this.render())},render:function(a){tdLoadingBox.animationDisplay('
');a=[tdLoadingBox.arrayColors[0],tdLoadingBox.arrayColors[1],tdLoadingBox.arrayColors[2],tdLoadingBox.arrayColors[3],tdLoadingBox.arrayColors[4],tdLoadingBox.arrayColors[5],tdLoadingBox.arrayColors[6],tdLoadingBox.arrayColors[7]];tdLoadingBox.arrayColors[0]=a[7];tdLoadingBox.arrayColors[1]=a[0]; tdLoadingBox.arrayColors[2]=a[1];tdLoadingBox.arrayColors[3]=a[2];tdLoadingBox.arrayColors[4]=a[3];tdLoadingBox.arrayColors[5]=a[4];tdLoadingBox.arrayColors[6]=a[5];tdLoadingBox.arrayColors[7]=a[6];"display"===tdLoadingBox.statusAnimation?setTimeout(tdLoadingBox.render,tdLoadingBox.speed):tdLoadingBox.animationDisplay("")},animationDisplay:function(a){jQuery(".td-loader-gif").html(a)},hexToRgb:function(a){return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(a[1],16),g:parseInt(a[2], 16),b:parseInt(a[3],16)}:null}}})();var tdAjaxSearch={};jQuery().ready(function(){tdAjaxSearch.init()}); (function(){tdAjaxSearch={_current_selection_index:0,_last_request_results_count:0,_first_down_up:!0,_is_search_open:!1,init:function(){jQuery(document).click(function(a){"td-icon-search"!==a.target.className&&"td-header-search"!==a.target.id&&"td-header-search-top"!==a.target.id&&!0===tdAjaxSearch._is_search_open&&tdAjaxSearch.hide_search_box()});jQuery("#td-header-search-button").click(function(a){a.preventDefault();!0===tdAjaxSearch._is_search_open?tdAjaxSearch.hide_search_box():tdAjaxSearch.show_search_box()}); jQuery("#td-header-search-button-mob").click(function(a){jQuery("body").addClass("td-search-opened");var b=jQuery("#td-header-search-mob");setTimeout(function(){b.focus()},1300);0tdAjaxSearch._last_request_results_count-1?jQuery(".td-search-form").fadeTo(100,1):(tdAjaxSearch.td_aj_search_input_remove_focus(),jQuery(".td_module_wrap").eq(tdAjaxSearch._current_selection_index).addClass("td-aj-cur-element"))},td_aj_search_input_focus:function(){tdAjaxSearch._current_selection_index= 0;tdAjaxSearch._first_down_up=!0;jQuery(".td-search-form").fadeTo(100,1);jQuery(".td_module_wrap").removeClass("td-aj-cur-element")},td_aj_search_input_remove_focus:function(){0!==tdAjaxSearch._last_request_results_count&&jQuery(".td-search-form").css("opacity",.5)},process_ajax_response:function(a){var b=jQuery("#td-header-search").val();""===b?jQuery("#td-aj-search").empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(tdAjaxSearch._current_selection_index=0,tdAjaxSearch._last_request_results_count= a.td_total_in_list,tdAjaxSearch._first_down_up=!0,jQuery("#td-aj-search").html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items("#td-aj-search .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0),window.tdAnimationStack.compute_items())))},process_ajax_response_mob:function(a){var b=jQuery("#td-header-search-mob").val();""===b?jQuery("#td-aj-search-mob").empty():(a=jQuery.parseJSON(a), a.td_search_query===b&&(jQuery("#td-aj-search-mob").html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items("#td-aj-search-mob .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0),window.tdAnimationStack.compute_items())))},do_ajax_call:function(){var a=jQuery("#td-header-search").val();""===a?tdAjaxSearch.td_aj_search_input_focus():tdLocalCache.exist(a)?tdAjaxSearch.process_ajax_response(tdLocalCache.get(a)): jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",td_string:a},success:function(b,c,d){tdLocalCache.set(a,b);tdAjaxSearch.process_ajax_response(b)},error:function(a,c,d){}})},do_ajax_call_mob:function(){var a=jQuery("#td-header-search-mob").val();""!==a&&(tdLocalCache.exist(a)?tdAjaxSearch.process_ajax_response_mob(tdLocalCache.get(a)):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",td_string:a},success:function(b,c,d){tdLocalCache.set(a,b);tdAjaxSearch.process_ajax_response_mob(b)}, error:function(a,c,d){}}))}}})();"use strict"; jQuery().ready(function(){tdModalImage();tdUtil.imageMoveClassToFigure("td-post-image-full");tdUtil.imageMoveClassToFigure("td-post-image-right");tdUtil.imageMoveClassToFigure("td-post-image-left");"undefined"!==typeof window.tds_general_modal_image&&""!==window.tds_general_modal_image&&jQuery(".single .td-post-content a > img").filter(function(a,b){if(-1!==b.className.indexOf("wp-image")){var c=jQuery(b).parent(),d=c.attr("href");-1!==d.indexOf(document.domain)&&-1!==d.indexOf("uploads")&&c.addClass("td-modal-image")}})}); var tdModalImageLastEl=""; function tdModalImage(){jQuery("figure.wp-caption").each(function(){var a=jQuery(this).children("figcaption").html();jQuery(this).children("a").data("caption",a)});jQuery(".td-modal-image").each(function(){jQuery(this).parent().addClass("td-modal-image");jQuery(this).removeClass("td-modal-image")});jQuery("article").magnificPopup({type:"image",delegate:".td-modal-image",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")}, ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).data("caption");return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{change:function(a){tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdAffix.allow_scroll=!1;tdUtil.scrollIntoView(tdModalImageLastEl);var a=setInterval(function(){tdIsScrollingAnimation|| (clearInterval(a),setTimeout(function(){tdAffix.allow_scroll=!0},100))},100)}}});"undefined"===typeof jetpackCarouselStrings&&(jQuery("figure.gallery-item").each(function(){var a=jQuery(this).children("figcaption").html();jQuery(this).find("a").data("caption",a)}),jQuery(".tiled-gallery").magnificPopup({type:"image",delegate:"a",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")}, ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).parent().find(".tiled-gallery-caption").text();return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{change:function(a){tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdUtil.scrollIntoView(tdModalImageLastEl)}}}), jQuery(".gallery").magnificPopup({type:"image",delegate:".gallery-icon > a",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).data("caption"); return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{change:function(a){tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdUtil.scrollIntoView(tdModalImageLastEl)}}}))}var tdBlocks={}; (function(){function a(){function a(a,b){!0===d&&a.target===e?window.location=a.target:(d=!0,e=a.target,a.preventDefault(),setTimeout(function(){d=!1},300),c(a,b))}function c(a,b){var c=b.data("td_block_id"),d=tdBlocks.tdGetBlockObjById(c);d.is_ajax_running=!0;jQuery(".mega-menu-sub-cat-"+c).removeClass("cur-sub-cat");b.addClass("cur-sub-cat");d.td_filter_value=b.data("td_filter_value");d.td_current_page=1;tdBlocks.tdAjaxDoBlockRequest(d,"mega_menu")}jQuery(".td-ajax-next-page").click(function(a){a.preventDefault(); a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));jQuery(this).hasClass("ajax-page-disabled")||!0===a.is_ajax_running||(a.is_ajax_running=!0,a.td_current_page++,tdBlocks.tdAjaxDoBlockRequest(a,"next"))});jQuery(".td-ajax-prev-page").click(function(a){a.preventDefault();a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));jQuery(this).hasClass("ajax-page-disabled")||!0===a.is_ajax_running||(a.is_ajax_running=!0,a.td_current_page--,tdBlocks.tdAjaxDoBlockRequest(a,"back"))});jQuery(".td_ajax_load_more_js").click(function(a){a.preventDefault(); jQuery(this).hasClass("ajax-page-disabled")||(jQuery(this).css("visibility","hidden"),a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id")),a.td_current_page++,tdBlocks.tdAjaxDoBlockRequest(a,"load_more"),a.max_num_pages<=a.td_current_page&&jQuery(this).addClass("ajax-page-disabled"))});tdDetect.isMobileDevice?jQuery(".td-pulldown-filter-display-option").click(function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).addClass("td-pulldown-filter-list-open");a=jQuery("#td_pulldown_"+ a+"_list");a.removeClass("fadeOut");a.addClass("td_animated td_fadeIn")}):jQuery(".td-pulldown-filter-display-option").hover(function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).addClass("td-pulldown-filter-list-open");a=jQuery("#td_pulldown_"+a+"_list");a.removeClass("fadeOut");a.addClass("td_animated td_fadeIn");a.css("visibility","visible")},function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).removeClass("td-pulldown-filter-list-open")});jQuery(".td-related-title a").click(function(a){a.preventDefault(); jQuery(".td-related-title").children("a").removeClass("td-cur-simple-item");jQuery(this).addClass("td-cur-simple-item");a=jQuery(this).data("td_block_id");a=tdBlocks.tdGetBlockObjById(a);a.td_filter_value=jQuery(this).data("td_filter_value");a.td_current_page=1;tdBlocks.tdAjaxDoBlockRequest(a,"pull_down")});var d=!1,e="";tdDetect.isTouchDevice?jQuery(".block-mega-child-cats a").click(function(b){a(b,jQuery(this))},!1).each(function(b,c){c.addEventListener("touchend",function(b){a(b,jQuery(this))}, !1)}):jQuery(".block-mega-child-cats a").hover(function(a){c(a,jQuery(this))},function(a){});jQuery(".td-subcat-item a").click(function(a){a.preventDefault();a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));!0!==a.is_ajax_running&&(a.is_ajax_running=!0,jQuery("."+jQuery(this).data("td_block_id")+"_rand").find(".td-cur-simple-item").removeClass("td-cur-simple-item"),jQuery(this).addClass("td-cur-simple-item"),a.td_filter_value=jQuery(this).data("td_filter_value"),a.td_current_page=1, tdBlocks.tdAjaxDoBlockRequest(a,"pull_down"))});jQuery(".td-pulldown-filter-link").click(function(a){a.preventDefault();var b=jQuery(this).data("td_block_id");jQuery("#"+b).find(".iosSlider").iosSlider("destroy");var c=tdBlocks.tdGetBlockObjById(b);!0!==c.is_ajax_running&&(c.is_ajax_running=!0,c.td_filter_value=jQuery(this).data("td_filter_value"),jQuery("."+jQuery(this).data("td_block_id")+"_rand").find(".td-cur-simple-item").removeClass("td-cur-simple-item"),jQuery(this).addClass("td-cur-simple-item"), c.td_current_page=1,jQuery("#td_pulldown_"+b).removeClass("td-pulldown-filter-list-open"),tdBlocks.tdAjaxDoBlockRequest(c,"pull_down"),tdDetect.isMobileDevice&&tdUtil.stopBubble(a))})}jQuery().ready(function(){a()});tdBlocks={tdPullDownFilterChangeValue:function(a,c){jQuery("#td-pulldown-"+a+"-val").html(c)},tdAjaxDoBlockRequest:function(a,c){var b=JSON.stringify(a);if(tdLocalCache.exist(b))return tdBlocks.tdBlockAjaxLoadingStart(a,!0,c),tdBlocks.tdAjaxBlockProcessResponse(tdLocalCache.get(b),c), "cache_hit";tdBlocks.tdBlockAjaxLoadingStart(a,!1,c);jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:{action:"td_ajax_block",td_atts:a.atts,td_block_id:a.id,td_column_number:a.td_column_number,td_current_page:a.td_current_page,block_type:a.block_type,td_filter_value:a.td_filter_value,td_user_action:a.td_user_action},success:function(a,d,l){tdLocalCache.set(b,a);tdBlocks.tdAjaxBlockProcessResponse(a,c)},error:function(a,b,c){}})},tdAjaxBlockProcessResponse:function(a,c){var b=jQuery.parseJSON(a); if("load_more"===c||"infinite_load"===c){for(var e=0;e'),tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50)):"infinite_load"===d?(b.parent().append('
'), tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50)):(b.parent().append('
'),tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50),b.addClass("td_animated_long td_fadeOut_to_1")))}, tdBlockAjaxLoadingEnd:function(a,c,d){jQuery(".td-loader-gif").removeClass("td-loader-animation-mid").addClass("td-loader-animation-end");setTimeout(function(){jQuery(".td-loader-gif").remove();tdLoadingBox.stop()},400);var b=jQuery("#"+c.id);b.removeClass("td_animated_long td_fadeOut_to_1");if(!0===tdAnimationStack.activated)var f=tdAnimationStack.SORTED_METHOD.sort_left_to_right;switch(d){case "next":b.addClass("td_animated_xlong td_fadeInRight");void 0!==f&&(f=tdAnimationStack.SORTED_METHOD.sort_right_to_left); break;case "back":b.addClass("td_animated_xlong td_fadeInLeft");break;case "pull_down":b.addClass("td_animated_xlong td_fadeInDown");break;case "mega_menu":b.addClass("td_animated_xlong td_fadeInDown");break;case "load_more":setTimeout(function(){jQuery("."+c.id+"_rand .td_ajax_load_more_js").css("visibility","visible")},500);break;case "infinite_load":setTimeout(function(){tdInfiniteLoader.computeTopDistances();""!==a.td_data&&tdInfiniteLoader.enable_is_visible_callback(c.id)},500),setTimeout(function(){tdInfiniteLoader.computeTopDistances()}, 1E3),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1500)}setTimeout(function(){jQuery(".td_block_inner_overflow").removeClass("td_block_inner_overflow");b.css("height","auto");tdSmartSidebar.compute()},200);setTimeout(function(){tdSmartSidebar.compute()},500);void 0!==f&&setTimeout(function(){tdAnimationStack.check_for_new_items("#"+c.id+" .td-animation-stack",f,!0)},200)},tdGetBlockIndex:function(a){var b=0,d=0;jQuery.each(tdBlocksArray,function(c,f){if(f.id===a)return d=b,!1;b++}); return d},tdGetBlockObjById:function(a){return tdBlocksArray[tdBlocks.tdGetBlockIndex(a)]}}})(); jQuery().ready(function(){var a={type:"inline",preloader:!1,focus:"#name",removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr("data-effect");tdLogin.clearFields();tdLogin.showHideMsg();700>jQuery(window).width()?this.st.focus=!1:!1===tdDetect.isIe&&(this.st.focus="#login_email")},beforeClose:function(){}},disableOn:function(){return 750>jQuery(window).width()?!1:!0}};void 0!==window.tds_login_sing_in_widget&&(jQuery(".comment-reply-login").attr({href:"#login-form", "data-effect":"mpf-td-login-effect"}),jQuery(".comment-reply-login, .td-login-modal-js").magnificPopup(a));jQuery(".td-login-modal-js, .comment-reply-login").on("click",function(a){750>jQuery(window).width()&&void 0!==window.tds_login_sing_in_widget&&(a.preventDefault(),jQuery("body").addClass("td-menu-mob-open-menu"),jQuery(".td-mobile-container").hide(),jQuery("#td-mobile-nav").addClass("td-hide-menu-content"),setTimeout(function(){jQuery(".td-mobile-container").show()},500),tdLogin.showHideElementsMobile([["#td-login-mob", 1],["#td-register-mob",0],["#td-forgot-pass-mob",0]]))});jQuery("#login-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]]);jQuery("#login-form").addClass("td-login-animation");700');0===a(".td-set-theme-style-link").index(this)%2?l=2*e.outerWidth(!0):(e=e.prev(".td-set-theme-style"),e.length&&(l=e.outerWidth(!0)-0,g=e.outerWidth(!0)+0),c.preventDefault(),c.stopPropagation());c=c.pageY-document.body.scrollTop-f.outerHeight(!0)/2;c+f.outerHeight(!0)> window.innerHeight&&(c-=c+f.outerHeight(!0)-window.innerHeight);p=p.length?p.outerHeight(!0):0;p>c&&(c=p);p={top:c,right:l,width:""};c=f.data("width-preview");0=g||p=a(window).width()-l)b!==tdDemoMenu.startTimeout&&(window.clearTimeout(tdDemoMenu.startTimeout),tdDemoMenu.startTimeout=b),b!==tdDemoMenu.startInterval&&(window.clearInterval(tdDemoMenu.startInterval),tdDemoMenu.startInterval=b),g=0,l=d.data("right-value"),p=c,tdDemoMenu.mousePosX>=a(window).width()-l&&(e=!0);d.css({right:l,"padding-right":g,width:p});e?(tdDemoMenu._extendedDemo=!1,tdDemoMenu._checkMousePosition()):b===tdDemoMenu.startTimeout&&b===tdDemoMenu.startInterval&& (tdDemoMenu._extendedDemo=!0,tdDemoMenu._showExtendedScreenDemo())},15)},50)):d.css("visibility","hidden")}).mousemove(function(a){tdDemoMenu._moveScreenDemo(a)});a(".td-screen-demo-extend").hover(function(c){if(tdDemoMenu._extendedDemo){tdDemoMenu._extendedDemo=!1;var d=a(this),e=a(".td-screen-demo:first"),f=parseInt(a("#td-theme-settings").css("width").replace("px",""))/2,l=f;d.css({width:f+"px",top:e.css("top")});d.show();e.css("visibility","visible");tdDemoMenu._startExtendedTimeout=setTimeout(function(){tdDemoMenu._startExtendedInterval= setInterval(function(){l-=10;var c=!1;if(0>l||tdDemoMenu.mousePosX<=a(window).width()-f-l)b!==tdDemoMenu._startExtendedTimeout&&(window.clearTimeout(tdDemoMenu._startExtendedTimeout),tdDemoMenu._startExtendedTimeout=b),b!==tdDemoMenu._startExtendedInterval&&(window.clearInterval(tdDemoMenu._startExtendedInterval),tdDemoMenu._startExtendedInterval=b),tdDemoMenu.mousePosX<=a(window).width()-f-l&&(c=!0),l=f,d.hide();d.css({width:l,top:e.css("top")});c&&tdDemoMenu._checkMousePosition()},15)},50)}},function(c){b!==tdDemoMenu._startExtendedTimeout&&(window.clearTimeout(tdDemoMenu._startExtendedTimeout),tdDemoMenu._startExtendedTimeout=b);b!==tdDemoMenu._startExtendedInterval&&(window.clearInterval(tdDemoMenu._startExtendedInterval),tdDemoMenu._startExtendedInterval=b);tdDemoMenu._resetTdScreeDemoExtendWidth();a(this).hide();a(".td-screen-demo:first").css("visibility","hidden")}).mousemove(function(a){})},_moveScreenDemo:function(b){var c=a(".td-screen-demo:first"),e=a("#wpadminbar"),f=b.pageY-document.body.scrollTop- c.outerHeight(!0)/2;e=e.length?e.outerHeight(!0):0;e>f&&(f=e);0>f?f=0:a(window).height()-c.outerHeight(!0)/2a.trendingNowPosts.length)throw"item.trendingNowPosts is not valid"; tdTrendingNow.items.push(a);tdTrendingNow._initialize_item(a);tdTrendingNow.tdTrendingNowAutoStart(a.blockUid)},deleteItem:function(a){for(var b=0;b=b.trendingNowPosts.length||("manual"!==b.trendingNowAutostart&&(clearInterval(b.trendingNowTimer), b.trendingNowTimer=setInterval(function(){tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0)},3E3)),tdTrendingNow.tdTrendingNowChangeText([a,"right"],!1))},itemNext:function(a){for(var b,c=0;c=b.trendingNowPosts.length||("manual"!==b.trendingNowAutostart&&(clearInterval(b.trendingNowTimer),b.trendingNowTimer=setInterval(function(){tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0)},3E3)), tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0))},tdTrendingNowChangeText:function(a,b){for(var c=a[0],d=a[1],e=[],f=0,l,g=0;gg))){"left"===d?(f+=1,f>g&&(f=0)):(--f,0>f&&(f=g));tdTrendingNow.items[l].trendingNowPosition=f;e[c].css("opacity",0);e[c].css("z-index",0);for(var p in e)!0===e.hasOwnProperty(p)&&e[p].removeClass("td_animated_xlong td_fadeInLeft td_fadeInRight td_fadeOutLeft td_fadeOutRight");e[f].css("opacity",1);e[f].css("z-index",1);!0===b?(e[c].addClass("td_animated_xlong td_fadeOutLeft"),e[f].addClass("td_animated_xlong td_fadeInRight")):(e[c].addClass("td_animated_xlong td_fadeOutRight"),e[f].addClass("td_animated_xlong td_fadeInLeft"))}},tdTrendingNowAutoStart:function(a){for(var b=0;b').append('
');a.content_jquery_obj.prepend('
').append('
');tdSmartSidebar.items.push(a)},td_events_scroll:function(a){if(!1!==tdSmartSidebar.hasItems)if(!1===tdSmartSidebar.is_enabled){if(!1===tdSmartSidebar.is_disabled_state_run_once){tdSmartSidebar.is_disabled_state_run_once=!0;for(var b=0;btdSmartSidebar.scroll_window_scrollTop_last?"down":"up");tdSmartSidebar.scroll_window_scrollTop_last=a;var e=jQuery(window).height(),f=a+e;a+=b;for(var l=0;l=g.sidebar_height?"case_4_fixed_up":"case_3_bottom_of_content"}else if(!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,a)?!0===tdSmartSidebar._is_smaller_or_equal(a,g.sidebar_top)&&!0===tdSmartSidebar._is_smaller_or_equal(g.content_top,a)?g.sidebar_state="case_4_fixed_up":!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,f)&&!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,g.content_bottom)&&g.content_bottom>=f?g.sidebar_state="case_1_fixed_down":g.sidebar_state="case_3_bottom_of_content":!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,f)&&!0===tdSmartSidebar._is_smaller(g.sidebar_bottom, g.content_bottom)&&"down"===d&&g.content_bottom>=f?g.sidebar_state="case_1_fixed_down":!0===tdSmartSidebar._is_smaller_or_equal(g.sidebar_top,g.content_top)&&"up"===d&&g.content_bottom>=f?g.sidebar_state="case_2_top_of_content":!0===tdSmartSidebar._is_smaller_or_equal(g.content_bottom,g.sidebar_bottom)&&"down"===d||g.content_bottomc)b+=a[c];else break;2>c&&(b+="/")}l=b;return this},api:function(a,c){if(!this.element|| !a)return!1;var e=this.element,f=""!==e.id?e.id:null,g=c&&c.constructor&&c.call&&c.apply?null:c,l=c&&c.constructor&&c.call&&c.apply?c:null;l&&d(a,l,f);b(a,g,e);return this},addEvent:function(a,c){if(!this.element)return!1;var e=this.element,g=""!==e.id?e.id:null;d(a,c,g);"ready"!=a?b("addEventListener",a,e):"ready"==a&&f&&c.call(null,g);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,d;a:{if((d=""!==c.id?c.id:null)&&e[d]){if(!e[d][a]){d=!1;break a}e[d][a]=null}else{if(!e[a]){d= !1;break a}e[a]=null}d=!0}"ready"!=a&&d&&b("removeEventListener",a,c)}};a.fn.init.prototype=a.fn;window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c);return window.Froogaloop=window.$f=a}(),tdCustomEvents={}; (function(){tdCustomEvents={_callback_scroll:function(){tdAnimationScroll.compute_all_items()},_callback_resize:function(){},_lazy_callback_scroll_100:function(){!0===tdAnimationStack.activated&&tdAnimationStack.td_events_scroll()},_lazy_callback_scroll_500:function(){},_lazy_callback_resize_100:function(){tdPullDown.td_events_resize();tdBackstr.td_events_resize();tdAnimationScroll.td_events_resize()},_lazy_callback_resize_500:function(){!0===tdAnimationStack.activated&&tdAnimationStack.td_events_resize(); for(var a=0;a");c.jqControlPlayer=c.jqTDWrapperVideoPlaylist.find(".td_youtube_control");c.tdYtPlayer=new YT.Player(c.tdPlayerContainer,{playerVars:{autoplay:c.autoplay},height:"100%",width:"100%",videoId:b,events:{onStateChange:c.onPlayerStateChange}})}},onPlayerStateChange:function(a){if(a.data===YT.PlayerState.PLAYING)c.pauseStatus();else if(a.data===YT.PlayerState.ENDED){c.playStatus();c.autoplay=1;a="";var b=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing");b.length&&(b=jQuery(b).next(".td_click_video_youtube"),b.length&&(a=jQuery(b).data("video-id")));""!==a&&c.playVideo(a)}else YT.PlayerState.PAUSED&&c.playStatus()},playerPlay:function(){c.tdYtPlayer.playVideo()},playerPause:function(){c.tdYtPlayer.pauseVideo()},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")}, pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}};return c}};tdVimeoPlayers={tdPlayerContainer:"player_vimeo",players:[],existingAutoplay:!1,init:function(){for(var a=jQuery(".td_wrapper_playlist_player_vimeo"),b=0;b');c.createVimeoObjectPlayer(jQuery)}},createVimeoObjectPlayer:function(a){var b="";a=a("#"+c.playerId);a.length&&(b=$f(a[0]),c.player=b,b.addEvent("ready",function(){b.addEvent("play",function(a){c.pauseStatus();c.autoplay=1});b.addEvent("pause",function(a){c.playStatus()});b.addEvent("finish",function(a){a="";var b=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing"); b.length&&(b=jQuery(b).next(".td_click_video_vimeo"),b.length&&(a=jQuery(b).data("video-id")));""!==a?(c.createPlayer(a),tdDetect.isMobileDevice?c.playStatus():c.pauseStatus()):c.playStatus()})}))},playerPlay:function(){c.autoplay=1;c.player.api("play")},playerPause:function(){c.player.api("pause")},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")},pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}}; return c}}})();"use strict";jQuery(window).load(function(){td_resize_smartlist_sliders_and_update()});jQuery().ready(function(){td_resize_smartlist_sliders_and_update()});function td_resize_smartlist_slides(a){var b=a.currentSlideNumber;a=jQuery(a.data.obj[0]).attr("id");tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));b=jQuery("#"+a+"_item_"+b).outerHeight(!0);jQuery("#"+a+", #"+a+" .td-slider").css({height:b})} function td_resize_smartlist_sliders_and_update(){jQuery(document).find(".td-smart-list-slider").each(function(){var a=jQuery(this).attr("id");tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));var b=0;b=jQuery("#"+a+"_item_"+td_history.get_current_page("slide")).outerHeight(!0);jQuery("#"+a+", #"+a+" .td-slider").css({height:b});tdDetect.isAndroid&&setTimeout(function(){jQuery("#"+a).iosSlider("update")},2E3)})} function td_resize_normal_slide(a){a=jQuery(a.data.obj[0]).attr("id");var b=td_get_document_width();tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));var c=jQuery("#"+a+"_item_0").outerWidth(!0),d=780;tdDetect.isAndroid&&(d=1E3);bb;){if(0!==a.minimum_elements&&a._horizontal_elements.length<=a.minimum_elements){tdPullDown._make_all_elements_vertical(a);tdPullDown._prepare_horizontal_header(a);return}0===a._vertical_elements.length&&(b-=a._vertical_jquery_obj_outer_width); d=tdPullDown._make_element_vertical(a);b+=d.calculated_width}if(0!==a.minimum_elements&&0===a._horizontal_elements.length&&0=a._vertical_elements[0].calculated_width){for(d=c=0;d=c;)if(d=tdPullDown._make_element_horizontal(a),null!==d)e+=d.calculated_width,f--;else{tdPullDown._prepare_horizontal_header(a); return}b-=e}for(;(0=a._vertical_elements[0].calculated_width;)if(d=tdPullDown._make_element_horizontal(a),null!==d)b-=d.calculated_width;else{tdPullDown._prepare_horizontal_header(a);return}1===a._vertical_elements.length&&b+a._vertical_jquery_obj_outer_width>=a._vertical_elements[0].calculated_width&&tdPullDown._make_element_horizontal(a);tdPullDown._prepare_horizontal_header(a)}}, _prepare_horizontal_header:function(a,b){var c=a.horizontal_jquery_obj.parent().siblings(".block-title:first");1===c.length&&(c=c.find("span:first"),1===c.length&&("undefined"!==typeof b&&!0===b?c.css("margin-right",0):0===a._horizontal_elements.length?c.css("margin-right",a._vertical_jquery_obj_outer_width+"px"):c.css("margin-right",0)))},_compute_all_items:function(){for(var a=tdPullDown.items.length-1;0<=a;a--)tdPullDown.items[a].constructor===tdPullDown.item&&tdPullDown._compute_item(tdPullDown.items[a])}, _make_element_horizontal:function(a){if(!1===a._is_initialized||0===a._vertical_elements.length)return null;var b=a._vertical_elements.shift();0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display","none");a._horizontal_elements.push(b);b.jquery_object.css("opacity","0");b.jquery_object.detach().appendTo(a.horizontal_jquery_obj);setTimeout(function(){b.jquery_object.css("opacity","1")},50);return b},_make_element_vertical:function(a){if(!1===a._is_initialized||0===a._horizontal_elements.length)return null; var b=a._horizontal_elements.pop();0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display","");a._vertical_elements.unshift(b);b.jquery_object.detach().prependTo(a._vertical_ul_jquery_obj);return b},_make_all_elements_vertical:function(a){for(;0=c))if(void 0===this.properties[a])this.properties[a]= {computed_value:"",settings:[]},0!==b&&(this.properties[a].settings[this.properties[a].settings.length]={start_percent:0,end_percent:b,start_value:d,end_value:d,easing:""}),this.properties[a].settings[this.properties[a].settings.length]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f},this.properties[a].settings[this.properties[a].settings.length]={start_percent:c,end_percent:100,start_value:e,end_value:e,easing:""};else{var l=this.properties[a].settings[this.properties[a].settings.length- 1];l.start_percent!==b?(this.properties[a].settings[this.properties[a].settings.length-1]={start_percent:l.start_percent,end_percent:b,start_value:l.end_value,end_value:l.end_value,easing:""},this.properties[a].settings[this.properties[a].settings.length]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f}):this.properties[a].settings[this.properties[a].settings.length-1]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f};100!==c&&(this.properties[a].settings[this.properties[a].settings.length]= {start_percent:c,end_percent:100,start_value:e,end_value:e,easing:""})}};this.remove_item_property=function(a){if(void 0===this.properties[a])return!1;delete this.properties[a];return!0}},init:function(){tdAnimationScroll.items=[]},add_item:function(a){a.constructor===tdAnimationScroll.item&&(tdAnimationScroll.items.push(a),tdAnimationScroll._initialize_item(a))},_initialize_item:function(a){if(!0!==a._is_initialized&&(a.full_height=void 0===a.wrapper_jquery_obj?a.jqueryObj.outerHeight(!0):a.wrapper_jquery_obj.height(), 0!==a.full_height)){var b=jQuery('
');b.insertBefore(a.jqueryObj);a.top_marker_jquery_obj=b;a.offset_top=a.top_marker_jquery_obj.offset().top;a.offset_bottom_top=a.offset_top+a.full_height;a.top_is_out=tdEvents.window_pageYOffset>a.offset_top;a._is_initialized=!0}},reinitialize_all_items:function(a){for(var b=tdAnimationScroll.items.length-1;0<=b;b--)tdAnimationScroll.reinitialize_item(tdAnimationScroll.items[b],a)},reinitialize_item:function(a, b){!1!==a._is_initialized&&(a._is_initialized=!1,a.offset_top=a.top_marker_jquery_obj.offset().top,!0!==b||(a.full_height=void 0===a.wrapper_jquery_obj?a.jqueryObj.outerHeight(!0):a.wrapper_jquery_obj.height(),0!==a.full_height))&&(a.offset_bottom_top=a.offset_top+a.full_height,a._is_initialized=!0)},_compute_item_properties:function(a){var b={},c;for(c in a.properties)if(!0===a.properties.hasOwnProperty(c)){var d=a.properties[c],e;for(e=0;e=a.offset_top&&(b=tdEvents.window_pageYOffset>a.offset_bottom_top?100:100*(tdEvents.window_pageYOffset+tdEvents.window_innerHeight-a.offset_top)/(tdEvents.window_innerHeight+a.full_height));a.percent_value!==b&&(a.percent_value=b,tdAnimationScroll._compute_item_properties(a)); a.top_is_out=tdEvents.window_pageYOffset>a.offset_top}},compute_all_items:function(){!1===tdAnimationScroll.animation_running&&(tdAnimationScroll.rAFIndex=window.requestAnimationFrame(tdAnimationScroll._animate_all_items));tdAnimationScroll.animation_running=!0},_animate_all_items:function(){for(var a=0;a
'),e=a('');c.append(e);a("body").prepend(c);var f=new tdBackstr.item;f.wrapper_image_jquery_obj=c;f.image_jquery_obj=e;tdBackstr.add_item(f);b.$article=a("#post-"+b.postId);b.$bgImageWrapper=c;b.backstrItem=f;tdHomepageFull.items.push(b)},_addNewsmagItem:function(b){b.$tmplBlock=a("#"+ b.blockUid+"_tmpl");a("body").addClass("single_template_6");a("#td-outer-wrap").prepend(b.$tmplBlock.html());var c=a('
'),e=a('
'),f=a('');c.append(e);e.append(f);a("#td-outer-wrap").prepend(c);b.$bgImageWrapper=c;e=new tdBackstr.item;e.wrapper_image_jquery_obj=c;e.image_jquery_obj=f;tdBackstr.add_item(e);b.$article=a("#post-"+ b.postId);b.backstrItem=e;a(".td-read-down a").click(function(b){b.preventDefault();tdUtil.scrollToPosition(a(".td-full-screen-header-image-wrap").height(),1200)});tdHomepageFull.items.push(b)},_deleteItem:function(a,d){a.$tmplBlock.remove();a.$article.remove();a.$bgImageWrapper.remove();tdHomepageFull.items.splice(d,1);tdBackstr.deleteItem(a.blockUid)&&(a.backstrItem=b);var c=document.body.className;c=c.replace(/td-boxed-layout/g,"");c=c.replace(/single_template_8/g,"");c=c.replace(/homepage-post/g, "");document.body.className=c},_deleteNewsmagItem:function(a,d){a.$tmplBlock.remove();a.$article.remove();a.$bgImageWrapper.remove();tdHomepageFull.items.splice(d,1);tdBackstr.deleteItem(a.blockUid)&&(a.backstrItem=b);var c=document.body.className;c=c.replace(/single_template_6/g,"");document.body.className=c}}})(jQuery);var tdBackstr={}; (function(){tdBackstr={items:[],item:function(){this.blockUid="";this.image_aspect_rate=this.previous_value=0;this.image_jquery_obj=this.wrapper_image_jquery_obj=""},add_item:function(a){if(a.constructor===tdBackstr.item)if(a.image_jquery_obj.get(0).complete)tdBackstr._load_item_image(a);else a.image_jquery_obj.on("load",function(){tdBackstr._load_item_image(a)})},deleteItem:function(a){for(var b=0;bb.offset_top?1:a.offset_topb._order?1:a._order b.offset_top||!(a.offset_topb._order)&&a._ordertdAnimationStack.max_waiting_for_init)for(clearInterval(p),f=0;ftdAnimationStack.max_interval?tdAnimationStack.max_interval:a},_item_to_view_port:function(a){tdAnimationStack.log("position item relative to the view port >> "+tdEvents.window_pageYOffset+tdEvents.window_innerHeight+":"+a.offset_top);return tdEvents.window_pageYOffset+tdEvents.window_innerHeight< a.offset_top?tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_UNDER_VIEW_PORT:tdEvents.window_pageYOffset+tdEvents.window_innerHeight>=a.offset_top&&tdEvents.window_pageYOffset<=a.offset_bottom_to_top?tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_IN_VIEW_PORT:tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_ABOVE_VIEW_PORT},_separate_items:function(){if(0!==tdAnimationStack.items.length)for(;0> above: "+tdAnimationStack._items_above_view_port.length+" in: "+tdAnimationStack._items_in_view_port.length+" under: "+tdAnimationStack.items.length);return}},td_events_scroll:function(){tdAnimationStack.compute_items()},td_events_resize:function(){clearInterval(tdAnimationStack._current_interval); tdAnimationStack.reinit()},log:function(a){}}})();"use strict";tdAffix.init({menu_selector:".td-header-main-menu",menu_wrap_selector:".td-header-menu-wrap",tds_snap_menu:tdUtil.getBackendVar("tds_snap_menu"),tds_snap_menu_logo:tdUtil.getBackendVar("tds_logo_on_sticky"),menu_affix_height:48,menu_affix_height_on_mobile:53}); "enabled"==tdUtil.getBackendVar("tds_smart_sidebar")&&!1===tdDetect.isIos&&jQuery(window).load(function(){jQuery(".td-ss-row").each(function(){var a=new tdSmartSidebar.item;a.sidebar_jquery_obj=jQuery(this).children(".td-pb-span4").find(".wpb_wrapper:first");a.content_jquery_obj=jQuery(this).children(".td-pb-span8").find(".wpb_wrapper:first");tdSmartSidebar.add_item(a)});if(0=tdAjaxLoop.loopState.ajax_pagination_infinite_stop&&tdAjaxLoop.loopState.currentPage+ 1 tdAjaxLoop.loopState.max_num_pages||(jQuery(".td-ss-main-content").append('
'),tdLoadingBox.init(tds_theme_color_site_wide,45),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50),jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:{action:"td_ajax_loop",loopState:tdAjaxLoop.loopState},success:function(b,c,d){tdAjaxLoop._processAjaxRequest(b,a)}, error:function(a,c,d){}}))},_processAjaxRequest:function(a,b){jQuery(".td-loader-gif").remove();tdLoadingBox.stop();var c=jQuery.parseJSON(a);""===c.server_reply_html_data?jQuery(".td-load-more-infinite-wrap").css("visibility","hidden"):(jQuery(".td-ajax-loop-infinite").before(c.server_reply_html_data),parseInt(c.currentPage)>=parseInt(c.max_num_pages)?jQuery(".td-load-more-infinite-wrap").css("visibility","hidden"):!0===b&&jQuery(".td-load-more-infinite-wrap").css("visibility","visible"),setTimeout(function(){tdAnimationStack.check_for_new_items(".td-main-content .td-animation-stack", tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0)},200),!0!==b&&(setTimeout(function(){tdInfiniteLoader.computeTopDistances();tdInfiniteLoader.enable_is_visible_callback("tdAjaxLoop")},500),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1E3),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1500)))}}})();var tdWeather={}; (function(){tdWeather={_icons:{"01d":"clear-sky-d","02d":"few-clouds-d","03d":"scattered-clouds-d","04d":"broken-clouds-d","09d":"shower-rain-d","10d":"rain-d","11d":"thunderstorm-d","13d":"snow-d","50d":"mist-d","01n":"clear-sky-n","02n":"few-clouds-n","03n":"scattered-clouds-n","04n":"broken-clouds-n","09n":"shower-rain-n","10n":"rain-n","11n":"thunderstorm-n","13n":"snow-n","50n":"mist-n"},_currentRequestInProgress:!1,_currentItem:"",_currentLatitude:0,_currentLongitude:0,_currentPositionCacheKey:"", _currentLocationCacheKey:"",_currentLocation:"",items:[],_is_location_open:!1,init:function(){jQuery(".td-icons-location").click(function(){!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem=tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),navigator.geolocation&&navigator.geolocation.getCurrentPosition(tdWeather._updateLocationCallback,tdWeather._displayLocationApiError,{enableHighAccuracy:!0,timeout:1E7,maximumAge:6E5}),tdWeather._currentRequestInProgress= !1)});jQuery(".td-weather-now").click(function(){!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem=tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),tdWeather._currentItem.current_unit=1===tdWeather._currentItem.current_unit?0:1,tdWeather._renderCurrentItem())});jQuery(".td-manual-location-form").submit(function(a){a.preventDefault();!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem= tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),tdWeather._currentLocation=jQuery("input#"+jQuery(this).data("block-uid")).val(),tdWeather._updateLocationCallback2(tdWeather._currentLocation),tdWeather._currentRequestInProgress=!1,tdWeather._hide_manual_location_form())});jQuery(document).click(function(a){!0===tdWeather._is_location_open&&!0!==jQuery(a.target).hasClass("td-location-set-input")&&!0!==jQuery(a.target).hasClass("td-location-set-button")&&tdWeather._hide_manual_location_form()})}, addItem:function(a){tdWeather.items.push(a)},_updateLocationCallback:function(a){tdWeather._currentLatitude=a.coords.latitude;tdWeather._currentLongitude=a.coords.longitude;tdWeather._currentPositionCacheKey=a.coords.latitude+"_"+a.coords.longitude;tdLocalCache.exist(tdWeather._currentPositionCacheKey+"_today")?tdWeather._owmGetTodayDataCallback(tdLocalCache.get(tdWeather._currentPositionCacheKey+"_today")):jQuery.ajax({dataType:"jsonp",url:"http://api.openweathermap.org/data/2.5/weather?lat="+tdWeather._currentLatitude+ "&lon="+tdWeather._currentLongitude+"&units=metric&lang="+tdWeather._currentItem.api_language+"&appid="+tdWeather._currentItem.api_key,success:tdWeather._owmGetTodayDataCallback,cache:!0})},_owmGetTodayDataCallback:function(a){tdLocalCache.set(tdWeather._currentPositionCacheKey+"_today",a);tdWeather._currentItem.api_location=a.name;tdWeather._currentItem.today_clouds=tdUtil.round(a.clouds.all);tdWeather._currentItem.today_humidity=tdUtil.round(a.main.humidity);tdWeather._currentItem.today_icon=tdWeather._icons[a.weather[0].icon]; tdWeather._currentItem.today_icon_text=a.weather[0].description;tdWeather._currentItem.today_max[0]=tdUtil.round(a.main.temp_max,1);tdWeather._currentItem.today_max[1]=tdWeather._celsiusToFahrenheit(a.main.temp_max);tdWeather._currentItem.today_min[0]=tdUtil.round(a.main.temp_min,1);tdWeather._currentItem.today_min[1]=tdWeather._celsiusToFahrenheit(a.main.temp_min);tdWeather._currentItem.today_temp[0]=tdUtil.round(a.main.temp,1);tdWeather._currentItem.today_temp[1]=tdWeather._celsiusToFahrenheit(a.main.temp); tdWeather._currentItem.today_wind_speed[0]=tdUtil.round(a.wind.speed,1);tdWeather._currentItem.today_wind_speed[1]=tdWeather._kmphToMph(a.wind.speed);tdLocalCache.exist(tdWeather._currentPositionCacheKey)?tdWeather._owmGetFiveDaysData(tdLocalCache.get(tdWeather._currentPositionCacheKey)):jQuery.ajax({dataType:"jsonp",url:"http://api.openweathermap.org/data/2.5/forecast?lat="+tdWeather._currentLatitude+"&lon="+tdWeather._currentLongitude+"&units=metric&lang="+tdWeather._currentItem.api_language+"&appid="+ tdWeather._currentItem.api_key,success:tdWeather._owmGetFiveDaysData,cache:!0})},_owmGetFiveDaysData:function(a){tdLocalCache.set(tdWeather._currentPositionCacheKey,a);for(var b=0;b Privacy > Location Services"); return}tdWeather._show_manual_location_form()}tdWeather._show_manual_location_form()},_celsiusToFahrenheit:function(a){a=9*a/5+32;var b=tdUtil.round(a,1);return 99.9a.trendingNowPosts.length||tdTrendingNow.addItem(a)});jQuery(".td-trending-now-nav-left").on("click",function(a){a.preventDefault();a=jQuery(this).data("block-id");tdTrendingNow.itemPrev(a)});jQuery(".td-trending-now-nav-right").on("click",function(a){a.preventDefault(); a=jQuery(this).data("block-id");tdTrendingNow.itemNext(a)})});var tdAnimationSprite={}; (function(){tdAnimationSprite={items:[],isInRequestAnimation:!1,item:function(){this.blockUid="";this.paused=this._isInitialized=!1;this.automatStart=!0;this.properties=[];this.readyToAnimate=!1;this.nextFrame=1;this.animationSpriteClass=this.jqueryObj=this.interval=void 0;this._currentDirection="right";this._executedLoops=0;this.loops=this.reverse=this.velocity=this.frameWidth=this.frames=this._prop_background_position=void 0;this.animate=function(){this._prop_background_position=-1*this.nextFrame* this.frameWidth+"px 0";this.readyToAnimate=!0;!0===this.reverse?"right"===this._currentDirection?this.nextFrame===this.frames-1?(this._currentDirection="left",this.nextFrame--):this.nextFrame++:"left"===this._currentDirection&&(0===this.nextFrame?(this._currentDirection="right",this.nextFrame++,this._executedLoops++,0!==this.loops&&this._executedLoops===this.loops&&clearInterval(this.interval)):this.nextFrame--):this.nextFrame===this.frames-1?(this._executedLoops++,0!==this.loops&&this._executedLoops===this.loops&&clearInterval(this.interval),this.nextFrame=0):this.nextFrame++;!1===tdAnimationSprite.isInRequestAnimation&&(tdAnimationSprite.isInRequestAnimation=!0,window.requestAnimationFrame(tdAnimationSprite.animateAllItems))}},_initializeItem:function(a){if(!0!==a._isInitialized){var b=/(td_animation_sprite\S*)/gi;"undefined"!==typeof a.jqueryObj.attr("class")&&(b=a.jqueryObj.attr("class").match(b),null!==b&&(a.offsetTop=a.jqueryObj.offset().top,a.offsetBottomToTop=a.offsetTop+a.jqueryObj.height(), a.animationSpriteClass=b[b.length-1],b=a.animationSpriteClass.split("-"),7===b.length&&(a.frames=parseInt(b[1]),a.frameWidth=parseInt(b[2]),a.velocity=parseInt(b[3]),a.loops=parseInt(b[4]),1===parseInt(b[5])?a.reverse=!0:a.reverse=!1,1===parseInt(b[6])?a.automatStart=!0:a.automatStart=!1,a._isInitialized=!0)))}},addItem:function(a){a.constructor===tdAnimationSprite.item&&(tdAnimationSprite.items.push(a),tdAnimationSprite._initializeItem(a),!0===a.automatStart&&tdAnimationSprite.computeItem(a))},deleteItem:function(a){for(var b= 0;b=b&&1==parseInt(a%100/10,10)&&(b=0);return["st","nd","rd"][b-1]||"th"},w:function(){return c.getDay()},z:function(){var a= new Date(l.Y(),l.n()-1,l.j()),b=new Date(l.Y(),0,1);return Math.round((a-b)/864E5)},W:function(){var a=new Date(l.Y(),l.n()-1,l.j()-l.N()+3),b=new Date(a.getFullYear(),0,4);return f(1+Math.round((a-b)/864E5/7),2)},F:function(){return tdDateNamesI18n.month_names[l.n()-1]},m:function(){return f(l.n(),2)},M:function(){return tdDateNamesI18n.month_names_short[l.n()-1]},n:function(){return c.getMonth()+1},t:function(){return(new Date(l.Y(),l.n(),0)).getDate()},L:function(){var a=l.Y();return 0===a%4&0!==a%100|0===a%400},o:function(){var a=l.n(),b=l.W();return l.Y()+(12===a&&9>b?1:1===a&&91e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document);