//add graphic on right for wide screens
if(window.screen.width > 1000){

//if the screen res. width is superior at 1000px run the script

document.write('<div class="logo_right"><img src="library/logo/logo_right.jpg" width="217" height="174" alt="connemara Country Cottages"></div>');

}




// date

function displayDate()
{
	//create a date object and store it in d
	var d = new Date();

	var days = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
	var months = new Array('January', 'February','March', 'April', 'May', 'June','July','August','September','October','November','December');

	//get the current day e.g. Monday
	var dayname = days[d.getDay()];

	//get the current month e.g. January
	var month = months[d.getMonth()];

	//get the current date e.g. 23
	var day = d.getDate();

	//get the year e.g. 2003
	var year = d.getYear();
	
	//get the date extension
	var ext="";
	if (day==1 || day==21 || day==31)
	{
		ext="st";
	}
	else if (day==2 || day==22)
	{
		ext="nd";
	
	}
	else if (day==3 || day==23)
	{
		ext = "rd";
	
	}
	else
	{
		ext="th";
	
	}

	//create a string containing the date
	var s = month + " " +   day  + ext + " "  + year;
	
	//return the string date
	return s;
}

