jQuery(document).ready(function(a){function d(a){var b=a.attr("data-name");a.is(".name")?a.text(b):a.parent().siblings(".name").text(b)}a(".tool--wrap li img").each(function(){a(this).is(".tool--example-shapes img")||a(this).is(".tool--textures img")||a(this).is(".tool--backgrounds img")||a(this).wrap('<span class="image">')});a(".hover img").each(function(){var c=a(this).attr("src");a(this).attr("data-src",c)});a(".ui--slider").length&&a(".ui--slider").slider({step:5,slide:function(c,b){a(".ui--slider-wrap .ui--result").text(b.value+
"%")},value:100});a("li").on("click",function(){switch(a(this).attr("data-trigger")){case "help":a(".modal-help").modal({fadeDuration:250,showClose:!1})}});a(".tool--textures li, .tool--backgrounds li").on("mouseenter",function(){d(a(this))}).on("mouseleave",function(){d(a(this).parent().siblings(".name"))});a(".hover").on("mouseenter",function(){var c=a(this).find("img"),b=c.attr("src").split("."),b=b[0]+"_hover."+b[1];c.attr("src",b)}).on("mouseleave",function(){var c=a(this).find("img"),b=c.attr("data-src");
c.attr("src",b)})});function showLoading(){$(".modal-loading").modal({fadeDuration:250,showClose:!1,escapeClose:!1})}function hideLoading(){$.modal.close()};