function toogleCities(cityID) {
	if(cityID !== '') {
		$('.locationList').hide();
		$('.cityGroup').hide();
		$('.locList').show();
		$('#' + cityID).parent().parent().show();
		$('#' + cityID).show();
	} else {
		$('.locList').hide();
	}
};

function showLocations() {
	$('.locList').show();
	$('.locationList').show();
	$('.cityGroup').show();
	$('#showAll').hide();
	$('#hideAll').show();
	$("#cityChooser").val(0);
};

function hideLocations() {
	$('.locList').hide();
	$('.locationList').hide();
	$('.cityGroup').hide();
	$('#hideAll').hide();
	$('#showAll').show();
	$("#cityChooser").val(0);
};

function toogleLocations(triggerId, toogleId, showMsg, hideMsg) {
	state = document.getElementById(toogleId).style.display;

	if (state != 'block') {
		$('.locList').show();
		$('.locationList').show();
		$('.cityGroup').show();
//		document.getElementById(toogleId).style.display = 'block';
		var newLinkLabel = document.createTextNode(hideMsg);
		document.getElementById(triggerId).replaceChild(newLinkLabel, document.getElementById(triggerId).firstChild);
	} else {
		$('.locList').hide();
		$('.locationList').hide();
		$('.cityGroup').hide();
//		document.getElementById(toogleId).style.display = 'none';
		var newLinkLabel = document.createTextNode(showMsg);
		document.getElementById(triggerId).replaceChild(newLinkLabel, document.getElementById(triggerId).firstChild);
	}
};
