if (nugg != 1) { function isEmpty(obj) { for(var prop in obj) { if(obj.hasOwnProperty(prop)) return false; } return true; } var tagsObject = {"26322":{"user_id":"2475","ad_id":"1","tag_appnexus":"6107235","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_rhythmone":null,"ad_smart_id":"26322","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"26300":{"user_id":"2475","ad_id":"2","tag_appnexus":"6107236","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":"9491667","tag_rhythmone":null,"ad_smart_id":"26300","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"26323":{"user_id":"2475","ad_id":"3","tag_appnexus":"6107237","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":"9491669","tag_rhythmone":null,"ad_smart_id":"26323","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"45111":{"user_id":"2475","ad_id":"11","tag_appnexus":"10995627","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_rhythmone":null,"ad_smart_id":"45111","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"26755":{"user_id":"2475","ad_id":"15","tag_appnexus":"6182649","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_rhythmone":null,"ad_smart_id":"26755","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"26711":{"user_id":"2475","ad_id":"19","tag_appnexus":"6107239","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_rhythmone":null,"ad_smart_id":"26711","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"},"26706":{"user_id":"2475","ad_id":"20","tag_appnexus":"6107240","tag_pulsepoint":null,"tag_aol":null,"tag_sovrn":null,"tag_breal":null,"tag_rhythmone":null,"ad_smart_id":"26706","site_id":"3523","site_id_smart":"82001\/591911","site_pulsepoint":null,"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:\/\/neotrouve.com","site_roxot":null,"site_refresh":"1","site_capping":"9","theme_name_english":"science","subtheme_name_english":"Other","part_google":"2"}}; 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 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/nugg2.php?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:' == document.location.protocol ? 'https:' : 'http:')+"//ads.themoneytizer.com/moneybid21/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":[320,50],"29":[300,100],"30":[320,480],"31":[970,250],"32":[320,100],"35":[160,600]}; function Getsize(format){ if(format == 1){ var browser_size = { width: window.innerWidth || document.body.clientWidth } if(browser_size.width <= 768){ var my_sizes = [[320,50],[300,50],[320,100]]; }else{ var my_sizes = [[728,90]]; } }else{ var my_sizes = [format_size[format]]; } return my_sizes; } pbjs.que.push(function(){ var videoAdUnit = [ { code: 'video', sizes: [], mediaType: 'video', bids: [ {bidder: 'appnexusAst', params:{ placementId: '10995627', allowSmallerSizes: true, video: { skippable: true, playback_method: ['auto_play_sound_off'] } } } ]}, ] var adUnits = [ { code: '26322', timeout: 700, sizes: Getsize(1), bids: [{bidder: 'adform', params:{ inv: 1775, mname: '3523-1', pdom: 'http://neotrouve.com' } }, {bidder: 'appnexus', params:{ placementId: '6107235' } }, ] }, { code: '26300', timeout: 700, sizes: Getsize(2), bids: [{bidder: 'adform', params:{ inv: 1775, mname: '3523-2', pdom: 'http://neotrouve.com' } }, {bidder: 'appnexus', params:{ placementId: '6107236' } }, {bidder: 'brealtime', params:{ placementId: 9491667 } }, ] }, { code: '26323', timeout: 700, sizes: Getsize(3), bids: [{bidder: 'adform', params:{ inv: 1775, mname: '3523-3', pdom: 'http://neotrouve.com' } }, {bidder: 'appnexus', params:{ placementId: '6107237' } }, {bidder: 'brealtime', params:{ placementId: 9491669 } }, ] }, { code: '26755', timeout: 700, sizes: Getsize(15), bids: [ {bidder: 'appnexus', params:{ placementId: '6182649' } }, ] }, { code: '26711', timeout: 700, sizes: Getsize(19), bids: [{bidder: 'adform', params:{ inv: 1775, mname: '3523-19', pdom: 'http://neotrouve.com' } }, {bidder: 'appnexus', params:{ placementId: '6107239' } }, ] }, { code: '26706', timeout: 700, sizes: Getsize(20), bids: [{bidder: 'adform', params:{ inv: 1775, mname: '3523-20', pdom: 'http://neotrouve.com' } }, {bidder: 'appnexus', params:{ placementId: '6107240' } }, ] },]; pbjs.addAdUnits(videoAdUnit); pbjs.addAdUnits(adUnits); }); pbjs.bidderSettings = { aol: { bidCpmAdjustment : function(bidCpm){ return bidCpm * 1.1; }, }, brealtime: { bidCpmAdjustment : function(bidCpm){ return bidCpm * .8; }, }, 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(); window.vastUrl = bidResponses.video.bids[0].vastUrl; } }); }); var counter_refresh = []; 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("3523-2"); var creatediv = document.createElement("div"); creatediv.id = "sas_26300"; mydiv.appendChild(creatediv); var sc = document.createElement("script"); sc.type = "text/javascript"; sc.async = true; (function foo(){ if (window.targetingParams && !isEmpty(window.targetingParams[26300]) || window.isReady == 1){ window.targetingParams = window.targetingParams || []; window.targetingParams[26300] = window.targetingParams[26300] || 0; if(window.targetingParams[26300] == 0){ var moneybid = "rpmfirstview"; }else{ var hb_adid = "hb_adid="+window.targetingParams[26300].hb_adid; var hb_pb = "hb_pb="+window.targetingParams[26300].hb_bid; var hb_bidder = "hb_bidder="+window.targetingParams[26300].hb_bidder; if(window.targetingParams[26300].hb_height == "480"){ var hb_format = "hb_format="+26300+"-1"; }else{ var hb_format = "hb_format="+26300; } var moneybid = ";"+hb_adid+";"+hb_pb+";"+hb_bidder+";"+hb_format+";rpmfirstview"; } sc.text = sas.cmd.push(function(){sas.call("std",{siteId: 82001, pageId: 591911, formatId: 26300, target: crtg_content+moneybid});});; creatediv.appendChild(sc); }else{ setTimeout(function(){ foo(); },50); } })(); setInterval(function(){ refreshSlot(26300,9); }, (43000*1)); setTimeout(function(){window.isReady = 1;}, 1500);