jQuery(document).ready(function(t){t(".cq-flipboxv2").each(function(e){function o(e){void 0===e&&(e=!0),b?("horizontal1"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateY(0)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateY(-180deg)"})):"horizontal2"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateY(0)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateY(180deg)"})):"vertical1"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateX(0)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateX(180deg)"})):"vertical2"==v&&(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateX(0)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateX(-180deg)"})),b=!1):("horizontal1"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateY(180deg)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateY(0)"})):"horizontal2"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateY(-180deg)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateY(0)"})):"vertical1"==v?(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateX(-180deg)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateX(0)"})):"vertical2"==v&&(t(".cq-flipboxv2-front",s).css({transform:"perspective(4000px) rotateX(180deg)"}),t(".cq-flipboxv2-back",s).css({transform:"perspective(4000px) rotateX(0)"})),b=!0),clearTimeout(_flipID),i>0&&e&&(_flipID=setTimeout(o,1e3*i))}var s=t(this),a=parseInt(t(this).data("avatarwidth"),10),i=parseInt(t(this).data("autodelay"),10),r=t(this).data("namecolor"),c=t(this).data("labelcolor"),p=t(this).data("namefontsize"),f=t(this).data("labelfontsize"),l=t(this).data("descolor"),n=t(this).data("desfontsize"),v=t(this).data("direction"),x=t(this).data("isheader");t(this).data("titlecolor"),t(this).data("titlefontsize"),t(this).data("subtitlecolor"),t(this).data("subtitlefontsize"),t(this).data("bordercolor");a>0&&80!=a&&("yes"==x&&t(".cq-flipboxv2-avatar",s).css("margin-top",.5*-a+"px"),t(".cq-flipboxv2-avatarimage",s).css("width",a+"px"),t(".cq-flipboxv2-avataricon",s).css("width",a+"px"),t(".cq-flipboxv2-avataricon",s).css("height",a+"px"),t(".cq-flipboxv2-avataricon",s).css("line-height",a+"px"));var b=!1;i>0&&(_flipID=setTimeout(o,1e3*i)),i>0&&s.on("mouseover",function(t){b=!1,o(!1),clearTimeout(_flipID),t.preventDefault()}).on("mouseleave",function(t){clearTimeout(_flipID),b=!0,o(),t.preventDefault()}),""!=r&&t(".cq-flipboxv2-name",s).css("color",r),""!=c&&t(".cq-flipboxv2-label",s).css("color",c),""!=p&&t(".cq-flipboxv2-name",s).css("font-size",p),""!=f&&t(".cq-flipboxv2-label",s).css("font-size",f),""!=l&&t(".cq-flipboxv2-description",s).css("color",l),""!=n&&t(".cq-flipboxv2-description",s).css("font-size",n)})});