jQuery(document)["ready"](function($){$(".tool--wrap li img")["each"](function(){if(!$(this)["is"](".tool--example-shapes img")&&  !$(this)["is"](".tool--textures img") &&  !$(this)["is"](".tool--backgrounds img")){$(this)["wrap"]("<span class=\"image\">")}});$(".hover img")["each"](function(){var src=$(this)["attr"]("src");$(this)["attr"]("data-src",src)});if($(".ui--slider")["length"]){$(".ui--slider")["slider"]({slide:function(event,ui){$(".ui--slider-wrap .ui--result")["text"](ui["value"]+ "%")}})};$(".tool--textures li, .tool--backgrounds li")["on"]("mouseenter",function(){displayName($(this))})["on"]("mouseleave",function(){displayName($(this)["parent"]()["siblings"](".name"))});$(".hover")["on"]("mouseenter",function(){showHoverImage($(this)["find"]("img"))})["on"]("mouseleave",function(){hideHoverImage($(this)["find"]("img"))});function displayName(element){var name=element["attr"]("data-name");if(element["is"](".name")){element["text"](name)}else {element["parent"]()["siblings"](".name")["text"](name)}}function showHoverImage(element){var hover=element["attr"]("src")["split"](".");hover= hover[0]+ "_hover."+ hover[1];element["attr"]("src",hover)}function hideHoverImage(element){var src=element["attr"]("data-src");element["attr"]("src",src)}})