if (window.boomadsCustomAdsHandle_1 != true && typeof boomAdsParams != 'undefined') { window.boomadsCustomAdsHandle_1 = true; var boomadsCustomAds_EnabledAds = true; var boomadsCustomAds_Id = "b013e6184c03420baed2fae1962d7a41"; var boomadsCustomAds_CampaignType = "1"; var boomadsCustomAds_HeadInnerHtml = ""; var boomadsCustomAds_BodyInnerHtml = ""; var boomadsCustomAds_ExecuteJScript = "var googletag = googletag || {};googletag.cmd = googletag.cmd || [];\r\n(function() {var gads = document.createElement('script');\r\ngads.async = true;gads.type = 'text/javascript';\r\nvar useSSL = 'https:' == document.location.protocol;gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';\r\nvar node = document.getElementsByTagName('script')[0];\r\nnode.parentNode.insertBefore(gads, node);})();\r\ngoogletag.cmd.push(function() {googletag.defineSlot('/68858259/ADUNIT72890', [728, 90], 'boomads_ads_type_1').addService(googletag.pubads());\r\ngoogletag.pubads().setTargeting('', '397cc1806b944999ad7b6a39962a207e').setTargeting('Targeting', 'dfp_yasam_728x90').setTargeting('isPremium', 'False');\r\ngoogletag.pubads().enableSingleRequest();\r\ngoogletag.enableServices();});\r\ngoogletag.cmd.push(function() { googletag.display('boomads_ads_type_1'); });\r\n"; var boomadsCustomAds = function () { return { init: function () { if(!window.jQuery) { boomadsCustomAds.loadJavaScriptSync("http://widget.boomads.com/Scripts/jquery-1.9.1.min.js"); } adBannerEnabledAds = false; }, loadJavaScriptSync: function (filePath) { var scriptElement = document.createElement('script'); scriptElement.src = filePath; scriptElement.type = "text/javascript"; scriptElement.async = false; document.getElementsByTagName('head')[0].appendChild(scriptElement); }, addEvent: function (element, event, fn) { if (element.addEventListener) element.addEventListener(event, fn, false); else if (element.attachEvent) element.attachEvent('on' + event, fn); }, cookieSet: function (cname,cvalue) { var d = new Date(); d.setTime(adBannerExpiryPeriodTime); var expires = "expires="+d.toGMTString(); document.cookie = cname + "=" + cvalue + ";path=/; " + expires; }, cookieGet: function (cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i < ca.length; i++) { var c = ca[i].trim(); if (c.indexOf(name)==0) return c.substring(name.length,c.length); } return ""; } } }(); boomadsCustomAds.init(); // EXECUTE ONLY SCRIPT //if (boomadsCustomAds_ExecuteJScript.length > 0) // eval(boomadsCustomAds_ExecuteJScript); boomadsCustomAds.addEvent(window, 'load', function(){ if(window.jQuery){ jQuery(document).ready(function(){ if (boomadsCustomAds_EnabledAds == true && typeof boomads_widget_client != 'boomsAdsScript') { // HEAD HTML if (boomadsCustomAds_HeadInnerHtml.length > 0) jQuery("head").prepend(boomadsCustomAds_HeadInnerHtml); // BODY HTML if (boomadsCustomAds_BodyInnerHtml.length > 0) jQuery("#boomads_ads_type_" + boomadsCustomAds_CampaignType + ":first").html(boomadsCustomAds_BodyInnerHtml); } }); } }); }