var OAS_sitepage = 'chron.com/news/opinion/story'; var OAS_listpos = 'Top,Top1,Right1,Middle,x20,x22'; var OAS_query = ''; //alert ('set by adwiz: sitepage('+OAS_sitepage+'), listpos('+OAS_listpos+')'); // pek TODO: will be set up in external DNS shortly OAS_url = 'http://oascentral.chron.com/RealMedia/ads/'; //OAS_url = 'http://oasc04106.247realmedia.com/RealMedia/ads/'; // pek: other value is 64.58.80.26 // ************* RBX MODIFIED HERE *********************** //Look to see if we have set them before the dat file CHRON_url = 'chron.com/disp/story.mpl/editorial/outlook/4032512.html'; CHRON_sitepage ? OAS_sitepage=CHRON_sitepage : OAS_sitepage = 'chron.com/news/opinion/story' + CHRON_sitepage_append; CHRON_listpos ? OAS_listpos=CHRON_listpos : OAS_listpos = 'Top,Top1,Right1,Middle,x20,x22'; CHRON_query ? OAS_query=CHRON_query : OAS_query = ''; //OAS_listpos final checks //OAS_listpos = OAS_listpos.replace(/Top\,?/,''); //shut off top OAS_listpos = OAS_listpos.replace(/\s+/g,'');//make sure there is no spaces in listpos var OAS_FINAL = '\n'; document.write(OAS_FINAL); // *********** / RBX MODIFIED HERE ************************ OAS_target = '_top'; //end of configuration //this is for a user that has javascript version 1.0 OAS_rn = '001234567890'; OAS_rns = '1234567890'; OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11); function OAS_NORMAL(pos) { if (OAS_sitepage != '' && OAS_listpos !=''){ document.write(''); document.write(''); } } //this is for a use that has javascript version 1.1 if ((navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1)){ OAS_version = 10; } // if listpos and sitepage is missing then if (OAS_version >= 11 && (OAS_listpos != '' && OAS_sitepage != '') ) { document.write('<\/SCRIPT>'); } //tells how to call the ad position var OAS_AD_LIST ='YOU CALLED: '; document.write(''); function OAS_AD(pos) { document.write('
'); OAS_AD_LIST +='\n' + pos ; //catch errors incase the listpos or other error happen try{ if (OAS_version >= 11) { OAS_RICH(pos); }else{ OAS_NORMAL(pos); } }catch(e){/*alert('');*/} document.write('
'); } //added to see final debug message -- this will break IE //alert ('FINAL \n sitepage:'+OAS_sitepage+' \n listpos:'+OAS_listpos+' \n query:'+OAS_query+''); //added to check to make sure that everything is ok and that ads are served if (OAS_sitepage == '' || OAS_listpos == ''){ document.write(''); }