		// Defaults rounds completed values
		function defaultCommunityRoundsCompleted() 
		{
			$(".banner .countdown .cd1").html('-');
			$(".banner .countdown .cd2").html('-');
			$(".banner .countdown .cd3").html('-');
			$(".banner .countdown .cd4").html('-');
		}

		// Loads community stats
		function loadCommunityStats() 
		{
			callGetWS(true, "/blaze/communitystats", 
					WSRequestTimeout, 
					null, 
					function(data,TextStatus){
						loadCommunityStatsSuccess(data);
					}, function(XMLHttpRequest, textStatus, errorThrown)
					{
						// NOTE: No alert since we get this if we switch to another page before it finishes!
						defaultCommunityRoundsCompleted();
					}, null);

		}

		// load in stat value into countdown
		function loadCommunityStatsSuccess(data) 
		{
			var totalRounds = 3000;
			var completed = $("keyscopestatsvaluemap entry statvalues entitystatslist entitystats statvalues statvalues:eq(1)", data).text(); // 1 is mp rounds
			// handle first time, no stats set
			if (completed == '')
			{
				completed = 0;
			}
			var remainingRounds = totalRounds - completed;
			
			var remainingRoundsStr = remainingRounds.toString();
			if (remainingRounds > 0) 
			{
				var firstDigit = remainingRoundsStr.charAt(0);
				var secondDigit = remainingRoundsStr.charAt(1);
				var thirdDigit = remainingRoundsStr.charAt(2);
				var fourthDigit = remainingRoundsStr.charAt(3);
				if (remainingRoundsStr.length == 4) 
				{									
					$(".banner .countdown .cd1").html(firstDigit);
					$(".banner .countdown .cd2").html(secondDigit);
					$(".banner .countdown .cd3").html(thirdDigit);
					$(".banner .countdown .cd4").html(fourthDigit);
				} 
				else if (remainingRoundsStr.length == 3) 
				{
				
					$(".banner .countdown .cd1").html('0');
					$(".banner .countdown .cd2").html(firstDigit);
					$(".banner .countdown .cd3").html(secondDigit);
					$(".banner .countdown .cd4").html(thirdDigit);
				} 
				else if (remainingRoundsStr.length == 2) 
				{
				
					$(".banner .countdown .cd1").html('0');
					$(".banner .countdown .cd2").html('0');
					$(".banner .countdown .cd3").html(firstDigit);
					$(".banner .countdown .cd4").html(secondDigit);
				} 
				else if (remainingRoundsStr.length == 1) 
				{
				
					$(".banner .countdown .cd1").html('0');
					$(".banner .countdown .cd2").html('0');
					$(".banner .countdown .cd3").html('0');
					$(".banner .countdown .cd4").html(firstDigit);
				} 
			} 
			// 0 or less rounds remaining
			else 
			{
				$(".banner .countdown .cd1").html('0');
				$(".banner .countdown .cd2").html('0');
				$(".banner .countdown .cd3").html('0');
				$(".banner .countdown .cd4").html('0');
				$(".banner .countdown .cd5").html('0');
			}
		}
