﻿function getLU() {
	$.ajax({
		type: "POST",
		data: "{}",
		url: "services/AjaxMethodsService.asmx/FetchLiveUsage",
		contentType: "application/json; charset=utf-8",
		dataType: "json",
		beforeSend: function () {
		},
		complete: function () {
			setTimeout(getLU, 25000); // refresh after 5 seconds
		},
		success: function (jsonData) {
			$('#liveUsageContainer').hide().html(jsonData.d).fadeIn('fast');
		},
		error: function (err) {
		}
	});
};
