switch (str){ case (str.match(/Firma RDS/) || {}).input: foto = 'firmards.jpg'; break; case (str.match(/Horizon/) || {}).input: foto = 'stationwsh.jpg'; break; case (str.match(/Station KNW/) || {}).input: foto = 'stationknw.jpg'; break; case (str.match(/Iglo FM/) || {}).input: foto = 'iglofm.jpg'; break; case (str.match(/Rode Baron/) || {}).input: foto = 'rodebaron.jpg'; break; case (str.match(/Radio LDH/) || {}).input: foto = 'radioldh.jpg'; break; case (str.match(/Silvertop/) || {}).input: foto = 'silvertop.jpg'; break; case (str.match(/Vrijeradio/) || {}).input: foto = 'vrijradio.jpg'; break; case (str.match(/Cupido/) || {}).input: foto = 'cupido.jpg'; break; case (str.match(/Novak/) || {}).input: foto = 'novak.jpg'; break; case (str.match(/Zeelandia/) || {}).input: foto = 'zeelandia.png'; break; case (str.match(/Decibel/) || {}).input: foto = 'decibel.jpg'; break; case (str.match(/Studio DOS/) || {}).input: foto = 'dos.jpg'; break; case (str.match(/Iglo/) || {}).input: foto = 'iglo.jpg'; break; default: foto = 'jukebox.jpg'; break; } rds = document.getElementById("rdsfoto"); rds.innerHTML = ""; }