function getMinimum(){
 return 1;
}
function getNewestOneListed(){//de nwste radio uitzending online
 return 188;
}
function getInfo(nr){
 switch (nr) {
  case 188: return 'radio5#World Cup Top 5 (of this week):<BR>Black Time, The Beavers, Deltahead,<BR>The Intelligence & Baby Woodrose#jun 26, 2006#28993430#0';
  case 187: return 'radio5#Primitive Festival Rotterdam no. 3#jun 19, 2006#28824476#0';
  case 186: return 'radio5#Hidden Charms vs. Black Lips#jun 12, 2006#28743042#0';
  case 185: return 'radio5#Be Your Own Pet & The Little Killers#may 29, 2006#28566938#0';
  case 184: return 'radio5#The Miracle Men Are On Trial#may 22, 2006#28465462#0';
  case 183: return 'radio5#ATP festival 12-13-14 may 2006#may 15, 2006#28358706#0';
  case 182: return 'radio5#At The Funhouse I Was Killed By Trash ...<BR>eh ...<BR>NINE POUND HAMMER#may 8, 2006#28254206#0';
  case 181: return 'radio5#Two Gallants - What The Toll Tells#may 1, 2006#00000000#0'; //deze is nooit clickable geweest op de site
  case 180: return 'radio5#The Knights vs The Pipettes & The Bananas#apr 24, 2006#28165363#0';
  case 179: return 'radio5#Beasts Of Bourbon & The Long Blondes#apr 17, 2006#27974182#0';
  case 178: return 'radio5#We Start Fires & Battleship#apr 10, 2006#27863979#0';
  case 177: return 'radio5#Coachwhips & The Kidnappers#apr 3, 2006#27777362#0';
  case 176: return 'radio5#Grunnen Calling#mar 27, 2006#27692576#0';
  case 175: return 'radio5#The Fe Fi Fo Fums & The Suspicions#mar 20, 2006#27611149#0';
  case 174: return 'radio5#New Fangs & Peripherique Est#mar 13, 2006#27519837#0';
  case 173: return 'radio5#Singles Only no. 5#mar 6, 2006#27433576#0';
  case 172: return 'radio5#Gossip XXX Gossip XXX Gossip#feb 27, 2006#27316088#0';
  case 171: return 'radio5#La Undouce France: The Fatals!#feb 20, 2006#27076909#0';
  case 170: return 'radio5#Local Pride No. 2: LPG#feb 13, 2006#26957866#0';
  case 169: return 'radio5#M.O.T.O. - Raw Power#feb 6, 2006#26677947#0';
  case 168: return 'radio5#Arctic Monkeys + Pickett + Singles#jan 30, 2006#26511832#0';
  case 167: return 'radio5#Local Pride No. 1: Propeller#jan 23, 2006#26337996#0';
  case 166: return 'radio5#Skip Jensen - Abscond#jan 16, 2006#26017363#0';
  case 165: return 'radio5#Chili Cold Blood#jan 9, 2006#25900312#0';
  case 164: return 'radio5#The Band of 2005: Black Lips - \"Let It Bloom\"#dec 19, 2005#25469608#0';
  case 163: return 'radio5#Heya KenRock#dec 12, 2005#25329702#0';
  case 162: return 'radio5#The Bloody Hollies#dec 5, 2005#25205473#0';
  case 161: return 'radio5#Tokyo Elektron#nov 28, 2005#25106171#0';
  case 160: return 'radio5#Southern Trash: Alex, James, Jeffrey a.o.#nov 21, 2005#24982916#0';
  case 159: return 'radio5#this is for Emiel and Freek#nov 14, 2005#24888121#0';
  case 158: return 'radio5#this is especially for Emma#nov 7, 2005#24774985#0';
  case 157: return 'radio5#Voodoo Rhythm Presents: Schooley & The Guilty Automatics#oct 31, 2005#24683326#0';
  case 156: return 'radio5#Are You Ready Art Brut? It\'s The Maharajas By The Way#oct 24, 2005#24592898#0';
  case 155: return 'radio5#"Grunnen Rocks Biggies": Reigning Sound and The Dirtbombs#oct 17, 2005#24497284#0';
  case 154: return 'radio5#P.Trash Records presents: Black Time and The Manikins#oct 10, 2005#24402127#0';
  case 153: return 'radio5#The Red Rose Girls & zZz#oct 3, 2005#24312968#0';
  case 152: return 'radio5#Chicken Ranch Records presents: The Clutters and The White Ghost Shivers#sep 26, 2005#24226320#0';
  case 151: return 'radio5#Grunnen Rocks 10 Year!#sep 19, 2005#24147380#0';
  case 150: return 'radio5#Alien Snatch Records presents: Ghetto Ways & Real Losers#sep 12, 2005#24070996#0';
  case 149: return 'radio5#Digger & The Pussycats & The Wrists#sep 5, 2005#24301923#0'; // 24073165 deed het eerder ook ...
  case 148: return 'radio4#Primitive In Rotterdam + Bonus#jun 27, 2005#22973069#0';
  case 147: return 'radio4#(I Think) My Baby Is A Communist#jun 20, 2005#22890570#0';
  case 146: return 'radio4#I\'d Like To Ride Ponys And Singles no. 2#jun 13, 2005#22800824#0';
  case 145: return 'radio4#The Revenge Of The Dinosaurs#jun 6, 2005#22720377#0';
  case 144: return 'radio4#The Willowz Will Rule#may 30, 2005#22634057#0';
  case 143: return 'radio4#Love To All Aussies + The Drones#may 23, 2005#22553040#0';
  case 142: return 'radio4#Just Me ... ... My Pleasure And I#may 9, 2005#22334707#0';
  case 141: return 'radio4#24+2 Tributes To The Gun Club#may 2, 2005#22235452#0';
  case 140: return 'radio4#Learn To Hate The Feelers#apr 25, 2005#22143982#0';
  case 139: return 'radio4#Love To Singles With Black Lips#apr 18, 2005#22057704#0';
  case 138: return 'radio4#We All Love BBQ#apr 11, 2005#21970394#0';
  case 137: return 'radio4#SXSW & 1000 Bands pt. 4/4#apr 4, 2005#21892870#0';
  case 136: return 'radio4#SXSW & 1000 Bands pt. 3/4#mar 28, 2005#21821547#0';
  case 135: return 'radio4#SXSW & 1000 Bands pt. 2/4#mar 21, 2005#21704658#0';
  case 134: return 'radio4#SXSW & 1000 Bands pt. 1/4#mar 14, 2005#21621331#0';
  case 133: return 'radio4#ADI pt. 2: A-Frames - Black Forest#mar 7, 2005#21538692#0';
  case 132: return 'radio4#Demon\'s Claws#feb 28, 2005#21451785#0';
  case 131: return 'radio4#The Best 23 Albums Of 2004#feb 21, 2005#21372488#0';
  case 130: return 'radio4#The Best 25 Singles Of 2004#feb 14, 2005#21288030#0';
  case 129: return 'radio4#The Lids#feb 7, 2005#21193056#0';
  case 128: return 'radio4#Spider Rico: Garage Sale#jan 31, 2005#21072467#0';
  case 127: return 'radio4#Quit Your Dayjob#jan 24, 2005#20975428#0';
  case 126: return 'radio4#CDs (!) Only no. 2#jan 17, 2005#20859859#0';
  case 125: return 'radio4#The Come Ons Deliver#jan 10, 2005#20770842#0';
  case 124: return 'radio4#The Intellectuals Rule The World#dec 20, 2004#20370836#0';
  case 123: return 'radio4#Love To The Scat Rag Boosters#dec 13, 2004#20281131#0';
  case 122: return 'radio4#Hollandsche Nieuwe: The Monroes#dec 6, 2004#20192469#0';
  case 121: return 'radio4#ADI pt. 1: A-Frames#nov 29, 2004#20106851#0';
  case 120: return 'radio4#The Lost Sounds Make Me Nervous#nov 22, 2004#20018254#0';
  case 119: return 'radio4#I Hate CD\'s#nov 15, 2004#19940158#0';
  case 118: return 'radio4#The Detroit Cobras - Baby#nov 8, 2004#19856247#0';
  case 117: return 'radio4#"Teenage Kicks" will never sound the same ...#nov 1, 2004#19722463#0';
  case 116: return 'radio4#Singles Only no.4#oct 25, 2004#19631016#0';
  case 115: return 'radio4#Classics Like The Subtonix#oct 18, 2004#19540172#0';
  case 114: return 'radio4#Our Guest: Barbara Stok#oct 11, 2004#19444462#0';
  case 113: return 'radio4#The Fatals Are Lethal#oct 4, 2004#19360909#0';
  case 112: return 'radio4#The Hunches Tickle My Senses#sep 27, 2004#19272418#0';
  case 111: return 'radio4#La Bella Motorama#sep 20, 2004#19188624#0';
  case 110: return 'radio4#Here\'s Your Riot: M.A.S.S.#sep 13, 2004#19106871#0';
  case 109: return 'radio4#dj667 prezents "Human Fly"#sep 6, 2004#19026818#0';
  case 108: return 'radio4#Upcoming: Ghetto Ways#aug 31, 2004#18945930#0';
  case 107: return 'radio3#Reigning Sound#june 28, 2004#18167669#0';
  case 106: return 'radio3#Next Wednesday: Digger & The Pussycats#june 21, 2004#18089688#0';
  case 105: return 'radio3#Meine Kleine Deutsche#june 14, 2004#18013887#0';
  case 104: return 'radio3#God Damn Rock \'n\' Roll#june 7, 2004#17939463#0';
  case 103: return 'radio3#The Maharajas Gonna Reign The World (Again)#may 24, 2004#17701555#0';
  case 102: return 'radio3#We want to be in the Black Time#may 17, 2004#17622769#0';
  case 101: return 'radio3#Reigning Sound: Too Much Guitar#may 10, 2004#17549890#0';

  case 91:  return 'radio3#Chris Playboy R.I.P.#feb 23, 2004#16550996#0';
  case 92:  return 'radio3#Catholic Schoolboys Rule#mar 1, 2004#16640344#0';
  case 93:  return 'radio3#Love To Mr Airplane Man#mar 8, 2004#16740278#0';
  case 94:  return 'radio3#We Prefer To Be No-Good#mar 15, 2004#16834438#0';
  case 95:  return 'radio3#I\'d Like To Ride Ponys And Singles#mar 22, 2004#16922894#0';
  case 96:  return 'radio3#Old Love Doesn\'t Fall-Out#mar 29, 2004#17009005#0';
  case 97:  return 'radio3#Upcoming: The Thermals\' "Fuckin A"#april 5, 2004#17096482#0';
  case 98:  return 'radio3#Upcoming: The Marked Men\'s "On The Outside"#april 19, 2004#17286275#0';
  case 99:  return 'radio3#Singles Only no.3#april 26, 2004#17367020#0';
  case 100: return 'radio3#The Newer Wave#may 3, 2004#17462490#0';

  case 81:  return 'radio3#Upcoming in VERA and more no. 2#dec 1, 2003#15121516#0';
  case 82:  return 'radio3#Upcoming in VERA and more no. 3#dec 8, 2003#15217558#0';
  case 83:  return 'radio3#Singles Only#dec 15, 2003#15326477#0';
  case 84:  return 'radio3#CDs (!) Only#jan 5, 2004#15860374#0';
  case 85:  return 'radio3#Our Guest: Mr. Bert-René#jan 12, 2004#16066516#0';
  case 86:  return 'radio3#Singles Only no. 2#jan 19, 2004#16145174#0';
  case 87:  return 'radio3#The Best 21 Singles Of 2003#jan 26, 2004#16220648#0';
  case 88:  return 'radio3#The Best 22 Albums Of 2003#feb 2, 2004#16299594#0';
  case 89:  return 'radio3#Methamphetamine Blues#feb 9, 2004#16380863#0';
  case 90:  return 'radio3#Texas Rules Seven Times#feb 16, 2004#16462992#0';

  case 71:  return 'radio3#Like A Rolling Stone ... Not! Vol. 2#sep 22, 2003#14189594#0';
  case 72:  return 'radio3#Our Guest: Mr. Peter Weening#sep 29, 2003#14256782#0';
  case 73:  return 'radio3#It\'s All A Matter Of Life And Death#oct 6, 2003#14331216#0';
  case 74:  return 'radio3#Viva Discos Alehop no. 1#oct 13, 2003#14414954#0';
  case 75:  return 'radio3#Viva Discos Alehop no. 2#oct 20, 2003#14515848#0';
  case 76:  return 'radio3#The 21 Best Albums Of 2002#oct 27, 2003#14605558#0';
  case 77:  return 'radio3#Rock And Roll Will Never Die#nov 3, 2003#14692665#0';
  case 78:  return 'radio3#Our Guest: Mr. Nanne Tepper#nov 10, 2003#14777710#0';
  case 79:  return 'radio3#We Got Rockin\' Bones#nov 17, 2003#14925244#0';
  case 80:  return 'radio3#Upcoming in VERA and more no. 1#nov 24, 2003#15038052#0';

  case 61:  return 'radio3#Still Love 2003#april 28, 2003#13666383#0';
  case 62:  return 'radio3#9 New Songs and 3 Old Ones#may 12, 2003#00000000#0';
  case 63:  return 'radio3#From Zeke To Zeke#may 19, 2003#00000000#0';
  case 64:  return 'radio3#Catholic Horehounds#may 26, 2003#00000000#0';
  case 65:  return 'radio3#Trixie And The Merch Girls#june 9, 2003#00000000#0';
  case 66:  return 'radio3#De Straaljagers Are The Best#june 16, 2003#00000000#0';
  case 67:  return 'radio3#All Heroes Rock#june 23, 2003#00000000#0';
  case 68:  return 'radio3#Back By Popular Demand#sep 1, 2003#13989551#0';
  case 69:  return 'radio3#We Love Rock ... And (not a lot) More#sep 8, 2003#14054923#0';
  case 70:  return 'radio3#Like A Rolling Stone ... Not!#sep 15, 2003#14121211#0';

  case 51:  return 'radio3#43 out of the 50 best singles of 2002, part 2#feb 10, 2003#00000000#0';
  case 52:  return 'radio3#2003 will be better than 1977#feb 17, 2003#13658141#0';
  case 53:  return 'radio3#IN THE RED rocks my socks off#feb 24, 2003#00000000#0';
  case 54:  return 'radio3#2003 is way better than 1979#march 3, 2003#00000000#0';
  case 55:  return 'radio3#2003 Outwits The Radio Of 1983#march 10, 2003#00000000#0';
  case 56:  return 'radio3#No War, Play Music#march 17, 2003#00000000#0';
  case 57:  return 'radio3#I Hate 1984#march 24, 2003#00000000#0';
  case 58:  return 'radio3#I Love 1987#march 31, 2003#00000000#0';
  case 59:  return 'radio3#All for this show new bands no. 1#april 7, 2003#00000000#0';
  case 60:  return 'radio3#The Raggende Manne Rule#april 14, 2003#00000000#0';

  case 41:  return 'radio2#All Made in 2002 pt. 4#nov 18, 2002#00000000#0';
  case 42:  return 'radio2#All Made in 2002 pt. 5#nov 25, 2002#00000000#0';
  case 43:  return 'radio2#All Made in 2002 pt. 6#dec 2, 2002#13651177#0';
  case 44:  return 'radio2#All Made in 2002 pt. 7#dec 9, 2002#00000000#0';
  case 45:  return 'radio2#All Made in 2002 pt. 8#dec 16, 2002#00000000#0';
  case 46:  return 'radio3#Exit 2002, Here is 2003!#jan 6, 2003#00000000#0';
  case 47:  return 'radio3#Only 7 days until 2002\'s best albums ...#jan 13, 2003#00000000#0';
  case 48:  return 'radio3#Best albums of 2001 revisited#jan 20, 2003#00000000#0';
  case 49:  return 'radio3#The 21 best albums of 2002#jan 27, 2003#00000000#0';
  case 50:  return 'radio3#43 out of the 50 best singles of 2002, part 1#feb 3, 2003#00000000#0';

  case 31:  return 'top442#Grunnen Rocks Radio Top 442, part no. 16/21 121-102#oct   7-1, 2002#00000000#0';
  case 32:  return 'top442#Grunnen Rocks Radio Top 442, part no. 17/21  101-81#oct   7-2, 2002#00000000#0';
  case 33:  return 'top442#Grunnen Rocks Radio Top 442, part no. 18/21   80-59#oct   7-3, 2002#00000000#0';
  case 34:  return 'top442#Grunnen Rocks Radio Top 442, part no. 19/21   58-40#oct  14-1, 2002#00000000#0';
  case 35:  return 'top442#Grunnen Rocks Radio Top 442, part no. 20/21   39-20#oct  14-2, 2002#00000000#0';
  case 36:  return 'top442#Grunnen Rocks Radio Top 442, part no. 21/21    19-1#oct  14-3, 2002#00000000#0';
  case 37:  return 'radio2#Thee Broadcast After#oct 21, 2002#00000000#0';
  case 38:  return 'radio2#All Made in 2002#oct 28, 2002#00000000#0';
  case 39:  return 'radio2#All Made in 2002 pt. 2#nov 4, 2002#00000000#0';
  case 40:  return 'radio2#All Made in 2002 pt. 3#nov 11, 2002#00000000#0';

  case 21:  return 'top442#Grunnen Rocks Radio Top 442, part no.  6/21 332-312#sept  9-3, 2002#00000000#0';
  case 22:  return 'top442#Grunnen Rocks Radio Top 442, part no.  7/21 311-292#sept 16-1, 2002#00000000#0';
  case 23:  return 'top442#Grunnen Rocks Radio Top 442, part no.  8/21 291-270#sept 16-2, 2002#00000000#0';
  case 24:  return 'top442#Grunnen Rocks Radio Top 442, part no.  9/21 269-250#sept 16-3, 2002#00000000#0';
  case 25:  return 'top442#Grunnen Rocks Radio Top 442, part no. 10/21 249-225#sept 23-1, 2002#13641039#0';
  case 26:  return 'top442#Grunnen Rocks Radio Top 442, part no. 11/21 224-205#sept 23-2, 2002#13641062#0';
  case 27:  return 'top442#Grunnen Rocks Radio Top 442, part no. 12/21 204-183#sept 23-3, 2002#13641093#0';
  case 28:  return 'top442#Grunnen Rocks Radio Top 442, part no. 13/21 182-164#sept 30-1, 2002#00000000#0';
  case 29:  return 'top442#Grunnen Rocks Radio Top 442, part no. 14/21 163-143#sept 30-2, 2002#00000000#0';
  case 30:  return 'top442#Grunnen Rocks Radio Top 442, part no. 15/21 142-122#sept 30-3, 2002#00000000#0';

  case 11:  return 'radio#With love from Detroit, Sweden, Europe and some Classics#may 27, 2002#00000000#0';
  case 12:  return 'radio#Made In The Netherlands no. 1#june 3, 2002#00000000#0';
  case 13:  return 'radio#Various Artists no. 1#jun 10, 2002#00000000#0';
  case 14:  return 'radio#Made In The Netherlands no. 2#jun 17, 2002#00000000#0';
  case 15:  return 'radio#Various Artists no. 2#jun 24, 2002#00000000#0';
  case 16:  return 'top442#Grunnen Rocks Radio Top 442, part no.  1/21 442-423#sept  2-1, 2002#00000000#0';
  case 17:  return 'top442#Grunnen Rocks Radio Top 442, part no.  2/21 422-400#sept  2-2, 2002#00000000#0';
  case 18:  return 'top442#Grunnen Rocks Radio Top 442, part no.  3/21 399-377#sept  2-3, 2002#00000000#0';
  case 19:  return 'top442#Grunnen Rocks Radio Top 442, part no.  4/21 376-354#sept  9-1, 2002#00000000#0';
  case 20:  return 'top442#Grunnen Rocks Radio Top 442, part no.  5/21 353-333#sept  9-2, 2002#00000000#0';

  case 1:   return 'radio#Uncut Rock \'n\' Roll#march 4, 2002#13599915#0';
  case 2:   return 'radio#From The Dirtbombs To The Von Bondies#march 11, 2002#00000000#0';
  case 3:   return 'radio#From Adam West To The Mistreaters#march 18, 2002#00000000#0';
  case 4:   return 'radio#From The Dirtbombs To The Oblivians#march 25, 2002#00000000#0';
  case 5:   return 'radio#Thee Seetz Selects#april 8, 2002#00000000#0';
  case 6:   return 'radio#Alle 21 Goed!#april 15, 2002#00000000#0';
  case 7:   return 'radio#Barely Legal#april 22, 2002#00000000#0';
  case 8:   return 'radio#2002 Rocks#april 29, 2002#00000000#0';
  case 9:   return 'radio#From Wayback to The Last (Won) Fight#may 6, 2002#00000000#0';
  case 10:  return 'radio#Historia De La Musica Rock#may 13, 2002#13614665#0';
	}
}
function pOSB(strText){
 window.status=strText;return true;
}
function SBE(){
 return pOSB('');
}
function fNews(){
 return pOSB('News');
}
function fNL(){
 return pOSB('The Netherlands ROCK!');
}
function doPlayaudio(audionumber){window.open("http://3voor12.vpro.nl/3voor12/player/audio.jsp?audionumber=" + audionumber, "player", "width=320,height=450,location=no,resize=yes,directories=no,scrollbars=no,top=0,left=0");}
function fR(nr){return pOSB('Grunnen Rocks Radio #' + nr + ': ' + getTitle(nr));}
function rR(nr){doPlayaudio(getVpronr(nr));return true;}

//functions to retrieve info on the specified broadcast
function getAvailability(nr){return getInfoItem(nr, 4);}
function getDateString(nr){return getInfoItem(nr, 2);}
function getMap(nr){return getInfoItem(nr, 0);}
function getTitle(nr){return getInfoItem(nr, 1);}
function getVpronr(nr){return getInfoItem(nr, 3);}
function getInfoItem(nr, sub){
 info = getInfo(nr).split('#');
 return info[sub];
}
//functions who write HTML clients to the client
function getButton(nr, image, radio){
 return getLinkAndHandlers(makeImageTag(nr, image), nr, radio);
}

function getLinkedNumber(nr, radio){
 return fakeFunction(nr, radio, ':');
}
function getLinkedNumberNonActive(nr, radio){
 return fakeFunction(nr, radio, '');
}
function fakeFunction(nr, radio, insrt){
 return getLinkAndHandlers('<FONT COLOR="yellow">#' + nr + insrt + '</FONT>', nr, radio);
}

function getLinkedNumberAndTitleYellow(nr, radio){
 return getLinkAndHandlers('<B>Grunnen Rocks Radio #' + nr + ': ' + getTitle(nr) + '</B>', nr, radio);
}
function getLinkedNumberAndTitle(nr, radio){
 return getLinkAndHandlers('Grunnen Rocks Radio #' + nr + ': ' + getTitle(nr), nr, radio);
}
function getLinkAndHandlers(toBeLinked, nr, radio){
 return '<A ' + makeLink(nr) + getEventHandlers(nr, radio) + '>' + toBeLinked + '</A>';
}
function makeButtonWithText(nr, image, radio){
  document.write('<A ' + makeLink(nr) + getEventHandlers(nr, radio) + '>#' + nr + '<BR>' + makeImageTag(nr, image) + '</A>');
}
function makeDivRadioBottom(){
 document.write('<DIV CLASS="ONDER">');
 document.write('<P CLASS="TERUG"><A HREF="/radio/">Back To Grunnen Rocks Radio</a></p>');
 document.write('<P CLASS="TERUG"><A HREF="/">Back To Grunnen Rocks</a></p>');
 document.write('<P CLASS="MAKER">This page has been made by <A HREF="/contact/">Evert</A>.</P>');
 document.write('<P CLASS="LEUS">HAVE FUN LISTENING TO GOOD MUSIC !!!</P>');
 document.write('</DIV>');
}
function makeDivRadioHead(nr){
 document.write('<DIV CLASS="BOVEN">');
 document.write('<P CLASS="DJKOP">Grunnen Rocks Radio #' + nr + '</P>');
 document.write('<P CLASS="INLEIDING">' + getTitle(nr) + '</P>');
 document.write('<P CLASS="INLEIDING">' + getDateString(nr) + '</P>');
 document.write('</DIV>');
}
function getEventHandlers(nr, radio){
 result = ' onMouseOver="return fR(' + nr + ')" onMouseOut="return SBE()" '; 
 if(radio){
  return result + ' onClick="return rR(' + nr + ');" ';
 }else{
  return result;
 }
}
function getForwButton(nr){
 return getButton(nr, 'vooruit', false);
}
function makeForwButtonWithText(nr){
 makeButtonWithText(nr, 'vooruit', false);
}
function makeImageTag(nr, image){
 return '<IMG alt="[ Grunnen Rocks Radio #' + nr + ': ' + getTitle(nr) + ']" SRC="/images/various/' + image + '.gif" WIDTH=18 HEIGHT=19 BORDER=0>';
}
function preZero(nr){
 result = '' + nr;
 if(nr<100)result = '0' + result;
 if(nr<10)result = '0' + result;
 return result;
}
function makeLink(nr){
 return ' HREF="/radio/' + getMap(nr) + '/grr' + preZero(nr) + '.html" ';
}
function getPlayButton(nr){
 if(getAvailability(nr)==1){
  return getButton(nr, 'luispreker', true);
 }else{
  return '<B>N/A</B>';
 }
}
function makePlayButtonWithText(nr){
 if(getAvailability(nr)==1){
  makeButtonWithText(nr, 'luispreker', true);
 }else{
  document.write('#' + nr + '<BR><B>N/A</B>');
 }
}
function makePrevButtonWithText(nr){
 makeButtonWithText(nr, 'terug', false);
}
function makeRadioList(){
 document.write('<TABLE border="0" class="rechtskader">');
 for(i=getNewestOneListed();i>=getMinimum();i--){
  makeTableRowRadioList(i);
 }
 document.write('</TABLE>');
}
function makeTop442List(){
 document.write('<TABLE class="rechtskader">');
 for(i=36;i>=16;i--){
  makeTableRowRadioList(i);
 }
 document.write('</TABLE>');
}
function makeTableRowRadioList(nr){
 document.write('<TR>');
 document.write('<TD valign="top">' + getDateString(nr) + '</TD>');
 document.write('<TD valign="top">' + getPlayButton(nr) + '</TD>');
 document.write('<TD valign="top">' + getForwButton(nr) + '</TD>');
 document.write('<TD valign="top"><A ' + makeLink(nr) + getEventHandlers(nr, false) + '>#' + nr + ': ' + getTitle(nr) + '</A></TD>');
 document.write('</TR>');
}

function makePageBottom(nr){
 makeDivNavigationBar(nr, false);
 makeDivRadioBottom();
 document.write('</body></HTML>');
}

function makePageHead(nr){
 document.write('<BODY bgcolor="black">');
 makeDivRadioHead(nr);
 makeDivNavigationBar(nr, true);
}

function makeDivNavigationBar(nr, withPlay){
 document.write('<DIV CLASS="rechtskader"><TABLE align="center" class="rechtskader"><TR><TD align="center">');

 if(nr!=getMinimum()){
  makePrevButtonWithText(nr-1);
 }

 if(withPlay){
  if(nr!=getMinimum()){
   document.write('</TD><TD align="center">');
  }
  makePlayButtonWithText(nr);
  if(nr!=getNewestOneListed()){
   document.write('</TD><TD align="center">');
  }
 }else{
  if((nr!=getMinimum())&&(nr!=getNewestOneListed())){
   document.write('</TD><TD align="center">');
  }
 }

 if(nr!=getNewestOneListed()){
  makeForwButtonWithText(nr+1);
 }
 document.write('</TD></TR></TABLE></DIV>');
}
function makeRadioMenuItem(nr){
 document.write('<TR><TD valign"center" align="center">');
 if(getAvailability(nr)==0){
  document.write(getLinkedNumberNonActive(nr, false));
  }
 if(getAvailability(nr)==1){
  document.write(getLinkedNumber(nr, false));
  document.write('&nbsp;&nbsp;');
  document.write(getButton(nr, 'luispreker', true));
 }
 document.write('</TD></TR>');
}

