var zone_set = {}; window.kwanza_close_ads=function(elem){var elems=[];while(elem){elems.unshift(elem);elem=elem.parentNode;var attr=elem.id;if(attr==='kwanzaAdvertisingNetworkFixedBottom'){elem.style.display='none';elem.className+=elem.className?' kwanza-ads-closed':'kwanza-ads-closed';break}}} function kwanzaInsertScriptStyle(src,type){var appendElement=null;if(type==='script'){appendElement=document.createElement('script');appendElement.setAttribute('src',src);appendElement.setAttribute('type','text/javascript')}else if(type==='style'){appendElement=document.createElement('link');appendElement.setAttribute('href',src);appendElement.setAttribute('type','text/css');appendElement.setAttribute('rel','stylesheet')}else if(type==='image'){appendElement=document.createElement('img');appendElement.setAttribute('src',src)} if(appendElement!==null){document.head.appendChild(appendElement)}} kwanzaInsertScriptStyle('https://ads.kwanza.co.tz:88/ads/kan-style.css','style');kwanzaInsertScriptStyle('https://ads.kwanza.co.tz:88/ads/kan-scripts.js','script'); kwanzaInsertScriptStyle('//cdn.probtn.com/probtn_concat.js', 'script') if(window.kwanzaAsync == undefined){ window.kwanzaAsync = true; var stateCheck = setInterval(function(){ var ids=[]; var banners=''; var zones=''; var campaigns=''; if(!zone_set['zone_set_70']) zone_set['zone_set_70'] = false; var template_zone_70 = 0; if(elem = document.getElementById('zone_70') || template_zone_70 == 1){ if(zone_set['zone_set_70'] === false){ zone_set['zone_set_70'] = true; var innerHTML = ('
'); if(template_zone_70 == 1) { var add_zone = document.createElement('div'); add_zone.id = 'zone_70_forced'; document.getElementsByTagName("BODY")[0].prepend(add_zone); elem = document.getElementById('zone_70_forced') } elem.innerHTML = innerHTML; zones=zones+'&zone='+70; banners=banners+'&banner='+383; campaigns=campaigns+'&campaign='+98; } } if(!zone_set['zone_set_71']) zone_set['zone_set_71'] = false; var template_zone_71 = 1; if(elem = document.getElementById('zone_71') || template_zone_71 == 1){ if(zone_set['zone_set_71'] === false){ zone_set['zone_set_71'] = true; var innerHTML = ('
'); if(template_zone_71 == 1) { var add_zone = document.createElement('div'); add_zone.id = 'zone_71_forced'; document.getElementsByTagName("BODY")[0].prepend(add_zone); elem = document.getElementById('zone_71_forced') } elem.innerHTML = innerHTML; zones=zones+'&zone='+71; banners=banners+'&banner='+384; campaigns=campaigns+'&campaign='+99; } } if(document.readyState == 'complete' || document.readyState == 'interactive'){ clearInterval(stateCheck); var request = createCORSRequest("GET", "https://ads.kwanza.co.tz/banners/zone?token=uoSGHUADFHAQGHFUIQEUIGTTFY8IFUIDGFURDGUDYGTYU8FHGJIFHGHY"+zones+banners+campaigns+"&id=30") if ( request ){ request.send(); } function createCORSRequest(method, url){ var xhr = new XMLHttpRequest(); if("withCredentials" in xhr){ xhr.open(method, url, true) } else if (typeof XDomainRequest != "undefined"){ xhr = new XDomainRequest(); xhr.open(method, url); } else { xhr = null; } return xhr; } } }, 5); } window.kwanza_close_ads = function(elem) { var elems = []; while (elem) { elems.unshift(elem); elem = elem.parentNode; var attr = elem.id; if (attr === 'kwanzaAdvertisingNetworkFixedBottom') { elem.style.display = 'none'; break; } } }