var contactSources = function(strLocation)
{
	new Ajax('/ajax/contact/' + strLocation, {
		'update': $('marker')
	}).request();	
}

window.addEvent('domready', function() {
	var eleLocation = $('location');
	
	var arrUrl = window.location.href.split('/');
	var strLastSegment = arrUrl.pop();
	
	if(strLastSegment != 'contact')
	{
		eleLocation.value = strLastSegment;
		contactSources(strLastSegment);
	}
	
	eleLocation.addEvent('change', function(){
		contactSources(this.value);
	});
});