!function(){"use strict";var e=new CSInterface;!function(){themeManager.init(),function(t){var n=new CSEvent("com.adobe.PhotoshopPersistent","APPLICATION");n.extensionId=t,e.dispatchEvent(n)}("com.kritskiy.perp2");var t=function(e,t,n){this.bname=e,this.func=t,this.yt="http://pt2.readthedocs.io/en/latest/"+n+"/index.html"},n=new CSEvent("com.adobe.PhotoshopLoseFocus","APPLICATION");n.extensionId="com.kritskiy.perp2";var o=[];o.push(new t("perpTool","perpTool","grid")),o.push(new t("horizonTool","horizon","horizon")),o.push(new t("recolor","changeColor","fill")),o.push(new t("xall","hideUnhidePerpLayers","visibility")),o.push(new t("wrap","pathWarpChoser","warp")),o.push(new t("deperp","deperp","depersp")),o.push(new t("rotatePath","rotatePathPT","order")),o.push(new t("correctPath","correctPath","fix")),o.push(new t("resetTransform","resetTransform","reset"));for(var r in o)!function(t){$("."+o[t].bname).mousedown(function(){e.evalScript(o[t].func+"()",function(r){if("alt"===r)try{e.openURLInDefaultBrowser(o[t].yt)}catch(e){alert(e)}e.dispatchEvent(n)})}).mouseover(function(){$("#helper").css("background-image","url(icons/gifs/"+o[t].func+".gif)"),$("#helper").text("")}).mouseout(function(){$("#helper").text(""),$("#helper").css("background-image","url(icons/gifs/default.gif)")})}(r);$("#tabs").children().each(function(){$(this).hide()}),$("#tabs #tab1").show(),$("#tab").addClass("active"),$("#tab a").click(function(){$("#tabsSelf").children("div").each(function(){$(this).removeClass("active")}),$(this).parent("div").addClass("active");var e=$(this).attr("href");return $("#tabs div").hide(),$(e).show(),$(e).children("div").show(),!1}),$(".fly").disableSelection()}()}();