function navigateToDate(date)
{
	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.
	document.location = "http://"+parts[0]+"/"+url_segment+"/"+date;	
}

function zeroPad(num) {
	var s = '0'+num;
	return s.substring(s.length-2)
}

