function getAjax(n,t){var i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return i.open("GET",n),i.onreadystatechange=function(){i.readyState>3&&i.status==200&&t(i.responseText)},i.withCredentials=!0,i.send(),i}for(var getVote=getAjax("http://vanishuk-dev-cs.hyperlab.pl/Vote",function(n){var t=JSON.parse(n);return document.getElementById("clicks").innerHTML=t.votes,clicks=t.votes,ticket=t.ticket}),clicks="",glogHeart=!0,hearts=document.getElementsByClassName("heart-hpm"),heart,i=0;i<hearts.length;i++)heart=hearts[i],heart.onclick=function(){if(glogHeart){clicks+=1;document.getElementById("clicks").innerHTML=clicks;setTimeout(function(){window.document.getElementById("myButton").click()},1e3);var n=new XMLHttpRequest,t="http://vanishuk-dev-cs.hyperlab.pl/Vote?ticket="+ticket;n.withCredentials=!0;n.open("POST",t);n.send();glogHeart=!1}};(function(){var n=$("img");n.length>0&&$(n).attr("src",function(n,t){return t.split("?")[0]})})(),function(){"use strict";var t;if($(document).ready(function(){var n=$("img");n.length>0&&$(n).attr("src",function(n,t){return t.split("?")[0]});$("#play-video-top").on("click",function(n){$("#video-top").css("z-index","999");$(this).css("background-image","none");$("#video-top")[0].src+="&autoplay=1";n.preventDefault()});$("#play-video").on("click",function(n){$("#video").css("z-index","999");$(this).css("background-image","none");$("#video")[0].src+="&autoplay=1";n.preventDefault()});$("#play-video2").on("click",function(n){$("#video2").css("z-index","999");$(this).css("background-image","none");$("#video2")[0].src+="&autoplay=1";n.preventDefault()});$("#play-video3").on("click",function(n){$("#video3").css("z-index","999");$(this).css("background-image","none");$("#video3")[0].src+="&autoplay=1";n.preventDefault()})}),t=document.querySelector(".preview-image img"),t){t.onclick=function(n){var r=document.querySelector(".sk-grid-responsive-video-container iframe"),t=document.querySelector(".preview-image"),i=t.getAttribute("class");i+=" hide";t.setAttribute("class",i);r.src+="&autoplay=1";n.preventDefault();alert("click")};var i=document.querySelector(".sk-grid-image__image"),n=i.getAttribute("src"),r=n.match(/width=(\d+)/g),u=n.match(/height=(\d+)/g);n=n.replace(r,"width=1920").replace(u,"height=959");i.setAttribute("src",n)}}()