PageSourceSearch

https://minutashop.ru/catalog/view/theme/default/js/cache/filterpro.17+.js?v3.1

js minutashop.ru collected 2026-10-04 22:22:15 UTC 48,882 bytes, 114 lines download raw bytes

1(function(a){var r=a.fn.domManip,d="_tmplitem",q=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,b={},f={},e,p={key:0,data:{}},i=0,c=0,l=[];function g(g,d,h,e){var c={data:e||(e===0||e===false)?e:d?d.data:{},_wrap:d?d._wrap:null,tmpl:null,parent:d||null,nodes:[],calls:u,nest:w,wrap:x,html:v,update:t};g&&a.extend(c,g,{nodes:[],parent:d});if(h){c.tmpl=h;c._ctnt=c._ctnt||c.tmpl(a,c);c.key=++i;(l.length?f:b)[i]=c}return c}a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,d){a.fn[f]=function(n){var g=[],i=a(n),k,h,m,l,j=this.length===1&&this[0].parentNode;e=b||{};if(j&&j.nodeType===11&&j.childNodes.length===1&&i.length===1){i[d](this[0]);g=this}else{for(h=0,m=i.length;h<m;h++){c=h;k=(h>0?this.clone(true):this).get();a(i[h])[d](k);g=g.concat(k)}c=0;g=this.pushStack(g,f,i.selector)}l=e;e=null;a.tmpl.complete(l);return g}});a.fn.extend({tmpl:function(d,c,b){return a.tmpl(this[0],d,c,b)},tmplItem:function(){return a.tmplItem(this[0])},template:function(b){return a.template(b,this[0])},domManip:function(d,m,k){if(d[0]&&a.isArray(d[0])){var g=a.makeArray(arguments),h=d[0],j=h.length,i=0,f;while(i<j&&!(f=a.data(h[i++],"tmplItem")));if(f&&c)g[2]=function(b){a.tmpl.afterManip(this,b,k)};r.apply(this,g)}else r.apply(this,arguments);c=0;!e&&a.tmpl.complete(b);return this}});a.extend({tmpl:function(d,h,e,c){var i,k=!c;if(k){c=p;d=a.template[d]||a.template(null,d);f={}}else if(!d){d=c.tmpl;b[c.key]=c;c.nodes=[];c.wrapped&&n(c,c.wrapped);return a(j(c,null,c.tmpl(a,c)))}if(!d)return[];if(typeof h==="function")h=h.call(c||{});e&&e.wrapped&&n(e,e.wrapped);i=a.isArray(h)?a.map(h,function(a){return a?g(e,c,d,a):null}):[g(e,c,d,h)];return k?a(j(c,null,i)):i},tmplItem:function(b){var c;if(b instanceof a)b=b[0];while(b&&b.nodeType===1&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode));return c||p},template:function(c,b){if(b){if(typeof b==="string")b=o(b);else if(b instanceof a)b=b[0]||{};if(b.nodeType)b=a.data(b,"tmpl")||a.data(b,"tmpl",o(b.innerHTML));
1return typeof c==="string"?(a.template[c]=b):b}return c?typeof c!=="string"?a.template(null,c):a.template[c]||a.template(null,q.test(c)?c:a(c)):null},encode:function(a){return(""+a).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}});a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){b={}},afterManip:function(f,b,d){var e=b.nodeType===11?a.makeArray(b.childNodes):b.nodeType===1?[b]:[];d.call(f,b);m(e);c++}});function j(e,g,f){var b,c=f?a.map(f,function(a){return typeof a==="string"?e.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'" $2'):a:j(a,e,a._ctnt)}):e;if(g)return c;c=c.join("");c.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(f,c,e,d){b=a(e).get();m(b);if(c)b=k(c).concat(b);if(d)b=b.concat(k(d))});return b?b:k(c)}function k(c){var b=document.createElement("div");b.innerHTML=c;return a.makeArray(b.childNodes)}function o(b){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(m,l,k,g,b,c,d){var j=a.tmpl.tag[k],i,e,f;if(!j)throw"Unknown template tag: "+k;i=j._default||[];if(c&&!/\w$/.test(b)){b+=c;c=""}if(b){b=h(b);d=d?","+h(d)+")":c?")":"";e=c?b.indexOf(".")>-1?b+h(c):"("+b+").call($item"+d:b;f=c?e:"(typeof("+b+")==='function'?("+b+").call($item):("+b+"))"}else f=e=i.$1||"null";g=h(g);return"');"+j[l?"close":"open"].split("$notnull_1").join(b?"typeof("+b+")!=='undefined' && ("+b+")!=null":"true").split("$1a").join(f).split("$1").join(e).split("$2").join(g||i.$2||"")+"__.push('"})+"');}return __;")}function n(c,b){c._wrap=j(c,true,a.isArray(b)?b:[q.test(b)?b:a(b).html()]).join("")}function h(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function s(b){var a=document.createElement("div");a.appendChild(b.cloneNode(true));return a.innerHTML}function m(o){var n="_"+c,k,j,l={},e,p,h;for(e=0,p=o.length;e<p;e++){if((k=o[e]).nodeType!==1)continue;j=k.getElementsByTagName("*");for(h=j.length-1;h>=0;h--)m(j[h]);m(k)}function m(j){var p,h=j,k,e,m;if(m=j.getAttribute(d)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(p=h.getAttribute(d)));if(p!==m){h=h.parentNode?h.nodeType===11?0:h.getAttribute(d)||0:0;if(!(e=b[m])){e=f[m];e=g(e,b[h]||f[h]);e.key=++i;b[i]=e}c&&o(m)}j.removeAttribute(d)}else if(c&&(e=a.data(j,"tmplItem"))){o(e.key);b[e.key]=e;h=a.data(j.parentNode,"tmplItem");h=h?h.key:0}if(e){k=e;while(k&&k.key!=h){k.nodes.push(j);k=k.parent}delete e._ctnt;delete e._wrap;a.data(j,"tmplItem",e)}function o(a){a=a+n;e=l[a]=l[a]||g(e,b[e.parent.key+n]||e.parent)}}}function u(a,d,c,b){if(!a)return l.pop();l.push({_:a,tmpl:d,item:this,data:c,options:b})}function w(d,c,b){return a.tmpl(a.template(d),c,b,this)}function x(b,d){var c=b.options||{};c.wrapped=d;return a.tmpl(a.template(b.tmpl),b.data,c,b.item)}function v(d,c){var b=this._wrap;return a.map(a(a.isArray(b)?b.join(""):b).filter(d||"*"),function(a){return c?a.innerText||a.textContent:a.outerHTML||s(a)})}function t(){var b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]);a(b).remove()}})(jQuery);(function(f){var g=Array.prototype.push,rcheck=/^(radio|checkbox)$/i,rselect=/^(option|select-one|select-multiple)$/i,rplus=/\+/g,rvalue=/^(hidden|text|search|tel|url|email|password|datetime|date|month|week|time|datetime-local|number|range|c
1olor|submit|image|reset|button|textarea)$/i;f.fn.extend({deserialize:function(a,b){if(!this.length||!a){return this}var i,length,elements=this[0].elements||this.find(":input").get(),normalized=[];if(!elements){return this}if(f.isArray(a)){normalized=a}else if(f.isPlainObject(a)){var c,value;for(c in a){f.isArray(value=a[c])?g.apply(normalized,f.map(value,function(v){return{name:c,value:v}})):g.call(normalized,{name:c,value:value})}}else if(typeof a==="string"){var d;a=a.split("&");for(i=0,length=a.length;i<length;i++){d=a[i].split("=");g.call(normalized,{name:decodeURIComponent(d[0]),value:decodeURIComponent(d[1].replace(rplus,"%20"))})}}if(!(length=normalized.length)){return this}var e,element,item,j,len,property,type;for(i=0;i<length;i++){e=normalized[i];if(!(element=elements[e.name])){continue}type=(len=element.length)?element[0]:element;type=type.type||type.nodeName;property=null;if(rvalue.test(type)){property="value"}else if(rcheck.test(type)){property="checked"}else if(rselect.test(type)){property="selected"}if(len){for(j=0;j<len;j++){item=element[j];if(item.value==e.value){item[property]=true}}}else{element[property]=e.value}}if(f.isFunction(b)){b.call(this)}return this}})})(jQuery);!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);var fIID=0;var interval=0;var $cookie=function(){};var container=".products_{view}";var redirect=false;var hide_options=false;var hide_count=false;var disable_mask=false;var window_hash=false;var variantproduct_id=false;var filter_hash="",filter_id=false;var endless_scroller=false;var filterpro_seo_options="";var filterpro_lists={};var
2history_hash="&&&===&&&",fpro_popstate_stop=false;var first_load=true;jQuery.fn.exists=function(){return this.length>0}
3if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,start){for(var i=(start||0),j=this.length;i<j;i++){if(this[i]===obj){return i;}}
4return-1;}}
5function escapeHtml(text){return text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");}
6String.prototype.hashCode=function(){var hash=0,i,ch;if(this.length==0)return hash;for(i=0;i<this.length;i++){ch=this.charCodeAt(i);hash=((hash<<5)-hash)+ch;hash=hash&hash;}
7return hash;};$(function(){if($.fn.jScrollPane!=undefined)
8$('.collapsible:not(.price_slider)').jScrollPane();});jQuery.fn.ForceNumericOnly=function()
9{return this.each(function()
10{$(this).keydown(function(e)
11{var key=e.charCode||e.keyCode||0;return(key==8||key==9||key==13||(key==65&&e.ctrlKey||e.metaKey)||key==46||(key>=35&&key<=40)||(key>=48&&key<=57)||(key>=96&&key<=105));});});};var tag_tmpl=$.template(null,'<tr><td><input id="tag_${tag}" class="filtered" type="checkbox" name="tags[]" value="${tag}" {{if checked}} checked="checked" {{/if}}></td>'+'<td><label for="tag_${tag}">${name}</label></td></tr>');var cat_tmpl=$.template(null,'<tr><td><input id="cat_${category_id}" class="filtered" type="checkbox" name="categories[]" value="${category_id}" {{if checked}} checked="checked" {{/if}}></td>'+'<td><label for="cat_${category_id}">${name}</label></td></tr>');$(document).on("change",".price_limit",(function(){var b=parseInt($("#min_price_1").val().toString().replace(/\s+/g,''));var a=parseInt($("#max_price_1").val().toString().replace(/\s+/g,''));$("#min_price").val(b);$("#max_price").val(a);$("#min_price_1").val(b.toString().replace(/(\d{3})$/," $1"));$("#max_price_1").val(a.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",[b,a]);iF(hide_options)}));function synchronizeImgCheckboxes(){$("#filterpro input.filtered[type=\"checkbox\"]").each(function(){var $img=$(this).next('img');if($img.exists()){if($(this).is(":checked")){$img.addClass("selected");}else{$img.removeClass("selected");}}});}
12products_grid_css=true;products_grid1_css=false;products_gridcol_css=false;products_gridcol5_css=false;products_list_css=false;function display(view){function relocateViewList(){$(".products_list .product_car").each(function(indx,el){$('.product_info3',el).appendTo($('.product_info2',el));$('.product_info4',el).appendTo($('.product_info2',el));$('.product_info5',el).appendTo($('.product_info2',el));$('.product_info',el).prependTo($('.product_info6',el));});}
13function relocateViewGrid(){$(".product_car").each(function(indx,el){$('.product_info2 .product_info3',el).appendTo($(el));$('.product_info2 .product_info4',el).appendTo($(el));$('.product_info2 .product_info5',el).appendTo($(el));$('.product_info6 .product_info',el).prependTo($(el));});}
14if(view.replace(/\+/,'')=='list'){$('#all-product').removeClass('products_grid');$('#all-product').removeClass('products_gridcol');$('#all-product').removeClass('products_gridcol5');$('#all-product').addClass('products_list');if(!products_list_css){var cssLink=$("<link rel='stylesheet' type='text/css' href='/catalog/view/theme/default/css/cache/products_list.min.css'>");$("head").append(cssLink);products_list_css=true;}
15$('#grid, #gridcol, #gridcol5').addClass('grid');$('#list').removeClass('grid');$('#list').addClass('list-active');$('#grid').removeClass('grid-active');$('#gridcol').removeClass('gridcol-active');$('#gridcol5').removeClass('gridcol5-active');$.cookie('display',view,{path:'/'});relocateViewList();}else if(view.replace(/\+/,'')=='gridcol'){$('#all-product').removeClass('products_list');$('#all-product').removeClass('products_grid');$('#all-product').removeClass('products_gridcol5');$('#all-product').addClass('products_gridcol');if(!products_gridcol_css){var cssLink=$("<link rel='stylesheet' type='text/css' href='/catalog/view/theme/default/css/cache/products_gridcol.min.css'>");$("head").append(cssLink);products_gridcol_css=true;}
16$('#grid, #gridcol5, #list').addClass('grid');$('#gridcol').removeClass('grid');$('#gridcol').addClass('gridcol-active');$('#gridcol5').removeClass('gridcol5-active');$('#list').removeClass('list-active');$('#grid').removeClass('grid-active');$.cookie('display',view,{path:'/'});relocateViewGrid();}else if(view.replace(/\+/,'')=='gridcol5'){$('#all-product').removeClass('products_list');$('#all-product').removeClass('products_grid');$('#all-product').removeClass('products_gridcol');$('#all-product').addClass('products_gridcol5');if(!products_gridcol5_css){var cssLink=$("<link rel='stylesheet' type='text/css' href='/catalog/view/theme/default/css/cache/products_gridcol5.min.css'>");$("head").append(cssLink);products_gridcol5_css=true;}
17$('#grid, #gridcol, #list').addClass('grid');$('#gridcol5').removeClass('grid');$('#gridcol5').addClass('gridcol5-active');$('#gridcol').removeClass('gridcol-active');$('#list').removeClass('list-active');$('#grid').removeClass('grid-active');$.cookie('display',view,{path:'/'});relocateViewGrid();}else{view=view.match(/\+/)?'grid+':'grid';$('#all-product').removeClass('products_list');$('#all-product').removeClass('products_gridcol');$('#all-product').removeClass('products_gridcol5');$('#all-product').addClass('products_grid');if(!products_grid_css){var cssLink=$("<link rel='stylesheet' type='text/css' href='/catalog/view/theme/default/css/cache/products_grid.min.css'>");$("head").append(cssLink);products_grid_css=true;}
18$('#gridcol, #gridcol5, #list').addClass('grid');$('#grid').removeClass('grid');$('#list').removeClass('list-active');$('#grid').addClass('grid-active');$('#gridcol').removeClass('gridcol-active');$('#gridcol5').removeClass('gridcol5-active');$.cookie('display',view,{path:'/'});relocateViewGrid();}}
19$(function(){$('.viewby #grid, .viewby #gridcol, .viewby #gridcol5, .viewby #list').on('click',function(){display(this.id+($('#option_value_4618').prop('checked')?'+':''));doFilter();});$('.viewby #gridlist').on('click',function(){$('#option_value_4618').prop('checked',!$('#option_value_4618').prop('checked')).trigger('change');});});function iF(getTotals){clearTimeout(fIID);if(redirect){var a=$("#filterpro").serialize().replace(/[^&]+=\.?(?:&|$)/g,"").replace(/&+$/,"");location.href=redirect+"#"+a;return;}
20$("#filterpro_page").val(1);fIID=setTimeout("doFilter(false, "+getTotals+")",interval)}
21function reload_scroll_buttons(){$("div[id^=qtip-]").qtip('destroy');$(".autoscroll_on, .autoscroll_off").each(function(){var attr_page=$(this).attr('page');
21if($(this).hasClass("autoscroll_off")){$(this).removeClass("autoscroll_off").addClass("autoscroll_on");}else{$(this).removeClass("autoscroll_on").addClass("autoscroll_off");}
22if(typeof attr_page==='undefined'){$(this).qtip({content:'<a href="#" onClick="$(\'#autoscroll_0\').click(); return false;" style="text-decoration: none;">'+($(this).hasClass("autoscroll_off")?'включить автоподгрузку':'выключить автоподгрузку')+'</a>',position:{at:'bottom center',my:'top center'},style:{width:78},hide:{fixed:true,delay:300}});}else{$(this).qtip({content:'<a href="#" onClick="$(\'#autoscroll_'+$(this).attr("page")+'\').click(); return false;" style="text-decoration: none;">'+($(this).hasClass("autoscroll_off")?'включить автоподгрузку':'выключить автоподгрузку')+'</a>',position:{at:'bottom center',my:'top center'},style:{width:78},hide:{fixed:true,delay:300}}).removeData('qtip').qtip({overwrite:false,content:'стр '+$(this).attr("page"),position:{at:'top center',my:'bottom center'},style:{width:30},show:{ready:true},hide:{fixed:true,leave:false,event:false}});}});}
23function success(g,b,append){var cont=getCont();if(g.result_html){if(append){$(cont).append(g.result_html+g.result_js);if($.cookie('endless_scroll')=='on'&&0!=autoscroll_page){$(cont+" ul.items_list:last").before('<div class="onerow" style="width: 820px;"><div class="autoscroll_on" id="autoscroll_'+autoscroll_page+'" page="'+autoscroll_page+'"><div class="autoscroll_icon"></div></div></div>');$("#autoscroll_"+autoscroll_page).qtip("destroy",true);$("#autoscroll_"+autoscroll_page).qtip({content:'<a href="#" onClick="$(\'#autoscroll_'+autoscroll_page+'\').click(); return false;" style="text-decoration: none;">выключить автоподгрузку</a>',position:{at:'bottom center',my:'top center'},style:{width:78},hide:{fixed:true,delay:300}}).removeData('qtip').qtip({overwrite:false,content:'стр '+autoscroll_page,position:{at:'top center',my:'bottom center'},style:{width:30},show:{ready:true},hide:{fixed:true,leave:false,event:false}});$(".autoscroll_on, .autoscroll_off").off('click');$(".autoscroll_on, .autoscroll_off").click(function(){if($(this).hasClass("autoscroll_off")){$.cookie("endless_scroll",'on',{expires:10,path:'/'});}else{$.cookie("endless_scroll",'off',{expires:10,path:'/'});}
24reload_scroll_buttons();var attr_page=$(this).attr('page');
24if(typeof attr_page==='undefined'){load_nxt_page();}});}}else{var has_hash=false;if(first_load){var hash=window.location.hash.slice(1);var array=hash.split("&");var values;for(var i=0;i<array.length;i+=1){values=array[i].split("=");if('display'==values[0]){continue;}else{has_hash=true;break;}}}
25if(first_load&&!has_hash&&window.location.pathname!='/search/'){$(cont).append(g.result_js);}else{$(cont).html(g.result_html+g.result_js);}}
26first_load=false;if(typeof(display)!="undefined"){if($cookie){var view=$.cookie("display");}
27if(!view){view="grid";}
28display(view?view:"grid");}
29if(typeof lazyLoadInstance==='undefined'){var lazyLoadInstance=new LazyLoad({elements_selector:".lazy"});}
30lazyLoadInstance.update();afterload();}
31if(g.pagination){$(".pagination:not(.bottom)").html(g.pagination);}
32if(g.pagination_long){$(".pagination.bottom").html(g.pagination_long);}
33anketa_href='';if(g.seo_arr){$('.filterpro_link').removeAttr('relhreffilter').qtip("destroy",true);$('.filterpro_img').removeAttr('relhreffilter').qtip("destroy",true);$('.filterpro_p').removeAttr('relhreffilter').qtip("destroy",true);var stop_left_hint=false;for(var group in g.seo_arr){for(var option in g.seo_arr[group]){if(g.seo_arr[group][option]==window.location.pathname)continue;if($("div.filterpro_img.option-"+group+"-"+option).length){if($("div.filterpro_img.option-"+group+"-"+option+" img").hasClass("selected")){if(typeof anketa_filter==='undefined'){if($("div.filterpro_img.option-"+group+"-"+option).attr('data-href')!=g.seo_arr[group][option]){$("div.filterpro_img.option-"+group+"-"+option).attr('relhreffilter',"<a style='text-decoration:none;font-size:12px;' href='"+g.seo_arr[group][option]+"'>Выбрано: "+g.total_products+"<br />Перейти в категорию с выбранным фильтром</a>");}else{stop_left_hint=true;}}else{anketa_href=g.seo_arr[group][option];}}}else if($("input.option-"+group+"-"+option).parent().children("a.filterpro_link").length){if($("input.option-"+group+"-"+option).parent().parent().parent().css('display')!='none'){if(typeof anketa_filter==='undefined'){if($("input.option-"+group+"-"+option).parent().children("a.filterpro_link").attr('href')!=g.seo_arr[group][option]){$("input.option-"+group+"-"+option).parent().children("a.filterpro_link").attr('relhreffilter',"<a style='text-decoration:none;font-size:12px;' href='"+g.seo_arr[group][option]+"'>Выбрано: "+g.total_products+"<br />Перейти в категорию с выбранным фильтром</a>");anketa_href=g.seo_arr[group][option];}else{stop_left_hint=true;}}else{anketa_href=g.seo_arr[group][option];}}}else{var hash=window.location.hash.slice(1);var array=hash.split("&");var values,form_data={};for(var i=0;i<array.length;i+=1){values=array[i].split("=");form_data[values[0]]=values[1];}
34var flag_params=false,accept_params=['manufacturer','category_id','path'];for(var i in form_data){if(form_data[i]in accept_params){flag_params=true;break;}else{continue;}}
35if(flag_params){$("input.option-"+group+"-"+option).parent().children("span.filterpro_p").attr('relhreffilter',"<a style='text-decoration:none;font-size:12px;' href='"+g.seo_arr[group][option]+"'>Выбрано: "+g.total_products+"<br />Перейти в категорию с выбранным фильтром</a>");anketa_href=g.seo_arr[group][option];}}}}
36if(typeof anketa_filter==='undefined'){$('.filterpro_link').each(function(){if(typeof $(this).attr('relhreffilter')=='undefined'||stop_left_hint){$(this).qtip({content:{attr:'data-relhref'},position:{at:'right center',my:'left center',adjust:{x:5}},style:{tip:{width:18,height:9},width:70},hide:{fixed:true,delay:300}});}else{$(this).qtip({content:{attr:'data-relhref'},position:{at:'right center',my:'left center',adjust:{x:5}},style:{tip:{width:18,height:9},width:70},hide:{fixed:true,delay:300},}).removeData('qtip').qtip({overwrite:false,content:{attr:'relhreffilter'},position:{target:$("#filterpro_hint_left"),at:'left center',my:'right center'},style:{tip:{width:18,height:9},width:130},show:{ready:true},hide:{fixed:true,leave:false,event:false},});}});$('.filterpro_img').each(function(){if(typeof $(this).attr('relhreffilter')=='undefined'||stop_left_hint){$(this).qtip({content:{attr:'data-relhref'},position:{at:'right center',my:'left center',adjust:{x:5}},style:{tip:{width:18,height:9},width:70},hide:{fixed:true,delay:300}});}else{$(this).qtip({content:{attr:'data-relhref'},position:{at:'right center',my:'left center',adjust:{x:5}},style:{tip:{width:18,height:9},width:70},hide:{fixed:true,delay:300},}).removeData('qtip').qtip({overwrite:false,content:{attr:'relhreffilter'},position:{target:$("#filterpro_hint_left"),at:'left center',my:'right center'},style:{tip:{width:18,height:9},width:130},show:{ready:true},hide:{fixed:true,leave:false,event:false},});}});$('.filterpro_p').each(function(){if(!stop_left_hint){$(this).qtip({content:{attr:'relhreffilter'},position:{target:$("#filterpro_hint_left"),at:'left center',my:'right center'},style:{tip:{width:18,height:9},width:130},show:{ready:true},hide:{fixed:true,leave:false,event:false},});}});}}
37if(g.total_products){total=g.total_products+' '+plural(g.total_products,['модель','модели','моделей']);$(".total2").html(total);$("#total-products").html(g.total_products+' '+plural(g.total_products,['модель','модели','моделей'])+' <span style="font-size: 12px;">(от '+g.slider_min_hint+' до '+g.slider_max_hint+' руб.)</span>');}
38if($(g.pagination).find('.classnextpage').length>0){$('.load-next-page').show();$('div.autoscroll_on:last').show();$('div.autoscroll_off:last').show();}else{$('.load-next-page').hide();$('div.autoscroll_on:last').hide();$('div.autoscroll_off:last').hide();$('.classnextpage').hide();}
39if(b&&g.min_price==g.max_price){$('.price_slider').parent().hide();}
40var d=parseInt(g.min_price);var c=Math.ceil(parseFloat(g.max_price));if(b){$("#slider-range").slider("option",{min:d,max:c}
40);var l_hash=window.location.hash.substr(1),min_price=l_hash.match(/(?:^|&)min_price=([0-9]+)/),max_price=l_hash.match(/(?:^|&)max_price=([0-9]+)/);min_price=min_price?min_price[1]:d;max_price=max_price?max_price[1]:c;$("#min_price").val(min_price);$("#min_price_1").val(min_price.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",0,min_price);$("#max_price").val(max_price);$("#max_price_1").val(max_price.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",1,max_price);}
41var $text=$('#click_option'),$box=$('.filtered');var values=[];var idtext=[];$box.filter(':checked').each(function(){values.push($(this).attr('data-nameoption'));idtext.push($(this).attr('value'));});var htmlnew="";for(i=0;i<values.length;i++){htmlnew=htmlnew+'<span class="nodisplay'+values[i]+'"><span clickno="'+idtext[i]+'">'+values[i]+'</span></span>';}
42var l_hash=window.location.hash.substr(1),min_price_opt=l_hash.match(/(?:^|&)min_price=([0-9]+)/),max_price_opt=l_hash.match(/(?:^|&)max_price=([0-9]+)/);min_price_opt=min_price_opt?min_price_opt[1]:d;max_price_opt=max_price_opt?max_price_opt[1]:c;var min_avail_price=$("#slider-range").slider("option","min");var max_avail_price=$("#slider-range").slider("option","max");if(min_avail_price!=min_price_opt&&0!=min_price_opt){htmlnew=htmlnew+'<span class="nodisplaypricemin"><span clickno="pricemin">от '+min_price_opt+'р</span></span>';}
43if(max_avail_price!=max_price_opt&&0!=max_price_opt){htmlnew=htmlnew+'<span class="nodisplaypricemax"><span clickno="pricemax">до '+max_price_opt+'р</span></span>';}
44$text.html(htmlnew);$boxnodisplay26=$('.nodisplay26 .filtered');$boxnodisplay26.filter(':checked').each(function(){});$boxnodisplay14=$('.nodisplay14 .filtered');$boxnodisplay14.filter(':checked').each(function(){});$(function(){$(".product_car").each(function(indx,el){var image=$('.product_info2 .product_image .lazy',el).attr('data-src');var price=$('.product_info3 .pr_price',el).html();var oldprice=$('.product_info3 .af_pr_price',el).html();var name=$('.product_info .name',el).html();$('.product_info5 .imgreset',el).hover(function(){$('.product_info2 .product_image .lazy',el).attr('src',$(this).data('image'));$('.product_info .name',el).html($(this).data('name'));if($(this).data('special')){$('.sg_div_price',el).addClass('with_special');$('.product_info3 .pr_price',el).html($(this).data('special'));$('.product_info3 .af_pr_price',el).html($(this).data('price'));}else{$('.sg_div_price',el).removeClass('with_special');$('.product_info3 .pr_price',el).html($(this).data('price'));$('.product_info3 .af_pr_price',el).html('');}},function(){$('.product_info2 .product_image .lazy',el).attr('src',image);$('.product_info .name',el).html(name);if(oldprice){$('.sg_div_price',el).addClass('with_special');$('.product_info3 .pr_price',el).html(price);$('.product_info3 .af_pr_price',el).html(oldprice);}else{$('.sg_div_price',el).removeClass('with_special');$('.product_info3 .pr_price',el).html(price);$('.product_info3 .af_pr_price',el).html('');}});$('.product_info6 .imgreset',el).hover(function(){$('.product_info2 .img',el).attr('src',$(this).data('image'));},function(){$('.product_info2 .img',el).attr('src',image);});})});$("#click_option span span").click(function(e){e.stopPropagation();clicknos=$(this).attr('clickno');if(clicknos=='filter_special'){$('#filter_special').prop('checked',false);}
45if(clicknos=='filter_newest'){$('#filter_newest').prop('checked',false);}
46if(clicknos=='filter_popular'){$('#filter_popular').prop('checked',false);}
47if(clicknos=='pricemin'||clicknos=='pricemax'){if(clicknos=='pricemin'){var b=$("#slider-range").slider("option","min");}else{var b=$("#min_price").val();}
48if(clicknos=='pricemax'){var a=$("#slider-range").slider("option","max");}else{var a=$("#max_price").val();}
49$("#slider-range").slider("option",{values:[b,a]});$("#min_price").val(b);$("#max_price").val(a);$("#min_price_1").val(b.toString().replace(/(\d{3})$/," $1"));$("#max_price_1").val(a.toString().replace(/(\d{3})$/," $1"));}
50$("#filterpro").find('"#manufacturer_'+clicknos+'"').prop('checked',fal
50se);$("#filterpro").find('"#man_'+clicknos+'"').prop('checked',false);$("#filterpro").find('"#cat_'+clicknos+'"').prop('checked',false);$("#filterpro").find('"#seourl_'+clicknos+'"').prop('checked',false);$("#filterpro").find('"#option_value_'+clicknos+'"').prop('checked',false);$("#filterpro").find('"#option_value_'+clicknos+'"').next().toggleClass("selected");$("#filterpro").find('"#attribute_value_'+clicknos+'"').prop('checked',false);iF(hide_options);});(function(){var
51min=$('#slider-range').slider('option','min'),max=$('#slider-range').slider('option','max'),one_percent=(max-min)/100,left=(g.slider_min_hint-min)/one_percent,width=(g.slider_max_hint-g.slider_min_hint)/one_percent;$('#slider-active-pricerange').css({left:left+'%',width:width+'%'});})();if(g.totals_data){product_total=g.totals_data.product_total;$('#filter_categories').html('');var cats=[],filts=[];$.each(g.totals_data.categories,function(k,v){cats[k]=v.id;});$.each(g.totals_data.filters,function(k,v){filts[k]=v.id;});$("#filterpro #afilter_categories .opt_in input").each(function(k,v){if(!$(this).hasClass('seourl')){if($.inArray(v.value,cats)>=0){$(v).parent().removeClass('disabled');}else{$(v).parent().addClass('disabled');}}else{if($.inArray(v.value,filts)>=0){$(v).parent().removeClass('disabled');}else{$(v).parent().addClass('disabled');}}});var atts={};$.each(g.totals_data.attributes,function(k,v){atts[(v.id+"_"+v.text).replace(/\s/g,'_')]=v.t;});$('.a_name').each(function(k,v){var at_v_i=$(v).attr('at_v_i').replace(/\s/g,'_');var at_v_i_e=escapeHtml(at_v_i);if(atts[at_v_i]){$('[at_v_t="'+at_v_i_e+'"]').text($('[at_v_t="'+at_v_i_e+'"]').attr('data-value')+(hide_count?"":" ("+atts[at_v_i]+")"));$(v).removeAttr("disabled");if(hide_options&&v.tagName!="OPTION")
52$(v).parent().parent().show();}else{$('[at_v_t="'+at_v_i_e+'"]').text($('[at_v_t="'+at_v_i_e+'"]').attr('data-value'));$(v).attr("disabled","disabled");$(v).removeAttr('checked');$(v).removeAttr(':selected');}});var h=[];$.each(g.totals_data.manufacturers,function(f,k){if(k.id){h[h.length]=k.id;var j=$("#manufacturer_"+k.id);if(j.length==0){return;}
53j.removeAttr("disabled");j.parent().removeClass("disabled");if(hide_options&&j[0].tagName!="OPTION")
54j.parent().parent().show();if(j.get(0).tagName=="OPTION"){j.text($("#m_"+k.id).val()+(hide_count?"":" ("+k.t+")"))}else{$('label[for="manufacturer_'+k.id+'"]').text($("#m_"+k.id).val()+(hide_count?"":" ("+k.t+")"))}}});$(".manufacturer_value").each(function(f,k){var j=$(this);var l=j.attr("id").match(/manufacturer_(\d+)/);if($.inArray(l[1],h)<0){j.parent().addClass("disabled");if(hide_options&&j[0].tagName!="OPTION")
55if(this.tagName=="OPTION"){j.text($("#m_"+l[1]).val());}else{$('label[for="manufacturer_'+l[1]+'"]').text($("#m_"+l[1]).val());}}});var e=[];$.each(g.totals_data.options,function(j,k){if(k.id){e[e.length]=k.id;var f=$("#option_value_"+k.id);if(f.exists()){f.removeAttr("disabled");f.parent().removeClass("disabled");if(hide_options&&f[0].tagName!="OPTION"){if(typeof anketa_filter==='undefined'){f.parent().parent().show();}}
56if(f.get(0).tagName=="OPTION"){f.text($("#o_"+k.id).val()+(hide_count?"":" ("+k.t+")"))}else{$('label[for="option_value_'+k.id+'"]').text($("#o_"+k.id).val()+(hide_count?"":" ("+k.t+")"))}}
57var f=$("#value_"+k.id);if(f.exists()){f.removeAttr("disabled");f.parent().removeClass("disabled");}}});$(".option_value").each(function(j,k){var f=$(this);var l=f.attr("id").match(/option_value_(\d+)/);if($.inArray(l[1],e)<0){f.parent().addClass("disabled");if(hide_options&&f[0].tagName!="OPTION")
58if(this.tagName=="OPTION"){f.text($("#o_"+l[1]).val());
58f.prop("selected",false)}else if(l[1]!=4618){$('label[for="option_value_'+l[1]+'"]').text($("#o_"+l[1]).val());}}else{f.removeAttr("disabled");f.parent().removeClass("disabled");}});$(".anketa_option_value").each(function(j,k){var f=$(this);var l=f.attr("id").match(/value_(\d+)/);if($.inArray(l[1],e)<0){f.attr("disabled","disabled");f.parent().addClass("disabled");f.parent().parent().children('.anketa_image').addClass('disabled');}else{f.removeAttr("disabled");f.parent().removeClass("disabled");f.parent().parent().children('.anketa_image').removeClass('disabled');}});}
59$(".tip").qtip('destroy');$('.tip').qtip({content:{attr:'title'},position:{at:'top center',my:'bottom center',adjust:{x:5}},style:{tip:{width:18,height:9},width:70},hide:{delay:300},});if($('.pagination b').data('page')==1||!$('.pagination b').data('page'))document.title=document.title.replace(/( - страница [0-9]+)$/,'');else document.title=document.title.replace(/( - страница [0-9]+)?$/,' - страница '+$('.pagination b').data('page'));getproducts_load=true;allow_autoscroll=true;}
60function getCont(){if($cookie){var view=$.cookie("display").replace(/\+/,'');}
61if(!view){view="grid";}
62var cont=container.replace('{view}',view);if(!$(cont).exists()){cont=container.replace('{view}','grid');}
63return cont;}
64function doFilter(getPrice,getTotals,append){var hash=fpro_calculateHash();var a_data=$("#filterpro").serialize();if(!getPrice){fpro_popstate_stop=true;console.log('1 '+hash);if(''==hash){history.pushState("",document.title,window.location.pathname);}else if(hash!=''){window.location.hash=hash;}
65fpro_popstate_stop=false;}
66doFilter2(getPrice,a_data,getTotals,append);}
67var cache=[];function doFilter2(getPrice,a_data,getTotals,append){var view=$.cookie('display');if(!view)view='grid';a_data=a_data.replace(/(^|&)display=[^&]+/,'')+'&display='+view;var cont=getCont();var special=$('#filterpro_box').attr('data-route')=='product/special'||$('#filter_special:checked').length>0?"&special=1":"";var newest=$('#filterpro_box').attr('data-route')=='product/newest'||$('#filter_newest:checked').length>0?"&newest=1":"";var popular=$('#filterpro_box').attr('data-route')=='product/popular'||$('#filter_popular:checked').length>0?"&popular=1":"";var viewed=$('#filterpro_box').attr('data-route')=='product/viewed'?"&viewed=1":"";if($('#option_value_4618').prop('checked'))
68$('#gridlist').addClass('gridlist-active');else
69$('#gridlist').removeClass('gridlist-active');var slider_min=slider_max=0,min_price,max_price;if(filter_hash){if(min_price=filter_hash.match(/(?:^|&)min_price=([0-9]+)/))slider_min=min_price[1];if(max_price=filter_hash.match(/(?:^|&)max_price=([0-9]+)/))slider_max=max_price[1];}
70if((($("#filterpro #min_price").val()|0)==$("#slider-range").slider("option","min"))&&(($("#filterpro #max_price").val()|0)==$("#slider-range").slider("option","max"))){a_data=a_data.replace(/(^|&)(min_price=)[0-9]+/g,'$1$2'+slider_min);a_data=a_data.replace(/(^|&)(max_price=)[0-9]+/g,'$1$2'+slider_max);}
71a_data=a_data.replace(/[^&]+=\.?(?=&|$)/g,'').replace(/&&+/g,'&').replace(/^&+/,'').replace(/&+$/,'');var new_history_hash=fpro_calculateHash().replace(/&?display=(grid|gridcol|gridcol5)\+?(?=&|$)/,'');if(history_hash==new_history_hash){allow_autoscroll=true;return;}else{history_hash=new_history_hash;}
72var h=history_hash.hashCode();if(!cache[h]){var lists=$.param(filterpro_lists);if(lists.length)lists="&"+lists;if(!disable_mask){if(typeof(anketa_show_load)!='undefined'&&anketa_show_load){$("#anketa_box").loadmask();}
73anketa_show_load=true;$(".filterpro").loadmask();}
74$.ajax({url:"/index.php?route=module/filterpro/getproducts",type:"POST",data:a_data+(getPrice?"&getPriceLimits=true":"")+(filter_id===false?"":"&filter_id="+filter_id)+(filter_hash?"&filter_hash="+encodeURIComponent(filter_hash):"")+(getTotals?"&getTotals=1":"")+(filterpro_seo_options?"&seoOptions="+filterpro_seo_options:"")+(slider_min?"&filterpro_slider_min="+slider_min:"")+(slider_max?"&filterpro_slider_max="+slider_max:"")+lists+(window.search_filter_params==undefined?"":"&filter_name="+search_filter_params.filter_name+"&filter_tag="+search_filter_params.filter_tag+"&filter_description="+search_filter_params.filter_description+"&filter_category_id="+search_filter_params.filter_category_id+"&filter_sub_category="+search_filter_params.filter_sub_category)+"&vl="+view+special+newest+popular+viewed,dataType:"json",success:function(g){success(g,getPrice,append);cache[h]=g;var cont=getCont();if(typeof(anketa_filter)=='undefined'){setTimeout('getAStickers()',2000);}
75if(!disable_mask){$("#anketa_box").loadunmask();$(".filterpro").loadunmask();}},error:function(jqXHR,textStatus,errorThrown){var cont=getCont();$(cont).loadunmask();$("#anketa_box").loadunmask();$(".filterpro").loadunmask();}});}else{success(cache[h],getPrice,append);var min_price=$("#min_price").val(),max_price=$("#max_price").val();$("#min_price_1").val(min_price.toString().replace(/(\d{3})$/," $1"));$("#max_price_1").val(max_price.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",[min_price,max_price]);var cont=getCont();if(typeof(anketa_filter)=='undefined'){setTimeout('getAStickers()',2000);}
76$("#anketa_box").loadunmask();$(".filterpro").loadunmask();}}
77function fpro_calculateHash(){function clean(hash){if((($("#filterpro #min_price").val()|0)==$("#slider-range").slider("option","min"))&&(($("#filterpro #max_price").val()|0)==$("#slider-range").slider("option","max"))){hash=hash.replace(/(^|&)(min|max)_price=[0-9]+/g,'');}
78if(typeof anketa_filter==='undefined'){hash+='&display='+view;}
79hash=hash.replace(/(^|&)(min|max)_price=(0|-1)(?=&|$)/g,'').replace(/(^|&)page=1(?=&|$)/,'').replace(/[^&]+=\.?(?=&|$)/g,"").replace(/&&+/g,'&').replace(/&$/,'').replace(/^&/,'')
80var tmp=true;$.each(hash.split('&'),function(i,val){if(['path','category_id','page','display','variantproduct_id','manufacturer_id','q'].indexOf(val.split('=')[0])==-1)tmp=false;});if(tmp)hash=hash.replace(/(^|&)path=[^&]+/,'').replace(/(^|&)category_id=[^&]+/,'').replace(/(^|&)variantproduct_id=[^&]+/,'').replace(/(^|&)manufacturer_id=[^&]+/,'').replace(/(^|&)q=[^&]+/,'')
81return hash;}
82function reg_escape(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&');}
83var
84view=$.cookie('display'),m=(window.location.hash).match(/(^|&)display=([^&]+)/);if(!view&&m)view=m[2];if(!view)view='grid';if(view.slice(-1)=='+'){$('#option_value_4618').prop('checked',true);}
84else{$('#option_value_4618').prop('checked',false);}
85$.cookie('display',view,{path:'/'});var hash=$("#filterpro").serialize();hash=clean(decodeURIComponent(hash));var tmp=clean(decodeURIComponent(filter_hash)).replace(/(^|&)display=[^&]+/,'').replace(/(^|&)page=[^&]+/,'');var sort=order="";$.each(tmp.split('&'),function(i,val){var reg=reg_escape(val)
86if(val.substr(0,5)=='sort='&&hash.match(new RegExp('(^|&)'+reg+'(?=&|$)'))){sort=val;return true;}
87if(val.substr(0,6)=='order='&&hash.match(new RegExp('(^|&)'+reg+'(?=&|$)'))){order=val;return true;}
88hash=hash.replace(new RegExp('(^|&)'+reg+'(?=&|$)'),'');});if(sort&&order){hash=hash.replace(new RegExp('(^|&)'+reg_escape(sort)+'(?=&|$)'),'').replace(new RegExp('(^|&)'+reg_escape(order)+'(?=&|$)'),'')}
89return hash.replace(/&&+/g,'&').replace(/&$/,'').replace(/^&/,'')}
90function initfilter(options){function fpro_setViewByURL(group=''){var
91view,m=(window.location.hash.slice(1)).match(/(^|&)display=([^&]+)/);if(m)view=m[2];if(!view)view=$.cookie('display');if(!view)view='grid';switch(group){case'+':view=view.replace(/\+/,'')+'+';break
92case'-':view=view.replace(/\+/,'');break;}
93display(view);}
94$('#min_price_1').ForceNumericOnly();$('#max_price_1').ForceNumericOnly();$("#slider-range").slider({range:true,min:0,max:0,values:[0,0],stop:function(a,b){$(this).removeClass('active');fpro_setViewByURL();iF(hide_options);},slide:function(a,b){$(this).addClass('active');min_price=b.values[0].toString().replace(/(\d{3})$/," $1")
95max_price=b.values[1].toString().replace(/(\d{3})$/," $1")
96$("#min_price").val(b.values[0]);$("#max_price").val(b.values[1])
97$("#min_price_1").val(min_price);$("#max_price_1").val(max_price)}});$("#min_price").val($("#slider-range").slider("values",0));$("#max_price").val($("#slider-range").slider("values",1));$('.ui-slider a:first-child').css('height','100px');$('#slider-range').prepend('<div id="slider-active-pricerange">');$('#slider-range').append('<div style="width:100%; position:absolute; top:-100%; height:400%;">');container=options.container;redirect=options.redirect;hide_options=options.hide_options;hide_count=options.hide_count;disable_mask=options.disable_mask;filter_hash=$('<div />').html(decodeURI(options.filter_hash)).text();filter_id=options.filter_id;variantproduct_id=options.variantproduct_id;window_hash=options.window_hash;endless_scroller=options.endless_scroller;filterpro_seo_options=options.seo_options.toString();filterpro_lists.list_cats=($('#filterpro #afilter_categories input[name="categories[]"]')||$([])).map(function(){return this.value;}).toArray();filterpro_lists.list_seocats=($('#filterpro #afilter_categories input.seourl')||$([])).map(function(){return this.value;}).toArray();filterpro_lists.list_brands=($('#filterpro .opt_in input[name="manufacturer[]"]')||$([])).map(function(){return this.value;}).toArray();filterpro_lists.list_opts=$('#filterpro .option_box input.option_value:not(#option_value_4618)').map(function(){return(this.name).replace(/^option_value\[(\d+)\]\[\]$/,"$1")+"="+this.value}).toArray();if(endless_scroller){$('.pagination').hide();}
98if($.totalStorage!=undefined&&$.totalStorage('display')!=null){$cookie=$.totalStorage;}else if($.cookie!=undefined&&$.cookie('display')!=null){$cookie=$.cookie;}
99$(".option_box .option_name").click(function(){$(this).siblings(".collapsible").toggle();$(this).toggleClass("hided")});$(".option_box .attribute_group_name").click(function(){$(this).siblings(".attribute_box").toggle();$(this).toggleClass("hided")});$(".clear_filter").click(function(){$("#filterpro img").removeClass("selected");$("#filterpro select").val("");$("#filterpro :input").each(function(){if($(this).is(":checked")){$(this).attr("checked",false)}});var b=$("#slider-range").slider("option","min");var a=$("#slider-range").slider("option","max");$("#slider-range").slider("option",{values:[b,a]});$("#min_price").val(b);$("#max_price").val(a);$("div[id^=slider-range-]").each(function(index,element){var id=this.id.replace(/[^\d]/g,'');var b=$(element).slider("option","min");var a=$(element).slider("option","max");hs=$(element).slider();hs.slider("option",{values:[b,a]});hs.slider("option","slide").call(hs,null,{handle:$(".ui-slider-handle",hs),values:[b,a]});$("#attribute_value_"+id+"_min").val('');$("#attribute_value_"+id+"_max").val('');});iF()});function clear_filter(){$("#filterpro_page").val(1);$("#filterpro img").removeClass("selected");$("#filterpro select").val("");$("#filterpro :input").each(function(){if($(this).is(":checked")){$(this).attr("checked",false)}});$("div[id^=slider-range-]").each(function(index,element){var id=this.id.replace(/[^\d]/g,'');var b=$(element).slider("option","min");var a=$(element).slider("option","max");hs=$(element).slider();hs.slider("option",{values:[b,a]});hs.slider("option","slide").call(hs,null,{handle:$(".ui-slider-handle",hs),values:[b,a]});$("#attribute_value_"+id+"_min").val('');$("#attribute_value_"+id+"_max").val('');});}
100$(".pagination .links a").live("click",(function(){if($(this).closest(".pagination").hasClass("bottom")){$('html, body').animate({scrollTop:$(".toolbar").offset().top-35},1000);}
101var a=$(this).attr("href");var b=a.match(/page[=-](\d+)/)||[,1];$("#filterpro_page").val(b[1]);fpro_setViewByURL();doFilter(false,false);var cont=getCont();return false;}));$('.load-next-page').live('click',function(){current_page=$("#filterpro_page").val();$("#filterpro_page").val(++current_page);fpro_setViewByURL();doFilter(false,false,true);return false;});if($(".sortby select").exists()){$(".sortby select").get(0).onchange=null;$(".sortby select").change(function(){var d=$(this).val();var a=gUV(d,"sort");var b=gUV(d,"order");$("#filterpro_sort").val(a);$("#filterpro_order").val(b);fpro_setViewByURL();iF(1)});}
102if($(".limit select").exists()){$(".limit select").get(0).onchange=null;$(".limit select").change(function(){$("#filterpro_limit").val(gUV($(this).val(),"limit"));fpro_setViewByURL();iF(0)});}
103$(document).on("change","#filterpro",(function(ev){var t=ev.target||ev.srcElement;if($(t).is(".filtered")){if($('#option_value_4618').prop('checked'))
104fpro_setViewByURL('+');else
105fpro_setViewByURL('-');iF(hide_options);}}));$(document).on("click","#filterpro",function(ev){var t=ev.target||ev.srcElement;if($(t).parent().is(".disabled"))ev.preventDefault();});if(filter_hash)$("#filterpro").deserialize(filter_hash.replace(/&page=[0-9]+/,'').replace(/page=[0-9]+&/,''));$("#filterpro").deserialize(window.location.hash.substr(1));fpro_setViewByURL();var
106href=(window.location.href).replace(/#.*/,''),hash=fpro_calculateHash();window.history.replaceState({},document.title,href+(''!=hash?'#'+hash:''));synchronizeImgCheckboxes();$("#filterpro img").bind("click",function(){var $input=$(this).prev("input");if($input.parent().is('.disabled'))return;$(this).toggleClass("selected");$input.prop('checked',!$input.prop('checked'));iF(hide_options);});$("#filterpro img + .check").bind("click",function(){var $input=$(this).prev().prev("input");if($input.parent().is('.disabled'))return;$(this).prev().toggleClass("selected");$input.prop('checked',!$input.prop('checked'));iF(hide_options);});$("div[id^=slider-range-]").each(function(index,element){var id=this.id.replace(/[^\d]/g,'');var arr=window['attr_arr_'+id];var b=parseInt($("#attribute_value_"+id+"_min").val());var a=parseInt($("#attribute_value_"+id+"_max").val());b=arr.indexOf(b);a=arr.indexOf(a);if(a>=0&&b>=0){hs=$(element).slider();hs.slider("option",{values:[b,a]});hs.slider("option","slide").call(hs,null,{handle:$(".ui-slider-handle",hs),values:[b,a]});}});if($(".sortby select").exists()){if($("#filterpro_sort").val()){$(".sortby select option").each(function(i,e){if(gUV($(this).val(),"sort")==$("#filterpro_sort").val()&&gUV($(this).val(),"order")==$("#filterpro_order").val()){$(".sortby select").val($(this).val());return;}});}else{$val=$(".sortby select").val();$("#filterpro_sort").val(gUV($val,"sort"));$("#filterpro_order").val(gUV($val,"order"))}}
107if($(".limit select").exists()){if($("#filterpro_limit").val()){$(".limit select option").each(function(i,e){if(gUV($(this).val(),"limit")==$("#filterpro_limit").val()){$(this).attr('selected','selected');return;}});}else{$("#filterpro_limit").val(gUV($(".limit select").val(),"limit"));}}
108$(".option_name input[type=\"checkbox\"]").click(function(e){e.stopPropagation();$(this).parents(".option_box").find('input.filtered').prop('checked',$(this).prop('checked'));iF();});doFilter(true,hide_options);window.onpopstate=function(e){function check_sort(sort,order){$('.sortby select option').each(function(i,el){if(sort&&order){if(el.value.match(new RegExp('(\\?|&)sort='+sort[2]+'(&|$)'))&&el.value.match(new RegExp('(\\?|&)order='+order[2]+'(&|$)'))){$('.sortby select option').eq(i).prop('selected',true);$('#filterpro_sort').val(sort[2]);$('#filterpro_order').val(order[2]);return false;}}else if(!el.value.match(/(\?|&)(sort|order)=[^&]/)){$('.sortby select option').eq(i).prop('selected',true);$('#filterpro_sort').val('');$('#filterpro_order').val('');return false;}});}
109if(fpro_popstate_stop)return;var
110hash=window.location.hash.substr(1),view,m=hash.match(/(^|&)display=([^&]+)/);if(m)view=m[2];if(!view)view=$.cookie('display');if(!view)view='grid';$.cookie('display',view,{path:'/'});if(['gridcol','gridcol5','grid','gridcol+','gridcol5+','grid+'].indexOf(view)!=-1)display(view);var slider_min=slider_max=0,min_price,max_price;if(filter_hash){if(min_price=filter_hash.match(/(?:^|&)min_price=([0-9]+)/))slider_min=min_price[1];if(max_price=filter_hash.match(/(?:^|&)max_price=([0-9]+)/))slider_max=max_price[1];}
111if(hash.replace(/&?display=(grid|gridcol|gridcol5)\+?(?=&|$)/,'')!=history_hash){clear_filter();$("#filterpro").deserialize(filter_hash);$("#filterpro").deserialize(hash);if(view.slice(-1)=='+'){$('#option_value_4618').prop('checked',true);}
111else{$('#option_value_4618').prop('checked',false);}
112var min_price=hash.match(/(?:^|&)min_price=([0-9]+)/),max_price=hash.match(/(?:^|&)max_price=([0-9]+)/);min_price=(min_price&&min_price[1]!=0)?min_price[1]:$("#slider-range").slider("option","min");max_price=(max_price&&max_price[1]!=0)?max_price[1]:$("#slider-range").slider("option","max");$("#min_price").val(min_price);$("#min_price_1").val(min_price.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",0,min_price);$("#max_price").val(max_price);$("#max_price_1").val(max_price.toString().replace(/(\d{3})$/," $1"));$("#slider-range").slider("values",1,max_price);var sort=hash.match(/(^|&)sort=([^&]+)/),order=hash.match(/(^|&)order=([^&]+)/);check_sort(sort,order);hash=$("#filterpro").serialize();window_hash=false;doFilter2(false,hash,hide_options);window_hash=true;}}}
113function gUV(e,f){var c=String(e).split("?");var a="";if(c[1]){var b=c[1].split("&");for(var g=0;g<=(b.length);g++){if(b[g]){var d=b[g].split("=");if(d[0]&&d[0]==f){a=d[1]}}}}return a}
114if(window.js_filterpro_load===undefined)window.js_filterpro_load=$.Deferred();window.js_filterpro_load.resolve();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.