<!-- Hide code from older browsers


// Function to display the date
 
 	d = new Array(
	"Sunday",
	"Monday",
	"Tuesday",
	"Wednesday",
	"Thursday",
	"Friday",
	"Saturday"
	);
	m = new Array(
	"January",
	"February",
	"March",
	"April",
	"May",
	"June",
	"July",
	"August",
	"September",
	"October",
	"November",
	"December"
	);
 

//
// display the current date
//
function DisplaytheDate() {
	
	today = new Date();
	day = today.getDate();
	year = today.getYear();
	
	if (year < 2000)    // Y2K Fix, Isaac Powell
	year = year + 1900; // http://onyx.idbsu.edu/~ipowell
	
	end = "th";
	if (day==1 || day==21 || day==31) end="st";
	if (day==2 || day==22) end="nd";
	if (day==3 || day==23) end="rd";
	day+=end;
		document.write(day+" "); document.write(m[today.getMonth()]+" " + year)+"&nbsp;&nbsp;";
	
} 

//
// send email avoiding loads of spam
//
function mailme() {
var name = "contact";
var domain = "rmbuildersandcontractors.co.uk";
var fulldomain = "rmbuildersandcontractors.co.uk?subject=Online Customer Enquiry";
document.write('<a href=\"mailto:' + name + '@' + fulldomain + '\">Contact us by email');
document.write('</a>');
}

//
// display the larger image for the thumbnail
//
function show_image(img) {
	if (document.images) {
		document.bimg.src ="images/"+img+".jpg"
	}
}

//
// highlight the edge of each image on the project page
//
function sb(m) {

	if ( m == 'new builds' ) {
		document.getElementById('mountclogg').className='WhiteBorder';
		document.getElementById('merryfield').className='BlueBorder';
		document.getElementById('perynrd').className='BlueBorder';
		document.getElementById('weekfarm').className='WhiteBorder';
		document.getElementById('wilminstone').className='BlueBorder';
	}
	
	if ( m == 'renovations' ) {
		document.getElementById('mountclogg').className='BlueBorder';
		document.getElementById('merryfield').className='WhiteBorder';
		document.getElementById('perynrd').className='WhiteBorder';
		document.getElementById('weekfarm').className='BlueBorder';
		document.getElementById('wilminstone').className='WhiteBorder';
	}
	
}

// Stop hiding code -->



