	//check for new Now Playing text file and refresh track and artist
	//set refresh interval
	var refreshInterval=20000;
	function refreshNowPlaying(){
		//get text file
		if (document.getElementById('band')) {
			v = (document.include('../robotic_output/playout_static/nowplaying.txt'));
			//divide into artist and track names
			x = v.split('|');
			if ((x[1] == 'undefined') || (x[1] == '') || !(x[1])) {
				document.getElementById('band').innerHTML = ("Fife's Kingdom FM");
				document.getElementById('track').innerHTML = ('&nbsp;');
			}
			else {
				document.getElementById('band').innerHTML = (x[0]);
				document.getElementById('track').innerHTML = (x[1]);
			}
		}
	}
	setInterval("refreshNowPlaying()",refreshInterval);
