function dayLinksUpdater (dateText) {
	
	/**
	*	1.	The dateText variable is split up so that we can get the correct future dates to populate our seven day links with (under the displayed day)
	*		We've already split the dateText up into an array called cookieSplitUp, so we'll split the yyyy/mm/dd bit of that array.
	*	2.	A date object is declared
	*	3.	The various bits of the ymd arrays are named and made into integers, ready to change the date object to the selected date. The month is sorted out so that it corresponds with javascipt's stupid date object (1 is taken from the integer)
	*	4.  A do while loop is initiated with an incrementing variable (i). Starting at 0, we can pass this variable to processes to make them refer to each numbered day in turn
	*	5.  The date object is set to the selected date initially and then set to the right date for each day ahead of this for 7 days, with the help of the incrementing i variable.
	*	6. The month and day are made to be two digits long if they aren't already
	*	7. The full date, as a string, is set and passed to the name attribute of the corresponding day link. Only the day, as an integer is passed to the text value of each link, because we only need a 1 digit representation of the day.
	*/
	
	// - 1
	var ymd		= new Array();
		ymd		= dateText.split('-');
	
	// - 2
	var date 	= new Date();
	
	// - 3
	//Sort out day number
	var day_2dig = ymd[2];
	var day_1st = day_2dig.substring(0,1);
	var day_2nd = day_2dig.substring(1);
	var day;
	
	if(day_1st == '0') {day = parseInt(day_2dig.substring(1));}
	else {day = parseInt(day_2dig);}
	
	//Sort out month
	var month_2dig = ymd[1];
	var month_1st = month_2dig.substring(0,1);
	var month_2nd = month_2dig.substring(1);
	var month;
	
	if(month_1st == '0') {month = parseInt(month_2nd) - 1;}
	else {month = parseInt(month_2dig) - 1;}
	
	
	//then there's the year
	
	var year				= parseInt(ymd[0]);
	
	
	// - 4
	var i = 0
	
	do {
	
		// - 5
		date.setFullYear(year, month, day + i);
		
		
		// - 6
	
		var realMonth 				= date.getMonth() + 1;
		var stringMonth				= realMonth.toString();
		var twoDigitMonth;
	
		if(stringMonth.length == 1) {
		
			twoDigitMonth = '0' + realMonth;
		}
		
		else {
			
			twoDigitMonth = realMonth;
			
		}
		
		var realDay 				= date.getDate();
		var stringDay				= realDay.toString();
		var twoDigitDay;
		
		
		if(stringDay.length == 1) {
			
			twoDigitDay = '0' + realDay;
		}
		
		else {
			
			twoDigitDay = realDay;
			
		}
		
		
		var fullYear = date.getFullYear();

			
		// - 7
		var dateUpdate = fullYear+'-'+twoDigitMonth+'-'+twoDigitDay;

		
		
			$('#Day'+i).text(realDay);
			$('#Day'+i).attr('name', dateUpdate);
			$('#Day'+i).attr('title', date.getDayName() +' '+ realDay);
			
			
		i++;
		
	}
	
	while (i <= 6);
	
}
