1function isdefined( variable) 2{ 3return (typeof(window[variable]) == "undefined")? false: true; 4} 5function DoDefine( variable, value) 6{ 7 return (isdefined(variable))?window[variable]: value; 8} 9 var links = new Array; 10 var starts= new Array; 11 var ends = new Array; 12 var advertIndex = 1; 13 14function Advert(weight, sMonth, sDay, sYear, xMonth, xDay, xYear, adCode) 15{ 16 for(var i = 0; i < weight; i++) 17 { 18 links[advertIndex]=adCode; 19 starts[advertIndex]=new Date(); starts[advertIndex].setFullYear(sYear, sMonth, sDay); 20 ends[advertIndex]=new Date(); ends[advertIndex].setFullYear(xYear, xMonth, xDay); 21 advertIndex++; 22 } 23} 24 25//-------------------- MONTH CONSTANTS 26var JAN = 0; var FEB = 1; var MAR = 2; 27var APR = 3; var MAY = 4; var JUN = 5; 28var JUL = 6; var AUG = 7; var SEP = 8; 29var OCT = 9; var NOV = 10; var DEC = 11; 30var NOW = new Date(); 31var THISMONTH = NOW.getMonth(); 32var THISYEAR = NOW.getYear(); 33 34 35google_ad_client = "pub-0950262331906411"; 36google_alternate_color = "000000"; 37google_ad_width = 120; 38google_ad_height = 600; 39google_ad_format = "120x600_as"; 40google_ad_channel ="0521465043"; 41google_ad_type = "text_image"; 42google_color_border = "6633FF"; 43google_color_bg = "000000"; 44google_color_link = "66FFFF"; 45google_color_url = "6699FF"; 46google_color_text = "66CCFF"; 47 48 49//Google Ads 50Advert(5, JAN, 1, 2007, DEC, 31, 2050, "<script type='text/javascript' src='https://pagead2.googlesyndication.com/pagead/show_ads.js'></script>"); 51 52//MERIDIAN4 - Ends DEC, 31, 2008 53//Advert(5, OCT, 1, 2007, JAN, 01, 2009, "<!-- MERIDIAN4 --><a href='http://www.meridian4.com/games/SpaceTrader/index.html' target='_blank'><img src='http://www.gamevortex.com/ADVERTS/creatives/160x600/SpaceTrader160x600b.jpg' width='160px' height='600px' border='0' border='none'></a>"); 54//Advert(5, OCT, 1, 2007, JAN, 01, 2009, "<!-- MERIDIAN4 --><iframe src='http://www.gamevortex.com/ADVERTS/creatives/160x600/TU_HighRise_160x600.html' width='160' height='600' scrolling='no'></iframe>"); 55 56//Advert(10, DEC, 31, 2008, DEC, 31, 2009, ''); 57 58 59// Tiger Direct - Ends FEB, 27, 2012 60Advert(5, JAN, 1, 2007, FEB, 27, 2012, "<a href='http://click.linksynergy.com/fs-bin/click?id=qvJFO9b1xKg&offerid=102327.10000075&type=4&subid=0'><IMG alt='TigerDirect' border='0' src='http://images.tigerdirect.com/adserve/backtoschool05-120x600.gif'></a><IMG border='0' width='1' height='1' src='http://ad.linksynergy.com/fs-bin/show?id=qvJFO9b1xKg&bids=102327.10000075&type=4&subid=0'>"); 61 62 63 64//---------------------------- Make Random selection. 65var imagenumber = advertIndex; 66 var randomnumber = Math.random() ; 67// HACK FOR MERIDIAN 68//imagenumber = 24; 69 var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ; 70 71 72//--------------------------- Remove out-dated ads and roll "up" the list, favoring the lower ids 73while(rand1>1 && ((NOW>ends[rand1]) || (NOW<starts[rand1]))) 74{ 75 rand1--; 76} 77 78var link = links[rand1]; 79//var link = links[1]; 80 81if(link != 'undefined') document.write(link); 82else document.write(links[1]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.