// OLD

function DisplayNone(thingId) {
	var e = document.getElementById(thingId) ;
	if (e.style.display == "none") { e.style.display = "" ; } else { e.style.display = "none" ; }
}
function update() {
	//$(".menu .center").html('...'); 
	$.ajax({
	type:'GET', url: '<?php echo WWW; ?>ajax/client-online-count/', timeout: 20000,
	success: function(data) {
		$(".menu .center").html(data);
		window.setTimeout(update, 15000);
	},
	error: function (XMLHttpRequest,textStatus,errorThrown) {
		$(".menu .center").html('X');
	window.setTimeout(update, 30000);
	}
});
}

$(document).ready(function() {
    update();
});



// NEW - bugguy

<script type="text/javascript">
var WWW = '<?php echo WWW; ?>';
if (typeof jQuery == 'undefined') {
	function writeJS(f) {
		var c = document.createElement('script');
		c.setAttribute("type", "text/javascript");
		c.setAttribute("src", f);
		document.getElementsByTagName("head")[0].appendChild(c);
	}
	writeJS('<?php echo WWW; ?>js/jquery.min.js');
	writeJS('<?php echo WWW; ?>js/run.js');
}
</script>