!function(a){function b(){a("input").each(function(){a(this).attr("type")||a(this).attr("type","text")})}function c(){a.each(i.services,function(b,c){var d=i.options;d.click=function(a){a.simulateClick(),a.openPopup(c)},a(".social-sharing ."+c).each(function(){var b="undefined"==typeof a(this).data("lang")?"en_US":a(this).data("lang"),e="undefined"==typeof a(this).data("via")?"":a(this).data("via"),f="undefined"==typeof a(this).data("title")?"":a(this).data("title"),g="undefined"==typeof a(this).data("url")?"":a(this).data("url");switch(d.enableCounter=a(this).parent().data("counter"),c){case"twitter":d.share={twitter:!0},d.buttons.twitter.lang=b,d.buttons.twitter.via=e,d.buttons.twitter.title=f,d.buttons.twitter.url=g;break;case"facebook":d.share={facebook:!0},d.buttons.facebook.lang=b;break;case"googlePlus":d.share={googlePlus:!0},d.buttons.googlePlus.lang=b}a(this).sharrre(d)})})}function d(){selectnav("navigation-above",{indent:"<span>-</span>"}),selectnav("navigation-below",{indent:"<span>-</span>"}),selectnav("navigation-alongside",{indent:"<span>-</span>"})}function e(){var b=".navigation .dk",c=a("body").hasClass("blog")?".main-content .dk":".content .dk";dropkickListener=function(){parseInt(a(this).width(),10)<960&&a(b).each(function(){a(this).data("dropkickInitialized")||(a(this).dropkick({change:function(a){a&&(window.location=a)}}),a(this).data("dropkickInitialized","true"));var b=a(this).siblings("ul").find("li:first-child a"),c=b.css("color");a(this).prev(".dk_container").find(".dk_label").css({color:c})})},a(window).on("resize",dropkickListener).trigger("resize"),a(c).each(function(){a(this).data("dropkickInitialized")||(a(this).dropkick({change:function(){value&&(window.location=value)}}),a(this).data("dropkickInitialized","true"))}),a("li.op-pagebuilder a").fancybox({width:"98%",height:"98%",padding:0,closeClick:!1,type:"iframe",afterShow:function(){a(".fancybox-opened").find("iframe").focus()},beforeClose:function(){return OP.disable_alert?void 0:(OP.disable_alert=!1,confirm("This page is asking you to confirm that you want to leave - data you have entered may not be saved."))}})}function f(){a(".tooltip").tooltipster({animation:"grow"})}function g(){a(".optin-modal-container").each(function(){a(this).on("click",".optin-modal-link",function(b){b.preventDefault(),a(this).next(".optin-modal").reveal()}),a(this).on("click"," .optin-modal .css-button",function(b){b.preventDefault(),a(this).parent("form").submit()})})}var h={},i={};h.init={},i.urlCurl=OP.paths.js+"jquery/sharrre.inc.php",i.services=["twitter","facebook","googlePlus"],i.options={enableHover:!1,enableTracking:!0,urlCurl:i.urlCurl,buttons:{twitter:{},facebook:{},googlePlus:{}}},a(document).ready(function(){c(),d(),e(),f(),g(),b(),h.init.countdown(),h.init.countdown_cookie()}),h.init.countdown=function(){a("div.countdown-timer").each(function(){var b=a(this),c=b.data("end").split(" "),d="undefined"==typeof c[0]?"00/00/0000":c[0].split("/"),e="undefined"==typeof c[1]?"00:00:00":c[1].split(":"),f=("undefined"!=typeof b.data("end")?!1:!0,new Date(d[0],parseInt(d[1])-1,d[2],e[0],e[1],e[2])),g=[b.data("years_text"),b.data("months_text"),"Weeks",b.data("days_text"),b.data("hours_text"),b.data("minutes_text"),b.data("seconds_text")],h=[b.data("years_text_singular"),b.data("months_text_singular"),"Week",b.data("days_text_singular"),b.data("hours_text_singular"),b.data("minutes_text_singular"),b.data("seconds_text_singular")],i=0,j=9;a.loadScript(OP.paths.js+"jquery/countdown.js",function(){b.countdown({until:f,format:"yodhms",labels:g,labels1:h,timezone:c[c.length-1]}),b.find("span.countdown_section").each(function(){i+=a(this).width()+j}),b.width("100%")})})},OP.initCountdownElements=h.init.countdown,h.init.countdown_cookie=function(){a("div.countdown-cookie-timer").each(function(){var b=a(this),c=b.data("end").split(" "),d="undefined"==typeof c[0]?"00/00/0000":c[0].split("/"),e="undefined"==typeof c[1]?"00:00:00":c[1].split(":"),f=new Date(d[0],parseInt(d[1])-1,d[2],e[0],e[1],e[2]),g=["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],h=["Year","Month","Week","Day","Hour","Minute","Second"],i=0,j=9;a.loadScript(OP.paths.js+"jquery/countdown.js",function(){b.countdown({until:f,format:"yodhms",labels:g,labels1:h}),b.find("span.countdown_section, span.countdown_row").each(function(){i+=a(this).width()+j}),b.width(i+"px")})})}}(opjq);