var now = new Date(); var jvSeed = Math.random() * now.valueOf() * 100000; jvSeed = jvSeed.toString().substr(0, 15); var jvPURL = ''; var defaultPath = ''; var BottomInclude = ''; var strInterstitial = ''; function GetAd(TheTile, ThePosition, ThePath, TheKeyword, TheSiteUrl, TheInterstitial, TheWidth, TheHeight) { if (ThePath == '') { ThePath = defaultPath; } ThePath = TheSiteUrl + ThePath; // This will hard code the embedded ad position (position = 'box') to width=300 and height=250. // This was requested by John Jenks on 3/27/2007, and should apply across the entire network. // The change was made by JGC on 3/30/2007. if (ThePosition == 'box') { TheWidth = '300'; TheHeight = '250'; } if((TheWidth=='null' && TheHeight=='null')||(TheWidth=='' && TheHeight=='')){ document.write(''); if ((!document.images && navigator.userAgent.indexOf('Mozilla/2.') >= 0) || navigator.userAgent.indexOf("WebTV")>= 0) { document.write(''); document.write(''); } }else{ document.write(''); if ((!document.images && navigator.userAgent.indexOf('Mozilla/2.') >= 0) || navigator.userAgent.indexOf("WebTV")>= 0) { document.write(''); document.write(''); } } } //Replaces "dev/beta/qa/origin...etc" with www function fixSubDomain(domainToFix) { domainToFix = domainToFix.replace(/(.*?)\.(.*?)\.(.*?)/i, "www\.$2\.$3"); if (domainToFix.substring(0,4) != "www.") { domainToFix = "www." + domainToFix; } return domainToFix; }