//main.js niet meer gebruiken
var kanalen=new Array();
kanalen=[
"radio5","http://shoutcast.omroep.nl:8138/listen.pls", // moet boven Radio538!!
"arrow","http://81.173.3.132:8082/listen.pls",
//"arrow","http://www.arrow.nl:80/streams/Rock32kaac.pls",
"arrowjazz","http://81.173.3.133:8082/listen.pls",
//"arrowjazz","http://www.arrow.nl:80/streams/Jazz32kaac.pls",
"bnr","http://81.173.3.251/listen.pls",
"caz","http://81.173.3.139:8082/listen.pls",
//"caz","http://www.arrow.nl:80/streams/Caz32kaac.pls",
"radio538","http://82.201.100.9:8000/radio538",
"juizefm","http://82.201.100.9:8000/MobileJuize",
"538dancedept","http://82.201.100.10:8000/RD01_538_Dancedepartment",
"538nonstop40","http://82.201.100.10:8000/RD02_NonStop40",
"53L8","http://82.201.100.10:8000/WEB21",
"538hitzone","http://82.201.100.10:8000/WEB11",
"538party","http://82.201.100.10:8000/WEB16mobiel",
"90hits","http://82.201.100.10:8000/RD10_Radio10Gold_90s_Hits",
"candlelight","http://www.candlelight.nl/iphone.pls",
"buitenradio","http://82.201.100.10:8000/WEB23mobiel",
"radioatwork","http://82.201.100.10:8000/WEB19",
"ozradio","http://82.201.100.10:8000/WEB12",
"flashbackradio","http://82.201.100.10:8000/RD05_R10_80s",
"decibel","http://212.61.66.79:8070/listen.pls",
"3fm","http://shoutcast.omroep.nl:8134/listen.pls",
"radio1","http://shoutcast.omroep.nl:8130/listen.pls",
"radio2","http://shoutcast.omroep.nl:8132/listen.pls",
"radio4","http://shoutcast.omroep.nl:8136/listen.pls",
"radio6","http://shoutcast.omroep.nl:8140/listen.pls",
"funx","http://www.funx.nl/live/funx.pls",
"funxlatin","http://www.funx.nl/live/latin.pls",
"kxradio","http://80.247.160.153:4000/listen.pls",
"freshfm","http://www.fresh.fm/media/audio/ListenHigh.pls",
"freshfm","http://213.132.182.121:80",
"radionl","http://stream.radionl.fm/listen.pls",
"radionl","http://mobile.radionl.fm:7000/",
"kinkfm","http://81.173.3.20:80/listen.pls",
"kinderradio","http://stream.kinderradio.fm:80/kinderradio",
"classx","http://81.173.3.24:80/listen.pls",
"kinkaardschok","http://81.173.3.25:80/listen.pls",
"kinderradio","http://stream.kinderradio.fm/kinderradio",
"gigantfm","http://www.gigantfm.nl/listen/listen.pls",
"rtllounge","http://82.201.100.9:8000/MobileRTLLounge",
"giXXgantfm","http://gigantfm.ic-stream.nl:7206",
"veronicafm","http://www.radioveronica.nl/player/radioveronica.pls",
"skyradio","http://www.skyradio.nl/player/skyradio.pls",
"hitradio","http://www.hitradio.nl/player/hitradio.pls",
"summerhits","http://217.196.35.29/mp3/summerhits",
"skylovesongs","http://www.skyradio.nl/player/skyradiolovesongs.pls",
"skyradionl","http://www.skyradio.nl/player/skyradionl.pls",
"skychristmas","http://www.skyradio.nl/player/seasonal.pls",
"skydance","http://www.skyradio.nl/player/seasonal.pls",
"top590","http://www.radioveronica.nl/player/veronicatop590.pls",
"top1000","http://www.radioveronica.nl/player/veronicatop1000allertijden.pls",
"concertzender","http://www.concertzender.nl/streams/sb",
"bnnfm","http://shoutcast.omroep.nl:8012",
"100pnl","http://wm1.streaming.castor.nl:8000/100pctnl.mp3",
"cazfm","http://81.173.3.22:80",
"slamfm","http://www.true.nl/streams/slamfmlivestream.pls",
"classicfm","http://www.classicfm.nl/player/classicfm.pls",
"laserradio","http://lasermedia.nl:80/IPhone.m3u",
"radio10gold","http://82.201.100.9:8000/MobileRadio10",
"nashvillefm","http://www.nashvillefm.eu/live/smalband.pls",
"q-music","http://vip2.str.reasonnet.com/qmusic.mp3.96",
"zomerradio","http://82.201.100.10:8000/WEB15mobiel",
"top4000","http://82.201.100.10:8000/WEB03mobiel",
"disco","http://82.201.100.10:8000/WEB20mobiel",
"viradio","http://82.201.100.10:8000/WEB12mobiel",
"kersthits","http://82.201.100.10:8000/WEB24mobiel",
"xrated","http://81.173.3.131/listen.pls"
];
function go(z){
	pageTracker._trackPageview("/mobile/" + mobiel + "/" + z);
	var streamURL = "";
	for(var i=0;i<kanalen.length;i=i+2){
		if(kanalen[i].indexOf(z)!=-1){
			streamURL=kanalen[i+1];
			title=kanalen[i];
			break;
		}
	}
	switch(mobiel){
		case 'iphone':
			document.getElementById('view2').style.display = 'inline';
			document.getElementById('logo').src = "http://static.zhongguo.fm/i/nl/l/" + title + ".gif";
			document.getElementById('radio').src = streamURL;
			document.getElementById('radio').play();
			break;
		default:
			window.open(streamURL);
			break;
	}
}
playing=0;
function init(){
	w = screen.width - (screen.width%102);
	document.getElementById('view1').style.width = w + 'px';
	document.getElementById('view1').style.marginLeft = (screen.width-w)/2 + 'px';
}
