(function(a,b){"function"==typeof define&&define.amd?define("frontAPI",[],b):"object"==typeof module&&module.exports?module.exports=b():a.frontAPI?a["frontAPI"+b().getVersion().replace(/\./g,"")]=b():a.frontAPI=b()})(window,function(){function a(){return window.Shop&&Shop.values?Shop.values.currency||"PLN":"PLN"}function b(){return window.Shop&&Shop.lang?Shop.lang.name||"pl_PL":"pl_PL"}function c(a,b){return a.replace(/\{(.+?)\}/g,function(a,c){return c in b?b[c]:a})}function d(d,e){var f;return f=c(d,{id:e.id||"",lang:e.lang||b(),currency:e.currency||a(),search:e.search||""}),e.urlParams&&(f+=e.urlParams),f}function e(a,b,c,d){return"function"!=typeof c&&(c=!1),d=d||{},d.data&&(d.data=JSON.stringify(d.data)),!0===d.noCache&&(b+="?noCache"+Date.now()),!1===c?(syncReq=g.send(b,d.data||"",function(){},a,!1,d.headers),syncReq.responseText?JSON.parse(syncReq.responseText):200===syncReq.status):void i.push({url:b,data:d.data||"",callback:c,method:a,headers:d.headers})}var f,g,h,i;i={requestInProgress:!1,maxRequests:3,requests:0,queue:[],push:function(a){this.queue.push(a),this.requestsb?1:a { if (attrName[sm_a.name + '-' + sm_a.value]) { sm_add_img += smSetImg(attrName[sm_a.name + '-' + sm_a.value]['img'], attrName[sm_a.name + '-' + sm_a.value]['info']); }; }); sm_location.outerHTML = sm_location.outerHTML + '
' + sm_add_img + '
'; } function smSetImg(img, info) { var sHtml = ''; sHtml += '
'; if (info != '') sHtml += '
'; sHtml += ''; if (info != '') sHtml += '
'+info+'
'; sHtml += '
'; return sHtml; } showGAP();