if (nugg != 1) { function isEmpty(obj) { for(var prop in obj) { if(obj.hasOwnProperty(prop)) return false; } return true; } var tagsObject = {"26706":{"user_id":"7839","ad_id":"20","form_rtb_floor":null,"form_appnexus_floor":null,"form_id_sticky":null,"form_rubicon_floor":null,"tag_appnexus":"11679599","form_id_rubicon":null,"tag_pulsepoint":null,"tag_aol":"6510317","tag_sovrn":null,"tag_breal":null,"tag_criteo":null,"tag_adyoulike":null,"tag_vertoz":null,"tag_improve":null,"ad_smart_id":"26706","site_id":"12226","site_id_smart":"169204\/837887","site_pulsepoint":null,"site_imonomy":"14567721418","site_blocklist":"0","site_id_rubicon_ATF":null,"site_id_rubicon_MTF":null,"site_id_rubicon_BTF":null,"site_id_rubicon_MOBILE":"0","site_aol_server":"FR","site_theme":"16","site_true_url":"http:\/\/www.zpag.net","site_refresh":"1","site_capping":"50","theme_name_english":"science","subtheme_name_english":"Other","part_google":"1"},"26755":{"user_id":"7839","ad_id":"15","form_rtb_floor":null,"form_appnexus_floor":null,"form_id_sticky":null,"form_rubicon_floor":null,"tag_appnexus":"11679600","form_id_rubicon":"0","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_criteo":null,"tag_adyoulike":null,"tag_vertoz":null,"tag_improve":null,"ad_smart_id":"26755","site_id":"12226","site_id_smart":"169204\/837887","site_pulsepoint":null,"site_imonomy":"14567721418","site_blocklist":"0","site_id_rubicon_ATF":null,"site_id_rubicon_MTF":null,"site_id_rubicon_BTF":null,"site_id_rubicon_MOBILE":"0","site_aol_server":"FR","site_theme":"16","site_true_url":"http:\/\/www.zpag.net","site_refresh":"1","site_capping":"50","theme_name_english":"science","subtheme_name_english":"Other","part_google":"1"},"26322":{"user_id":"7839","ad_id":"1","form_rtb_floor":"0.19","form_appnexus_floor":"0.13","form_id_sticky":null,"form_rubicon_floor":null,"tag_appnexus":"11679645","form_id_rubicon":null,"tag_pulsepoint":null,"tag_aol":"6510316","tag_sovrn":null,"tag_breal":null,"tag_criteo":null,"tag_adyoulike":null,"tag_vertoz":null,"tag_improve":null,"ad_smart_id":"26322","site_id":"12226","site_id_smart":"169204\/837887","site_pulsepoint":null,"site_imonomy":"14567721418","site_blocklist":"0","site_id_rubicon_ATF":null,"site_id_rubicon_MTF":null,"site_id_rubicon_BTF":null,"site_id_rubicon_MOBILE":"0","site_aol_server":"FR","site_theme":"16","site_true_url":"http:\/\/www.zpag.net","site_refresh":"1","site_capping":"50","theme_name_english":"science","subtheme_name_english":"Other","part_google":"1"}}; window._qevents = window._qevents || []; (function () { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = ('https:' == document.location.protocol ? 'https:' : 'http:')+'//i.po.st/share/script/post-widget.js#lc=auto'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })(); (function() { var crtg_script=document.createElement('script');crtg_script.type='text/javascript';crtg_script.src="//ads.themoneytizer.com/criteo.js";crtg_script.async=true; if(document.getElementsByTagName("head").length>0)document.getElementsByTagName("head")[0].appendChild(crtg_script); else if(document.getElementsByTagName("body").length>0)document.getElementsByTagName("body")[0].appendChild(crtg_script); })(); window._pusVisitorData ={ interests: ['science'] }; window._pusq = window._pusq || []; window._pusVisitorID = window._pusVisitorID || []; (function() { var u=(('https:'==document.location.protocol)?'https://secure.':'http://www.')+'audienceinsights.net/'; var su=u.replace(/www|secure/,'static'); _pusq.push(['setIdp', '50ca2de882c19ffe']); _pusq.push(['setTrackerUrl', u+'p']); _pusq.push(['setTrackerStaticUrl', su]); _pusq.push(['setVisitorData', _pusVisitorData]); _pusq.push(['setProviderId', _pusVisitorID]); _pusq.push(['send']); var s=document.createElement('script'); s.type='text/javascript'; s.defer=true; s.async=true; s.src=su+'t.js'; var p=document.getElementsByTagName('script')[0]; p.parentNode.insertBefore(s,p); } )(); (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); window._qevents.push({ qacct:"p-6Fv0cGNfc_bw8", labels:"Categories.science" }); var website = (window.location != window.parent.location) ? document.referrer: document.location.href; params = { "cat":"science", "sscat":"Other" }; var src = '//tr.cloud-media.fr/t/a1234bc7-d6b5-4795-ac2b-f5ace634020?website='+encodeURI(website)+'&'; for (var i in params) { key = i; value = encodeURI(params[i]); src+= key+"="+value+"&"; } var ear = document.createElement('img'); ear.src = src; ear.width = 1; ear.height = 1; if(document.getElementsByTagName("head").length>0)document.getElementsByTagName("head")[0].appendChild(ear); else if(document.getElementsByTagName("body").length>0)document.getElementsByTagName("body")[0].appendChild(ear); var nugg = document.createElement("script"); nugg.setAttribute("type", "text/javascript"); nugg.setAttribute("src", ('https:' == document.location.protocol ? 'https:' : 'http:')+"//ads.themoneytizer.com/nugg.js?theme=357369554"); nugg.setAttribute("async", "true"); document.head.appendChild(nugg); var nugg = 1; var pbjs = (typeof pbjs != "undefined")? pbjs : {} ; pbjs.que = pbjs.que || []; var d = document, pbs = d.createElement('script'); pbs.setAttribute("type","text/javascript"); pbs.setAttribute("src","https://ads.themoneytizer.com/moneybid28/build/dist/prebid.js"); pbs.setAttribute("async", "true"); var target = document.getElementsByTagName('head')[0]; target.insertBefore(pbs, target.firstChild); var format_size = {"1":[[728,90]],"2":[[300,250]],"3":[[300,600]],"4":[[120,600]],"19":[[300,250]],"20":[[160,600]],"26":[[300,250]],"28":[[728,90]],"15":[[250,300],[336,280],[320,50],[300,100],[320,480],[300,50],[320,100]],"31":[[970,250]],"35":[[160,600]],"11":[[640,320]]}; function Getsize(format){ if(format == 1 || format == 28){ var browser_size = { width: window.innerWidth || document.body.clientWidth } if(browser_size.width <= 768){ var my_sizes = [[320,50],[300,50],[320,100],[300,100]]; }else{ var my_sizes = [[728,90]]; } }else{ var my_sizes = format_size[format]; } return my_sizes; } pbjs.que.push(function(){ var videoAdUnit = [] var adUnits = [ { code: '26706', timeout: 700, sizes: Getsize(20), bids: [ {bidder: 'appnexusAst', params:{ placementId: '11679599' } }, {bidder: 'aol', params:{ placement:'6510317', network: '4658.1', server: 'adserver-eu.adtech.advertising.com' } }, ] }, { code: '26322', timeout: 700, sizes: Getsize(1), bids: [ {bidder: 'appnexusAst', params:{ placementId: '11679645' } }, {bidder: 'aol', params:{ placement:'6510316', network: '4658.1', server: 'adserver-eu.adtech.advertising.com' } }, ] },]; pbjs.addAdUnits(videoAdUnit); pbjs.addAdUnits(adUnits); }); pbjs.bidderSettings = { aol: { bidCpmAdjustment : function(bidCpm){ return bidCpm * 1.1; }, }, brealtime: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .8; }, }, smartadserver: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .85; }, }, improvedigital: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .88; }, }, rubiconLite: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .875; }, }, standard: { adserverTargeting: [{ key: "hb_bidder", val: function(bidResponse) { if(bidResponse.bidderCode=="rubiconLite"){ return "rubicon"; }else{ return bidResponse.bidderCode; } } }, { key: "hb_adid", val: function(bidResponse) { return bidResponse.adId; } },{ key: "hb_height", val: function(bidResponse) { return bidResponse.height; } }, { key: "hb_bid", val: function(bidResponse) { var cpm = bidResponse.cpm*1.1; if (cpm < 0.10) { return (Math.floor(cpm * 50) / 50).toFixed(2); } else if (cpm < 5.00) { return (Math.floor(cpm * 20) / 20).toFixed(2); } else if (cpm < 10.00) { return (Math.floor(cpm * 2) / 2).toFixed(2); } else { return '10.00'; } } }] } }; pbjs.que.push(function(){ pbjs.requestBids({ // This callback gets triggered when all bids for this // ad unit come back. bidsBackHandler: function(bidResponses) { window.targetingParams = pbjs.getAdserverTargeting(); bid = pbjs.getHighestCpmBids('video')[0]; window.vastUrl = bid && bid.vastUrl; } }); }); var counter_refresh = []; function checkVisibility(formatid,capping,creatediv){ var visibility = VisSense(creatediv); if(visibility.percentage() > 0.49) { setTimeout(refreshSlot(formatid,capping),1000); } } function checkVisibility2(formatid,capping,creatediv){ visibility = VisSense(creatediv); visibility.onPercentageTimeTestPassed(function() { refreshSlot(formatid,capping); }, { percentageLimit: 0.5, timeLimit: 14000, interval: 200 }); } function refreshSlot(formatid,capping) { var strformatid = formatid.toString(); var arr_width = {26322:728,26300:300,26323:300,26324:120,26711:300,26706:160,28108:300,30012:728,39287:970,35:50677,51410:728,28108:300}; var arr_height = {26322:90,26300:250,26323:600,26324:600,26711:250,26706:600,28108:150,30012:90,39287:250,35:50677,51410:90,28108:250}; var rubicon_formats = {"26322":"2","26300":"15","26323":"10","26324":"8","26711":"15","26706":"9","28108":"15","30012":"2","26755":"43,67,44,59,117","39287":"57","50677":"9","28108":"15"}; var rubicon_theme = {"18":"38324","12":"38330","20":"38332","1":"39528","2":"39530","3":"39532","4":"39534","5":"39536","6":"39538","7":"39540","8":"39542","9":"39544","10":"39546","11":"39548","13":"39550","14":"39552","15":"39554","16":"39556","17":"39558","19":"39560","21":"39562"}; if(counter_refresh[formatid] == null ){ counter_refresh[formatid] = 0; }else{ counter_refresh[formatid] = counter_refresh[formatid]+1; } if(counter_refresh[formatid] < capping){ pbjs.que.push(function() { pbjs.requestBids({ timeout: 700, adUnitCodes:[strformatid], bidsBackHandler: function() { sas.clean(formatid); window.targetingParams = pbjs.getAdserverTargeting(); (function roo(){ if (window.targetingParams && !isEmpty(window.targetingParams[formatid]) || window.RefreshisReady == 1){ window.targetingParams = window.targetingParams || []; if (typeof window.targetingParams[formatid] === 'undefined' || window.targetingParams[formatid] == 0) { sas.refresh(formatid); }else{ var hb_adid = "hb_adid="+window.targetingParams[formatid].hb_adid; var hb_pb = "hb_pb="+window.targetingParams[formatid].hb_bid; var hb_bidder = "hb_bidder="+window.targetingParams[formatid].hb_bidder; if(window.targetingParams[formatid].hb_height == "480"){ var hb_format = "hb_format="+formatid+"-1"; }else{ var hb_format = "hb_format="+formatid; } var moneybid = ";"+hb_adid+";"+hb_pb+";"+hb_bidder+";"+hb_format; sas.refresh(formatid,{ target: moneybid }); } }else{ setTimeout(function(){ roo(); },50); } })(); setTimeout(function(){window.RefreshisReady = 1;}, 1500); } }); }); } } } if(typeof crtg_content === 'undefined'){var crtg_content = "";} var mydiv = document.getElementById("12226-1"); var creatediv = document.createElement("div"); creatediv.id = "sas_26322"; mydiv.appendChild(creatediv); var sc = document.createElement("script"); sc.type = "text/javascript"; sc.async = true; (function foo(){ if (window.targetingParams && !isEmpty(window.targetingParams[26322]) || window.isReady == 1){ window.targetingParams = window.targetingParams || []; window.targetingParams[26322] = window.targetingParams[26322] || 0; if(window.targetingParams[26322] == 0){ var moneybid = "rpmfirstview"; }else{ var hb_adid = "hb_adid="+window.targetingParams[26322].hb_adid; var hb_pb = "hb_pb="+window.targetingParams[26322].hb_bid; var hb_bidder = "hb_bidder="+window.targetingParams[26322].hb_bidder; if(window.targetingParams[26322].hb_height == "480"){ var hb_format = "hb_format="+26322+"-1"; }else{ var hb_format = "hb_format="+26322; } var moneybid = ";"+hb_adid+";"+hb_pb+";"+hb_bidder+";"+hb_format+";rpmfirstview"; } sc.text = sas.cmd.push(function(){sas.call('std',{siteId: 169204, pageId: 837887, formatId: 26322, target: crtg_content+moneybid});});; creatediv.appendChild(sc); }else{ setTimeout(function(){ foo(); },50); } })(); var mysasdiv = document.getElementById("sas_26322"); setInterval(function(){ refreshSlot(26322,50); }, (43000*1)); setTimeout(function(){checkVisibility(26322,50,mysasdiv);},20000); setTimeout(function(){window.isReady = 1;}, 1500);