!function(t){function e(){this.$element=null}String.format||(String.format=function(t){var e=Array.prototype.slice.call(arguments,1);return t.replace(/{(\d+)}/g,function(t,n){return"undefined"!=typeof e[n]?e[n]:t})});var n={transferDataAttributes:function(t,e){var n=t.data();for(var i in n)n.hasOwnProperty(i)&&e.attr("data-"+i,n[i])}};e.prototype.addAttr=function(t,e){this.$element.attr(t,e)},e.prototype.addClass=function(t){this.$element.addClass(t)},window.essbis=function(){function i(n,i,o){e.call(this),this.width=n,this.height=i,this.$element=t(""),this.addAttr(a.attr.type,o),this.addAttr("href","#"),this.$iconElement=t("
").addClass(a.cssClass.iconPrefix+o),this.$iconElement.html(t("").addClass(a.cssClass.prefix+"inner"))}function o(e){switch(this.icons=[],this.width=0,this.height=0,this.$element=t(""),e){case"vertical":this.updateContainerSize=this.updateSizeVertical;break;case"horizontal":this.updateContainerSize=this.updateSizeHorizontal}this.addClass(a.cssClass.container)}function r(){this.url="",this.imageUrl="",this.description=""}i.prototype=new e,i.prototype.createElement=function(){return this.$element.html(this.$iconElement)},o.prototype=new e,o.prototype.updateSizeHorizontal=function(t,e){this.width+=t,this.height=e>this.height?e:this.height},o.prototype.updateSizeVertical=function(t,e){this.height+=e,this.width=t>this.width?t:this.width},o.prototype.createContainer=function(){for(var t=[],e=0;e=H.minImageHeight&&t[0].clientWidth>=H.minImageWidth&&t.not(H.disabledClasses).length>0&&t.filter(H.enabledClasses).length>0}function c(t){return t[0].clientHeight>=H.minImageHeight&&t[0].clientWidth>=H.minImageWidth&&t.not(H.disabledClasses).length>0&&t.filter(H.enabledClasses).length>0}function l(t,e){switch(e){case"titleAttribute":return t.attr("title");case"altAttribute":return t.attr("alt");default:return""}}function u(t){for(var e="",n=a.buttonSettings.settings.pinterestImageDescription,i=0;i0&&(n.transferDataAttributes(e,i),i.addClass(P.container))}var T=0,A={ignore:a.attr.prefix+"Ignore",imageDescription:a.attr.prefix+"ImageDescription",index:a.attr.prefix+"Index",postContainer:a.attr.prefix+"HoverContainer",timeoutId:a.attr.prefix+"TimeoutId",timeoutId2:a.attr.prefix+"TimeoutId2"},P={visible:"visible",overlay:a.cssClass.prefix+"hover-overlay",container:a.cssClass.prefix+"hover-container"},H={theme:"flat",buttonSet:"default",orientation:"horizontal",hoverPanelPosition:"middle-middle",imageSelector:String.format(".[0] img",P.container),minImageHeight:100,minImageWidth:100,descriptionSource:["titleAttribute","altAttribute"],disabledClasses:".wp-smiley"+(""!=a.buttonSettings.settings.dontShowOn?","+a.buttonSettings.settings.dontShowOn:""),showOnLightbox:"1",enabledClasses:"*",parentContainerSelector:"",parentContainerLevel:2};e.prototype=new o;var _={};return _.attr=A,_.onReady=function(){t(String.format("input[{0}]",A.postContainer)).each(U);var e=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e=!0);var n=H.alwaysVisible||!1,i=H.mobileOnClick||!1;e&&i&&(n=!1,e=!1),e||n||(t(document).delegate(b(),"mouseenter",C),t(document).delegate(b(),"mouseleave",function(){var e=t(this).attr(A.index),n=t(f(e));y(n)})),t(document).delegate(String.format("div.{0} a",P.overlay),"click",R),t(document).delegate(f(),"mouseenter",function(){x(t(this))}),e||n||t(document).delegate(f(),"mouseleave",function(){y(t(this))}),(e||n)&&t(document).find(v()).each(function(){k(t(this))})},_.onResize=function(){var e=!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e=!0);var n=H.alwaysVisible||!1;e||n||(t(String.format("[{0}]",_.attr.ignore)).each(function(){t(this).removeAttr(_.attr.ignore)}),t(String.format("[{0}]",_.attr.index)).each(function(){t(this).removeAttr(_.attr.index)})),(e||n)&&t(document).find(v()).each(function(){I(t(this))})},_.setSettings=function(e){H=t.extend(H,e)},_}(),a.setSettings=function(t){a.debug(t);for(var e in t.buttonSets)t.buttonSets.hasOwnProperty(e)&&a.addButtonSet(e,t.buttonSets[e]);for(var n in t.themes)t.themes.hasOwnProperty(n)&&a.addTheme(t.themes[n]);for(var i in t.modules)t.modules.hasOwnProperty(i)&&a.module.hasOwnProperty(i)&&a.module[i].setSettings(t.modules[i])},a.triggerActiveModules=function(t){for(var e in a.module)if(a.module.hasOwnProperty(e)){var n=e.charAt(0).toUpperCase()+e.slice(1),i="module"+n+"Active";a.module.hasOwnProperty(e)&&"function"==typeof a.module[e][t]&&"1"==a.main.settings[i]&&a.module[e][t]()}},a.onReady=function(){a.debug("onReady"),a.triggerActiveModules("onReady")},a.onResize=function(){a.debug("onResize"),a.triggerActiveModules("onResize")},a}(),t(function(){essbis.init(),essbis.setSettings(essbis_settings),t(document).ready(function(){setTimeout(function(){essbis.onReady()},1)}),t(window).resize(essbis.onResize)})}(jQuery);