var csInterface=new CSInterface,gExtensionId="UltimateRetouch3",event=new CSEvent("com.adobe.PhotoshopPersistent","APPLICATION");event.extensionId=gExtensionId;csInterface.dispatchEvent(event);
function onLoaded(){var a=new CSInterface;b=a.hostEnvironment.appName;"FLPR"!=b&&loadJSX();for(var c=["PHXS"],e=0;e<c.length;e++){var d=c[e];if(0<=b.indexOf(d)&&(d=document.getElementById("btn_"+d)))d.disabled=!1}updateThemeWithAppSkinInfo(a.hostEnvironment.appSkinInfo);a.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,onAppThemeColorChanged)}var extensionRoot=csInterface.getSystemPath(SystemPath.EXTENSION)+"/jsx/scripts/";
function loadJSX(){var a=new CSInterface,c=a.getSystemPath(SystemPath.EXTENSION)+"/jsx/";a.evalScript('$._ext.evalFiles("'+c+'")')}function evalScript(a,c){(new CSInterface).evalScript(a,c)}function openUrl(a){csInterface.openURLInDefaultBrowser(a)}
$(document).ready(function(){loadJSX();$("#Fb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/1.jsx")')});$("#Fb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/2.jsx")')});$("#Fb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/3.jsx")')});$("#Fb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/4.jsx")')});$("#Fb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'fb_1/5.jsx")')});$("#Fb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/6.jsx")')});$("#Fb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/7.jsx")')});$("#Fb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/8.jsx")')});$("#Fb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/9.jsx")')});$("#Fb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'fb_1/10.jsx")')});$("#Fb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/11.jsx")')});$("#Fb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/12.jsx")')});$("#Fb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/13.jsx")')});$("#Fb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/14.jsx")')});$("#Fb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'fb_1/15.jsx")')});$("#Fb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/16.jsx")')});$("#Fb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/17.jsx")')});$("#Fb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/18.jsx")')});$("#Fb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/19.jsx")')});$("#Fb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'fb_1/20.jsx")')});$("#Fb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'fb_1/21.jsx")')});$("#Sb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/1.jsx")')});$("#Sb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/2.jsx")')});$("#Sb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/3.jsx")')});$("#Sb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Sb_1/4.jsx")')});$("#Sb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/5.jsx")')});$("#Sb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/6.jsx")')});$("#Sb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/7.jsx")')});$("#Sb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/8.jsx")')});$("#Sb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Sb_1/9.jsx")')});$("#Sb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/10.jsx")')});$("#Sb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/11.jsx")')});$("#Sb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/12.jsx")')});$("#Sb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/13.jsx")')});$("#Sb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Sb_1/14.jsx")')});$("#Sb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/15.jsx")')});$("#Sb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/16.jsx")')});$("#Sb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/17.jsx")')});$("#Sb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/18.jsx")')});$("#Sb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Sb_1/19.jsx")')});$("#Sb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/20.jsx")')});$("#Sb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/21.jsx")')});$("#Sb22").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/22.jsx")')});$("#Sb23").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/23.jsx")')});$("#Sb24").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Sb_1/24.jsx")')});$("#Sb25").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/25.jsx")')});$("#Sb26").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/26.jsx")')});$("#Sb27").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Sb_1/27.jsx")')});$("#i_dodge").button().click(function(a){evalScript("$.UltimateRetouch.select_dodge_tool()")});$("#i_burn").button().click(function(a){evalScript("$.UltimateRetouch.select_burn_tool()")});
$("#i_brush").button().click(function(a){evalScript("$.UltimateRetouch.select_brush_tool()")});$("#i_heal").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool()")});$("#i_mixer").button().click(function(a){evalScript("$.UltimateRetouch.select_mixBrush_tool()")});$("#i_heal").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool()")});$("#i_heal2").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool2()")});$("#i_clone").button().click(function(a){evalScript("$.UltimateRetouch.select_clone_tool()")});
$("#i_patch").button().click(function(a){evalScript("$.UltimateRetouch.select_patch_tool()")});$("#i_brush3").button().click(function(a){evalScript("$.UltimateRetouch.select_brush_tool()")});$("#i_heal3").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool()")});$("#i_mixer3").button().click(function(a){evalScript("$.UltimateRetouch.select_mixBrush_tool()")});$("#i_heal3").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool()")});$("#i_heal23").button().click(function(a){evalScript("$.UltimateRetouch.select_heal_tool2()")});
$("#i_clone3").button().click(function(a){evalScript("$.UltimateRetouch.select_clone_tool()")});$("#i_patch3").button().click(function(a){evalScript("$.UltimateRetouch.select_patch_tool()")});$("#Db1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/1.jsx")')});$("#Db2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/2.jsx")')});$("#Db3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+
'Db_1/3.jsx")')});$("#Db4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/4.jsx")')});$("#Db5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/5.jsx")')});$("#Db6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/6.jsx")')});$("#Db7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/7.jsx")')});$("#Db8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Db_1/8.jsx")')});$("#Db9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/9.jsx")')});$("#Db10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/10.jsx")')});$("#Db11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/11.jsx")')});$("#Db12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Db_1/12.jsx")')});$("#Tb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/1.jsx")')});$("#Tb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/2.jsx")')});$("#Tb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/3.jsx")')});$("#Tb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/4.jsx")')});$("#Tb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/5.jsx")')});$("#Tb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/6.jsx")')});$("#Tb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/7.jsx")')});$("#Tb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/8.jsx")')});$("#Tb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/9.jsx")')});$("#Tb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/10.jsx")')});$("#Tb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/11.jsx")')});$("#Tb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/12.jsx")')});$("#Tb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/13.jsx")')});$("#Tb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/14.jsx")')});$("#Tb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/15.jsx")')});$("#Tb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/16.jsx")')});$("#Tb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/17.jsx")')});$("#Tb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/18.jsx")')});$("#Tb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/19.jsx")')});$("#Tb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/20.jsx")')});$("#Tb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/21.jsx")')});$("#Tb22").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/22.jsx")')});$("#Tb23").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/23.jsx")')});$("#Tb24").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/24.jsx")')});$("#Tb25").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/25.jsx")')});$("#Tb26").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Tb_1/26.jsx")')});$("#Tb27").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Tb_1/27.jsx")')});$("#Lb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/1.jsx")')});$("#Lb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/2.jsx")')});$("#Lb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/3.jsx")')});$("#Lb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/4.jsx")')});$("#Lb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/5.jsx")')});$("#Lb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/6.jsx")')});$("#Lb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/7.jsx")')});$("#Lb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/8.jsx")')});$("#Lb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/9.jsx")')});$("#Lb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/10.jsx")')});$("#Lb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/11.jsx")')});$("#Lb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/12.jsx")')});$("#Lb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/13.jsx")')});$("#Lb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/14.jsx")')});$("#Lb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/15.jsx")')});$("#Lb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/16.jsx")')});$("#Lb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/17.jsx")')});$("#Lb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/18.jsx")')});$("#Lb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/19.jsx")')});$("#Lb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/20.jsx")')});$("#Lb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/21.jsx")')});$("#Lb22").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/22.jsx")')});$("#Lb23").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/23.jsx")')});$("#Lb24").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/24.jsx")')});$("#Lb25").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/25.jsx")')});$("#Lb26").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/26.jsx")')});$("#Lb27").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/27.jsx")')});$("#Lb28").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/28.jsx")')});$("#Lb29").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/29.jsx")')});$("#Lb30").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/30.jsx")')});$("#Lb31").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/31.jsx")')});$("#Lb32").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/32.jsx")')});$("#Lb33").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/33.jsx")')});$("#Lb34").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/34.jsx")')});$("#Lb35").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/35.jsx")')});$("#Lb36").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/36.jsx")')});$("#Lb37").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/37.jsx")')});$("#Lb38").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/38.jsx")')});$("#Lb39").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/39.jsx")')});$("#Lb40").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/40.jsx")')});$("#Lb41").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/41.jsx")')});$("#Lb42").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/42.jsx")')});$("#Lb43").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/43.jsx")')});$("#Lb44").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/44.jsx")')});$("#Lb45").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/45.jsx")')});$("#Lb46").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/46.jsx")')});$("#Lb47").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/47.jsx")')});$("#Lb48").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/48.jsx")')});$("#Lb49").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/49.jsx")')});$("#Lb50").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/50.jsx")')});$("#Lb51").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/51.jsx")')});$("#Lb52").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/52.jsx")')});$("#Lb53").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/53.jsx")')});$("#Lb54").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/54.jsx")')});$("#Lb55").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/55.jsx")')});$("#Lb56").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/56.jsx")')});$("#Lb57").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/57.jsx")')});$("#Lb58").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/58.jsx")')});$("#Lb59").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/59.jsx")')});$("#Lb60").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/60.jsx")')});$("#Lb61").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/61.jsx")')});$("#Lb62").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/62.jsx")')});$("#Lb63").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Lb_1/63.jsx")')});$("#Lb64").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Lb_1/64.jsx")')});$("#Vb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/1.jsx")')});$("#Vb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/2.jsx")')});$("#Vb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/3.jsx")')});$("#Vb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/4.jsx")')});$("#Vb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'vb_1/5.jsx")')});$("#Vb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/6.jsx")')});$("#Vb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/7.jsx")')});$("#Vb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/8.jsx")')});$("#Vb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/9.jsx")')});$("#Vb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'vb_1/10.jsx")')});$("#Vb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/11.jsx")')});$("#Vb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/12.jsx")')});$("#Vb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/13.jsx")')});$("#Vb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/14.jsx")')});$("#Vb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'vb_1/15.jsx")')});$("#Vb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/16.jsx")')});$("#Vb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/17.jsx")')});$("#Vb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/18.jsx")')});$("#Vb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/19.jsx")')});$("#Vb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'vb_1/20.jsx")')});$("#Vb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/21.jsx")')});$("#Vb22").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'vb_1/22.jsx")')});$("#Cb1").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/1.jsx")')});$("#Cb2").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/2.jsx")')});$("#Cb3").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Cb_1/3.jsx")')});$("#Cb4").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/4.jsx")')});$("#Cb5").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/5.jsx")')});$("#Cb6").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/6.jsx")')});$("#Cb7").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/7.jsx")')});$("#Cb8").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Cb_1/8.jsx")')});$("#Cb9").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/9.jsx")')});$("#Cb10").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/10.jsx")')});$("#Cb11").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/11.jsx")')});$("#Cb12").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/12.jsx")')});$("#Cb13").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Cb_1/13.jsx")')});$("#Cb14").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/14.jsx")')});$("#Cb15").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/15.jsx")')});$("#Cb16").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/16.jsx")')});$("#Cb17").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/17.jsx")')});$("#Cb18").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+
extensionRoot+'Cb_1/18.jsx")')});$("#Cb19").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/19.jsx")')});$("#Cb20").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/20.jsx")')});$("#Cb21").button().click(function(a){csInterface.evalScript('$._ext.evalFile("'+extensionRoot+'Cb_1/21.jsx")')})});
function onLoaded(){var a=new CSInterface,b=a.hostEnvironment.appName;"FLPR"!=b&&loadJSX();for(var c=["PHXS"],d=0;d<c.length;d++){var e=c[d];if(0<=b.indexOf(e)&&(e=document.getElementById("btn_"+e)))e.disabled=!1}updateThemeWithAppSkinInfo(a.hostEnvironment.appSkinInfo);a.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,onAppThemeColorChanged)}
function updateThemeWithAppSkinInfo(a){var b=a.panelBackgroundColor.color;document.body.bgColor=toHex(b);var c=(new CSInterface).hostEnvironment.appName;"PHXS"==c&&addRule("ppstyle","button, select, input[type=button], input[type=submit]","border-radius:3px;");if("PHXS"==c||"PPRO"==c||"PRLD"==c){var c="background-image: -webkit-linear-gradient(top, "+toHex(b,40)+" , "+toHex(b,10)+");",d="background-image: -webkit-linear-gradient(top, "+toHex(b,15)+" , "+toHex(b,5)+");",e,f,g,h,k;127<b.red?(e="#000000;",
f="color:"+toHex(b,-70)+";",g="border-color: "+toHex(b,-90)+";",h=toHex(b,54)+";",k="background-image: -webkit-linear-gradient(top, "+toHex(b,-40)+" , "+toHex(b,-50)+");"):(e="#ffffff;",f="color:"+toHex(b,100)+";",g="border-color: "+toHex(b,-45)+";",h=toHex(b,-20)+";",k="background-image: -webkit-linear-gradient(top, "+toHex(b,-20)+" , "+toHex(b,-30)+");");addRule("ppstyle",".default","font-size:"+a.baseFontSize+"px; color:"+e+"; background-color:"+toHex(b)+";");addRule("ppstyle","button, select, input[type=text], input[type=button], input[type=submit]",
g);addRule("ppstyle","button, select, input[type=button], input[type=submit]",c);addRule("ppstyle","button, select, input[type=button], input[type=submit]","-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);");addRule("ppstyle","button:enabled:active, input[type=button]:enabled:active, input[type=submit]:enabled:active",k);addRule("ppstyle","button:enabled:active, input[type=button]:enabled:active, input[type=submit]:enabled:active","-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);");
addRule("ppstyle","[disabled]",d);addRule("ppstyle","[disabled]",f);addRule("ppstyle","input[type=text]","padding:1px 3px;");addRule("ppstyle","input[type=text]","background-color: "+h)+";";addRule("ppstyle","input[type=text]:focus","background-color: #ffffff;");addRule("ppstyle","input[type=text]:focus","color: #000000;")}else addRule("ppstyle",".default","font-size:"+a.baseFontSize+"px; color:"+reverseColor(b)+"; background-color:"+toHex(b,20)),addRule("ppstyle","button","border-color: "+toHex(panelBgColor,
-50))}function addRule(a,b,c){if(a=document.getElementById(a))a=a.sheet,a.addRule?a.addRule(b,c):a.insertRule&&a.insertRule(b+" { "+c+" }",a.cssRules.length)}function reverseColor(a,b){return toHex({red:Math.abs(255-a.red),green:Math.abs(255-a.green),blue:Math.abs(255-a.blue)},b)}function toHex(a,b){function c(a,b){var c=!isNaN(b)?a+b:a;0>c?c=0:255<c&&(c=255);c=c.toString(16);return 1==c.length?"0"+c:c}var d="";if(a)with(a)d=c(red,b)+c(green,b)+c(blue,b);return"#"+d}
function onAppThemeColorChanged(a){a=JSON.parse(window.__adobe_cep__.getHostEnvironment()).appSkinInfo;updateThemeWithAppSkinInfo(a)}function loadJSX(){var a=new CSInterface,b=a.getSystemPath(SystemPath.EXTENSION)+"/jsx/";a.evalScript('$._ext.evalFiles("'+b+'")')}function evalScript(a,b){(new CSInterface).evalScript(a,b)}
function onClickButton(a){"FLPR"==a?evalScript('fl.createDocument(); fl.getDocumentDOM().addNewText({left:100, top:100, right:300, bottom:300} , "Hello Flash!" ); '):evalScript("$._ext_"+a+".run()")};
