function updateLiveDepartureBoard(element)
{
	var loader = element.find('> div.board-loading');
	var content = element.find('> div.board-content');

	loader.show();
	content.hide();

	jQuery.ajax(
	{
		type: 'GET',
		url: interfaceBaseURI + '/custom/get_c2c_live_departure_board',
		data:
			{
				from_station_code: fromStationCode,
				to_station_code: toStationCode,
				board_services: boardServiceLength
			},
		success: function(jsonString)
			{
				try
				{
					boardList = eval('(' + jsonString + ')');
					var html = '';

					if(boardList.length > 0)
					{
						html = '<table class="dep-board-table" cellspacing="0"';
						html += '<tr>';
						html += '<th>Station</th>';
						html += '<th>Scheduled</th>';
						html += '<th>Expected</th>';
						html += '</tr>';

						for(var i = 0; i < boardList.length; i ++)
						{
							html += '<tr>';
							html += '<td>' + boardList[i].station + '</td>';
							html += '<td>' + boardList[i].scheduled + '</td>';
							html += '<td>' + boardList[i].expected + '</td>';
							html += '</tr>';
						}

						html += '</table>';
					}

					content.html(html);
				}
				catch(e)
				{
				}

				loader.hide();
				content.show();
			}
	});

	timer = setTimeout(function() { updateLiveDepartureBoard(container); }, refreshTimeOut);
}
