&description_url=" + encodeURIComponent(descriptionURL) + "&correlator=1753602180";
function getcookie(name) {
var cookie_start = document.cookie.indexOf(name);
var cookie_end = document.cookie.indexOf(";", cookie_start);
return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length)));
}
function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {
var expires = new Date();
expires.setTime(expires.getTime() + seconds);
document.cookie = escape(cookieName) + '=' + escape(cookieValue)
+ (expires ? '; expires=' + expires.toGMTString() : '')
+ (path ? '; path=' + path : '/')
+ (domain ? '; domain=' + domain : '')
+ (secure ? '; secure' : '');
}
function ClearPlayedGames(){
setcookie("lastplayedgames","",-360000,"/");
return false;
}
function PlayedGames(game_id){
var playedgames=getcookie("playedgames");
if(playedgames.indexOf(","+game_id+",") > -1){
playedgames=playedgames.replace(","+game_id+",",'');
}else{
if(playedgames==""||playedgames==","){
playedgames=","+game_id+",";
}else{
playedgames=","+game_id+","+playedgames;
}
}
setcookie("playedgames",playedgames,25920000000,"/");
}
$(document).ready(function(){
PlayedGames(16959);
});
window.setTimeout(function(){__upGame_rx8(16959)}, 2000);
var descriptionURL = "http://mazaclicks.top/game/cooking-christmas-traditional-food";
var iframe = '
';
$(document).ready(function() {
$('.gamePlay-icon, .gamePlay-button, #gamePlay-content').click(function(e) {
$('#adsContainer').show();
$("#gamePlay-content").hide();
$("#game-preloading").show();
setTimeout(
function()
{
$("#game-preloading").hide();
PreRollAd.start();
}, 550);
});
});
function SkipAdAndShowGame(){
$("#adsContainer").hide();
$("#game-box").html(iframe);
}
$(function(){
$('.ad300').eq(0).show();
if($('.ad300').size() > 1) {
setInterval(function(){
var first = $('.ad300').eq(0);
first.hide();
$('.ad300').last().after(first);
$('.ad300').eq(0).fadeIn();
}, 3000);
}
$('.adsmall').eq(0).show();
if($('.adsmall').size() > 1) {
setInterval(function(){
var first = $('.adsmall').eq(0);
first.hide();
$('.adsmall').last().after(first);
$('.adsmall').eq(0).fadeIn();
}, 3000);
}
})