<script type="text/javascript">//<![CDATA[
XHR.poll(3, '<%=url([[admin]], [[services]], [[shairport-sync]], [[status]])%>', null,
	function(x, data) {
		var tb = document.getElementById('shairport-sync_status');
		if (data && tb) {
			if (data.running) {
				var links = '<em><b><font color=green>Apple AirPlay 2 Receiver <%:RUNNING%></font></b></em>';
				tb.innerHTML = links;
			} else {
				tb.innerHTML = '<em><b><font color=red>Apple AirPlay 2 Receiver <%:NOT RUNNING%></font></b></em>';
			}
		}
	}
);
//]]>
</script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
<fieldset class="cbi-section">
	<p id="shairport-sync_status">
		<em><%:Collecting data...%></em>
	</p>
</fieldset>
