var days = new Array();
var msgs = new Array();

days[0] = "April 12, 2006";
msgs[0] = "<br>&#8226; 1923 - World premiere of The Shadow Of A Gunman by Sean O’Casey at the Abbey Theatre.<br>&#8226; 1960 - A broadcasting authority, Radio Éireann, is established to conduct national radio and television services.";

days[2] = "April 13, 2006";
msgs[2] = "<br>&#8226; 1742 - The world premiere of Handel’s Messiah at Mr. Neale’s Great Musick Hall, in Fishamble Street, Dublin. <br>&#8226; 1906 - Birth of Samuel Beckett in Foxrock, Co. Dublin.<br>&#8226; 1968 - Cliff Richard comes second in the Eurovision Song Contest with the Phil Coulter composition Congratulations. It subsequently outsells the winner throughout Europe.s";

days[3] = "April 14, 2006";
msgs[3] = "<br>&#8226; 1912 - The Titanic, the world’s largest ship built at Belfast’s Harland and Wolfe, hits an iceberg. She sinks the following day at 2.20 am.<br>&#8226; 1972 - Terry Wogan launches his first British radio show.";

days[4] = "April 15, 2006";
msgs[4] = "<br>&#8226; 1848 - The first ever public presentation of the Irish national flag, in Dublin’s Abbey Street.<br>&#8226; 1864 - The first Dublin Horse Show. ";

days[5] = "April 16, 2006";
msgs[5] = "<br>&#8226; 1752 - The first ever regular Dublin-Belfast stagecoach service.<br>&#8226; 1871 - Birth of playwright John Millington Synge in Rathfarnham, Dublin.";

days[6] = "April 17, 2006";
msgs[6] = "<br>&#8226; 1875 - Election of Charles Stewart Parnell as MP for Meath.<br>&#8226; 1969 - Bernadette Devlin is elected MP for Mid Ulster, standing as the Independent Unity candidate. <br>&#8226; 1915 - Death in Canterbury of Brother Walfrid Kerns, from Ballymote Co. Sligo, and the founding father of Glasgow Celtic football club. He was born in 1892.";

days[7] = "April 18, 2006";
msgs[7] = "<br>&#8226; 1870 - Birth in Dublin of Robert Tressell (born Noonan), author of The Ragged Trousered Philanthropists.<br>&#8226; 1949 - The formal declaration of the Republic of Ireland, and the country’s exit from the British Commonwealth.";

var months = new Array("", 
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);

var today = new Date(); // today
var mon = months[today.getMonth() + 1]; // month
var day = today.getDate(); // day
var year = today.getYear(); // year

function dateMsg() {
for (i = 0; i < days.length; i++) {
	tempdate = new Date(days[i]);
	tempmonth = months[tempdate.getMonth() + 1];
	tempday = tempdate.getDate();
	tempyear = tempdate.getYear();
	if (year == tempyear && mon == tempmonth && day == tempday)
		return("<div align=center class=headerbar><b>ON THIS DAY</b></div><b>" + day + " " + mon + "</b>" + msgs[i]); // returns day message
   	}
	return("&nbsp"); // returns default
}