var OX_0f997293 = ''; OX_0f997293 += "<"+"script type=\'text/javascript\'>(\n"; OX_0f997293 += "function(){\n"; OX_0f997293 += "var zone = [];\n"; OX_0f997293 += "var show = function(domId,iframe,config){\n"; OX_0f997293 += "$(\"#\"+domId).append(iframe);\n"; OX_0f997293 += "if(config.fixed && fixedOnScroll){\n"; OX_0f997293 += "$(window).on(\'scroll\', function(){\n"; OX_0f997293 += "fixedOnScroll(domId);\n"; OX_0f997293 += "});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "var init = function(publisher,platform,zone,domId,size,config){\n"; OX_0f997293 += "var loaded = false;\n"; OX_0f997293 += "var iframe = document.createElement(\'iframe\');\n"; OX_0f997293 += "iframe.id = domId + \'-iframe\';\n"; OX_0f997293 += "iframe.width = size[0] + \'px\';\n"; OX_0f997293 += "iframe.height = size[1] + \'px\';\n"; OX_0f997293 += "iframe.frameborder = \"0\";\n"; OX_0f997293 += "iframe.marginheight = \"0\";\n"; OX_0f997293 += "iframe.marginwidth = \"0\";\n"; OX_0f997293 += "iframe.scrolling = \"no\";\n"; OX_0f997293 += "iframe.style.border = \"none\";\n"; OX_0f997293 += "iframe.style.width = size[0] + \'px\';\n"; OX_0f997293 += "iframe.style.height = size[1] + \'px\';\n"; OX_0f997293 += "iframe.style.margin = \"0\";\n"; OX_0f997293 += "iframe.style.padding = \"0\";\n"; OX_0f997293 += "iframe.border = \"0\";\n"; OX_0f997293 += "iframe.frameBorder = \"0\";\n"; OX_0f997293 += "var pgSSL = \'https:\' == document.location.protocol;\n"; OX_0f997293 += "var pgEndpoint = (pgSSL ? \'https:\' : \'http:\') +\n"; OX_0f997293 += "\'//delivery.pbgrd.com/network/ad.php\' +\n"; OX_0f997293 += "\'?publisher=\' + publisher +\n"; OX_0f997293 += "\'&platform=\' + platform +\n"; OX_0f997293 += "\'&pgzone=\' + zone +\n"; OX_0f997293 += "\'&outerheight=\' + screen.height +\n"; OX_0f997293 += "\'&outerwidth=\' + screen.width +\n"; OX_0f997293 += "\'&cb=\' + Math.random();\n"; OX_0f997293 += "if(config.params && config.params.length){\n"; OX_0f997293 += "for(var i=0; i <"+" config.params.length; i++){\n"; OX_0f997293 += "pgEndpoint += \'&\' + config.params[i][0] + \'=\' + encodeURIComponent(encodeURIComponent(config.params[i][1]).replace(/\\\'/g,\'\'));\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "pgEndpoint += \'&referrer=\' + encodeURIComponent(encodeURIComponent(document.referrer));\n"; OX_0f997293 += "pgEndpoint += \'&location=\' + encodeURIComponent(encodeURIComponent(document.location));\n"; OX_0f997293 += "var html = \'javascript:\"<"+"html><"+"body style=\\\'margin:0\\\'><"+"scr\'+\'ipt type=\\\'text/javascript\\\' src=\\\'\' + pgEndpoint + \'\\\'><"+"\\/script><"+"/body><"+"/html>\"\';\n"; OX_0f997293 += "iframe.src = html;\n"; OX_0f997293 += "if(config.threshold && visible && !visible(domId,size,config.threshold)){ // check if threshold > 0, if visible is defined and if the zone is not visible\n"; OX_0f997293 += "$(window).on(\'scroll\', function(){\n"; OX_0f997293 += "if(!loaded && visible(domId,size,config.threshold)){\n"; OX_0f997293 += "show(domId,iframe,config);\n"; OX_0f997293 += "loaded = true;\n"; OX_0f997293 += "}\n"; OX_0f997293 += "});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else{\n"; OX_0f997293 += "show(domId,iframe,config);\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "function loadScript(url, callback){\n"; OX_0f997293 += "if(typeof jQuery !== \'undefined\'){\n"; OX_0f997293 += "callback();\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else {\n"; OX_0f997293 += "var script = document.createElement(\"script\")\n"; OX_0f997293 += "script.type = \"text/javascript\";\n"; OX_0f997293 += "if (script.readyState){\n"; OX_0f997293 += "// IE\n"; OX_0f997293 += "script.onreadystatechange = function(){\n"; OX_0f997293 += "if (script.readyState == \"loaded\" ||\n"; OX_0f997293 += "script.readyState == \"complete\"){\n"; OX_0f997293 += "script.onreadystatechange = null;\n"; OX_0f997293 += "callback();\n"; OX_0f997293 += "}\n"; OX_0f997293 += "};\n"; OX_0f997293 += "} else {\n"; OX_0f997293 += "// all but IE\n"; OX_0f997293 += "script.onload = function(){\n"; OX_0f997293 += "callback();\n"; OX_0f997293 += "};\n"; OX_0f997293 += "}\n"; OX_0f997293 += "script.src = url;\n"; OX_0f997293 += "document.getElementsByTagName(\"head\")[0].appendChild(script);\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "loadScript(\'//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js\',function(){\n"; OX_0f997293 += "$(document).ready(function(){\n"; OX_0f997293 += "zone.push([2,2,43,\'pbgrd-55437223\', [160,600],{\n"; OX_0f997293 += "threshold:0.5,\n"; OX_0f997293 += "fixed: 1,\n"; OX_0f997293 += "params: [[\'pageid\', (function(){if (document.getElementsByTagName(\'meta\')[\'citation_doi\']){ return document.getElementsByTagName(\'meta\')[\'citation_doi\'].getAttribute(\'content\');}else{return \'\'}})() || \'\'],[\'journal\', (function(){if (document.getElementsByTagName(\'meta\')[\'citation_journal_title\']){ return document.getElementsByTagName(\'meta\')[\'citation_journal_title\'].getAttribute(\'content\');}else{return \'\'}})() || \'\']]\n"; OX_0f997293 += "}]);\n"; OX_0f997293 += "while(zone.length > 0){\n"; OX_0f997293 += "var z = zone.shift(); //pop the item on top of the stack\n"; OX_0f997293 += "if($(\"#\" + z[3]).length > 0) { // check if container exists in dom\n"; OX_0f997293 += "init(z[0], z[1], z[2], z[3], z[4], z[5]);\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "});\n"; OX_0f997293 += "});\n"; OX_0f997293 += "var visible = function(domId,size,threshold){ //size = [width,height] array, threshold in [0,1]\n"; OX_0f997293 += "var toscr = $(\"#\" + domId).offset().top - $(window).height();\n"; OX_0f997293 += "var pgadspace = $(document).height() - $(\"#\" + domId).offset().top;\n"; OX_0f997293 += "var scrpos = (window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop);\n"; OX_0f997293 += "if (pgadspace > size[1] && scrpos > toscr + size[1] * threshold) {\n"; OX_0f997293 += "return true;\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else{\n"; OX_0f997293 += "return false;\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "/*** FIXES THE ZONE TO THE TOP WHEN SCROLLING */\n"; OX_0f997293 += "var fixedOnScroll = function(domID) {\n"; OX_0f997293 += "if($(\"#\" + domID).offset().top <"+"= $(document).scrollTop() + 20){\n"; OX_0f997293 += "if((/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()))){//if mobile device\n"; OX_0f997293 += "$(\"#\" + domID + \"-iframe\").css({\"position\":\"absolute\",\"top\": ($(document).scrollTop() + 20) + \"px\"});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else{\n"; OX_0f997293 += "$(\"#\" + domID + \"-iframe\").css({\"position\":\"fixed\",\"top\":\"20px\"});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else if ($(\"#\" + domID).offset().top >= $(document).scrollTop()){ //we have a \"#pbgrdheightpos-\" + domID container that we left at the original position of the zone, so we check if we are back there yet!\n"; OX_0f997293 += "$(\"#\" + domID + \"-iframe\").css({\"position\":\"static\"});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "else if((/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()))){//if mobile device we continously set this value as we scroll!\n"; OX_0f997293 += "$(\"#\" + domID + \"-iframe\").css({\"position\":\"absolute\",\"top\": ($(document).scrollTop() + 20) + \"px\"});\n"; OX_0f997293 += "}\n"; OX_0f997293 += "}\n"; OX_0f997293 += "return {}\n"; OX_0f997293 += "})(); <"+"/script><"+"div id=\'pbgrd-55437223\'><"+"/div>\n"; OX_0f997293 += "<"+"img src=\'https://delivery.pbgrd.com/images/?project=biomed&doi=10.1186/s13059-015-0607-3&asrand=d23936e639\' width=\'1\' height=\'1\' /><"+"div id=\'beacon_d23936e639\' style=\'position: absolute; left: 0px; top: 0px; visibility: hidden;\'><"+"img src=\'http://delivery.pbgrd.com/openx/www/delivery/lg.php?bannerid=168&campaignid=85&zoneid=43&loc=1&referer=http%3A%2F%2Fgenomebiology.com%2F2015%2F16%2F1%2F50&cb=d23936e639&doi=10.1186%2Fs13059-015-0607-3\' width=\'0\' height=\'0\' alt=\'\' style=\'width: 0px; height: 0px;\' /><"+"/div>\n"; document.write(OX_0f997293);