!function(o){window.ImageEffectck=function(){function d(t){o(this).attr("rel")||("1"!==o(this).data("touch")?(o(this).data("href",o(this).attr("href")),o(this).removeAttr("href"),o(this).data("touch","1")):(o(this).attr("href",o(this).data("href")),o(this).data("touch","0")))}o("img[class^='effectck'], img.fadeck, img.edafck, img.puffck").each(function(t,a){if(!o(a).parent().is("figure")){var e=o(a).attr("width");o(a).css("float");o(a).wrap('<figure class="imageeffectck '+o(a).attr("class")+'"><div class="imageeffectck_img"></div></div>'),a.wrap=o(a).parent().parent(),a.wrapinner=o(a).parent();var i,r,s=Array("border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","float");for(t=0;t<s.length;t++)c=a,f=s[t],n=void 0,n=o(c).css(f),parseInt(n)&&(o(c).css(f,""),o(c.wrap).css(f,n));0<parseInt(e)?a.wrap.width(e).css("max-width","100%"):o(a).attr("class").match(/circle/)&&(a.wrap.width(500),console.log("Image Effect CK message : default width set, missing on image : "),console.log(a)),(e=o(a).attr("title"))&&(1<=(e=e.split("::")).length&&(i=e[0]),2<=e.length&&(r=e[1])),o(a).attr("class","").attr("width","").attr("height","").attr("title","").css("float",""),a.wrapinner.append("<figcaption><div>"+(i?'<div class="imageeffectck_title">'+i+"</div>":"")+(r?'<div class="imageeffectck_desc">'+r+"</div>":"")+"</div></figcaption>")}var c,f,n;a.wrap.parents("a").length&&(a.wrap.parents("a")[0].addEventListener("touchstart",d,!1),a.wrap.parent("a").on("mouseleave",function(t){o(this).data("touch","0")}))})}}(jQuery),jQuery(document).ready(function(){new ImageEffectck});