function email_encode(){return{init:function(){var t=this,e="Чтобы увидеть электронный ящик, нужно ответить на простой вопрос",i=this.rot13init();$("a").each(function(){$(this).attr("title")==e&&($(this).attr({title:"Отправить письмо"}),t.geo_decode($(this),i))}),$("a").on("mouseover",function(){$(this).attr("title")})},geo_decode:function(t,e){var i=t.attr("href"),n=i.replace(/.*econt\/([a-z0-9._%-]+)\+([a-z0-9._%-]+)\+([a-z.]+)/i,"$1@$2.$3"),s=this.str_rot13(n,e);i!=n&&(t.attr({href:"mailto:"+s}),t.text(s))},rot13init:function(){for(var t=[],e="abcdefghijklmnopqrstuvwxyz",i=0;i'},function(){var t=$("select[name=aspec]",e);$.get("/deus/modules/js_ajax.php?action=filter_doctors",{spec_id:t.val()},function(t){$("select[name=aspec_fio]",e).html(t)},"html"),$("#fixed_phones").clone().attr({id:""}).addClass("hlp_killme").appendTo("#ww_blanket"),$(document).trigger("ww_appointment")})}$(document).one("ww_appointment",function(){init_form_submit(e,$("form",e))}),$(".lnk_appointment").on("click",function(t){t.preventDefault(),i()}),location.hash&&"#zapis_na_priem"===location.hash&&i()}function init_seminar_appointment(){function e(){wwmodal.cast(t,{close:''},function(){$(document).trigger("ww_seminar_appointment")})}var t=$("#ww_seminar_appointment");$(document).one("ww_seminar_appointment",function(){init_form_submit(t,$("form",t))}),$(".lnk_seminar_appointment").on("click",function(t){t.preventDefault(),e()}),location.hash&&"#zapis_na_meropriyatie"===location.hash&&e()}function init_filter(){var t,e,i,n=$(".blck_filter");n.length&&(t=$("form",n),e=$(".btn_submit",t),t.on("change",function(t){i=$(t.target).parents(".fld"),e.detach().appendTo(i).removeClass("hide")}),e.on("click",function(){t.submit()}))}function init_datepicker(t){t.length&&!t.hasClass("hlp_inited")&&(t.Zebra_DatePicker({always_show_clear:!1,days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],days_abbr:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],format:"d.m.Y",lang_clear_date:"Очистить",offset:[10,240],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],show_icon:!1,show_other_months:!1,show_select_today:"Сегодня"}),t.addClass("hlp_inited"))}function init_form_submit(n,s,o){s.on("submit",function(t){t.preventDefault(),$(".error",s).removeClass("error");var e=0,i="";$(".hlp_required",s).each(function(){i+=$(this).attr("name")+";",""==$(this).val()&&($(this).addClass("error"),++e)}),e?$(".error:first",s).length&&$("body, html").animate({scrollTop:$(".error:first",s).offset().top-40},500):$.ajax({type:"post",url:s.attr("action"),dataType:"json",data:s.serialize()+"&required="+i,beforeSend:function(){$("#ww_processing").show()},complete:function(){$("#ww_processing").hide()},success:function(t){t&&t.success?o&&"function"==typeof o?o():($(".hlp_step.a",n).removeClass("a"),$(".hlp_step.final",n).addClass("a"),setTimeout(function(){wwmodal.destroy()},5e3)):t&&t.errors?($(".error",s).removeClass("error"),$.each(t.errors,function(t,e){$("#frm_"+t,s).addClass("error")})):alert("Во время отправки произошла ошибка.")},error:function(){alert("Во время отправки произошла ошибка.")}})})}function init_how2buy(){$("#category .list .lnk_how").on("click",function(t){t.preventDefault();var e=$(this).parent(".how_2_buy");e.length&&$(".ww_blck",e).length&&$(".ww_blck",e).css({top:-($(".ww_blck",e).outerHeight()+10)}).fadeIn(200),$(document).on("click",function(t){t.preventDefault(),$(t.target).parents(".ww_blck").length<1&&!$(t.target).hasClass("ww_blck")&&!$(t.target).hasClass("lnk_how")&&$(".ww_blck").hide()})})}function init_images(){var t=$("#images");t.length&&$(".list",t).length&&$(".list",t).carouFredSel({direction:"left",align:"left",auto:{timeoutDuration:7e3},items:{visible:1},scroll:{duration:500,items:1}})}function init_map(){var e=$("#map"),i=$("#map_2");ymaps.ready(function(){var t;e.length&&(t=new ymaps.Map("map",{center:[57.821647,28.288478],zoom:16,controls:["default"]}),myPlacemark=new ymaps.Placemark([57.821647,28.288478],{iconContent:"М-Дентал",balloonContent:"Псков, ул. Кузбасской Дивизии, 26"},{preset:"islands#blueStretchyIcon"}),t.geoObjects.add(myPlacemark)),i.length&&(t=new ymaps.Map("map_2",{center:[57.821647,28.28985],zoom:16,controls:["default"]}),myPlacemark=new ymaps.Placemark([57.821647,28.28985],{iconContent:"М-Дентал – Детская клиника",balloonContent:"Псков, ул. Кузбасской Дивизии, 24"},{preset:"islands#blueStretchyIcon"}),t.geoObjects.add(myPlacemark))})}function init_opinions(){var t=$("#hlp_opinions");t.length&&$(".list",t).carouFredSel({direction:"left",align:"left",auto:{timeoutDuration:1e4},items:{visible:1},pagination:{anchorBuilder:!1,container:".navs"},scroll:{duration:500,items:1,pauseOnHover:!0}})}function init_photos(){var t,e=$("#photos_interior");e.length&&(t=1,500<$(window).width()&&(t=2),800<$(window).width()&&(t=3),$(".list",e).carouFredSel({direction:"left",align:"left",auto:!1,items:{visible:t},next:{button:"#photos_interior .lnk_next"},prev:{button:"#photos_interior .lnk_prev"},scroll:{duration:500,items:1,pauseOnHover:!0}}))}function init_promo(){var t=$("#promo");t.length&&$(".list",t).carouFredSel({direction:"left",align:"left",auto:{timeoutDuration:7e4},items:{visible:1},next:{button:"#promo .lnk_next"},prev:{button:"#promo .lnk_prev"},scroll:{duration:500,items:1,pauseOnHover:!0}})}function init_text_more(t,i){$(".lnk_more",t).on("click",function(t){var e=$(this).parents("."+i);$(".hlp_more",e).slideDown(300),$(this).hide()})}function init_videos(){var t=$("#videos"),s=$("#ww_video"),o=["www.instagram.com","vk.com","youtu.be"];t.length&&s.length&&$(".list li a",t).on("click",function(t){t.preventDefault();var e=$(this).parents("li"),i=e.data("video_id"),n=e.data("platform");i&&~o.indexOf(n)&&wwmodal.cast(s,{close:''},function(){"youtu.be"===n?$(".video",s).html(''):"vk.com"===n&&$(".video",s).html('')})}),$(".js-video").on("click",function(t){t.preventDefault();var e=$(t.target).data("video_id"),i=$(t.target).data("platform");e&&~o.indexOf(i)&&wwmodal.cast(s,{close:''},function(){"youtu.be"===i?$(".video",s).html(''):"vk.com"===i&&$(".video",s).html('')})})}function init_ymap(){var e,i,n=$("#ww_ymap");n.length&&($(".lnk_map").on("click",function(t){t.preventDefault(),wwmodal.cast(n,{close:''},function(){n.hasClass("hlp_done")?(i.geoObjects.removeAll(),i.setCenter([57.821647,28.288478],16),e=new ymaps.Placemark([57.821647,28.288478],{iconContent:"M-Dental",balloonContent:"Псков, ул. Кузбасской Дивизии, 26"},{preset:"islands#blueStretchyIcon"}),i.geoObjects.add(e)):ymaps.ready(function(){i=new ymaps.Map("ymap",{center:[57.821647,28.288478],zoom:16,controls:["default"]}),e=new ymaps.Placemark([57.821647,28.288478],{iconContent:"M-Dental",balloonContent:"Псков, ул. Кузбасской Дивизии, 26"},{preset:"islands#blueStretchyIcon"}),i.geoObjects.add(e),n.addClass("hlp_done")})})}),$(".lnk_map_2").on("click",function(t){t.preventDefault(),wwmodal.cast(n,{close:''},function(){n.hasClass("hlp_done")?(i.geoObjects.removeAll(),i.setCenter([57.821647,28.28985],16),e=new ymaps.Placemark([57.821647,28.28985],{iconContent:"М-Дентал – Детская клиника",balloonContent:"Псков, ул. Кузбасской Дивизии, 24"},{preset:"islands#blueStretchyIcon"}),i.geoObjects.add(e)):ymaps.ready(function(){i=new ymaps.Map("ymap",{center:[57.821647,28.28985],zoom:16,controls:["default"]}),e=new ymaps.Placemark([57.821647,28.28985],{iconContent:"М-Дентал – Детская клиника",balloonContent:"Псков, ул. Кузбасской Дивизии, 24"},{preset:"islands#blueStretchyIcon"}),i.geoObjects.add(e),n.addClass("hlp_done")})})}))}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function($,t){function e(t,e){return e.toUpperCase()}var i=[],k=$.document,u=i.slice,g=i.concat,a=i.push,s=i.indexOf,n={},o=n.toString,f=n.hasOwnProperty,m={},r="2.2.3",C=function(t,e){return new C.fn.init(t,e)},c=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,p=/-([\da-z])/gi;function d(t){var e=!!t&&"length"in t&&t.length,i=C.type(t);return"function"!==i&&!C.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0>10|55296,1023&n|56320)}function s(){x()}var t,f,y,o,r,g,d,m,w,c,l,x,$,a,k,_,u,h,v,C="sizzle"+ +new Date,b=i.document,S=0,n=0,T=st(),D=st(),N=st(),P=function(t,e){return t===e&&(l=!0),0},j={}.hasOwnProperty,e=[],A=e.pop,F=e.push,M=e.push,I=e.slice,O=function(t,e){for(var i=0,n=t.length;i+~]|"+H+")"+H+"*"),Q=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),Y=new RegExp(L),U=new RegExp("^"+q+"$"),Z={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+L),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig");try{M.apply(e=I.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){M={apply:e.length?function(t,e){F.apply(t,I.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function nt(t,e,i,n){var s,o,r,a,c,l,u,p,d=e&&e.ownerDocument,h=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return i;if(!n&&((e?e.ownerDocument||e:b)!==$&&x(e),e=e||$,k)){if(11!==h&&(l=J.exec(t)))if(s=l[1]){if(9===h){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(d&&(r=d.getElementById(s))&&v(e,r)&&r.id===s)return i.push(r),i}else{if(l[2])return M.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return M.apply(i,e.getElementsByClassName(s)),i}if(f.qsa&&!N[t+" "]&&(!_||!_.test(t))){if(1!==h)d=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,"\\$&"):e.setAttribute("id",a=C),o=(u=g(t)).length,c=U.test(a)?"#"+a:"[id='"+a+"']";o--;)u[o]=c+" "+dt(u[o]);p=u.join(","),d=tt.test(t)&&ut(e.parentNode)||e}if(p)try{return M.apply(i,d.querySelectorAll(p)),i}catch(t){}finally{a===C&&e.removeAttribute("id")}}}return m(t.replace(W,"$1"),e,i,n)}function st(){var i=[];function n(t,e){return i.push(t+" ")>y.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function ot(t){return t[C]=!0,t}function rt(t){var e=$.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var i=t.split("|"),n=i.length;n--;)y.attrHandle[i[n]]=e}function ct(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function lt(r){return ot(function(o){return o=+o,ot(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function ut(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=nt.support={},r=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},x=nt.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:b;return n!==$&&9===n.nodeType&&n.documentElement&&(a=($=n).documentElement,k=!r($),(i=$.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",s,!1):i.attachEvent&&i.attachEvent("onunload",s)),f.attributes=rt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=rt(function(t){return t.appendChild($.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=K.test($.getElementsByClassName),f.getById=rt(function(t){return a.appendChild(t).id=C,!$.getElementsByName||!$.getElementsByName(C).length}),f.getById?(y.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var i=e.getElementById(t);return i?[i]:[]}},y.filter.ID=function(t){var e=t.replace(it,p);return function(t){return t.getAttribute("id")===e}}):(delete y.find.ID,y.filter.ID=function(t){var i=t.replace(it,p);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}}),y.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},y.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},u=[],_=[],(f.qsa=K.test($.querySelectorAll))&&(rt(function(t){a.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+H+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||_.push("\\["+H+"*(?:value|"+E+")"),t.querySelectorAll("[id~="+C+"-]").length||_.push("~="),t.querySelectorAll(":checked").length||_.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||_.push(".#.+[+~]")}),rt(function(t){var e=$.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&_.push("name"+H+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||_.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),_.push(",.*:")})),(f.matchesSelector=K.test(h=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&rt(function(t){f.disconnectedMatch=h.call(t,"div"),h.call(t,"[s!='']:x"),u.push("!=",L)}),_=_.length&&new RegExp(_.join("|")),u=u.length&&new RegExp(u.join("|")),e=K.test(a.compareDocumentPosition),v=e||K.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},P=e?function(t,e){if(t===e)return l=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===$||t.ownerDocument===b&&v(b,t)?-1:e===$||e.ownerDocument===b&&v(b,e)?1:c?O(c,t)-O(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return l=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===$?-1:e===$?1:s?-1:o?1:c?O(c,t)-O(c,e):0;if(s===o)return ct(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ct(r[n],a[n]):r[n]===b?-1:a[n]===b?1:0}),$},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==$&&x(t),e=e.replace(Q,"='$1']"),f.matchesSelector&&k&&!N[e+" "]&&(!u||!u.test(e))&&(!_||!_.test(e)))try{var i=h.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,p),t[3]=(t[3]||t[4]||t[5]||"").replace(it,p),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||nt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&nt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Y.test(i)&&(e=g(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,p).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=T[t+" "];return e||(e=new RegExp("(^|"+H+")"+t+"("+H+"|$)"))&&T(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=nt.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(t,i,n){if(C.isFunction(i))return C.grep(t,function(t,e){return!!i.call(t,e,t)!==n});if(i.nodeType)return C.grep(t,function(t){return t===i!==n});if("string"==typeof i){if(w.test(i))return C.filter(i,t,n);i=C.filter(i,t)}return C.grep(t,function(t){return-1)[^>]*|#([\w-]*))$/;(C.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||S,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):C.isFunction(t)?void 0!==i.ready?i.ready(t):t(C):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),C.makeArray(t,this));if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),y.test(n[1])&&C.isPlainObject(e))for(n in e)C.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=k.getElementById(n[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=k,this.selector=t,this}).prototype=C.fn,S=C(k);var D=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function P(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;t",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function G(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&C.nodeName(t,e)?C.merge([t],i):i}function K(t,e){for(var i=0,n=t.length;ix",m.noCloneChecked=!!J.cloneNode(!0).lastChild.defaultValue;var nt=/^key/,st=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;function rt(){return!0}function at(){return!1}function ct(){try{return k.activeElement}catch(t){}}function lt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)lt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=at;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return C().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,n,i)})}C.event={global:{},add:function(e,t,i,n,s){var o,r,a,c,l,u,p,d,h,f,g,m=E.get(e);if(m)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=C.guid++),(c=m.events)||(c=m.events={}),(r=m.handle)||(r=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(A)||[""]).length;l--;)h=g=(a=ot.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),h&&(p=C.event.special[h]||{},h=(s?p.delegateType:p.bindType)||h,p=C.event.special[h]||{},u=C.extend({type:h,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=c[h])||((d=c[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(h,r)),p.add&&(p.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),C.event.global[h]=!0)},remove:function(t,e,i,n,s){var o,r,a,c,l,u,p,d,h,f,g,m=E.hasData(t)&&E.get(t);if(m&&(c=m.events)){for(l=(e=(e||"").match(A)||[""]).length;l--;)if(h=g=(a=ot.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),h){for(p=C.event.special[h]||{},d=c[h=(n?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)u=d[o],!s&&g!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(t,u));r&&!d.length&&(p.teardown&&!1!==p.teardown.call(t,f,m.handle)||C.removeEvent(t,h,m.handle),delete c[h])}else for(h in c)C.event.remove(t,h+e[l],i,n,!0);C.isEmptyObject(c)&&E.remove(t,"handle events")}},dispatch:function(t){t=C.event.fix(t);var e,i,n,s,o,r,a=u.call(arguments),c=(E.get(this,"events")||{})[t.type]||[],l=C.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(r=C.event.handlers.call(this,t,c),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((C.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,c=t.target;if(a&&c.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==t.type)){for(n=[],i=0;i]*)\/>/gi,pt=/\s*$/g;function gt(t,e){return C.nodeName(t,"table")&&C.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function _t(t){var e=ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function vt(t,e){var i,n,s,o,r,a,c,l;if(1===e.nodeType){if(E.hasData(t)&&(o=E.access(t),r=E.set(e,o),l=o.events))for(s in delete r.handle,r.events={},l)for(i=0,n=l[s].length;i")},clone:function(t,e,i){var n,s,o,r,a,c,l,u=t.cloneNode(!0),p=C.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=G(u),n=0,s=(o=G(t)).length;n")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=$t(t,e),wt.detach()),xt[t]=i),i}function Ct(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s}var St,Tt,Dt,Nt,Pt,jt,At=/^margin/,Ft=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Mt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=$),e.getComputedStyle(t)},It=k.documentElement;function Ot(){jt.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",jt.innerHTML="",It.appendChild(Pt);var t=$.getComputedStyle(jt);St="1%"!==t.top,Nt="2px"===t.marginLeft,Tt="4px"===t.width,jt.style.marginRight="50%",Dt="4px"===t.marginRight,It.removeChild(Pt)}function Et(t,e,i){var n,s,o,r,a=t.style;return""!==(r=(i=i||Mt(t))?i.getPropertyValue(e)||i[e]:void 0)&&void 0!==r||C.contains(t.ownerDocument,t)||(r=C.style(t,e)),i&&!m.pixelMarginRight()&&Ft.test(r)&&At.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o),void 0!==r?r+"":r}function Ht(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Pt=k.createElement("div"),(jt=k.createElement("div")).style&&(jt.style.backgroundClip="content-box",jt.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===jt.style.backgroundClip,Pt.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",Pt.appendChild(jt),C.extend(m,{pixelPosition:function(){return Ot(),St},boxSizingReliable:function(){return null==Tt&&Ot(),Tt},pixelMarginRight:function(){return null==Tt&&Ot(),Dt},reliableMarginLeft:function(){return null==Tt&&Ot(),Nt},reliableMarginRight:function(){var t,e=jt.appendChild(k.createElement("div"));return e.style.cssText=jt.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",jt.style.width="1px",It.appendChild(Pt),t=!parseFloat($.getComputedStyle(e).marginRight),It.removeChild(Pt),jt.removeChild(e),t}}));var qt=/^(none|table(?!-c[ea]).+)/,zt={position:"absolute",visibility:"hidden",display:"block"},Lt={letterSpacing:"0",fontWeight:"400"},Rt=["Webkit","O","Moz","ms"],Wt=k.createElement("div").style;function Bt(t){if(t in Wt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Rt.length;i--;)if((t=Rt[i]+e)in Wt)return t}function Vt(t,e,i){var n=B.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Qt(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=C.css(t,i+V[o],!0,s)),n?("content"===i&&(r-=C.css(t,"padding"+V[o],!0,s)),"margin"!==i&&(r-=C.css(t,"border"+V[o]+"Width",!0,s))):(r+=C.css(t,"padding"+V[o],!0,s),"padding"!==i&&(r+=C.css(t,"border"+V[o]+"Width",!0,s)));return r}function Yt(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=Mt(t),r="border-box"===C.css(t,"boxSizing",!1,o);if(k.msFullscreenElement&&$.top!==$&&t.getClientRects().length&&(s=Math.round(100*t.getBoundingClientRect()[e])),s<=0||null==s){if(((s=Et(t,e,o))<0||null==s)&&(s=t.style[e]),Ft.test(s))return s;n=r&&(m.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+Qt(t,e,i||(r?"border":"content"),n,o)+"px"}function Ut(t,e){for(var i,n,s,o=[],r=0,a=t.length;r").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var He=[],qe=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||C.expando+"_"+_e++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=C.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(qe,"$1"+n):!1!==t.jsonp&&(t.url+=(ve.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=$[n],$[n]=function(){o=arguments},i.always(function(){void 0===s?C($).removeProp(n):$[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,He.push(n)),o&&C.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),C.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||k;var n=y.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=it([t],e,s),s&&s.length&&C(s).remove(),C.merge([],n.childNodes))};var ze=C.fn.load;function Le(t){return C.isWindow(t)?t:9===t.nodeType&&t.defaultView}C.fn.load=function(t,e,i){if("string"!=typeof t&&ze)return ze.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return-1").append(C.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.expr.filters.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,i){var n,s,o,r,a,c,l=C.css(t,"position"),u=C(t),p={};"static"===l&&(t.style.position="relative"),a=u.offset(),o=C.css(t,"top"),c=C.css(t,"left"),s=("absolute"===l||"fixed"===l)&&-1<(o+c).indexOf("auto")?(r=(n=u.position()).top,n.left):(r=parseFloat(o)||0,parseFloat(c)||0),C.isFunction(e)&&(e=e.call(t,i,C.extend({},a))),null!=e.top&&(p.top=e.top-a.top+r),null!=e.left&&(p.left=e.left-a.left+s),"using"in e?e.using.call(t,p):u.css(p)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(t=o.documentElement,C.contains(t,n)?(s=n.getBoundingClientRect(),i=Le(o),{top:s.top+i.pageYOffset-t.clientTop,left:s.left+i.pageXOffset-t.clientLeft}):s):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===C.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),C.nodeName(t[0],"html")||(n=t.offset()),n.top+=C.css(t[0],"borderTopWidth",!0),n.left+=C.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-C.css(i,"marginTop",!0),left:e.left-n.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||It})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return I(this,function(t,e,i){var n=Le(t);if(void 0===i)return n?n[s]:t[e];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),C.each(["top","left"],function(t,i){C.cssHooks[i]=Ht(m.pixelPosition,function(t,e){if(e)return e=Et(t,i),Ft.test(e)?C(t).position()[i]+"px":e})}),C.each({Height:"height",Width:"width"},function(o,r){C.each({padding:"inner"+o,content:r,"":"outer"+o},function(n,t){C.fn[t]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return I(this,function(t,e,i){var n;return C.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+o],n["scroll"+o],t.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?C.css(t,e,s):C.style(t,e,i,s)},r,i?t:void 0,i,null)}})}),C.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),C.fn.andSelf=C.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Re=$.jQuery,We=$.$;return C.noConflict=function(t){return $.$===C&&($.$=We),t&&$.jQuery===C&&($.jQuery=Re),C},t||($.jQuery=$.$=C),C}),function(l,i,r){l.migrateVersion="1.4.0";var n={};function u(t){var e=i.console;n[t]||(n[t]=!0,l.migrateWarnings.push(t),e&&e.warn&&!l.migrateMute&&(e.warn("JQMIGRATE: "+t),l.migrateTrace&&e.trace&&e.trace()))}function t(t,e,i,n){if(Object.defineProperty)try{return void Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return u(n),i},set:function(t){u(n),i=t}})}catch(t){}l._definePropertyBroken=!0,t[e]=i}l.migrateWarnings=[],i.console&&i.console.log&&i.console.log("JQMIGRATE: Migrate is installed"+(l.migrateMute?"":" with logging active")+", version "+l.migrateVersion),l.migrateTrace===r&&(l.migrateTrace=!0),l.migrateReset=function(){n={},l.migrateWarnings.length=0},"BackCompat"===document.compatMode&&u("jQuery is not compatible with Quirks Mode");var a=l("",{size:1}).attr("size")&&l.attrFn,c=l.attr,s=l.attrHooks.value&&l.attrHooks.value.get||function(){return null},o=l.attrHooks.value&&l.attrHooks.value.set||function(){return r},p=/^(?:input|button)$/i,d=/^[238]$/,h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;t(l,"attrFn",a||{},"jQuery.attrFn is deprecated"),l.attr=function(t,e,i,n){var s=e.toLowerCase(),o=t&&t.nodeType;return n&&(c.length<4&&u("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(o)&&(a?e in a:l.isFunction(l.fn[e])))?l(t)[e](i):("type"===e&&i!==r&&p.test(t.nodeName)&&t.parentNode&&u("Can't change the 'type' of an input or button in IE 6/7/8"),!l.attrHooks[s]&&h.test(s)&&(l.attrHooks[s]={get:function(t,e){var i,n=l.prop(t,e);return!0===n||"boolean"!=typeof n&&(i=t.getAttributeNode(e))&&!1!==i.nodeValue?e.toLowerCase():r},set:function(t,e,i){var n;return!1===e?l.removeAttr(t,i):((n=l.propFix[i]||i)in t&&(t[n]=!0),t.setAttribute(i,i.toLowerCase())),i}},f.test(s)&&u("jQuery.fn.attr('"+s+"') might use property instead of attribute")),c.call(l,t,e,i))},l.attrHooks.value={get:function(t,e){var i=(t.nodeName||"").toLowerCase();return"button"===i?s.apply(this,arguments):("input"!==i&&"option"!==i&&u("jQuery.fn.attr('value') no longer gets properties"),e in t?t.value:null)},set:function(t,e){var i=(t.nodeName||"").toLowerCase();if("button"===i)return o.apply(this,arguments);"input"!==i&&"option"!==i&&u("jQuery.fn.attr('value', val) no longer sets properties"),t.value=e}};var e,g,m=l.fn.init,_=l.parseJSON,v=/^\s*)([^>]*)$/;l.fn.init=function(t,e,i){var n,s;return t&&"string"==typeof t&&!l.isPlainObject(e)&&(n=y.exec(l.trim(t)))&&n[0]&&(v.test(t)||u("$(html) HTML strings must start with '<' character"),n[3]&&u("$(html) HTML text after last tag is ignored"),"#"===n[0].charAt(0)&&(u("HTML string cannot start with a '#' character"),l.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&(e=e.context),l.parseHTML)?m.call(this,l.parseHTML(n[2],e&&e.ownerDocument||e||document,!0),e,i):("#"===t?(u("jQuery( '#' ) is not a valid selector"),t=[]):b.test(t)&&u("Attribute selectors with '#' must be quoted: '"+t+"'"),s=m.apply(this,arguments),t&&t.selector!==r?(s.selector=t.selector,s.context=t.context):(s.selector="string"==typeof t?t:"",t&&(s.context=t.nodeType?t:e||document)),s)},l.fn.init.prototype=l.fn,l.parseJSON=function(t){return t?_.apply(this,arguments):(u("jQuery.parseJSON requires a valid JSON string"),null)},l.uaMatch=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},l.browser||(g={},(e=l.uaMatch(navigator.userAgent)).browser&&(g[e.browser]=!0,g.version=e.version),g.chrome?g.webkit=!0:g.webkit&&(g.safari=!0),l.browser=g),t(l,"browser",l.browser,"jQuery.browser is deprecated"),l.boxModel=l.support.boxModel="CSS1Compat"===document.compatMode,t(l,"boxModel",l.boxModel,"jQuery.boxModel is deprecated"),t(l.support,"boxModel",l.support.boxModel,"jQuery.support.boxModel is deprecated"),l.sub=function(){function n(t,e){return new n.fn.init(t,e)}l.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),(n.fn.constructor=n).sub=this.sub,n.fn.init=function(t,e){var i=l.fn.init.call(this,t,e,s);return i instanceof n?i:n(i)},n.fn.init.prototype=n.fn;var s=n(document);return u("jQuery.sub() is deprecated"),n};var w=!(l.fn.size=function(){return u("jQuery.fn.size() is deprecated; use the .length property"),this.length});l.swap&&l.each(["height","width","reliableMarginRight"],function(t,e){var i=l.cssHooks[e]&&l.cssHooks[e].get;i&&(l.cssHooks[e].get=function(){var t;return w=!0,t=i.apply(this,arguments),w=!1,t})}),l.swap=function(t,e,i,n){var s,o,r={};for(o in w||u("jQuery.swap() is undocumented and deprecated"),e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s},l.ajaxSetup({converters:{"text json":l.parseJSON}});var x=l.fn.data;l.fn.data=function(t){var e,i,n=this[0];return!n||"events"!==t||1!==arguments.length||(e=l.data(n,t),i=l._data(n,t),e!==r&&e!==i||i===r)?x.apply(this,arguments):(u("Use of jQuery.fn.data('events') is deprecated"),i)};var $=/\/(java|ecma)script/i;l.clean||(l.clean=function(t,e,i,n){e=(e=!(e=e||document).nodeType&&e[0]||e).ownerDocument||e,u("jQuery.clean() is deprecated");var s,o,r,a,c=[];if(l.merge(c,l.buildFragment(t,e).childNodes),i)for(r=function(t){if(!t.type||$.test(t.type))return n?n.push(t.parentNode?t.parentNode.removeChild(t):t):i.appendChild(t)},s=0;null!=(o=c[s]);s++)l.nodeName(o,"script")&&r(o)||(i.appendChild(o),void 0!==o.getElementsByTagName&&(a=l.grep(l.merge([],o.getElementsByTagName("script")),r),c.splice.apply(c,[s+1,0].concat(a)),s+=a.length));return c});function k(t){return"string"!=typeof t||l.event.special.hover?t:(M.test(t)&&u("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(M,"mouseenter$1 mouseleave$1"))}var C=l.event.add,S=l.event.remove,T=l.event.trigger,D=l.fn.toggle,N=l.fn.live,P=l.fn.die,j=l.fn.load,A="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",F=new RegExp("\\b(?:"+A+")\\b"),M=/(?:^|\s)hover(\.\S+|)\b/;l.event.props&&"attrChange"!==l.event.props[0]&&l.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),l.event.dispatch&&t(l.event,"handle",l.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),l.event.add=function(t,e,i,n,s){t!==document&&F.test(e)&&u("AJAX events should be attached to document: "+e),C.call(this,t,k(e||""),i,n,s)},l.event.remove=function(t,e,i,n,s){S.call(this,t,k(e)||"",i,n,s)},l.each(["load","unload","error"],function(t,e){l.fn[e]=function(){var t=Array.prototype.slice.call(arguments,0);return"load"===e&&"string"==typeof t[0]?j.apply(this,t):(u("jQuery.fn."+e+"() is deprecated"),t.splice(0,0,e),arguments.length?this.bind.apply(this,t):(this.triggerHandler.apply(this,t),this))}}),l.fn.toggle=function(i,t){if(!l.isFunction(i)||!l.isFunction(t))return D.apply(this,arguments);u("jQuery.fn.toggle(handler, handler...) is deprecated");function e(t){var e=(l._data(this,"lastToggle"+i.guid)||0)%o;return l._data(this,"lastToggle"+i.guid,1+e),t.preventDefault(),n[e].apply(this,arguments)||!1}var n=arguments,s=i.guid||l.guid++,o=0;for(e.guid=s;oe.mInt&&"0"===s[0].charAt(0)&&(s[0]=s[0].slice(1)),t=n+s.join(e.aDec)),(i&&"deny"===e.lZero||i&&"allow"===e.lZero&&!1===e.allowLeading)&&(o="^"+e.aNegRegAutoStrip+"0*(\\d"+("leading"===i?")":"|$)"),o=new RegExp(o),t=t.replace(o,"$1$2")),t}function l(t,e){var i;return"p"===e.pSign&&(i=e.nBracket.split(","),e.hasFocus||e.removeBrackets?(e.hasFocus&&t.charAt(0)===i[0]||e.removeBrackets&&t.charAt(0)===i[0])&&(t=(t=t.replace(i[0],e.aNeg)).replace(i[1],"")):(t=t.replace(e.aNeg,""),t=i[0]+t+i[1])),t}function r(t,e){var i,n;return t&&((i=+t)<1e-6&&-1e.mDec&&(o[1]=o[1].substring(0,e.mDec)),a+e.aDec+o[1]):a,e.aSign&&(r=-1!==t.indexOf(e.aNeg),t=t.replace(e.aNeg,""),t="p"===e.pSign?e.aSign+t:t+e.aSign,r&&(t=e.aNeg+t)),i<0&&null!==e.nBracket&&(t=l(t,e)),t}function g(t,e){t=""===t?"0":t.toString(),m(e,"mDec"),"CHF"===e.mRound&&(t=(Math.round(20*t)/20).toString());function i(t){var e=0===r?/(\.(?:\d*[1-9])?)0*$/:1===r?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+r+"}(?:\\d*[1-9])?)0*$");return t=t.replace(e,"$1"),0===r&&(t=t.replace(/\.$/,"")),t}var n="",s=0,o="",r="boolean"==typeof e.aPad||null===e.aPad?e.aPad?e.mDec:0:+e.aPad;"-"===t.charAt(0)&&(o="-",t=t.replace("-","")),t.match(/^\d/)||(t="0"+t),"-"===o&&0==+t&&(o=""),(0<+t&&"keep"!==e.lZero||0o&&(t=0=e.vMin&&i<=e.vMax}function o(t,e){this.settings=e,this.that=t,this.$that=d(t),this.formatted=!1,this.settingsClone=s(this.$that,this.settings),this.value=t.value}function b(t){return"string"==typeof t&&(t="#"+(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).replace(/(:|\.)/g,"\\$1")),d(t)}function y(t,e,i){var n=t.data("autoNumeric");n||(n={},t.data("autoNumeric",n));var s=n.holder;return(void 0===s&&e||i)&&(s=new o(t.get(0),e),n.holder=s),s}o.prototype={init:function(t){var e,i,n;this.value=this.that.value,this.settingsClone=s(this.$that,this.settings),this.ctrlKey=t.ctrlKey,this.cmdKey=t.metaKey,this.shiftKey=t.shiftKey,this.selection=(e=this.that,n={},void 0===e.selectionStart?(e.focus(),i=document.selection.createRange(),n.length=i.text.length,i.moveStart("character",-e.value.length),n.end=i.text.length,n.start=n.end-n.length):(n.start=e.selectionStart,n.end=e.selectionEnd,n.length=n.end-n.start),n),"keydown"!==t.type&&"keyup"!==t.type||(this.kdCode=t.keyCode),this.which=t.which,this.processed=!1,this.formatted=!1},setSelection:function(t,e,i){t=Math.max(t,0),e=Math.min(e,this.that.value.length),this.selection={start:t,end:e,length:e-t},void 0!==i&&!i||a(this.that,t,e)},setPosition:function(t,e){this.setSelection(t,t,e)},getBeforeAfter:function(){var t=this.value;return[t.substring(0,this.selection.start),t.substring(this.selection.end,t.length)]},getBeforeAfterStriped:function(){var t=this.getBeforeAfter();return t[0]=c(t[0],this.settingsClone),t[1]=c(t[1],this.settingsClone),t},normalizeParts:function(t,e){var i=this.settingsClone;e=c(e,i),""!==(t=c(t,i,!!e.match(/^\d/)||"leading"))&&t!==i.aNeg||"deny"!==i.lZero||""(o=_(o,n,i)).length&&(r=o.length),this.value=o,this.setPosition(r,!1),!0)},signPosition:function(){var t=this.settingsClone,e=t.aSign,i=this.that;if(e){var n=e.length;if("p"===t.pSign)return t.aNeg&&i.value&&i.value.charAt(0)===t.aNeg?[1,n+1]:[0,n];var s=i.value.length;return[s-n,s]}return[1e3,-1]},expandSelectionOnSign:function(t){var e=this.signPosition(),i=this.selection;i.starte[0]&&((i.starte[1])&&this.value.substring(Math.max(i.start,e[0]),Math.min(i.end,e[1])).match(/^\s*$/)?i.starti.mInt&&"0"===n[0].charAt(0)&&(n[0]=n[0].slice(1)),n[0]=t+n[0]);var o=f(this.value,this.settingsClone),r=o.length;if(o){for(var a=n[0].split(""),c=0;c is not supported by autoNumeric()"),!1===t.runOnce&&t.aForm&&(i&&(n=!0,""===o[0].value&&"empty"===t.wEmpty&&(o[0].value="",n=!1),""===o[0].value&&"sign"===t.wEmpty&&(o[0].value=t.aSign,n=!1),n&&""!==o.val()&&(null===t.anDefault&&o[0].value===o.prop("defaultValue")||null!==t.anDefault&&t.anDefault.toString()===o.val())&&o.autoNumeric("set",o.val())),-1!==d.inArray(o.prop("tagName").toLowerCase(),t.tagList)&&""!==o.text()&&o.autoNumeric("set",o.text())),t.runOnce=!0,o.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")&&(o.on("keydown.autoNumeric",function(t){return(r=y(o)).settings.aDec===r.settings.aSep&&d.error("autoNumeric will not function properly when the decimal character aDec: '"+r.settings.aDec+"' and thousand separator aSep: '"+r.settings.aSep+"' are the same character"),r.that.readOnly?r.processed=!0:(r.init(t),r.skipAllways(t)?r.processed=!0:r.processAllways()?(r.processed=!0,r.formatQuick(),t.preventDefault(),!1):!(r.formatted=!1))}),o.on("keypress.autoNumeric",function(t){var e=(r=y(o)).processed;return r.init(t),!!r.skipAllways(t)||(e?(t.preventDefault(),!1):r.processAllways()||r.processKeypress()?(r.formatQuick(),t.preventDefault(),!1):void(r.formatted=!1))}),o.on("keyup.autoNumeric",function(t){(r=y(o)).init(t);var e=r.skipAllways(t);return r.kdCode=0,delete r.valuePartsBeforePaste,o[0].value===r.settings.aSign&&("s"===r.settings.pSign?a(this,0,0):a(this,r.settings.aSign.length,r.settings.aSign.length)),!!e||(""===this.value||void(r.formatted||r.formatQuick()))}),o.on("focusin.autoNumeric",function(){var t,e=(r=y(o)).settingsClone;e.hasFocus=!0,null!==e.nBracket&&(t=o.val(),o.val(l(t,e))),r.inVal=o.val();var i=h(r.inVal,e,!0);null!==i&&""!==i&&o.val(i)}),o.on("focusout.autoNumeric",function(){var t=(r=y(o)).settingsClone,e=o.val(),i=e;t.hasFocus=!1;var n="";"allow"===t.lZero&&(t.allowLeading=!1,n="leading"),""!==e&&(e=null===h(e=c(e,t,n),t)&&v(e,t,o[0])?p(e=g(e=u(e,t.aDec,t.aNeg),t),t.aDec,t.aNeg):"");var s=h(e,t,!1);null===s&&(s=f(e,t)),s===r.inVal&&s===i||(o.val(s),o.change(),delete r.inVal)}))})},destroy:function(){return d(this).each(function(){var t=d(this);t.off(".autoNumeric"),t.removeData("autoNumeric")})},update:function(n){return d(this).each(function(){var t=b(d(this)),e=t.data("autoNumeric");"object"!=typeof e&&d.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method");var i=t.autoNumeric("get");if(y(t,e=d.extend(e,n),!0),e.aDec===e.aSep&&d.error("autoNumeric will not function properly when the decimal character aDec: '"+e.aDec+"' and thousand separator aSep: '"+e.aSep+"' are the same character"),t.data("autoNumeric",e),""!==t.val()||""!==t.text())return t.autoNumeric("set",i)})},set:function(o){if(null!==o)return d(this).each(function(){var t=b(d(this)),e=t.data("autoNumeric"),i=o.toString(),n=o.toString(),s=t.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])");return"object"!=typeof e&&d.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),n!==t.attr("value")&&n!==t.text()||!1!==e.runOnce||(i=i.replace(",",".")),d.isNumeric(+i)||d.error("The value ("+i+") being 'set' is not numeric and has caused a error to be thrown"),i=r(i,e),e.setEvent=!0,i.toString(),""!==i&&(i=g(i,e)),v(i=p(i,e.aDec,e.aNeg),e)||(i=g("",e)),i=f(i,e),s?t.val(i):-1!==d.inArray(t.prop("tagName").toLowerCase(),e.tagList)&&t.text(i)})},get:function(){var t=b(d(this)),e=t.data("autoNumeric");"object"!=typeof e&&d.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method");var i="";return t.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")?i=t.eq(0).val():-1!==d.inArray(t.prop("tagName").toLowerCase(),e.tagList)?i=t.eq(0).text():d.error("The <"+t.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),""===i&&"empty"===e.wEmpty||i===e.aSign&&("sign"===e.wEmpty||"empty"===e.wEmpty)?"":(""!==i&&null!==e.nBracket&&(e.removeBrackets=!0,i=l(i,e),e.removeBrackets=!1),!e.runOnce&&!1!==e.aForm||(i=c(i,e)),0==+(i=u(i,e.aDec,e.aNeg))&&"keep"!==e.lZero&&(i="0"),"keep"===e.lZero?i:i=r(i,e))},getString:function(){var n=!1,t=b(d(this)),s=t.serialize().split("&"),o=d("form").index(t),e=d("form:eq("+o+")"),r=[],a=[],i=/^(?:submit|button|image|reset|file)$/i,c=/^(?:input|select|textarea|keygen)/i,l=/^(?:checkbox|radio)$/i,u=/^(?:button|checkbox|color|date|datetime|datetime-local|email|file|image|month|number|password|radio|range|reset|search|submit|time|url|week)/i,p=0;return d.each(e[0],function(t,e){""===e.name||!c.test(e.localName)||i.test(e.type)||e.disabled||!e.checked&&l.test(e.type)?a.push(-1):(a.push(p),p+=1)}),p=0,d.each(e[0],function(t,e){"input"!==e.localName||""!==e.type&&"text"!==e.type&&"hidden"!==e.type&&"tel"!==e.type?(r.push(-1),"input"===e.localName&&u.test(e.type)&&(p+=1)):(r.push(p),p+=1)}),d.each(s,function(t,e){e=s[t].split("=");var i=d.inArray(t,a);-1'),t.width=t.height=t.id=t.w3c=t.src=null,t.onFail=t.version=t.expressInstall=null,t)t[n]&&(i+='');var s,o="";if(e){for(var r in e){e[r]&&(s=e[r],o+=r+"="+encodeURIComponent(/function|object/.test(typeof s)?l.asString(s):s)+"&")}i+='"}return i+=""},isSupported:function(t){return r[0]>t[0]||r[0]==t[0]&&r[1]>=t[1]}}),r=l.getVersion();function u(t,e,i){var n;l.isSupported(e.version)?t.innerHTML=l.getHTML(e,i):e.expressInstall&&l.isSupported([6,65])?t.innerHTML=l.getHTML(c(e,{src:e.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title}):(t.innerHTML.replace(/\s/g,"")||(t.innerHTML="

Flash version "+e.version+" or greater is required

"+(0"+("A"==t.tagName?"

Click here to download latest version

":"

Download latest version from here

"),"A"==t.tagName&&(t.onclick=function(){location.href=s})),!e.onFail||"string"==typeof(n=e.onFail.call(this))&&(t.innerHTML=n)),a&&(window[e.id]=document.getElementById(e.id)),c(this,{getRoot:function(){return t},getOptions:function(){return e},getConf:function(){return i},getApi:function(){return t.firstChild}})}t&&(jQuery.tools=jQuery.tools||{version:"@VERSION"},jQuery.tools.flashembed={conf:o},jQuery.fn.flashembed=function(t,e){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,t,e))})})}(),function($){function sc_setScroll(t,e,i){return"transition"==i.transition&&"swing"==e&&(e="ease"),{anims:[],duration:t,orgDuration:t,easing:e,startTime:getTime()}}function sc_startScroll(t,e){for(var i=0,n=t.anims.length;i=n.total;)t-=n.total;for(;t<0;)t+=n.total}return t}function gn_getVisibleItemsPrev(t,e,i){for(var n=0,s=0,o=i;0<=o;o--){var r=t.eq(o);if((n+=r.is(":visible")?r[e.d.outerWidth](!0):0)>e.maxDimension)return s;0==o&&(o=t.length),s++}}function gn_getVisibleItemsPrevFilter(t,e,i){return gn_getItemsPrevFilter(t,e.items.filter,e.items.visibleConf.org,i)}function gn_getScrollItemsPrevFilter(t,e,i,n){return gn_getItemsPrevFilter(t,e.items.filter,n,i)}function gn_getItemsPrevFilter(t,e,i,n){for(var s=0,o=0,r=n,a=t.length;0<=r;r--){if(++o==a)return o;if(t.eq(r).is(e)&&++s==i)return o;0==r&&(r=a)}}function gn_getVisibleOrg(t,e){return e.items.visibleConf.org||t.children().slice(0,e.items.visible).filter(e.items.filter).length}function gn_getVisibleItemsNext(t,e,i){for(var n=0,s=0,o=i,r=t.length-1;o<=r;o++){var a=t.eq(o);if((n+=a.is(":visible")?a[e.d.outerWidth](!0):0)>e.maxDimension)return s;if(++s==1+r)return s;o==r&&(o=-1)}}function gn_getVisibleItemsNextTestCircular(t,e,i,n){var s=gn_getVisibleItemsNext(t,e,i);return e.circular||nc.length?(o=!0,r=l[0],l[1]):(o=!1,r=c[0],c[1]),r){case"even":s=t%2==1?t-1:t;break;case"odd":s=t%2==0?t-1:t;break;default:s=t}is_number(a=parseInt(a,10))&&(o&&(a=-a),s+=a)}return(!is_number(s)||s<1)&&(s=1),s}function cf_getItemsAdjust(t,e,i,n){return cf_getItemAdjustMinMax(cf_getAdjust(t,e,i,n),e.items.visibleConf)}function cf_getItemAdjustMinMax(t,e){return is_number(e.min)&&te.max&&(t=e.max),t<1&&(t=1),t}function cf_getSynchArr(t){is_array(t)||(t=[[t]]),is_array(t[0])||(t=[t]);for(var e=0,i=t.length;ee.length&&(n=e.length);var s=Math.floor(t[t.d.width]/n);return t.items.visible=n,t.items[t.d.width]=s,t[t.d.width]=n*s,t}function bt_pauseOnHoverConfig(t){var e,i;return is_string(t)?(i=-1itms.total)return t.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+o+" needed): Not scrolling.");e=(c=cf_sortParams([e,i,n,s],["object","number/string","function","boolean"]))[0],i=c[1],n=c[2],s=c[3];var r=t.type.slice(conf.events.prefix.length);if(is_object(e)||(e={}),is_function(n)&&(e.onAfter=n),is_boolean(s)&&(e.queue=s),(e=$.extend(!0,{},opts[r],e)).conditions&&!e.conditions.call($tt0,r))return t.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(i)){if("*"!=opts.items.filter)i="visible";else for(var a=[i,e.items,opts[r].items],c=0,l=a.length;c=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&e.onEnd&&e.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-i,itms.total).prependTo($cfs),itms.total=r&&ie?"next":"prev"),"prev"==o&&(e=itms.total-e),$cfs.trigger(cf_e(o,conf),[s,e,r]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(t,e,i){t.stopPropagation();var n=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[n-1,e,"prev",i])}),$cfs.bind(cf_e("nextPage",conf),function(t,e,i){t.stopPropagation();var n=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[n+1,e,"next",i])}),$cfs.bind(cf_e("slideToPage",conf),function(t,e,i,n,s){t.stopPropagation(),is_number(e)||(e=$cfs.triggerHandler(cf_e("currentPage",conf)));var o=opts.pagination.items||opts.items.visible,r=Math.ceil(itms.total/o)-1;return e<0&&(e=r),ritms.total;)e-=itms.total;$cfs.prepend($cfs.children().slice(e,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(t,e){if(t.stopPropagation(),e)e=cf_getSynchArr(e);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");e=opts.synchronise}for(var i=$cfs.triggerHandler(cf_e("currentPosition",conf)),n=!0,s=0,o=e.length;s=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(t,e,n,s){t.stopPropagation();var i=cf_sortParams([e,n,s],["string/number/object","boolean","number"]);e=i[0],n=i[1],s=i[2];var o;return e instanceof $&&1itms.total;)e-=itms.total;for(;i>itms.total;)i-=itms.total;for(;e<0;)e+=itms.total;for(;i<0;)i+=itms.total}var o=$cfs.children(),r=eitms.first&&(e=opts.items.visibleConf.variable?gn_getVisibleItemsPrev(n,opts,itms.first)-itms.first:"*"!=opts.items.filter?gn_getVisibleItemsPrevFilter(n,opts,itms.first)-itms.first:opts.items.visible-itms.first,debug(conf,"Preventing non-circular: sliding "+e+" items backward."),$cfs.trigger(cf_e("prev",conf),e)),opts.items.visible=cf_getItemsAdjust(i,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,n);var o=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,o]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),o}),$cfs.bind(cf_e("destroy",conf),function(t,e){return t.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),e&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(t){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(t,e,i){return t.stopPropagation(),$cfs.triggerHandler(cf_e(e,conf),i)})},_unbind_events:function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},_bind_buttons:function(){var t,i,n,s,o,r,a,e;if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.auto.pauseOnHover),$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})),opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(t){t.preventDefault();var e=!1,i=null;crsl.isPaused?e="play":opts.auto.pauseOnEvent&&(e="pause",i=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),e&&$cfs.trigger(cf_e(e,conf),i)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.prev.pauseOnHover),opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))}))),opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.next.pauseOnHover),opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))}))),opts.pagination.container&&opts.pagination.pauseOnHover&&(t=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover),opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})),(opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;e==opts.next.key&&(t.preventDefault(),$cfs.trigger(cf_e("next",conf))),e==opts.prev.key&&(t.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;49<=e&&e<58&&(e=(e-49)*opts.items.visible)<=itms.total&&(t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[e,0,!0,opts.pagination]))}),$.fn.swipe){var c="ontouchstart"in window;if(c&&opts.swipe.onTouch||!c&&opts.swipe.onMouse){function l(){$cfs.trigger(cf_e("prev",conf),[p])}function u(){$cfs.trigger(cf_e("next",conf),[d])}var p=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe);switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=u,opts.swipe.options.swipeDown=l;break;default:opts.swipe.options.swipeLeft=u,opts.swipe.options.swipeRight=l}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),$wrp.css("cursor","move"),crsl.swipe=!0}}$.fn.mousewheel&&opts.mousewheel&&(i=$.extend(!0,{},opts.prev,opts.mousewheel),n=$.extend(!0,{},opts.next,opts.mousewheel),crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(t,e){t.preventDefault(),0').parent(),start_arr,start_arr;if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start)?start_arr=opts.items.start:(start_arr=[],0!=opts.items.start&&start_arr.push(opts.items.start)),opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),0'+t+""},$.fn.carouFredSel.progressbarUpdater=function(t){$(this).css("width",t+"%")},$.fn.carouFredSel.cookie={get:function(t){t+="=";for(var e=document.cookie.split(";"),i=0,n=e.length;i","/":"?","\\":"|"},textAcceptingInputTypes:["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color","tel"],options:{filterTextInputs:!0}},l.each(["keydown","keyup","keypress"],function(){l.event.special[this]={add:t}})}(jQuery||this.jQuery||window.jQuery),function(e){!jQuery&&"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,document,window,navigator)}):jQuery||"object"!=typeof exports?e(jQuery,document,window,navigator):e(require("jquery"),document,window,navigator)}(function(c,l,u,t,p){"use strict";var e,i,n=0,s=(e=t.userAgent,i=/msie\s\d+/i,0>>0;if(0==s)return-1;var o=+e||0;if(Math.abs(o)===1/0&&(o=0),s<=o)return-1;for(i=Math.max(0<=o?o:s-Math.abs(o),0);i!",o[0]),(n={skin:o.data("skin"),type:o.data("type"),min:o.data("min"),max:o.data("max"),from:o.data("from"),to:o.data("to"),step:o.data("step"),min_interval:o.data("minInterval"),max_interval:o.data("maxInterval"),drag_interval:o.data("dragInterval"),values:o.data("values"),from_fixed:o.data("fromFixed"),from_min:o.data("fromMin"),from_max:o.data("fromMax"),from_shadow:o.data("fromShadow"),to_fixed:o.data("toFixed"),to_min:o.data("toMin"),to_max:o.data("toMax"),to_shadow:o.data("toShadow"),prettify_enabled:o.data("prettifyEnabled"),prettify_separator:o.data("prettifySeparator"),force_edges:o.data("forceEdges"),keyboard:o.data("keyboard"),grid:o.data("grid"),grid_margin:o.data("gridMargin"),grid_num:o.data("gridNum"),grid_snap:o.data("gridSnap"),hide_min_max:o.data("hideMinMax"),hide_from_to:o.data("hideFromTo"),prefix:o.data("prefix"),postfix:o.data("postfix"),max_postfix:o.data("maxPostfix"),decorate_both:o.data("decorateBoth"),values_separator:o.data("valuesSeparator"),input_values_separator:o.data("inputValuesSeparator"),disable:o.data("disable"),block:o.data("block"),extra_classes:o.data("extraClasses")}).values=n.values&&n.values.split(","),n)n.hasOwnProperty(s)&&(n[s]!==p&&""!==n[s]||delete n[s]);r!==p&&""!==r&&((r=r.split(n.input_values_separator||e.input_values_separator||";"))[0]&&r[0]==+r[0]&&(r[0]=+r[0]),r[1]&&r[1]==+r[1]&&(r[1]=+r[1]),e&&e.values&&e.values.length?(a.from=r[0]&&e.values.indexOf(r[0]),a.to=r[1]&&e.values.indexOf(r[1])):(a.from=r[0]&&+r[0],a.to=r[1]&&+r[1])),c.extend(a,e),c.extend(a,n),this.options=a,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()}o.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('01000'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(''),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(''),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,e=this.options.max,i=this.options.from,n=this.options.to;t'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),s&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),s&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){var e,i;this.target||(i=(e="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,i+=e.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:i}))},pointerMove:function(t){var e;this.dragging&&(e=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX,this.coords.x_pointer=e-this.coords.x_gap,this.calc())},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,s&&c("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(c.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&("both"===t&&this.setTempMinInterval(),t=t||(this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=i-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),s&&c("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,i=(this.options.max-this.options.min)/100,i=this.options.step/i;t?e+=i:e-=i,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");var t,e;this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(t=this._prettify(this.options.min),e=this._prettify(this.options.max),this.result.min_pretty=t,this.result.max_pretty=e,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(e,this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,10!==this.calc_count&&!t||(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var e=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,e=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,e=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(e)),this.target){case"base":var i=(this.options.max-this.options.min)/100,n=(this.result.from-this.options.min)/i,s=(this.result.to-this.options.min)/i;this.coords.p_single_real=this.toFixed(n),this.coords.p_from_real=this.toFixed(n),this.coords.p_to_real=this.toFixed(s),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(e),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(e),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(e),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_realthis.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return e<0?e=0:t100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"):(s=t?(this.options.decorate_both?(i=this.decorate(e[this.result.from]),i+=this.options.values_separator,i+=this.decorate(e[this.result.to])):i=this.decorate(e[this.result.from]+this.options.values_separator+e[this.result.to]),n=this.decorate(e[this.result.from]),this.decorate(e[this.result.to])):(o=this._prettify(this.result.from),r=this._prettify(this.result.to),this.options.decorate_both?(i=this.decorate(o,this.result.from),i+=this.options.values_separator,i+=this.decorate(r,this.result.to)):i=this.decorate(o+this.options.values_separator+r,this.result.to),n=this.decorate(o,this.result.from),this.decorate(r,this.result.to)),this.$cache.single.html(i),this.$cache.from.html(n),this.$cache.to.html(s),this.calcLabels(),a=Math.min(this.labels.p_single_left,this.labels.p_from_left),c=this.labels.p_single_left+this.labels.p_single_fake,l=this.labels.p_to_left+this.labels.p_to_fake,u=Math.max(c,l),this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",u=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",l):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(c,l))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),a100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible")))},drawShadow:function(){var t,e,i,n,s=this.options,o=this.$cache,r="number"==typeof s.from_min&&!isNaN(s.from_min),a="number"==typeof s.from_max&&!isNaN(s.from_max),c="number"==typeof s.to_min&&!isNaN(s.to_min),l="number"==typeof s.to_max&&!isNaN(s.to_max);"single"===s.type?s.from_shadow&&(r||a)?(t=this.convertToPercent(r?s.from_min:s.min),e=this.convertToPercent(a?s.from_max:s.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,o.shad_single[0].style.display="block",o.shad_single[0].style.left=t+"%",o.shad_single[0].style.width=e+"%"):o.shad_single[0].style.display="none":(s.from_shadow&&(r||a)?(t=this.convertToPercent(r?s.from_min:s.min),e=this.convertToPercent(a?s.from_max:s.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,o.shad_from[0].style.display="block",o.shad_from[0].style.left=t+"%",o.shad_from[0].style.width=e+"%"):o.shad_from[0].style.display="none",s.to_shadow&&(c||l)?(i=this.convertToPercent(c?s.to_min:s.min),n=this.convertToPercent(l?s.to_max:s.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,o.shad_to[0].style.display="block",o.shad_to[0].style.left=i+"%",o.shad_to[0].style.width=n+"%"):o.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,e){var i,n=this.options.max-this.options.min,s=n/100;return n?(i=(e?t:t-this.options.min)/s,this.toFixed(i)):(this.no_diapason=!0,0)},convertToValue:function(t){var e,i,n=this.options.min,s=this.options.max,o=n.toString().split(".")[1],r=s.toString().split(".")[1],a=0,c=0;if(0===t)return this.options.min;if(100===t)return this.options.max;o&&(a=e=o.length),r&&(a=i=r.length),e&&i&&(a=i<=e?e:i),n<0&&(n=+(n+(c=Math.abs(n))).toFixed(a),s=+(s+c).toFixed(a));var l,u=(s-n)/100*t+n,p=this.options.step.toString().split(".")[1],u=p?+u.toFixed(p.length):(u/=this.options.step,+(u*=this.options.step).toFixed(0));return c&&(u-=c),(l=p?+u.toFixed(p.length):this.toFixed(u))this.options.max&&(l=this.options.max),l},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100o.max_interval&&(n=s-o.max_interval):n-s>o.max_interval&&(n=s+o.max_interval),this.convertToPercent(n)):t},checkDiapason:function(t,e,i){var n=this.convertToValue(t),s=this.options;return"number"!=typeof e&&(e=s.min),"number"!=typeof i&&(i=s.max),ni.max&&(i.from=i.max)):(i.fromi.max&&(i.from=i.max),i.toi.max&&(i.to=i.max),this.update_check.from&&(this.update_check.from!==i.from&&i.from>i.to&&(i.from=i.to),this.update_check.to!==i.to&&i.toi.to&&(i.from=i.to),i.toi.from_max&&(i.from=i.from_max),"number"==typeof i.to_min&&i.toi.to_max&&(i.to=i.to_max),n&&(n.min!==i.min&&(n.min=i.min),n.max!==i.max&&(n.max=i.max),(n.fromn.max)&&(n.from=i.from),(n.ton.max)&&(n.to=i.to)),("number"!=typeof i.min_interval||isNaN(i.min_interval)||!i.min_interval||i.min_interval<0)&&(i.min_interval=0),("number"!=typeof i.max_interval||isNaN(i.max_interval)||!i.max_interval||i.max_interval<0)&&(i.max_interval=0),i.min_interval&&i.min_interval>i.max-i.min&&(i.min_interval=i.max-i.min),i.max_interval&&i.max_interval>i.max-i.min&&(i.max_interval=i.max-i.min)},decorate:function(t,e){var i="",n=this.options;return n.prefix&&(i+=n.prefix),i+=t,n.max_postfix&&(n.values.length&&t===n.p_values[n.max]||e===n.max)&&(i+=n.max_postfix,n.postfix&&(i+=" ")),n.postfix&&(i+=n.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,i,n,s,o,r=this.options,a=r.max-r.min,c=r.grid_num,l=0,u=4,p="";for(this.calcGridMargin(),r.grid_snap&&(c=a/r.step),50';p+='',o=this.convertToValue(l),p+=''+(o=r.values.length?r.p_values[o]:this._prettify(o))+""}this.coords.big_num=Math.ceil(c+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(p),this.cacheGridLabels()}},cacheGridLabels:function(){for(var t,e=this.coords.big_num,i=0;i100+this.coords.grid_gap&&(i[n-1]=100+this.coords.grid_gap,e[n-1]=this.toFixed(i[n-1]-this.coords.big_p[n-1]),this.coords.big_x[n-1]=this.toFixed(this.coords.big_p[n-1]-this.coords.grid_gap))),this.calcGridCollision(2,e,i),this.calcGridCollision(4,e,i),s=0;s').css({display:ut.css("display"),position:"static"==ut.css("position")?"relative":ut.css("position"),float:ut.css("float"),top:ut.css("top"),right:ut.css("right"),bottom:ut.css("bottom"),left:ut.css("left")}),"block"==ut.css("display")&&_.css("width",ut.outerWidth(!0)),ut.wrap(_).css({position:"relative",top:"auto",right:"auto",bottom:"auto",left:"auto"}),N=wt(''),lt.icon=N,lt.settings.open_icon_only?N:N.add(ut)):ut).bind("click.Zebra_DatePicker_"+st,function(t){t.preventDefault(),ut.attr("disabled")||(D.hasClass("dp_visible")?lt.hide():lt.show())}),!lt.settings.readonly_element&<.settings.pair&&ut.bind("blur.Zebra_DatePicker_"+st,function(){var t;(t=pt(wt(this).val()))&&!ht(t.getFullYear(),t.getMonth(),t.getDate())&&bt(t)}),void 0!==N&&N.insertAfter(ut)),void 0!==N&&(N.attr("style",""),lt.settings.inside&&N.addClass("Zebra_DatePicker_Icon_Inside_"+("right"==lt.settings.icon_position?"Right":"Left")),v=ut.outerWidth(),b=ut.outerHeight(),y=parseInt(ut.css("marginLeft"),10)||0,w=parseInt(ut.css("marginTop"),10)||0,N.outerWidth(),x=N.outerHeight(),$=parseInt(N.css("marginLeft"),10)||0,parseInt(N.css("marginRight"),10),lt.settings.inside?(N.css("top",w+(b-x)/2),"right"==lt.settings.icon_position?N.css("right",0):N.css("left",0)):N.css({top:w+(b-x)/2,left:y+v+$}),N.removeClass(" Zebra_DatePicker_Icon_Disabled"),"disabled"==ut.attr("disabled")&&N.addClass("Zebra_DatePicker_Icon_Disabled"))),it=!1!==lt.settings.show_select_today&&-1 '+lt.settings.header_navigation[1]+'
";D=wt(C),lt.datepicker=D,P=wt("table.dp_header",D),j=wt("table.dp_daypicker",D),A=wt("table.dp_monthpicker",D),F=wt("table.dp_yearpicker",D),et=wt("table.dp_footer",D),tt=wt("td.dp_today",et),M=wt("td.dp_clear",et),lt.settings.always_visible?ut.attr("disabled")||(lt.settings.always_visible.append(D),lt.show()):lt.settings.container.append(D),D.delegate("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month, .dp_week_number)","mouseover",function(){wt(this).addClass("dp_hover")}).delegate("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month, .dp_week_number)","mouseout",function(){wt(this).removeClass("dp_hover")}),dt(wt("td",P)),wt(".dp_previous",P).bind("click",function(){"months"==T?R--:"years"==T?R-=12:--L<0&&(L=11,R--),gt()}),wt(".dp_caption",P).bind("click",function(){T="days"==T?-1");for(var o=0;o<7;o++)s+=""+(wt.isArray(lt.settings.days_abbr)&&void 0!==lt.settings.days_abbr[(lt.settings.first_day_of_week+o)%7]?lt.settings.days_abbr[(lt.settings.first_day_of_week+o)%7]:lt.settings.days[(lt.settings.first_day_of_week+o)%7].substr(0,2))+"";for(s+="",o=0;o<42;o++){0"),o%7==0&<.settings.show_week_number&&(s+=''+v(new Date(R,L,o-n+1))+"");var r,a,c,l,u,p,d,h=o-n+1;lt.settings.select_other_months&&(o'+(lt.settings.select_other_months||lt.settings.show_other_months?_t(i-n+o+1,lt.settings.zero_pad?2:0):" ")+"":t'+(lt.settings.select_other_months||lt.settings.show_other_months?_t(h-t,lt.settings.zero_pad?2:0):" ")+"":(u=(lt.settings.first_day_of_week+o)%7,p="",d=g(R,L,h),ht(R,L,h)?(-1"+((lt.settings.zero_pad?_t(h,2):h)||" ")+"")}s+="",j.html(wt(s)),lt.settings.always_visible&&(f=wt("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month, .dp_week_number)",j)),j.show()}var pt=function(t){if(t+="",""!==wt.trim(t)){for(var i=_(lt.settings.format),e=["d","D","j","l","N","S","w","F","m","M","n","Y","y"],n=[],s=[],o=null,r=null,a=0;a",{src:'javascript:document.write("")',scrolling:"no",frameborder:0,css:{zIndex:e,position:"absolute",top:-1e3,left:-1e3,width:D.outerWidth(),height:D.outerHeight(),filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0)",display:"none"}}),wt("body").append(n)),t){case"hide":n.hide();break;default:var i=D.offset();n.css({top:i.top,left:i.left,display:"block"})}},ht=function(i,n,s){if(!(void 0!==i&&!isNaN(i)||void 0!==n&&!isNaN(n)||void 0!==s&&!isNaN(s)))return!1;if(i<1e3)return!0;if(wt.isArray(lt.settings.direction)||0!==vt(lt.settings.direction)){var t=vt(a(i,void 0!==n?_t(n,2):"",void 0!==s?_t(s,2):"")),e=(t+"").length;if(8==e&&(void 0!==U&&tvt(a(G,_t(K,2),_t(X,2)))))return!0;if(6==e&&(void 0!==U&&tvt(a(G,_t(K,2)))))return!0;if(4==e&&(void 0!==U&&t");var i="dp_month_"+e;ht(R,e)?i+=" dp_disabled":!1!==B&&B==e&&R==V?i+=" dp_selected":I==e&&O==R&&(i+=" dp_current"),t+=''+(wt.isArray(lt.settings.months_abbr)&&void 0!==lt.settings.months_abbr[e]?lt.settings.months_abbr[e]:lt.settings.months[e].substr(0,3))+""}t+="",A.html(wt(t)),lt.settings.always_visible&&(c=wt("td:not(.dp_disabled)",A)),A.show()}(),j.hide(),F.hide()):"years"==T&&(function(){m(lt.settings.header_captions.years);for(var t="",e=0;e<12;e++){0");var i="";ht(R-7+e)?i+=" dp_disabled":V&&V==R-7+e?i+=" dp_selected":O==R-7+e&&(i+=" dp_current"),t+=""+(R-7+e)+""}t+="",F.html(wt(t)),lt.settings.always_visible&&(l=wt("td:not(.dp_disabled)",F)),F.show()}(),j.hide(),A.hide()),lt.settings.onChange&&"function"==typeof lt.settings.onChange&&void 0!==T&&((i="days"==T?j.find("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month)"):"months"==T?A.find("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month)"):F.find("td:not(.dp_disabled, .dp_weekend_disabled, .dp_not_in_month)")).each(function(){var t;"days"==T?wt(this).hasClass("dp_not_in_month_selectable")?(t=wt(this).attr("class").match(/date\_([0-9]{4})(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])/),wt(this).data("date",t[1]+"-"+t[2]+"-"+t[3])):wt(this).data("date",R+"-"+_t(L+1,2)+"-"+_t(vt(wt(this).text()),2)):"months"==T?(t=wt(this).attr("class").match(/dp\_month\_([0-9]+)/),wt(this).data("date",R+"-"+_t(vt(t[1])+1,2))):wt(this).data("date",vt(wt(this).text()))}),lt.settings.onChange.call(ut,T,i,ut)),et.show(),!0===lt.settings.show_clear_date||0===lt.settings.show_clear_date&&""!==ut.val()||lt.settings.always_visible&&!1!==lt.settings.show_clear_date?(M.show(),it?(tt.css("width","50%"),M.css("width","50%")):(tt.hide(),M.css("width","100%"))):(M.hide(),it?tt.show().css("width","100%"):et.hide())},mt=function(t,e,i,n,s){var o=new Date(t,e,i,12,0,0),r="days"==n?f:"months"==n?c:l,a=function(t){for(var e="",i=t.getDate(),n=t.getDay(),s=lt.settings.days[n],o=t.getMonth()+1,r=lt.settings.months[o-1],a=t.getFullYear()+"",c=0;ci.elm.data("max")&&(input_val=i.elm.data("max"),n.val(input_val)),"update"!=t.type&&e.update({from:input_val})}),s.on("update change keyup keypress",function(t){input_val=parseInt($(this).autoNumeric("get")),$(this).autoNumeric("update"),input_val<0&&(input_val=i.elm.data("min"),s.val(input_val)),input_val>i.elm.data("max")&&(input_val=i.elm.data("max"),s.val(input_val)),"update"!=t.type&&e.update({to:input_val})}))}},side_left={init:function(){var e=$("body"),i="has-side-left";$(".js-side-left").on("click",function(t){$(this);e.hasClass(i)?e.removeClass(i):e.addClass(i)})}},side_menu={init:function(){var i=$("body"),n="has-side-menu";$(".js-side-menu").on("click",function(t){var e=$(this);i.hasClass(n)?(i.removeClass(n),e.removeClass("close")):(i.addClass(n),e.addClass("close"))})}},wwimg={ww:{},init:function(t,e){var i=this;t.on("click",e,function(t){t.preventDefault();var e=$(this).attr("href");i.ww.length&&e&&/(\.jpg)|(\.jpeg)|(\.png)|(\.gif)$/.test(e)?($(".wrap_ww",i.ww).empty(),$('').attr({src:e}).appendTo($(".wrap_ww",i.ww)),wwmodal.cast(i.ww,{close:''},function(){$("img",i.ww).one("load",function(){wwmodal.position(i.ww)}).each(function(){this.complete&&$(this).load()})})):e&&($(this).attr("target")&&"_blank"==$(this).attr("target")?window.open($(this).attr("href")):window.location.href=$(this).attr("href"))})}},wwmodal={blanket:{},cast:function(t,e,i){var n,s=this,t=t.hasClass("ww")?t.detach():t;(e=e||{}).bg_color||$.extend(e,{bg_color:"rgba(0,0,0,.5)"}),t.data("bg_color")&&$.extend(e,{bg_color:t.data("bg_color")}),t.data("time_close")&&0==isNaN(parseInt(t.data("time_close")))&&$.extend(e,{time_c:parseInt(t.data("time_close"))}),t.data("time_open")&&0==isNaN(parseInt(t.data("time_open")))&&$.extend(e,{time_o:parseInt(t.data("time_open"))}),s.blanket.length?s.switchit(t,e,i):(t.length&&(s.blanket=$('
').css({height:"100%",left:0,overflow:"auto",position:"fixed",top:0,width:"100%",zIndex:100}).appendTo($("body")),t.appendTo(s.blanket),n=$(window).scrollTop(),$("body").addClass("noscroll").css({top:-n}).attr({"data-scrollt":n}),s.show(t,e,i)),$(document).off("keypress"),$(document).on("keypress",null,{keys:"esc"},function(t){s.destroy(e.time_c)}),s.blanket.on("click",function(t){"ww_blanket"==$(t.target).attr("id")&&s.destroy(e.time_c)}),s.blanket.on("click",".lnk_close",function(t){t.preventDefault(),s.destroy(e.time_c)}))},destroy:function(t){var e=this,i=$(".ww:visible, .ww_blck:visible");t?i.fadeOut(t,function(){i.each(function(){$(this).detach().appendTo($("body")),$(this).find(".video").empty()}),e.blanket.remove(),e.blanket={},$("#body").removeAttr("style"),$("body").removeClass("noscroll"),$("body").attr("data-scrollt")&&($(window).scrollTop($("body").attr("data-scrollt")),$("body").removeAttr("data-scrollt"))}):(i.hide(),i.each(function(){$(this).detach().appendTo($("body")),$(this).find(".video").empty()}),e.blanket.remove(),e.blanket={},$("#body").removeAttr("style"),$("body").removeClass("noscroll"),$("body").attr("data-scrollt")&&($(window).scrollTop($("body").attr("data-scrollt")),$("body").removeAttr("data-scrollt"))),$(".hlp_killme").remove()},position:function(t){var e=$(window).height(),i=$(window).width(),n=t.outerWidth(),s=t.outerHeight(),o=Math.ceil((i-n)/2)+$(document).scrollLeft(),r=Math.ceil((e-s)/2)+$(document).scrollTop();i-n<0&&(o=$(document).scrollLeft()),e-s<0&&(r=$(document).scrollTop()),"fixed"==t.css("position")&&(o=Math.ceil((i-n)/2),r=Math.ceil((e-s)/2),i-n<0&&(o=0),e-s<0&&(r=0)),t.css({left:o,top:r})},show:function(t,e,i){var n=this;e.bg_color&&n.blanket.css({background:e.bg_color}),e.close&&$(e.close).appendTo(n.blanket),e.pfunc&&"function"==typeof e.pfunc?e.pfunc(t,e.target):n.position(t),e.time_o?t.fadeIn(e.time_o,function(){$(":input:visible:first",t).focus(),i&&"function"==typeof i&&i()}):t.show(10,function(){$(":input:visible:first",t).focus(),i&&"function"==typeof i&&i()}),$(".ww").off("click",".lnk_close"),$(".ww").on("click",".lnk_close",function(t){t.preventDefault(),n.destroy(e.time_c)}),$(window).off("resize"),$(window).on("resize",function(){e.pfunc?e.pfunc(t,e.target):n.position(t)})},switchit:function(t,e,i){var n=$(".ww:visible");n.hide(),n.length&&n.detach().appendTo($("body")),$(".hlp_killme").remove(),$(".lnk_close",this.blanket).remove(),t.appendTo(this.blanket),this.show(t,e,i)}};$(document).ready(function(){_email_encode=email_encode(),_email_encode.init(),menu.init(),visual.init(),wwimg.ww=$("#ww_image"),wwimg.init($(".content"),"a"),wwimg.init($(".blck_interior"),"a"),wwimg.init($(".blck_opinions"),"a"),wwimg.init($("#category .list"),".tmb a"),wwimg.init($("#doctor .list_certs"),"a"),price_filter.elm=$("#frm_price_slider"),price_filter.blck=$("#frm_price_slider").parents(".blck_filter_price"),price_filter.init(),side_left.init(),side_menu.init(),init_anketa(),init_appointment(),init_seminar_appointment(),init_filter(),init_how2buy(),init_images(),init_map(),init_opinions(),init_photos(),init_promo(),init_text_more($("#category .list .info"),"info"),init_videos(),init_ymap()});