jQuery(document)["ready"](function($){$(".tool--wrap li img")["each"](function(){if(!$(this)["is"](".tool--directions-2 img")&&  !$(this)["is"](".tool--icons img") &&  !$(this)["is"](".tool--face 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"]({step:5,slide:function(event,ui){$(".ui--slider-wrap .ui--result")["text"](ui["value"]+ "%")},value:100})};$("li")["on"]("click",function(){var trigger=$(this)["attr"]("data-trigger");switch(trigger){case "help":$(".modal-help")["modal"]({fadeDuration:250,showClose:false});break;case "examples":$(".modal-examples")["modal"]({fadeDuration:250,showClose:false});break}});$(".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)}});function OpenModal(modal){jQuery(".modal-"+ modal)["modal"]({fadeDuration:250,showClose:false})}function showLoading(){$(".modal-loading")["modal"]({fadeDuration:250,showClose:false,escapeClose:false})}function hideLoading(){$["modal"]["close"]()}