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,g,h,f,k;127<b.red?(e="#000000;",
g="color:"+toHex(b,-70)+";",h="border-color: "+toHex(b,-90)+";",f=toHex(b,54)+";",k="background-image: -webkit-linear-gradient(top, "+toHex(b,-40)+" , "+toHex(b,-50)+");"):(e="#ffffff;",g="color:"+toHex(b,100)+";",h="border-color: "+toHex(b,-45)+";",f=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]",
h);addRule("ppstyle","button.default, 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]",g);addRule("ppstyle","input[type=text]","padding:1px 3px;");addRule("ppstyle","input[type=text]","background-color: "+f+";");addRule("ppstyle","input[type=text]:focus","background-color: #ffffff;");addRule("ppstyle","input[type=text]:focus","color: #000000;");addRule("ppstyle","select","color: "+e+";");addRule("ppstyle","select","background:"+f+";");addRule("ppstyle",".modal-content","color: "+e+";");addRule("ppstyle",".modal-content",
"background-color: "+f+";");addRule("ppstyle",".settings-modal-content","color: "+e+";");addRule("ppstyle",".settings-modal-content","background-color: "+f+";");addRule("ppstyle",".create-color-mask-modal-content","background-color: "+f+";");addRule("ppstyle",".LM_create-color-mask-modal-content","background-color: "+f+";");addRule("ppstyle",".rollover-div","color: "+e+";");addRule("ppstyle",".rollover-div","background-color: "+f+";");addRule("ppstyle",".section-color","color: "+e+";");addRule("ppstyle",
".section-color","background-color: "+toHex(b)+";");addRule("ppstyle",".section-color","border-color: "+e+";");addRule("ppstyle","hr","border-color: "+e+";");addRule("ppstyle",".output-modal","color: "+e+";")}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));localStorage.setItem("colorOfFont",e.slice(0,-1));localStorage.setItem("colorOfBorder",h.slice(13,
-1))}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);changeLayerMask();$(".default, .listElement, .half, .whole").css({"box-shadow":"none","font-weight":"normal"})}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()")}function runAction(a){boxShadow(a);evalScript("$._ext_"+a+".run()");LM_TurnOffAddSubtract();RMTurnOffAddSubtract()}
function RM_makeMask(a){"buttonRAPIDMASK"!==a&&boxShadow(a);var b=$("#"+a).closest("div").attr("id");("RMChannelList"===b||"RMColorRangeList"===b||"RMSatList"===b)&&$("#"+b).hide();var b=localStorage.getItem("SUBTRACTvalue"),c=localStorage.getItem("ADDvalue"),d=$("#"+a).data("maskname");evalScript("$.makeRapidMask('"+a+"','"+b+"','"+c+"','"+d+"')",function(){"buttonRAPIDMASK"===a&&boxShadow("listColorCREATE")});RMTurnOffAddSubtract()}
function LM_makeMask(a){if("LM_buttonAPPLY"===a)var b=localStorage.getItem("layerIdentifier");else boxShadow(a),b=void 0;var c=$("#"+a).closest("div").attr("id");("LM_ChannelList"===c||"LM_ColorRangeList"===c||"LM_SatList"===c)&&$("#"+c).hide();var c=localStorage.getItem("LM_SUBTRACTvalue"),d=localStorage.getItem("LM_ADDvalue"),e=$("#"+a).data("maskname"),g=$("#checkbox2UP").is(":checked");evalScript("$.LM_makeLayerMask('"+a+"','"+c+"','"+d+"','"+e+"','"+g+"','"+b+"')",function(){"LM_buttonAPPLY"===
a&&boxShadow("LM_listColorCREATE")});LM_TurnOffAddSubtract()}function clickToRun(a){boxShadow(a);RMTurnOffAddSubtract();LM_TurnOffAddSubtract();evalScript("$._ext_"+a+".run()",function(){!0===$("#checkbox2UP").is(":checked")&&evalScript("$._ext_SHOWLAYERMASK.run()")})}function clickModify(a){boxShadow(a);a=!0===$("#checkbox2UP").is(":checked")?"$._ext_"+a+"2UP.run()":"$._ext_"+a+".run()";evalScript(a);RMTurnOffAddSubtract();LM_TurnOffAddSubtract()}
function createAdjustLayer(a){$("#adjustModal").fadeOut(200);evalScript("$._ext_"+a+".run()")}$("#listSatPAINT").click(function(){resetBoxShadow();boxShadow("listSatPAINT");RMTurnOffAddSubtract();evalScript(event.altKey?"$._ext_ALT_PAINT.run()":"$._ext_PAINT.run()");var a=$("#listSatPAINT").closest("div").attr("id");$("#"+a).hide()});
function onLoaded(){var a=new CSInterface;"FLPR"!=a.hostEnvironment.appName&&loadJSX();updateThemeWithAppSkinInfo(a.hostEnvironment.appSkinInfo);a.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,onAppThemeColorChanged)}
$(document).ready(function(){var a=null===localStorage.getItem("tkLANGDEFAULT")||void 0===localStorage.getItem("tkLANGDEFAULT")?"EN":localStorage.getItem("tkLANGDEFAULT"),b=null===localStorage.getItem("selectionIndicatorSetting")||void 0===localStorage.getItem("selectionIndicatorSetting")?"fixed":localStorage.getItem("selectionIndicatorSetting");changeLayerMask();TKResetLang(a);updateAccentColor();$("#selectSELECTIONINDICATOR").val(b);("fixed"===b||"animated"===b)&&checkSelection(b)});$("#spanCHANNELsource").mouseover(function(){$("#RMChannelList").show()});
$("#spanCHANNELsource").mouseout(function(){$("#RMChannelList").hide()});$("#RMChannelList").mouseout(function(){$("#RMChannelList").hide()});$("#RMChannelList").mouseover(function(){$("#RMChannelList").show()});$("#spanCOLORsource").mouseover(function(){$("#RMColorRangeList").show()});$("#spanCOLORsource").mouseout(function(){$("#RMColorRangeList").hide()});$("#RMColorRangeList").mouseout(function(){$("#RMColorRangeList").hide()});$("#RMColorRangeList").mouseover(function(){$("#RMColorRangeList").show()});
$("#spanSATsource").mouseover(function(){$("#RMSatList").show()});$("#spanSATsource").mouseout(function(){$("#RMSatList").hide()});$("#RMSatList").mouseout(function(){$("#RMSatList").hide()});$("#RMSatList").mouseover(function(){$("#RMSatList").show()});$("#LM_spanCHANNELsource").mouseover(function(){$("#LM_ChannelList").show()});$("#LM_spanCHANNELsource").mouseout(function(){$("#LM_ChannelList").hide()});$("#LM_ChannelList").mouseout(function(){$("#LM_ChannelList").hide()});$("#LM_ChannelList").mouseover(function(){$("#LM_ChannelList").show()});
$("#LM_spanCOLORsource").mouseover(function(){$("#LM_ColorRangeList").show()});$("#LM_spanCOLORsource").mouseout(function(){$("#LM_ColorRangeList").hide()});$("#LM_ColorRangeList").mouseout(function(){$("#LM_ColorRangeList").hide()});$("#LM_ColorRangeList").mouseover(function(){$("#LM_ColorRangeList").show()});$("#LM_spanSATsource").mouseover(function(){$("#LM_SatList").show()});$("#LM_spanSATsource").mouseout(function(){$("#LM_SatList").hide()});$("#LM_SatList").mouseout(function(){$("#LM_SatList").hide()});
$("#LM_SatList").mouseover(function(){$("#LM_SatList").show()});function checkSelection(a){var b="fixed"===a?"activeSelectionImg":"activeSelectionGIF";setTimeout(function d(){evalScript("$._ext_ISSELECTIONACTIVE.run()",function(a){"true"===a?document.getElementById(b).style.visibility="visible":document.getElementById(b).style.visibility="hidden";setTimeout(d,250)})},2E3)}
$("#English, #Italian, #German, #Spanish, #French, #Chinese").click(function(){var a=this.value;localStorage.setItem("tkLANGDEFAULT",a);TKResetLang(a)});
function TKResetLang(a){"object"===typeof lang_IT&&"object"===typeof lang_DE&&"object"===typeof lang_ES&&"object"===typeof lang_EN&&"object"===typeof lang_FR&&"object"===typeof lang_CH?$(".default").show():$(".default").hide();tkLANG="IT"==a?lang_IT:"DE"==a?lang_DE:"ES"==a?lang_ES:"FR"==a?lang_FR:"CH"==a?lang_CH:lang_EN;TKTT("tipCLEAR");$("#spanLAYERMASK").html(tkLANG.spanLAYERMASK);$("#spanSOURCE").html(tkLANG.spanSOURCE);$("#spanCHANNELsource").html(tkLANG.spanCHANNELsource);$("#spanCOLORsource").html(tkLANG.spanCOLORsource);
$("#spanSATsource").html(tkLANG.spanSATsource);$("#spanMASK").html(tkLANG.spanMASK);$("#spanLIGHTS").html(tkLANG.spanLIGHTS);$("#spanDARKS").html(tkLANG.spanDARKS);$("#spanMODIFY").html(tkLANG.spanMODIFY);$("#spanCOLORMASKOUTPUT").html(tkLANG.spanCOLORMASKOUTPUT);$("#spanOUTPUT").html(tkLANG.spanOUTPUT);$("#buttonCOMPOSITE").html(tkLANG.buttonCOMPOSITE);$("#listChannelREDL").html(tkLANG.listChannelREDL);$("#listChannelGREENA").html(tkLANG.listChannelGREENA);$("#listChannelBLUEB").html(tkLANG.listChannelBLUEB);
$("#listColorCREATE").html(tkLANG.listColorCREATE);$("#listColorRangeRED").html(tkLANG.listColorRangeRED);$("#listColorRangeGREEN").html(tkLANG.listColorRangeGREEN);$("#listColorRangeBLUE").html(tkLANG.listColorRangeBLUE);$("#listColorRangeCYAN").html(tkLANG.listColorRangeCYAN);$("#listColorRangeMAGENTA").html(tkLANG.listColorRangeMAGENTA);$("#listColorRangeYELLOW").html(tkLANG.listColorRangeYELLOW);$("#listColorRangeCHOOSE").html(tkLANG.listColorRangeCHOOSE);$("#listSatSAT").html(tkLANG.listSatSAT);
$("#listSatVIB").html(tkLANG.listSatVIB);$("#listSatPAINT").html(tkLANG.listSatPAINT);$("#buttonMASK").html(tkLANG.buttonMASK);$("#buttonIMAGE").html(tkLANG.buttonIMAGE);$("#buttonPICK").html(tkLANG.buttonPICK);$("#buttonLEVELS").html(tkLANG.buttonLEVELS);$("#buttonFOCUS").html(tkLANG.buttonFOCUS);$("#buttonCURVES").html(tkLANG.buttonCURVES);$("#buttonBLUR").html(tkLANG.buttonBLUR);$("#buttonCONTRACT").html(tkLANG.buttonCONTRACT);$("#buttonEXPAND").html(tkLANG.buttonEXPAND);$("#CURVES").html(tkLANG.CURVES);
$("#LEVELS").html(tkLANG.LEVELS);$("#BRIGHTNESSCONTRAST").html(tkLANG.BRIGHTNESSCONTRAST);$("#HUESAT").html(tkLANG.HUESAT);$("#BLACKANDWHITE").html(tkLANG.BLACKANDWHITE);$("#PHOTOFILTER").html(tkLANG.PHOTOFILTER);$("#SELECTIVECOLOR").html(tkLANG.SELECTIVECOLOR);$("#VIBRANCE").html(tkLANG.VIBRANCE);$("#COLORBALANCE").html(tkLANG.COLORBALANCE);$("#CHANNELMIXER").html(tkLANG.CHANNELMIXER);$("#EXPOSURE").html(tkLANG.EXPOSURE);$("#SOLIDCOLOR").html(tkLANG.SOLIDCOLOR);$("#ORTONEFFECT").html(tkLANG.ORTONEFFECT);
$("#CLARITY").html(tkLANG.CLARITY);$("#ADDCOLOR").html(tkLANG.ADDCOLOR);$("#BURN").html(tkLANG.BURN);$("#DODGE").html(tkLANG.DODGE);$("#PIXELS").html(tkLANG.PIXELS);$("#buttonLAYER").html(tkLANG.buttonLAYER);$("#buttonSELECT").html(tkLANG.buttonSELECT);$("#buttonCHANNEL").html(tkLANG.buttonCHANNEL);$("#buttonAPPLY").html(tkLANG.buttonAPPLY);$("#buttonRAPIDMASK").html(tkLANG.buttonRAPIDMASK);$("#buttonBandW").html(tkLANG.buttonBandW);$("#buttonCANCEL").html(tkLANG.buttonCANCEL);$("#LM_spanVIEW").html(tkLANG.LM_spanVIEW);
$("#LM_span2UPOPTIONAL").html(tkLANG.LM_span2UPOPTIONAL);$("#LM_span2UP").html(tkLANG.LM_span2UP);$("#LM_spanSOURCE").html(tkLANG.LM_spanSOURCE);$("#LM_spanCHANNELsource").html(tkLANG.LM_spanCHANNELsource);$("#LM_spanCOLORsource").html(tkLANG.LM_spanCOLORsource);$("#LM_spanSATsource").html(tkLANG.LM_spanSATsource);$("#LM_spanMASK").html(tkLANG.LM_spanMASK);$("#LM_spanLIGHTS").html(tkLANG.LM_spanLIGHTS);$("#LM_spanDARKS").html(tkLANG.LM_spanDARKS);$("#LM_spanMODIFY").html(tkLANG.LM_spanMODIFY);$("#LM_spanCOLORMASKOUTPUT").html(tkLANG.LM_spanCOLORMASKOUTPUT);
$("#LM_buttonVERTICAL").html(tkLANG.LM_buttonVERTICAL);$("#LM_buttonHORIZONAL").html(tkLANG.LM_buttonHORIZONAL);$("#LM_buttonCOMPOSITE").html(tkLANG.LM_buttonCOMPOSITE);$("#LM_listChannelREDL").html(tkLANG.LM_listChannelREDL);$("#LM_listChannelGREENA").html(tkLANG.LM_listChannelGREENA);$("#LM_listChannelBLUEB").html(tkLANG.LM_listChannelBLUEB);$("#LM_listColorCREATE").html(tkLANG.LM_listColorCREATE);$("#LM_listColorRangeRED").html(tkLANG.LM_listColorRangeRED);$("#LM_listColorRangeGREEN").html(tkLANG.LM_listColorRangeGREEN);
$("#LM_listColorRangeBLUE").html(tkLANG.LM_listColorRangeBLUE);$("#LM_listColorRangeCYAN").html(tkLANG.LM_listColorRangeCYAN);$("#LM_listColorRangeMAGENTA").html(tkLANG.LM_listColorRangeMAGENTA);$("#LM_listColorRangeYELLOW").html(tkLANG.LM_listColorRangeYELLOW);$("#LM_listColorRangeCHOOSE").html(tkLANG.LM_listColorRangeCHOOSE);$("#LM_listSatSAT").html(tkLANG.LM_listSatSAT);$("#LM_listSatVIB").html(tkLANG.LM_listSatVIB);$("#LM_buttonMASK").html(tkLANG.LM_buttonMASK);$("#LM_buttonIMAGE").html(tkLANG.LM_buttonIMAGE);
$("#LM_buttonPICK").html(tkLANG.LM_buttonPICK);$("#LM_buttonLEVELS").html(tkLANG.LM_buttonLEVELS);$("#LM_buttonFOCUS").html(tkLANG.LM_buttonFOCUS);$("#LM_buttonCURVES").html(tkLANG.LM_buttonCURVES);$("#LM_buttonBLUR").html(tkLANG.LM_buttonBLUR);$("#LM_buttonCONTRACT").html(tkLANG.LM_buttonCONTRACT);$("#LM_buttonEXPAND").html(tkLANG.LM_buttonEXPAND);$("#buttonACCENTCOLOR").html(tkLANG.buttonACCENTCOLOR);$("#spanSELECTIONINDICATOR").html(tkLANG.spanSELECTIONINDICATOR);$("#optionFIXED").html(tkLANG.optionFIXED);
$("#optionANIMATED").html(tkLANG.optionANIMATED);$("#optionOFF").html(tkLANG.optionOFF);$("#LM_buttonAPPLY").html(tkLANG.LM_buttonAPPLY);$("#LM_buttonCANCEL").html(tkLANG.LM_buttonCANCEL)}
function TKTT(a){var b=localStorage.getItem("colorOfFont");"#ffffff"===b&&(b="#c8c8c8");"tipCLEAR"===a?($("#tktips").css({"font-size":"15px","font-family":"Verdana","text-align":"center","vertical-align":"middle","line-height":"29px",color:"#808080"}),$("#logo").show()):($("#tktips").css({"font-size":"11px","font-family":"Arial","text-align":"left","vertical-align":"baseline","line-height":"10px",color:b}),$("#logo").hide());$("#tktips").html(tkLANG[a])}
function modalForAdjustButton(a){boxShadow(a);RMTurnOffAddSubtract();$("#adjustModal").fadeIn(200);$("#spanCLOSEADJUSTMODAL").click(function(){$("#adjustModal").fadeOut(200)});window.onclick=function(a){(a.target==$("#adjustModal")[0]||a.target==$("#modal-color-overlay-layers-output")[0])&&$("#adjustModal").fadeOut(200)}}
function changeLayerMask(){if(!0===$("#checkboxLAYERMASK").is(":checked")){var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor");$("#RapidMaskButtons").fadeOut(250);$("#LayerMaskButtons").fadeIn(250);$("#spanLAYERMASK").css("color",a);evalScript("$._ext_CHECKFORLAYERMASK.run()")}else $("#RapidMaskButtons").fadeIn(250),$("#LayerMaskButtons").fadeOut(250),a=localStorage.getItem("colorOfFont"),$("#spanLAYERMASK").css("color",
a);$("#LMViewButtons").fadeOut(250);$("#checkbox2UP").prop("checked",!1);$("#LM_span2UP").fadeOut(200);$("#LM_span2UPOPTIONAL").fadeIn(250);LM_TurnOffAddSubtract();RMTurnOffAddSubtract();resetBoxShadow()}
function changeView(){!0===$("#checkbox2UP").is(":checked")?($("#LMViewButtons").fadeIn(200),$("#LM_span2UPOPTIONAL").fadeOut(200),$("#LM_span2UP").fadeIn(200),evalScript("$._ext_CHECKFORLAYERMASK.run()")):($("#LMViewButtons").fadeOut(200),$("#LM_span2UPOPTIONAL").fadeIn(200),$("#LM_span2UP").fadeOut(200))}
function openSettings(){resetBoxShadow();RMTurnOffAddSubtract();LM_TurnOffAddSubtract();$("#settingsModal").fadeIn(250);$("#spanCLOSESETTINGS").click(function(){$("#settingsModal").fadeOut(250)});window.onclick=function(a){(a.target==$("#settingsModal")[0]||a.target==$("#modal-color-overlay-settings")[0])&&$("#settingsModal").fadeOut(250)}}function openCreateColorMaskModal(a){evalScript("$._ext_listColorCREATE.run()",function(a){"false"!==a&&$("#CreateColorMaskModal").fadeIn(300)})}
$("#buttonCANCEL").click(function(){$("#CreateColorMaskModal").fadeOut(300);evalScript("$._ext_buttonCANCEL.run()");boxShadow("listColorCREATE");RMTurnOffAddSubtract()});$("#buttonBandW").click(function(){$("#CreateColorMaskModal").fadeOut(300);evalScript("$._ext_buttonBandW.run()");boxShadow("listColorCREATE");RMTurnOffAddSubtract()});$("#buttonRAPIDMASK").click(function(){$("#CreateColorMaskModal").fadeOut(300);RM_makeMask("buttonRAPIDMASK")});
function LM_openCreateColorMaskModal(a){evalScript("$._ext_LAYERIDENTIFIER.run()",function(a){localStorage.setItem("layerIdentifier",a);evalScript("$._ext_listColorCREATE.run()",function(a){"false"!==a&&$("#LM_CreateColorMaskModal").fadeIn(300)})})}$("#LM_buttonCANCEL").click(function(){$("#LM_CreateColorMaskModal").fadeOut(300);var a="$.LM_buttonCANCEL('"+localStorage.getItem("layerIdentifier")+"')";evalScript(a);boxShadow("LM_listColorCREATE");LM_TurnOffAddSubtract()});
$("#LM_buttonAPPLY").click(function(){$("#LM_CreateColorMaskModal").fadeOut(300);LM_makeMask("LM_buttonAPPLY")});
$("#buttonSUBTRACT").click(function(){boxShadow(this.id);var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor");evalScript("$._ext_ADDSUBTRACTBUTTON.run()",function(b){var c=localStorage.getItem("SUBTRACTvalue"),d=localStorage.getItem("colorOfFont");"false"!==b?"on"===c?($("#buttonSUBTRACT").css({color:d,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("SUBTRACTvalue","off")):($("#buttonSUBTRACT").css({color:a,
"font-weight":"bold"}),localStorage.setItem("SUBTRACTvalue","on"),$("#buttonADD").css({color:d,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("ADDvalue","off")):(localStorage.setItem("SUBTRACTvalue","off"),localStorage.setItem("ADDvalue","off"),$("#buttonSUBTRACT").css({color:d,"font-weight":"normal","box-shadow":"none"}),$("#buttonADD").css({color:d,"font-weight":"normal","box-shadow":"none"}))})});
$("#buttonADD").click(function(){ID=this.id;boxShadow(ID);var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor");evalScript("$._ext_ADDSUBTRACTBUTTON.run()",function(b){var c=localStorage.getItem("ADDvalue"),d=localStorage.getItem("colorOfFont");"false"!==b?"on"===c?($("#buttonADD").css({color:d,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("ADDvalue","off")):($("#buttonADD").css({color:a,"font-weight":"bold"}),
localStorage.setItem("ADDvalue","on"),$("#buttonSUBTRACT").css({color:d,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("SUBTRACTvalue","off")):(localStorage.setItem("SUBTRACTvalue","off"),localStorage.setItem("ADDvalue","off"),$("#buttonSUBTRACT").css({color:d,"font-weight":"normal","box-shadow":"none"}),$("#buttonADD").css({color:d,"font-weight":"normal","box-shadow":"none"}))})});
$("#LM_buttonSUBTRACT").click(function(){ID=this.id;boxShadow(ID);var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor"),b=localStorage.getItem("LM_SUBTRACTvalue"),c=localStorage.getItem("colorOfFont");"on"===b?($("#LM_buttonSUBTRACT").css({color:c,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("LM_SUBTRACTvalue","off")):($("#LM_buttonSUBTRACT").css({color:a,"font-weight":"bold"}),localStorage.setItem("LM_SUBTRACTvalue",
"on"),$("#LM_buttonADD").css({color:c,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("LM_ADDvalue","off"))});
$("#LM_buttonADD").click(function(){ID=this.id;boxShadow(ID);var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor"),b=localStorage.getItem("LM_ADDvalue"),c=localStorage.getItem("colorOfFont");"on"===b?($("#LM_buttonADD").css({color:c,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("LM_ADDvalue","off")):($("#LM_buttonADD").css({color:a,"font-weight":"bold"}),localStorage.setItem("LM_ADDvalue","on"),
$("#LM_buttonSUBTRACT").css({color:c,"font-weight":"normal","box-shadow":"none"}),localStorage.setItem("LM_SUBTRACTvalue","off"))});function RMTurnOffAddSubtract(){localStorage.getItem("colorOfFont");localStorage.setItem("SUBTRACTvalue","off");localStorage.setItem("ADDvalue","off")}function LM_TurnOffAddSubtract(){localStorage.getItem("colorOfFont");localStorage.setItem("LM_SUBTRACTvalue","off");localStorage.setItem("LM_ADDvalue","off")}
function boxShadow(a){resetBoxShadow();var b=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor");accentColorBoxShadow="0px 0px 8px "+b+" inset";$("#"+a).css({"box-shadow":accentColorBoxShadow,color:b})}
function resetBoxShadow(){var a=localStorage.getItem("colorOfFont");$(".default, .listElement").css({"box-shadow":"none",color:a,"font-weight":"normal"});$(".half").css({"box-shadow":"none",color:"#ffffff"});$(".whole").css({"box-shadow":"none",color:"#000000"})}
function updateAccentColor(){var a=null===localStorage.getItem("accentColor")||void 0===localStorage.getItem("accentColor")?"#00ff00":localStorage.getItem("accentColor"),b=localStorage.getItem("colorOfBorder");$(".default").hover(function(){$(this).css("border-color",a)},function(){$(this).css("border-color",b)});$(".whole").hover(function(){$(this).css("border-color",a)},function(){$(this).css("border-color","#000000")});$(".half").hover(function(){$(this).css("border-color",a)},function(){$(this).css("border-color",
"#ffffff")});$("#divGREENBORDER, .create-color-mask-modal-content, .LM_create-color-mask-modal-content, .settings-modal-content, .modal-content, .rollover-div, #logo").css("border-color",a);$(".logo").css("color",a);!0===$("#checkboxLAYERMASK").is(":checked")&&$("#spanLAYERMASK").css("color",a)}$("#buttonACCENTCOLOR").click(function(){evalScript("$._ext_buttonACCENTCOLOR.run()",function(a){"false"!==a&&(localStorage.setItem("accentColor","#"+a),updateAccentColor())})});
$("#selectSELECTIONINDICATOR").change(function(){var a=$("#selectSELECTIONINDICATOR").val();localStorage.setItem("selectionIndicatorSetting",a)});
