if(!achtergrond){var achtergrond='#000050';}
if(!FontKleur){var FontKleur='#efefff';}
if(!LinkKleur){var LinkKleur='orange';}
if(!Directbeginnen){var Directbeginnen=0;}

function makeStream(url, name, check, onoff) {
	this.url = url;
	this.name = name;
	this.check = check;
	this.onoff = onoff;
}

function openvenster()
 {tunerWindow = window.open("","tunevenster","left=100,top=100,screenX=100,screenY=100,width=405,height=295");}
 
 today=new Date();
  jran=today.getTime();
  ia=9301;
  ic=49297;
  im=233280;

function rnd() { jran = (jran*ia+ic) % im;  return jran/(im*1.0); };

function rand(number) { return Math.ceil(rnd()*number); };
// Bij wijzigen zenders of urls, onderstaande rij copieren in tunerklein.html (in cgi-bin) en tunerpopspeel.html (in html)
var streams = new Array();
streams[1] =  new makeStream("http://livestreams.omroep.nl/npo/radio1-bb","Radio 1","Radio 1","online");
streams[2] =  new makeStream("http://livestreams.omroep.nl/npo/radio2-bb","Radio 2","Radio 2","online");
streams[3] =  new makeStream("http://livestreams.omroep.nl/npo/3fm-bb","Radio 3","Radio 3","online");
streams[4] =  new makeStream("http://www.q-music.nl/asx/q-music.asx","Q-Music","Q-Music","online");
streams[5] =  new makeStream("http://www.garnierstreamingmedia.com/asx/streamerswitch.asp?stream=205","Arrow Rock","Arrow Rock","online");
streams[6] =  new makeStream("http://www.radio227.nl/radio227.asx?","Radio 227","Radio 227","online");
streams[7] =  new makeStream("http://talpa-asx.streaming.is.nl/streaming.asp?P=20007&Q=R10_HIGH","Radio 10 Gold","Radio 10 Gold","online");
streams[8] =  new makeStream("http://www.skyradio.nl/player/skyradio.asx","Sky Radio","Sky Radio","online");
streams[9] =  new makeStream("http://streams.kpnwebcast.nl/cgi-bin/reflector.cgi?stream=kpnmms_bnr,kpnmms_bnr2&title=","BNR","BNR","online");
streams[10] =  new makeStream("http://www.garnierstreamingmedia.com/asx/streamerswitch.asp?stream=1","Radio 538","Radio 538","online");
streams[11] =  new makeStream("http://www.radioveronica.nl/radioveronicaplayer/radioveronica.asx","Veronica","Veronica","online");
streams[12] =  new makeStream("http://www.q-music.nl/asx/q-music.asx","Q Music","Q Music","online");
streams[13] =  new makeStream("http://www.hitradio.nl/player/hitradio.asx","Hit Radio","Hit Radio","online");

var basis="http://www.goednieuws.com//tunerpop.html?";
var algeladen="nee";

document.write('<head><style>');
document.write('a.detuner{color:'+FontKleur+';text-decoration:none; font-family: Arial, Serif; font-weight: bold; font-size: 10px; }');
document.write('a.detuner:visited{color:'+FontKleur+';text-decoration:none; font-family: Arial, Serif; font-weight: bold; font-size: 10px; }');
document.write('a.detuner:hover{color:'+LinkKleur+'}');
document.write('</style>');

// Genereer inhoud
var Inhoud = '<table width="100%">';
Inhoud += '<tr><td>&nbsp;</td></tr>';

Inhoud += '<tr><td colspan=2><a target=rsvp class="detuner" href="http://www.goednieuws.com/tuner.html">Deze tuner op jouw site?</a></td></tr><tr><td>&nbsp;</td></tr>';
positie=rand(10)+1; ia=9201; postwee=rand(10)+1;
for (var i = 1; i < streams.length; i++) {
Inhoud += '<tr><td><a target=tunevenster onClick=openvenster() class="detuner" href="'+basis+streams[i].url+ '">'+streams[i].name+'</a></td><td><img src=http://www.goednieuws.com/'+streams[i].onoff+'.gif width=15 height=15></td></tr>';

}
Inhoud += '<tr><td colspan=2><a target=nom class="detuner" href="http://www.goednieuws.com/contactformulier">klik hier voor zendersuggesties<img src=http://www.goednieuws.com/' + location.href + ' border=0 nosave width=1 height=1><img name="muisover" src="" border=0 nosave width=1 height=1></a>';


Inhoud += '</td></tr></table>';
// ---

var DocumentAlles = document.all? true : false; // Internet Explorer 4+
var DocumentLagen = document.layers? true : false; // Netscape 4+
var DocumentElementen = document.getElementById? true : false; // Overige

function toonmenu() {
if (algeladen=="nee") { document.images.muisover.src="http://www.goednieuws.com//muisover.gif?" + location.href;}
algeladen="ja";
if(DocumentElementen) { document.getElementById('tuner').style.visibility = "visible"; }
else if(DocumentLagen) {  document.layers['tuner'].visibility = "show"; }
else { document.all('tuner').style.visibility="visible"; }

}
function verstopmenu() {
if(DocumentElementen) { document.getElementById('tuner').style.visibility = "hidden"; }
else if(DocumentLagen) {  document.layers['tuner'].visibility = "hidden"; }
else { document.all('tuner').style.visibility="hidden"; }
}

document.write('<table onmouseout="verstopmenu()" onmouseover="toonmenu()" cellpadding=0 cellspacing=0><tr><td>');
document.write('<table cellpadding=0 cellspacing=0>');
document.write('<tr><td style="background-color:'+achtergrond+';padding-top:3px; padding-bottom:3px"><a class="detuner" href="http://www.goednieuws.com/" target=nom><font color='+FontKleur+'>&nbsp&nbspKlik voor Live Radio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td></tr>');
document.write('<tr><td><div class=detuner style="width:150px;position:absolute;visibility:hidden;background-color:'+achtergrond+'" id=tuner>');

document.write(Inhoud);
document.write('</div></td></tr>');
document.write('</table>');
document.write('</td></tr></table>');
