<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var LelemFlgShowing = false, prefixL, eventNameL, intervalShowL, intervalHideL, Lsettings = true, queryParams = [], scriptObject = document.currentScript;
queryParams = getShopUrl();//(scriptObject)?getUrlVars(scriptObject.src):getUrlVars(getSrc());
var timeoutIdArr = [];
var closeElem = false;
var laybuytranslatedata = {
	"en_us":{
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where",
		"You select the down-payment %":"You select the down-payment %",
		"You select how many months you need to pay-off your purchase.":"You select how many months you need to pay-off your purchase.",
		"A once-off admin fee is payable. The amount depends on order value.":"A once-off admin fee is payable. The amount depends on order value.",
		"And its fully automated and highly secure.":"And its fully automated and highly secure.",
		"Payoff order's balance at any time and take earlier delivery.":"Payoff order's balance at any time and take earlier delivery.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.", 
		"Got It":"Got It",
		"Payment in 6 monthly instalments.":"Payment in 6 monthly instalments.",
		"Free Shipping Over $100.":"Free Shipping Over $100.",
		"You will see payment button on checkout page, past shipping.": "You will see payment button on checkout page, past shipping."
	
	},
	"fr":{
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/strong&gt; est une option de paiement &lt;b&gt; LAYAWAY &lt;/b&gt; abordable oÃ¹",
		"You select the down-payment %":"Vous sÃ©lectionnez le% d'acompte",
		"You select how many months you need to pay-off your purchase.":"Vous choisissez le nombre de mois dont vous avez besoin pour payer votre achat.",
		"A once-off admin fee is payable. The amount depends on order value.":"Des frais d'administration uniques sont payables. Le montant dÃ©pend de la valeur de la commande.",
		"And its fully automated and highly secure.":"Et c'est entiÃ¨rement automatisÃ© et hautement sÃ©curisÃ©.",
		"Payoff order's balance at any time and take earlier delivery.":"Paiement du solde de la commande Ã&nbsp; tout moment et rÃ©ception anticipÃ©e.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "SÃ©lectionnez simplement &lt;strong&gt; Lay-Buy &lt;/strong&gt; Ã&nbsp; la caisse.", 
		"Got It":"Je l'ai",
		"Payment in 6 monthly instalments.":"Paiement en 6 mensualitÃ©s.",
		"Free Shipping Over $100.":"Livraison gratuite sur plus de 100 $.",
		"You will see payment button on checkout page, past shipping.": "Vous verrez le bouton de paiement sur la page de paiement, expÃ©dition passÃ©e."
	},
	"es": {
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/strong&gt; es una opciÃ³n de pago asequible &lt;b&gt; LAYAWAY &lt;/b&gt; donde",
		"You select the down-payment %":"Selecciona el porcentaje de anticipo",
		"You select how many months you need to pay-off your purchase.":"Usted selecciona cuÃ¡ntos meses necesita para pagar su compra.",
		"A once-off admin fee is payable. The amount depends on order value.":"Se paga una tarifa administrativa Ãºnica. La cantidad depende del valor del pedido.",
		"And its fully automated and highly secure.":"Y es totalmente automatizado y altamente seguro.",
		"Payoff order's balance at any time and take earlier delivery.":"Pague el saldo de la orden en cualquier momento y tome la entrega antes.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "Simplemente seleccione &lt;strong&gt; Lay-Buy &lt;/strong&gt; al finalizar la compra.", 
		"Got It":"Entendido",
		"Payment in 6 monthly instalments.":"Pago en 6 cuotas mensuales.",
		"Free Shipping Over $100.":"EnvÃ­o gratis en mÃ¡s de $ 100.",
		"You will see payment button on checkout page, past shipping.": "VerÃ¡ el botÃ³n de pago en la pÃ¡gina de pago, envÃ­o anterior."
		
	},
	"zh":{
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt;Lay-Buy&lt;/ strong&gt;æ˜¯ä¸€ç§ä»·æ&nbsp;¼åˆç†çš„&lt;b&gt; LAYAWAY &lt;/ b&gt;ä»˜æ¬¾æ–¹å¼ï¼Œå…¶ä¸­",
		"You select the down-payment %":"æ‚¨é€‰æ‹©é¦–ä»˜ç™¾åˆ†æ¯”",
		"You select how many months you need to pay-off your purchase.":"æ‚¨é€‰æ‹©éœ€è¦è¿˜æ¸…å¤šå°‘ä¸ªæœˆçš„æ—¶é—´ã€‚",
		"A once-off admin fee is payable. The amount depends on order value.":"å¿…é¡»æ”¯ä»˜ä¸€æ¬¡æ€§çš„ç®¡ç†è´¹ã€‚æ•°é‡å–å†³äºŽè®¢å•ä»·å€¼ã€‚",
		"And its fully automated and highly secure.":"è€Œä¸”å®ƒæ˜¯å®Œå…¨è‡ªåŠ¨åŒ–ä¸”é«˜åº¦å®‰å…¨çš„ã€‚",
		"Payoff order's balance at any time and take earlier delivery.":"æ”¯ä»˜è®¢å•çš„ä½™é¢éšæ—¶å¯ç”¨ï¼Œå¯ä»¥ææ—©äº¤ä»˜ã€‚",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "åªéœ€åœ¨ç»“å¸æ—¶é€‰æ‹©&lt;strong&gt;Lay-Buy&lt;/ strong&gt;ã€‚", 
		"Got It":"å¾—åˆ°å®ƒäº†",
		"Payment in 6 monthly instalments.":"åˆ†6ä¸ªæœˆæ”¯ä»˜ã€‚",
		"Free Shipping Over $100.":"æ»¡$100å…è¿è´¹ã€‚",
		"You will see payment button on checkout page, past shipping.": "æ‚¨å°†åœ¨ç»“å¸é¡µé¢ä¸Šçœ‹åˆ°è¿‡å¾€ä»˜æ¬¾çš„ä»˜æ¬¾æŒ‰é’®ã€‚"
	
	},
	"cs": {
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/strong&gt; je dostupnÃ¡ platebnÃ­ metoda &lt;b&gt; LAYAWAY &lt;/b&gt;",
		"You select the down-payment %":"Vyberete zÃ¡lohu%",
		"You select how many months you need to pay-off your purchase.":"Vyberete, kolik mÄ›sÃ­cÅ¯ musÃ­te splatit nÃ¡kup.",
		"A once-off admin fee is payable. The amount depends on order value.":"Je tÅ™eba zaplatit jednorÃ¡zovÃ½ poplatek za sprÃ¡vu. ÄŒÃ¡stka zÃ¡visÃ­ na hodnotÄ› objednÃ¡vky.",
		"And its fully automated and highly secure.":"A je plnÄ› automatizovanÃ½ a vysoce bezpeÄnÃ½.",
		"Payoff order's balance at any time and take earlier delivery.":"ZÅ¯statek objednÃ¡vky zÅ¯statek kdykoli a pÅ™ijmout dÅ™Ã­vÄ›jÅ¡Ã­ doruÄenÃ­.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "PÅ™i pokladnÄ› jednoduÅ¡e vyberte moÅ¾nost &lt;strong&gt; Lay-Buy &lt;/strong&gt;.", 
		"Got It":"MÃ¡m to",
		"Payment in 6 monthly instalments.":"Platba v 6 mÄ›sÃ­ÄnÃ­ch splÃ¡tkÃ¡ch.",
		"Free Shipping Over $100.":"PoÅ¡tovnÃ© zdarma za vÃ­ce neÅ¾ 100 $.",
		"You will see payment button on checkout page, past shipping.": "TlaÄÃ­tko platby se zobrazÃ­ na strÃ¡nce pokladny, po odeslÃ¡nÃ­."
		
	},
	"ja": {
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/ strong&gt;ã¯ã€æ‰‹é&nbsp;ƒãªä¾¡æ&nbsp;¼ã®&lt;b&gt; LAYAWAY &lt;/ b&gt;æ”¯æ‰•ã„ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã§ã™ã€‚",
		"You select the down-payment %":"é&nbsp;­é‡‘ï¼…ã‚’é¸æŠžã—ã¾ã™",
		"You select how many months you need to pay-off your purchase.":"è³¼å…¥ã‚’å®Œæ¸ˆã™ã‚‹ã®ã«å¿…è¦ãªæœˆæ•°ã‚’é¸æŠžã—ã¾ã™ã€‚",
		"A once-off admin fee is payable. The amount depends on order value.":"ä¸€åº¦é™ã‚Šã®ç®¡ç†æ‰‹æ•°æ–™ãŒã‹ã‹ã‚Šã¾ã™ã€‚é‡‘é¡ã¯æ³¨æ–‡é‡‘é¡ã«ã‚ˆã£ã¦ç•°ãªã‚Šã¾ã™ã€‚",
		"And its fully automated and highly secure.":"ãã—ã¦ã€å®Œå…¨ã«è‡ªå‹•åŒ–ã•ã‚Œã€éžå¸¸ã«å®‰å…¨ã§ã™ã€‚",
		"Payoff order's balance at any time and take earlier delivery.":"ã„ã¤ã§ã‚‚ãƒšã‚¤ã‚ªãƒ•æ³¨æ–‡ã®æ®‹é«˜ã‚’å–å¾—ã—ã€ã‚ˆã‚Šæ—©ã„ç´å“ã‚’è¡Œã†",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "ãƒã‚§ãƒƒã‚¯ã‚¢ã‚¦ãƒˆæ™‚ã«&lt;strong&gt;Lay-Buy&lt;/ strong&gt;ã‚’é¸æŠžã™ã‚‹ã&nbsp;ã‘ã§ã™ã€‚", 
		"Got It":"ã¨ã£ãŸ",
		"Payment in 6 monthly instalments.":"æ¯Žæœˆ6å›žã®åˆ†å‰²æ‰•ã„ã€‚",
		"Free Shipping Over $100.":"100$ä»¥ä¸Šã§é€æ–™ç„¡æ–™ã€‚",
		"You will see payment button on checkout page, past shipping.": "ã‚ãªãŸã¯ãƒã‚§ãƒƒã‚¯ã‚¢ã‚¦ãƒˆãƒšãƒ¼ã‚¸ã€éŽåŽ»ã®å‡ºè·ã«æ”¯æ‰•ã„ãƒœã‚¿ãƒ³ã‚’è¦‹ã‚‹ã§ã—ã‚‡ã†ã€‚"
		
	},
	"pt": {
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/strong&gt; Ã© uma opÃ§Ã£o de pagamento acessÃ­vel &lt;b&gt; LAYAWAY &lt;/b&gt;, onde",
		"You select the down-payment %":"VocÃª seleciona a% do adiantamento",
		"You select how many months you need to pay-off your purchase.":"VocÃª seleciona quantos meses precisa para pagar sua compra.",
		"A once-off admin fee is payable. The amount depends on order value.":"Ã‰ paga uma taxa de administraÃ§Ã£o Ãºnica. A quantidade depende do valor do pedido.",
		"And its fully automated and highly secure.":"E Ã© totalmente automatizado e altamente seguro.",
		"Payoff order's balance at any time and take earlier delivery.":"Saldo da ordem de pagamento a qualquer momento e receber a entrega mais cedo.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "Basta selecionar &lt;strong&gt; Lay-Buy &lt;/strong&gt; na finalizaÃ§Ã£o da compra.", 
		"Got It":"Entendi",
		"Payment in 6 monthly instalments.":"Pagamento em 6 parcelas mensais.",
		"Free Shipping Over $100.":"Frete grÃ¡tis em mais de $ 100.",
		"You will see payment button on checkout page, past shipping.": "VocÃª verÃ¡ o botÃ£o de pagamento na pÃ¡gina de checkout, envio anterior."
		
	},
	"hi": {
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/ strong&gt; à¤à¤• à¤•à¤¿à¤«à¤¾à¤¯à¤¤à¥€ &lt;b&gt; LAYAWAY &lt;/ b&gt; à¤­à¥à¤—à¤¤à¤¾à¤¨ à¤µà¤¿à¤•à¤²à¥à¤ª à¤¹à¥ˆ à¤œà¤¹à¤¾à¤‚",
		"You select the down-payment %":"à¤†à¤ª à¤¡à¤¾à¤‰à¤¨-à¤ªà¥‡à¤®à¥‡à¤‚à¤Ÿ% à¤•à¤¾ à¤šà¤¯à¤¨ à¤•à¤°à¥‡à¤‚",
		"You select how many months you need to pay-off your purchase.":"à¤†à¤ª à¤…à¤ªà¤¨à¥€ à¤–à¤°à¥€à¤¦ à¤•à¤¾ à¤­à¥à¤—à¤¤à¤¾à¤¨ à¤•à¤°à¤¨à¥‡ à¤•à¥‡ à¤²à¤¿à¤ à¤•à¤¿à¤¤à¤¨à¥‡ à¤®à¤¹à¥€à¤¨à¥‹à¤‚ à¤•à¤¾ à¤šà¤¯à¤¨ à¤•à¤°à¤¤à¥‡ à¤¹à¥ˆà¤‚à¥¤",
		"A once-off admin fee is payable. The amount depends on order value.":"à¤à¤• à¤¬à¤¾à¤° à¤¬à¤‚à¤¦ à¤•à¤°à¤¨à¥‡ à¤•à¥‡ à¤²à¤¿à¤ à¤µà¥à¤¯à¤µà¤¸à¥à¤¥à¤¾à¤ªà¤• à¤¶à¥à¤²à¥à¤• à¤¦à¥‡à¤¯ à¤¹à¥ˆà¥¤ à¤°à¤¾à¤¶à¤¿ à¤†à¤¦à¥‡à¤¶ à¤®à¥‚à¤²à¥à¤¯ à¤ªà¤° à¤¨à¤¿à¤°à¥à¤­à¤° à¤•à¤°à¤¤à¥€ à¤¹à¥ˆà¥¤",
		"And its fully automated and highly secure.":"à¤”à¤° à¤‡à¤¸à¤•à¥€ à¤ªà¥‚à¤°à¥€ à¤¤à¤°à¤¹ à¤¸à¥‡ à¤¸à¥à¤µà¤šà¤¾à¤²à¤¿à¤¤ à¤”à¤° à¤…à¤¤à¥à¤¯à¤§à¤¿à¤• à¤¸à¥à¤°à¤•à¥à¤·à¤¿à¤¤ à¤¹à¥ˆà¥¤",
		"Payoff order's balance at any time and take earlier delivery.":"à¤•à¤¿à¤¸à¥€ à¤­à¥€ à¤¸à¤®à¤¯ à¤ªà¥‡à¤‘à¤« à¤‘à¤°à¥à¤¡à¤° à¤•à¥€ à¤¶à¥‡à¤· à¤°à¤¾à¤¶à¤¿ à¤”à¤° à¤ªà¤¹à¤²à¥‡ à¤•à¥€ à¤¡à¤¿à¤²à¥€à¤µà¤°à¥€ à¤²à¥‡à¤‚à¥¤",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "à¤¬à¤¸ à¤šà¥‡à¤•à¤†à¤‰à¤Ÿ à¤®à¥‡à¤‚ &lt;strong&gt; Lay-Buy &lt;/ strong&gt; à¤šà¥à¤¨à¥‡à¤‚à¥¤", 
		"Got It":"à¤¸à¤®à¤ à¤—à¤¯à¤¾",
		"Payment in 6 monthly instalments.":"6 à¤®à¤¾à¤¸à¤¿à¤• à¤•à¤¿à¤¸à¥à¤¤à¥‹à¤‚ à¤®à¥‡à¤‚ à¤­à¥à¤—à¤¤à¤¾à¤¨à¥¤",
		"Free Shipping Over $100.":"$ 100 à¤¸à¥‡ à¤…à¤§à¤¿à¤• à¤ªà¤° à¤®à¥à¤«à¤¼à¥à¤¤ à¤¶à¤¿à¤ªà¤¿à¤‚à¤—à¥¤",
		"You will see payment button on checkout page, past shipping.": "à¤†à¤ªà¤•à¥‹ à¤šà¥‡à¤•à¤†à¤‰à¤Ÿ à¤ªà¥ƒà¤·à¥à¤&nbsp; à¤ªà¤° à¤­à¥à¤—à¤¤à¤¾à¤¨ à¤¬à¤Ÿà¤¨ à¤¦à¤¿à¤–à¤¾à¤ˆ à¤¦à¥‡à¤—à¤¾ à¤œà¥‹ à¤¶à¤¿à¤ªà¤¿à¤‚à¤— à¤•à¥‡ à¤¬à¤¾à¤¦ à¤®à¥Œà¤œà¥‚à¤¦ à¤¹à¥ˆà¥¤"
		
	},
	"nl":{
		"&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where":"&lt;strong&gt; Lay-Buy &lt;/strong&gt; is een betaalbare &lt;b&gt; LAYAWAY &lt;/b&gt; betalingsoptie waar",
		"You select the down-payment %":"U selecteert het aanbetalingspercentage",
		"You select how many months you need to pay-off your purchase.":"U kiest hoeveel maanden u nodig heeft om uw aankoop af te betalen.",
		"A once-off admin fee is payable. The amount depends on order value.":"Er is een eenmalige administratiekost verschuldigd. Het bedrag is afhankelijk van de orderwaarde.",
		"And its fully automated and highly secure.":"En het is volledig geautomatiseerd en zeer veilig.",
		"Payoff order's balance at any time and take earlier delivery.":"Betaal het saldo van de bestelling op elk gewenst moment en neem een â€‹â€‹eerdere levering.",
		"Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.": "Selecteer eenvoudig &lt;strong&gt; Lay-Buy &lt;/strong&gt; bij het afrekenen.", 
		"Got It":"Ik snap het",
		"Payment in 6 monthly instalments.":"Betaling in 6 maandelijkse termijnen.",
		"Free Shipping Over $100.":"Gratis verzending vanaf $100.",
		"You will see payment button on checkout page, past shipping.": "U ziet de betalingsknop op de afrekenpagina, na verzending."
		
	}

};
var initContainerSelector = '.laybuy_elem_container_div';
function laybuytranslate(code){
	if(laybuytranslatedata &amp;&amp; laybuytranslatedata.hasOwnProperty(code)){
		var tdata = laybuytranslatedata[code];
		var elems = document.querySelectorAll('[data-laybuytranslate]');
		for(var i = 0; i &lt;elems.length; i++) {
			elems[i].innerHTML = tdata[elems[i].dataset.laybuytranslate];
		}
	}
}
function getSrc(){
	var scripts = document.getElementsByTagName("script")
	for (var i = 0; i &lt; scripts.length; ++i) {
	    if(scripts[i].getAttribute('src').search("laybuy-advertize-element-creator-new.js")&gt;0) {
	      return scripts[i].getAttribute('src');
	    }
	}
	return '';
}

function getShopUrl(){
	var vars = {};
	var shop = (typeof Shopify == "object" &amp;&amp; Shopify.hasOwnProperty('shop'))?Shopify.shop:false;
	if(shop &amp;&amp; shop!=""){
		vars ['shop'] = shop;
	}
	return vars;
}

function addCss(Lsettings){
	console.log('called-addcss');
	if(!Lsettings &amp;&amp; !document.querySelector(initContainerSelector)){
		return false;
	}
	/*var css = '&lt;link class="laybuy-elem-css" rel="stylesheet" href="https://lay-buys.com/css/laybuy-advertize-element-creator.css?v='+new Date().getTime()+'" type="text/css"/&gt;';
	document.body.insertAdjacentHTML('beforeend', css);*/
	var shopsArray = ['big-play-games.myshopify.com'];
	if(!document.querySelector('.laybuy-elem-css')){
		if(shopsArray.indexOf(queryParams['shop'])!==-1){
			var css = '&lt;link class="laybuy-elem-css" rel="stylesheet" href="https://lay-buys.com/css/laybuy-advertize-element-creator-bigplaygames.css?v='+new Date().getTime()+'" type="text/css"/&gt;';
			document.body.insertAdjacentHTML('beforeend', css);
		}else{
			var css = '&lt;link class="laybuy-elem-css" rel="stylesheet" href="https://lay-buys.com/css/laybuy-advertize-element-creator.css?v='+new Date().getTime()+'" type="text/css"/&gt;';
			document.body.insertAdjacentHTML('beforeend', css);
		}
	}
	if(document.querySelector(initContainerSelector)){
		document.querySelector(initContainerSelector).style.display = 'block';
	}
	var laybuyadvert = getCookie("laybuyadvert");
	if(Lsettings &amp;&amp; !laybuyadvert){
		prefixL = window.addEventListener ? "" : "on";
		eventNameL = window.addEventListener ? "addEventListener" : "attachEvent";
		document.querySelector('.laybuy-elem-css')[eventNameL](prefixL + "load", initAfter, false);
	}
	
}

function initElmt(){
	var laybuyadvert = getCookie("laybuyadvert");
	if(laybuyadvert==1 &amp;&amp; !document.querySelector(initContainerSelector)){
		return false;
	}

	if(!(queryParams['shop'] &amp;&amp; queryParams['shop']!="")){
		return false;
	}
	if(document.querySelector(initContainerSelector)){
		addCss(false);
	}
	var shopUrl = queryParams['shop'], page = "";
	if (window.location.pathname.indexOf('/products/') !== -1) {
		page = "products";
	}else if(window.location.pathname.indexOf('/collections/') !== -1){
		page = "collections";
	}else if(window.location.pathname.indexOf('/cart') !== -1){
		page = "cart";
	}else if(window.location.pathname=="/" || window.location.pathname==""){
		page = 'home';
	}else{
		page = 'other';
	}

	setTimeout(function(){
		var sendUrl = "https://lay-buys.com/shopmerchant/checkshopexists?_=" +new Date().getTime()+"&amp;shop="+shopUrl+"&amp;page="+page;
		sendAjaxRequest(sendUrl, addCss);
	 //    if(!Lsettings){
		// 	return false;
		// }
		
	}, 5000);
	
}



function initAfter(){
	var img = 'https://lay-buys.com/images/laybuy-button.png';
	if(queryParams['shop']=='ourschooluniform-com.myshopify.com'){
		img = 'https://cdn.shopify.com/s/files/1/1697/8259/files/logo.jpg?10525318503597297387';
	}
	var html = '&lt;div class="laybuy-wrp-elem hide-elem"&gt;'+
		'&lt;span class="close-laybuy-elem" onclick="closeLaybuyElem(1);"&gt;&lt;a href="javascript:void(0);"&gt;x&lt;/a&gt;&lt;/span&gt;'+
		'&lt;div class="laybuy-element"&gt;'+
			'&lt;a href="javascript:void(0);"&gt;&lt;img onclick="startlaybuyadvertize(this);" src="'+img+'" alt=""&gt;&lt;/a&gt;'+
			'&lt;p&gt;Available at Checkout&lt;i class="laybuy-icon" onclick="startlaybuyadvertize(this);"&gt;&lt;a href="javascript:void(0);"&gt;i&lt;/a&gt;&lt;/i&gt;'+
			'&lt;/p&gt;'+
		'&lt;/div&gt;'+
	'&lt;/div&gt;';
	document.body.insertAdjacentHTML('beforeend', html);
	//document.querySelector('.close-laybuy-elem')[eventNameL](prefixL + "click", closeLaybuyElem, false);
	timeoutIdArr.push(setTimeout(showElemL, 10000));
	//document.querySelector('.laybuy-wrp-elem')[eventNameL](prefixL + "mouseover", clearAllIntervalElem, false);
	//document.querySelector('.laybuy-wrp-elem')[eventNameL](prefixL + "mouseout", createIntervalElem, false);
}
function startlaybuyadvertize(ele){
	closeLaybuyElem(1);
	laybuyAdvertizeAll(ele);
}

function closeLaybuyElem(flg){
	if(document.querySelector('.laybuy-wrp-elem')){
		removeClass(document.querySelector('.laybuy-wrp-elem'), 'show-elem');
		addClass(document.querySelector('.laybuy-wrp-elem'), 'hide-elem');
		LelemFlgShowing = false;
		//clearAllIntervalElem();
		closeElem = true;
		if(flg){
			setCookie("laybuyadvert", 1, 1);//name, value, no. of days
			//console.log(document.cookie);
		}
	}
	
}
function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for(var i = 0; i &lt;ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
} 

function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
    var expires = "expires="+ d.toUTCString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
    //console.log(new Date().toUTCString());
} 

function openLaybuyElem(){
	showElemL();
	closeElem = false;
}
function showElemL(){
	if(LelemFlgShowing){
		//hideing
		removeClass(document.querySelector('.laybuy-wrp-elem'), 'show-elem');
		addClass(document.querySelector('.laybuy-wrp-elem'), 'hide-elem');
		LelemFlgShowing = false;
		//clearAllIntervalElem();
		//createIntervalElem();
	}else{
		//showing
		removeClass(document.querySelector('.laybuy-wrp-elem'), 'hide-elem');
		addClass(document.querySelector('.laybuy-wrp-elem'), 'show-elem');
		LelemFlgShowing = true;
		//clearAllIntervalElem();
		//timeoutIdArr.push(setTimeout(showElemL, 25000));
	}
}
function clearAllIntervalElem(){
	for (var xid in timeoutIdArr){
    	window.clearInterval(timeoutIdArr[xid]);
    }
    timeoutIdArr = [];
}


function createIntervalElem(){
	clearAllIntervalElem();
	if(!closeElem)
		timeoutIdArr.push(setTimeout(showElemL, 10000));
}

function getUrlVars(url) {
        var vars = [], hash;
        var hashes = url.slice(url.indexOf('?') + 1).split('&amp;');
        for(var i = 0; i &lt; hashes.length; i++) {
            hash = hashes[i].split('=');
            vars.push(hash[0]);
            vars[hash[0]] = hash[1];
        }
        return vars;
}
function sendAjaxRequest(url, callback){
	var xhr = null, result = null;
    if(window.ActiveXObject) { xhr = new ActiveXObject('Microsoft.XMLHTTP'); }
    else if(window.XMLHttpRequest) { xhr = new XMLHttpRequest(); }
    if(xhr){
    	xhr.onreadystatechange = function() {
                        if(xhr.readyState == 4 &amp;&amp; xhr.status == 200) {
                            result = xhr.responseText;
                            if(result &amp;&amp; typeof JSON != 'undefined') {
                            	var result1 = JSON.parse(result);
                                result = result1.result;
                                if(callback){
                                	callback(result);
                                }
                                
                            }
                        } else if(xhr.readyState == 4) {
                        	//failed
                            result = false;
                            if(callback){
                                callback(result);
                            }
                        }
                        
        }
        xhr.open('GET', url, true);// `false` makes the request synchronous
        xhr.send();
    }
    if(!callback){
    	return result;
    }
              
}

function laybuyAdvertizeAll(ele){
	console.log('kkk');
	var haygainShops = ['haygain6.myshopify.com', 'haygain5.myshopify.com', 'haygain-2.myshopify.com', 'haygain4.myshopify.com'];
	var shops = ['big-play-games.myshopify.com'];
	var burleighwagonShop = ['live-laybuy.myshopify.com', 'burleigh-wagon.myshopify.com'];//
	var html='&lt;div id="put-in-laybuy-popup-content"&gt;';
			html+='&lt;div class="put-in-laybuy-popup-content"&gt;';
  				html+='&lt;a onclick="closeLaybuyAdvertizeAll(this);"&gt;x&lt;/a&gt;';
  				if(burleighwagonShop.indexOf(queryParams['shop'])===-1) {
	  				html+='&lt;div class="switcher-wrapper"&gt;';
					html+='&lt;select class="language-switcher" onchange="laybuytranslate(this.value);" id="lang" name="lang" title="Select Language"&gt;';
					html+='&lt;option value="en_us" selected=""&gt;English (United States)&lt;/option&gt;';
					html+='&lt;option value="fr"&gt;French (Standard)&lt;/option&gt;';
					html+='&lt;option value="es"&gt;Spanish&lt;/option&gt;';
					html+='&lt;option value="zh"&gt;Chinese&lt;/option&gt;';
					html+='&lt;option value="cs"&gt;Czech&lt;/option&gt;';
					html+='&lt;option value="ja"&gt;Japanese&lt;/option&gt;';
					html+='&lt;option value="pt"&gt;Brazilian Portuguese&lt;/option&gt;';
					html+='&lt;option value="hi"&gt;Hindi&lt;/option&gt;';
					html+='&lt;option value="nl"&gt;Dutch&lt;/option&gt;';
					html+='&lt;/select&gt;';
	         		html+='&lt;/div&gt;';
	         	}
				html+='&lt;div class="popup popup-laybuy " id="PopupLaybuy"&gt;';
  					html+='&lt;div class="popup_content"&gt;';
    					html+='&lt;div class="laybuy-logo"&gt;';
      						html+='&lt;img alt="Lay-Buys" src="https://lay-buys.com/images/new_lay_buys_logo.jpg"&gt;';
    					html+='&lt;/div&gt;';
    					if(burleighwagonShop.indexOf(queryParams['shop'])!==-1) {
    						html+='&lt;p class="partner-text"&gt;Secure a Burleigh Wagon for Christmas 2021 using our \'put it on lay-buy\' payment option&lt;/p&gt;';
    					}else{
    						html+='&lt;p class="partner-text" data-laybuytranslate="&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where"&gt;&lt;strong&gt;Lay-Buy&lt;/strong&gt; is an affordable &lt;b&gt;LAYAWAY&lt;/b&gt; payment option where&lt;/p&gt;';
    					}
    					html+='&lt;ul class="laybuy-benefits"&gt;';
							html+='&lt;li&gt;';
							       html+='&lt;div class="pay-des description"&gt;';
							       		if(burleighwagonShop.indexOf(queryParams['shop'])!==-1) {
							       			html+='&lt;h4&gt;20% Down Payment (Non-refundable)&lt;/h4&gt;';
							       		}else{
							       			html+='&lt;h4 data-laybuytranslate="You select the down-payment %"&gt;You select the down-payment %&lt;/h4&gt;';
							       		}
							       html+='&lt;/div&gt;';
							html+='&lt;/li&gt;';
							html+='&lt;li&gt;';
							        html+='&lt;div class="mon-des description"&gt;';
							        if(burleighwagonShop.indexOf(queryParams['shop'])!==-1){
							         	html+='&lt;h4&gt;You select how many months you need to pay off your purchase (up to 6 months).&lt;/h4&gt;';
							        }else if(haygainShops.indexOf(queryParams['shop'])!==-1){
							         	html+='&lt;h4 data-laybuytranslate="Payment in 6 monthly instalments."&gt;Payment in 6 monthly instalments.&lt;/h4&gt;';
							        }else{
							         	html+='&lt;h4 data-laybuytranslate="You select how many months you need to pay-off your purchase."&gt;You select how many months you need to pay-off your purchase.&lt;/h4&gt;';
							        }	
							        html+='&lt;/div&gt;';
							html+='&lt;/li&gt;';
							if(burleighwagonShop.indexOf(queryParams['shop'])!==-1){
								html+='&lt;li&gt;';
								        html+='&lt;div class="shp-des description"&gt;';
								          html+='&lt;h4&gt;Order will be fulfilled once final payment is made.&lt;/h4&gt;';
								        html+='&lt;/div&gt;';
								html+='&lt;/li&gt;';
							}
							html+='&lt;li&gt;';
							        html+='&lt;div class="min-des description"&gt;';
							        	if(burleighwagonShop.indexOf(queryParams['shop'])!==-1){
							        		html+='&lt;h4&gt;A once-off small admin fee is payable. The amount depends on order value.&lt;/h4&gt;';
							        	}else{
							        		html+='&lt;h4 data-laybuytranslate="A once-off admin fee is payable. The amount depends on order value."&gt;A once-off admin fee is payable. The amount depends on order value.&lt;/h4&gt;';
							        	}
							        html+='&lt;/div&gt;';
							html+='&lt;/li&gt;';
							html+='&lt;li&gt;';
							        html+='&lt;div class="sec-des description"&gt;';
							        if(burleighwagonShop.indexOf(queryParams['shop'])!==-1){
							          html+='&lt;h4&gt;Fully automated and highly secure.&lt;/h4&gt;';
							        }else{
							          html+='&lt;h4 data-laybuytranslate="And its fully automated and highly secure."&gt;And its fully automated and highly secure.&lt;/h4&gt;';
							        }
							        html+='&lt;/div&gt;';
							html+='&lt;/li&gt;';
							//if(['live-laybuy.myshopify.com'].indexOf(queryParams['shop'])!==-1){
								html+='&lt;li&gt;';
								        html+='&lt;div class="ben-des description"&gt;';
								          html+='&lt;h4 data-laybuytranslate="Payoff order\'s balance at any time and take earlier delivery."&gt;Payoff order\'s balance at any time and take earlier delivery.&lt;/h4&gt;';
								        html+='&lt;/div&gt;';
								html+='&lt;/li&gt;';
							//}
							if(shops.indexOf(queryParams['shop'])!==-1){
								html+='&lt;li&gt;';
								        html+='&lt;div class="shp-des description"&gt;';
								          html+='&lt;h4 data-laybuytranslate="Free Shipping Over $100."&gt;Free Shipping Over $100.&lt;/h4&gt;';
								        html+='&lt;/div&gt;';
								html+='&lt;/li&gt;';
							}
						html+='&lt;/ul&gt;';
						html+='&lt;div class="laybuy-footer"&gt;';
      						//html+='&lt;h4 class="laybuy-subheading" data-laybuytranslate="Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout."&gt;Simply select &lt;strong&gt;Lay-Buy&lt;/strong&gt; at checkout.&lt;/h4&gt;';
      						html+='&lt;h4 class="laybuy-subheading" data-laybuytranslate="You will see payment button on checkout page, past shipping."&gt;You will see payment button on checkout page, past shipping.&lt;/h4&gt;';
      						
      						html+='&lt;span class="lay-buy-put-icon-button" onclick="closeLaybuyAdvertizeAll(this);" &gt;&lt;img src="https://lay-buys.com/images/laybuy-button.png"/&gt;&lt;/span&gt;';
    					html+='&lt;/div&gt;';
    					html+='&lt;div class="laybuy-actions"&gt;';
      						html+='&lt;a onclick="closeLaybuyAdvertizeAll(this);" class="lay-buy-put-gotit-button" data-laybuytranslate="Got It"&gt;Got It&lt;/a&gt;';
    					html+='&lt;/div&gt;';
   					html+='&lt;/div&gt;';
				html+='&lt;/div&gt;';
			html+='&lt;/div&gt;';
		html+='&lt;/div&gt;';	
		html+='&lt;div class="put-in-laybuy-popup-content-overlay"&gt;&lt;/div&gt;';
	var element =  document.getElementById('put-in-laybuy-popup-content');
	if (typeof(element) == 'undefined' || element == null)
	{
		document.body.insertAdjacentHTML('beforeend', '&lt;div id="put-in-laybuy-popup-content-wrapper"&gt;'+html+'&lt;/div&gt;');
	  	addClass(document.body, "laybuy-scroll") ;
	}
}
function closeLaybuyAdvertizeAll(ele){
		var d=document.getElementById('put-in-laybuy-popup-content-wrapper');
		document.body.removeChild(d);
		removeClass(document.body, "laybuy-scroll") ;
		//openLaybuyElem();
}

function hasClass(el, className) {
  if (el.classList)
    return el.classList.contains(className)
  else
    return !!el.className.match(new RegExp('(\\s|^)' + className + '(\\s|$)'))
}

function addClass(el, className) {
  if (el.classList)
    el.classList.add(className)
  else if (!hasClass(el, className)) el.className += " " + className
}

function removeClass(el, className) {
  if (el.classList)
    el.classList.remove(className)
  else if (hasClass(el, className)) {
    var reg = new RegExp('(\\s|^)' + className + '(\\s|$)')
    el.className=el.className.replace(reg, ' ')
  }
}

initElmt();

</pre></body></html>