jQuery(function($){if(Shop.values.licenseId!=225478){if($(document).width()<768){return;}}
let mx_products_data={};let mx_after_init_ops={};var menu_array={"pl_PL":[{"id":"7386","date_added":"2023-06-26 12:18:48","shop_id":"955","active":"1","nazwa":"Marki","lang":"pl_PL","category_id":"87","category_name":"Marki","ilosc_zagniezdzen":"2","styl":"kafelki","prawy_box":"produkt","prawy_box_html":"","prawy_box_produkt_html1":"","prawy_box_produkt_html2":"","prawy_box_product_count":"1","prawy_box_product_type":"losowe","prawy_box_product_losowe_cat":"tak","prawy_box_product_losowe_promo":"tak","prawy_box_product_zmieniaj":"category","prawy_box_product_ids":"","dolny_box":"0","dolny_box_html":"","dolny_box_produkt_html1":"","dolny_box_produkt_html2":"","dolny_box_product_count":"1","dolny_box_product_type":"losowe","dolny_box_product_losowe_cat":"tak","dolny_box_product_losowe_promo":"tak","dolny_box_product_zmieniaj":"tak","dolny_box_product_ids":"","kolor1":"#bf0000","kolor2":"#3d3d3d","kolor3":"#ffffff","menu_full_width":"0","mode":"full_menu","fs_background":"#aaaaaa","window_background":"#dddddd","pos_top":"0","padding":"0","shadow_spread":"0","shadow_color":"#a4a4a4","border_radius":"0","border_radius_width":"0","animation_time":"30","animation_type":"fade","bg_shade":"header","bg_shade_color":"#000000","bg_shade_opacity":"0.3","li_bg":"0","li_color":"#000000","li_change_color":"0","view_config":"{\"menu_col_count\":1,\"menu_col_width\":{\"1\":100,\"2\":0,\"3\":0},\"menu_width\":\"80\",\"prawy_box_width\":20,\"dolny_col_produkt_left_width\":0,\"dolny_col_produkt_width\":100,\"dolny_col_produkt_right_width\":0,\"menu_col_width_user\":{},\"width_user\":{\"menu_width\":\"80\",\"prawy_box_width\":0},\"menu_col_count_user_add\":0,\"categories_custom_positions\":{\"1\":{},\"2\":{},\"3\":{}},\"menu_grid_colnum\":\"5\",\"menu_grid_catnum\":4,\"menu_grid_showmore\":1,\"menu_grid_moretext\":\"wi\u0119cej...\",\"categories_style\":{\"bold\":{},\"color\":{},\"font-family\":{},\"font-size\":{},\"icon\":{},\"icon_color\":{},\"icon_custom\":{}},\"padding\":{\"menu_col\":\"15\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"15\",\"dolny_box\":\"15\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"15\",\"bottom_box_all\":\"15\"},\"border\":{\"menu_col\":\"border-top:4px solid #bf0000;border-right:0;border-bottom:0;border-left:0;\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"border-top:4px solid #bf0000;border-right:0;border-bottom:0;border-left:0;\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"\",\"bottom_box_all\":\"\"},\"background\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"\",\"bottom_box_all\":\"\"},\"background_image\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"\",\"bottom_box_all\":\"\"},\"color\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"font-size\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"font-family\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"categories_hidden\":{},\"categories_children_hidden\":{}}","font_main":"","font_cat1":"","font_cat2":"","font_cat3":"","font_siatka_in":"11","font_siatka_prefix":"","kolor_hover_lvl1":"#000000","kolor_hover_lvl2":"#000000","kolor_hover_lvl3":"#000000","kolor_dziobek_lvl1":"#9d9d9d","kolor_dziobek_lvl2":"#9d9d9d","kolor_produkt_nazwa":"#000000","kolor_produkt_staracena":"#000000","kolor_produkt_cena":"#000000","czcionka_produkt_nazwa":"14","czcionka_produkt_staracena":"12","czcionka_produkt_cena":"14","produkt_efekt":"","bottom_box_all":"","bottom_box_all_html":"","bottom_box_cats":"","bottom_box_cats_html":"","change_kolor_hover_lvl1":"0","change_kolor_hover_lvl2":"0","change_kolor_hover_lvl3":"0","change_kolor_dziobek_lvl1":"1","change_kolor_dziobek_lvl2":"1","change_kolor_produkt_nazwa":"0","change_kolor_produkt_staracena":"0","change_kolor_produkt_cena":"0","bottom_box_cats_div_height":"80","wybrany_szablon":"min_2_kafelki","add_css":"","custom_shadow":"","transition":"0.15","change_product_cat2":"0","siatka_more_bg_color":"","bg_shade_top_margin":"0","menu_width_selector":"","prawy_product_ids":{"87":["1562"],"130":[],"129":[],"90":["2835"],"91":[],"304":["2741"],"335":["3012"],"128":["1649"],"312":["2866"],"127":["2193"],"126":["2340"],"125":["1950"],"293":[],"124":[],"122":["1858"],"121":["1346"],"256":[],"218":["2348"],"120":[],"314":["2988"],"242":["2447"],"118":["2162"],"308":[],"290":["2658"],"289":["2661"],"245":["2467"],"116":["1256"],"219":["2338"],"115":["1184"],"283":["2609"],"114":["1854"],"258":[],"214":["2278"],"113":["2384"],"176":["1968"],"257":["2913"],"271":["2840"],"112":["1265"],"111":["2912"],"109":["1956"],"108":["3334"],"107":["1874"],"106":["1759"],"244":["2455"],"306":["2809"],"396":["3280"],"105":["2598"],"103":["1701"],"102":["1511"],"101":["1912"],"307":["2810"],"322":["2944"],"117":["1747"],"296":["2693"],"100":["1984"],"99":["1463"],"98":["1458"],"291":["2662"],"321":["3226"],"95":["1298"],"217":["2354"],"272":["3255"],"267":["2530"],"94":["1559"],"123":["1562"],"223":["2381"],"298":["2717"],"92":["1127"],"407":[],"0":["1562"]}}]};var shop_id=955;let mxFnGetMegamenuHtml=function(shop_id,menu_id,env,config,menu_items,view_config){function mxShow(el){el.show();}
function mxHide(el){el.hide();}
function mxGetCurrentFontColor(cat_id,menu_col_i){current_font_color=config["kolor2"];if(cat_id in view_config["categories_style"]["color"]&&view_config["categories_style"]["color"][cat_id].length>1){current_font_color=view_config["categories_style"]["color"][cat_id];}
else if(view_config["color"]["menu_col_"+menu_col_i].length>1){current_font_color=view_config["color"]["menu_col_"+menu_col_i];}
else if(view_config["color"]["menu_col"].length>1){current_font_color=view_config["color"]["menu_col"];}
return current_font_color;}
function mxComputeColumnNumber(cat_divs_cid,cat_pos_3,children_count,children_col_count){cat_pos_3_mod=cat_pos_3;if(children_count%children_col_count==0){cat_pos_3_mod=cat_pos_3+1;}
col_computed_i=Math.max(1,Math.ceil(((cat_pos_3_mod)/ children_count)/(1 / children_col_count)));return col_computed_i;}
function showProducts(menu_id,prawy_produkt_div_produkty,product_ids){if(env==='admin'){showProductsAdmin(prawy_produkt_div_produkty,product_ids);return true;}
if(Shop.values.licenseId==='74187'){}
all_products_dict={};for(cat_id in product_ids){for(cp_k in product_ids[cat_id]){all_products_dict[product_ids[cat_id][cp_k]]=1;}}
products_0=product_ids[0];products_0=shuffle(products_0);mx_after_init_ops[menu_id]={'first_product':products_0[0],'all_products_dict':all_products_dict,'prawy_produkt_div_produkty':prawy_produkt_div_produkty,'mxGetProductBox':mxGetProductBox,};return true;}
let mxGetProductBox=function(current_product){kolor_produkt_nazwa=config["kolor2"];kolor_produkt_staracena=config["kolor2"];kolor_produkt_cena=config["kolor1"];if("kolor_produkt_nazwa"in config&&config["kolor_produkt_nazwa"].length>1&&"change_kolor_produkt_nazwa"in config&&parseInt(config["change_kolor_produkt_nazwa"])>0){kolor_produkt_nazwa=config["kolor_produkt_nazwa"];}
if("kolor_produkt_staracena"in config&&config["kolor_produkt_staracena"].length>1&&"change_kolor_produkt_staracena"in config&&parseInt(config["change_kolor_produkt_staracena"])>0){kolor_produkt_staracena=config["kolor_produkt_staracena"];}
if("kolor_produkt_cena"in config&&config["kolor_produkt_cena"].length>1&&"change_kolor_produkt_cena"in config&&parseInt(config["change_kolor_produkt_cena"])>0){kolor_produkt_cena=config["kolor_produkt_cena"];}
czcionka_produkt_nazwa='inherit';czcionka_produkt_staracena='inherit';czcionka_produkt_cena='inherit';if("czcionka_produkt_nazwa"in config&&config["czcionka_produkt_nazwa"].length>1){czcionka_produkt_nazwa=config["czcionka_produkt_nazwa"]+'px';}
if("czcionka_produkt_staracena"in config&&config["czcionka_produkt_staracena"].length>1){czcionka_produkt_staracena=config["czcionka_produkt_staracena"]+'px';}
if("czcionka_produkt_cena"in config&&config["czcionka_produkt_cena"].length>1){czcionka_produkt_cena=config["czcionka_produkt_cena"]+'px';}
prawy_produkt_a=$('').css({'color':kolor_produkt_nazwa,'font-size':czcionka_produkt_nazwa,'line-height':'24px','text-align':'center','display':'block','padding-bottom':'10px',});if("main_image"in current_product&¤t_product["main_image"].length>0){main_image_path='/environment/cache/images/300_300_productGfx_'+current_product["main_image_filename"];}
else{main_image_path='/environment/cache/images/300_300_productGfx___overlay.jpg';}
currency_postfix_tmp='';if(env=='admin'){main_image_path=current_product["gfx_url"];currency_postfix_tmp=' zł';}
prawy_produkt_img=$('').css({'max-width':'100%','max-height':'210px',});prawy_produkt_img_div=$('