window["oncontextmenu"]= function(){return false};jQuery(document)["ready"](function($){$(".navigation .js-help")["on"]("click",function(){$(".modal-help")["modal"]({fadeDuration:250,showClose:false})});$(".js-slider")["each"](function(){var value_element=$(this)["siblings"](".js-slider-value");var slide_min=parseInt($(this)["attr"]("data-min"));var slide_max=parseInt($(this)["attr"]("data-max"));var slide_step=parseInt($(this)["attr"]("data-step"));var slide_value=parseInt($(this)["attr"]("data-value"));var empty=[];var suffix="";if($("body")["hasClass"]("icons")){suffix= " %"};if($(this)["hasClass"]("slider-contours")){var slider=$(this)["slider"]({min:0,max:100,value:7,step:1,create:function(event,ui){setTimeout(function(){$(".slider-contours .ui-slider-tip")["text"](15)},50)},slide:function(event,ui){var includeLeft=event["keyCode"]!= $["ui"]["keyCode"]["RIGHT"];var includeRight=event["keyCode"]!= $["ui"]["keyCode"]["LEFT"];var new_value=findNearest(includeLeft,includeRight,ui["value"],slider_contours_values);slider["slider"]("option","value",new_value);$(".slider-contours .ui-slider-tip")["text"](slider_contours_values_filtered[new_value]);return false},change:function(event,ui){var includeLeft=event["keyCode"]!= $["ui"]["keyCode"]["RIGHT"];var includeRight=event["keyCode"]!= $["ui"]["keyCode"]["LEFT"];var new_value=findNearest(includeLeft,includeRight,ui["value"],slider_contours_values);$(".slider-contours .ui-slider-tip")["text"](slider_contours_values_filtered[new_value])["show"]()}})["slider"]("float")}else {if($(this)["hasClass"]("gradient")){$(this)["slider"]({min:slide_min,max:slide_max,step:slide_step,value:slide_value,stop:function(event,ui){var cur_value=parseInt($(".js-slider.gradient .ui-slider-tip")["text"]());var max_value=parseInt($(".js-slider-input")["val"]());var result=Math["round"](255/ (max_value/ cur_value));go_gradient(result)}})["slider"]("float")}else {if($(this)["hasClass"]("slider-rips")){$(this)["slider"]({min:slide_min,max:slide_max,step:slide_step,value:slide_value,create:function(event,ui){setTimeout(function(){$(".slider-rips")["append"]("<div class=\"slider-rips-overlay\"></div>")},100)}})["slider"]("pips",{rest:"label",labels:empty})["slider"]("float")}else {$(this)["slider"]({min:slide_min- 1,max:slide_max+ 1,step:slide_step,value:slide_value,slide:function(event,ui){if(ui["value"]< slide_min){$(this)["slider"]("option","value",slide_min);$(this)["find"](".ui-slider-tip")["text"](slide_min+ suffix);return false}else {if(ui["value"]> slide_max){$(this)["slider"]("option","value",slide_max);$(this)["find"](".ui-slider-tip")["text"](slide_max+ suffix);return false}}}})["slider"]("float",{suffix:suffix})}}}});$(".js-slider-input")["on"]("keypress blur",function(e){if(e["which"]== 13|| e["type"]== "blur"){updateGradientSlider()}})});function getSliderValue(slider_id){var value=jQuery("#"+ slider_id+ " .js-slider")["slider"]("value");if(slider_id== "slider_contour"){value= parseInt(jQuery("#"+ slider_id+ " .ui-slider-tip")["text"]())};return value}