if(!pmaInstance){var pmaInstance={products:[],publicKey:null,orderId:null,userEmail:null,baseUrl:"https://public.pricemania.sk/v1/order",cookieName:"pmaRefDate",debug:!1,addProduct:function(e,t,i){var a=t,n=i;("string"==typeof t||t instanceof String)&&(t=parseFloat(t,10),isNaN(t)&&(t=void 0,this.debug&&console.log("Price "+a+" is not a number"))),("string"==typeof i||i instanceof String)&&(i=parseInt(i,10),isNaN(i)&&(i=void 0,this.debug&&console.log("Quantity "+n+" is not a number")));var s={name:e,price:t,quantity:i};this.products.push(s),this.debug&&console.log("Product added: "+JSON.stringify(s))},init:function(e){this.publicKey=e},setOrderId:function(e){this.orderId=e},setUserEmail:function(e){this.userEmail=e},sendOrder:function(){var e={public_key:this.publicKey,order_id:this.orderId,user_email:this.userEmail,products:this.products,is_from_pma:this.isFromPMA()},t=this.baseUrl;t&&"string"==typeof t&&0Pricemania.sk - Overený obchod')}break;case 2:var n='Pricemania.sk - Overený obchod';for(i=document.getElementsByClassName(t||"pm_widget_static_2"),a=0;a')}break;case 4:for(i=document.getElementsByClassName(t||"pm_widget_static_4"),a=0;a')}break;default:this.debug&&console.log("Static widgets with type "+e+" not supported")}},showDynamicWidget:function(e,n){if(e=e||"left",n=n||50,this.isMobileBrowser())return this.debug&&console.log("Dynamic widgets are disabled on mobile"),!1;switch(e){case"left":this.loadJquery(function(e){document.referrer;var t='
',i=0,a=0;e(document).ready(function(e){document.body.insertAdjacentHTML("beforeend",t),e("<link>",{rel:"stylesheet",type:"text/css",href:"https://ws.pricemania.sk/widgets/shop/rating/css/widget.css"}).appendTo("head"),e("#pricemania-widget").hover(function(){a=1}),e("#pricemania-widget:not(.open) .widget-box").hover(function(){a=1,0==i&&(i=1,e("#pricemania-widget:not(.open)").addClass("open").animate({left:0},100,function(){}))}),e("#pricemania-widget").mouseleave(function(){a=0,1==i&&setTimeout(function(){0==a&&(i=0,e("#pricemania-widget").removeClass("open").animate({left:-280},100,function(){}))},100)})})});break;case"right":this.loadJquery(function(e){document.referrer;var t='
',i=0,a=0;e(document).ready(function(e){document.body.insertAdjacentHTML("beforeend",t),e("<link>",{rel:"stylesheet",type:"text/css",href:"https://ws.pricemania.sk/widgets/shop/rating/css/widget.css"}).appendTo("head"),e("#pricemania-widget").hover(function(){a=1}),e("#pricemania-widget:not(.open) .widget-box").hover(function(){a=1,0==i&&(i=1,e("#pricemania-widget:not(.open)").addClass("open").animate({right:0},100,function(){}))}),e("#pricemania-widget").mouseleave(function(){a=0,1==i&&setTimeout(function(){0==a&&(i=0,e("#pricemania-widget").removeClass("open").animate({right:-280},100,function(){}))},100)})})});break;default:this.debug&&console.log("Dynamic banner with type "+e+" is not supported")}},loadJquery:function(e){var t;if(void 0===window.jQuery||"1.9.1"!==window.jQuery.fn.jquery){var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"),i.readyState?i.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||a()}:i.onload=a,(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(i)}else t=window.jQuery,e(t);function a(){t=window.jQuery.noConflict(!0),e(t)}},autoInitStaticWidgets:function(){document.getElementsByClassName("pm_widget_static_1")&&this.showStaticWidget(1),document.getElementsByClassName("pm_widget_static_2")&&this.showStaticWidget(2),document.getElementsByClassName("pm_widget_static_3")&&this.showStaticWidget(5)},isFromPMA:function(){return!!this.getCookie(this.cookieName)},getCookie:function(e){for(var t=e+"=",i=decodeURIComponent(document.cookie).split(";"),a=0;a