$(function() {
	
	$('select#Members').change(function() {
			loc = new String(document.location);

			// we'll split by slashes, so let's remove http to make this easy on ourselves.
			loc = loc.replace("http://","");
			parts = loc.split("/");

			// parts[0] is the domain name. url segment of the calendar and all date params are in the value
			// of the select box.
			document.location = "http://"+parts[0]+"/"+this.value;
	});
	
	$('#map a').tooltip({
		delay: 0,
		showURL: false,
		track: true,
		bodyHandler: function() {
			return $(this).find('span.popup').html();
		}
	});
	
});