(function() { var randomstr = new String (Math.random()); randomstr = randomstr.substring(1,8); var SID_Tablet = 5834657312805; var SID_PC = 5834657312805; var SID_Mobile = 9413427812808; var pixelSID = SID_PC; var isMobile = 0; /* display this ad on mobile? desktop? both? showOn = "mobile"; showOn = "desktop"; showOn = "all"; */ var showOn = "all"; if (/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { isMobile=1; pixelSID=SID_Mobile; } else if (/iPad|IEMobile|Opera Mini/i.test(navigator.userAgent)) { isMobile=0; pixelSID=SID_Tablet; } else { isMobile=0; pixelSID=SID_PC; } function writeAd(theSID) { document.write ("<" +="" "script="" language="JavaScript" type="text/javascript" src="" + "https://servedby.adsfactor.net/adj.php?ts=" + randomstr + "&sid=" + theSID + ""><" +="" "="" script="">"); } if ((showOn === "mobile") && (isMobile === 1)) { writeAd(pixelSID); } else if ((showOn === "desktop") && (isMobile === 0)){ writeAd(pixelSID); } else if (showOn==="all") { writeAd(pixelSID); } }());