document.writeln(""); document.writeln("var aplus_random = Math.random();"); document.writeln("if (aplus_random < 1) {"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\" var aplus_cachebuster = Math.floor(Math.random()*10000000000000000);\");"); document.writeln("document.writeln(\" var aplus_selector = null;\");"); document.writeln("document.writeln(\" var aplus_placementid = 4336779;\");"); document.writeln("document.writeln(\" var aplus_allow_referrer = true;\");"); document.writeln("document.writeln(\" var aplus_allow_clickurl = true;\");"); document.writeln("document.writeln(\" var aplus_allow_skin = false;\");"); document.writeln("document.writeln(\" var aplus_position= 'unknown';\");"); document.writeln("document.writeln(\" var aplus_base_url_prefix=\\\"<\\\\/sc\"+\"ript>\\\";\");"); document.writeln("document.writeln(\" \");"); document.writeln("document.writeln(\" var aplus_code = aplus_base_url_prefix + aplus_placementid + \\\"&cb=\\\" + aplus_cachebuster;\");"); document.writeln("document.writeln(\" if(aplus_allow_skin)\");"); document.writeln("document.writeln(\" aplus_code += \\\"&promo_sizes=1x1\\\";\");"); document.writeln("document.writeln(\" \");"); document.writeln("document.writeln(\" if((typeof aplus_referrer != 'undefined') && aplus_allow_referrer)\");"); document.writeln("document.writeln(\" aplus_code += \\\"&referrer=\\\" + aplus_referrer;\");"); document.writeln("document.writeln(\" if((typeof aplus_clickurl != 'undefined') && aplus_allow_clickurl)\");"); document.writeln("document.writeln(\" aplus_code += \\\"&pubclickenc=\\\" + encodeURIComponent(aplus_clickurl);\");"); document.writeln("document.writeln(\" if(aplus_position === 'above' || aplus_position === 'below')\");"); document.writeln("document.writeln(\" aplus_code += \\\"&position=\\\" + aplus_position;\");"); document.writeln("document.writeln(\" aplus_code += aplus_base_url_postfix;\");"); document.writeln("document.writeln(\" document.write(aplus_code);\");"); document.writeln("document.writeln(\"\");"); document.writeln("} "); document.writeln("else {"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"function zodiakAplusPassbackRubicon() {\");"); document.writeln("document.writeln(\" document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_cachebuster = Math.floor(Math.random()*10000000000000000);\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_selector = null;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_placementid = 4336779;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_allow_referrer = true;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_allow_clickurl = true;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_allow_skin = false;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_position= 'unknown';\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_base_url_prefix=\\\\\\\"<\\\\\\\\/sc\"+\"ript>\\\\\\\";\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" \\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" var aplus_code = aplus_base_url_prefix + aplus_placementid + \\\\\\\"&cb=\\\\\\\" + aplus_cachebuster;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" if(aplus_allow_skin)\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" aplus_code += \\\\\\\"&promo_sizes=1x1\\\\\\\";\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" \\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" if((typeof aplus_referrer != 'undefined') && aplus_allow_referrer)\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" aplus_code += \\\\\\\"&referrer=\\\\\\\" + aplus_referrer;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" if((typeof aplus_clickurl != 'undefined') && aplus_allow_clickurl)\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" aplus_code += \\\\\\\"&pubclickenc=\\\\\\\" + encodeURIComponent(aplus_clickurl);\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" if(aplus_position === 'above' || aplus_position === 'below')\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" aplus_code += \\\\\\\"&position=\\\\\\\" + aplus_position;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" aplus_code += aplus_base_url_postfix;\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\" document.write(aplus_code);\\\");\");"); document.writeln("document.writeln(\"document.writeln(\\\"\\\");\");"); document.writeln("document.writeln(\"}\");"); document.writeln("document.writeln(\"function zodiakAplusCallbackRubicon(response) {\");"); document.writeln("document.writeln(\" if (response.status == \\\"ok\\\") {\");"); document.writeln("document.writeln(\" console.log(\\\"OK\\\");\");"); document.writeln("document.writeln(\" var ad;\");"); document.writeln("document.writeln(\" var html;\");"); document.writeln("document.writeln(\" for (var i=0; i < response.ads.length; i++) {\");"); document.writeln("document.writeln(\" ad = response.ads[i];\");"); document.writeln("document.writeln(\" if (ad.status == \\\"ok\\\") {\");"); document.writeln("document.writeln(\" if (ad.type == \\\"script\\\") {\");"); document.writeln("document.writeln(\" document.write(\\\"\\\"+ad.script+\\\"\\\"); }\");"); document.writeln("document.writeln(\" if (ad.type == \\\"html\\\") {\");"); document.writeln("document.writeln(\" document.write(ad.html);\");"); document.writeln("document.writeln(\" }\");"); document.writeln("document.writeln(\" } else {\");"); document.writeln("document.writeln(\" console.log(\\\"NO-R-AD\\\");\");"); document.writeln("document.writeln(\" zodiakAplusPassbackRubicon();\");"); document.writeln("document.writeln(\" }\");"); document.writeln("document.writeln(\" }\");"); document.writeln("document.writeln(\" } else {\");"); document.writeln("document.writeln(\" console.log(\\\"EX-R-AD\\\");\");"); document.writeln("document.writeln(\" console.log(\\\"s: \\\"+response.status);\");"); document.writeln("document.writeln(\" console.log(\\\"r: \\\"+response.reason);\");"); document.writeln("document.writeln(\" console.log(\\\"e_c: \\\"+response.error_code);\");"); document.writeln("document.writeln(\" zodiakAplusPassbackRubicon();\");"); document.writeln("document.writeln(\" }\");"); document.writeln("document.writeln(\"}\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"rp_account = '13258';\");"); document.writeln("document.writeln(\"rp_site = '70942';\");"); document.writeln("document.writeln(\"rp_zonesize = '404252-15';\");"); document.writeln("document.writeln(\"rp_adtype = 'jsonp';\");"); document.writeln("document.writeln(\"rp_callback = 'zodiakAplusCallbackRubicon';\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"\");"); document.writeln("document.writeln(\"\");"); document.writeln("} "); document.writeln("");