	var monthName = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

	var mName = new Array ("jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec");

	var monthLength = new Array (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);

	now = new Date;


		/*--Monday--*/

if(now.getDay() > 1 )
		{monDiff = now.getDay() -1}

	else if (now.getDay() <= 1 )
		{monDiff = now.getDay() +6}


	else
		{monDiff = 0};


	var newmonDay = now.getDate() - monDiff;
	var monMonth = monthName[now.getMonth()];
	var mMonth = mName[now.getMonth()];

if(newmonDay < 1)
		{monMonth = monthName[now.getMonth() -1],
		 newmonDay = monthLength[now.getMonth() -1] + newmonDay,
		 mMonth = mName[now.getMonth() -1]};

if(newmonDay < 10)
		{mDay = "0" + newmonDay}
	else {mDay = newmonDay};


		/*--Wednesday--*/


if(now.getDay() > 3 )
		{wedDiff = now.getDay() -3}

else if (now.getDay() <= 3 )
		{wedDiff = now.getDay() +4}

	else
		{wedDiff = 0};

	var newwedDay = now.getDate() - wedDiff;
	var wedMonth = monthName[now.getMonth()];
	var wMonth = mName[now.getMonth()];

if(newwedDay < 1)
		{wedMonth = monthName[now.getMonth() -1],
		 newwedDay = monthLength[now.getMonth() -1] + newwedDay,
		 wMonth = mName[now.getMonth() -1]};

if(newwedDay < 10)
		{wDay = "0" + newwedDay}
	else {wDay = newwedDay};


		/*--Thursday--*/


if(now.getDay() > 4 )
		{thurDiff = now.getDay() -4}

else if (now.getDay() <= 4 )
		{thurDiff = now.getDay() +3}

	else
		{thurDiff = 0};

	var newthurDay = now.getDate() - thurDiff;
	var thurMonth = monthName[now.getMonth()];
	var tMonth = mName[now.getMonth()];

if(newthurDay < 1)
		{thurMonth = monthName[now.getMonth() -1],
		 newthurDay = monthLength[now.getMonth() -1] + newthurDay,
		 tMonth = mName[now.getMonth() -1]};

if(newthurDay < 10)
		{tDay = "0" + newthurDay}
	else {tDay = newthurDay};

		/*--write--*/

document.write('<a href=' + "2012" + mMonth + mDay + ".htm" + '>Monday ' + monMonth + ' ' + newmonDay + '<\/a>');
document.write('<a href=' + "2012" + wMonth + wDay + ".htm" + '>Wednesday ' + wedMonth + ' ' + newwedDay + '<\/a>' );
document.write('<a href=' + "2012" + tMonth + tDay + ".htm" + '>Thursday ' + thurMonth + ' ' + newthurDay + '<\/a>' );
document.write('<a href="results.htm">More...<\/a>');

