﻿function enlarge(elem) {
	document.getElementById("keyImage").setAttribute('src', elem.getAttribute('src'));
	var currentImage = document.getElementById("keyImage").getAttribute('src');
	var subtitle = '';
	
	switch (currentImage) {
		case 'images/fernilea359.jpg':
			subtitle = 'Come and visit this newly established Bed and Breakfast in the picteresque hamlet of Fernilea';
			break;
		case 'images/conservatory.jpg': 
			subtitle = 'Be sure to bring your appetite, as a full Scottish Breakfast awaits in the Dining Conservatory';
			break;
		case 'images/bedroom.jpg':
			subtitle = "Our guests enjoy en-suite bedrooms and a comfortable night's rest"; 
			break;
		case 'images/twin.jpg':
			subtitle = "Families welcome";
			break;
		case 'images/patio.jpg':
			subtitle = "Relax on the patio in the evening";
			break;
		case 'images/talisker1.jpg':
			subtitle = "Take a tour of the world famous Talisker whisky distillery";
			break;
		case 'images/dunvegan_castle.gif':
			subtitle = "Sample some of the local history by visiting the spectacular Dunvegan Castle";
			break;
		case 'images/mountain_climbers.gif':
			subtitle = "With easy access to the Cuillin Mountain range, climbers will not be disappointed";
			break;
		case 'images/glenbrittle.gif':
			subtitle = "Glenbrittle serves as the perfect base for climbing and walking in the Cuillins";
			break;
		case 'images/carbost2.jpg':
			subtitle = "Enjoy the views over Loch Harport";
			break;
		case 'images/snow.jpg':
			subtitle = "At the foot of the spectacular Cuillin mountains";
			break;
		case 'images/fiscavaig.jpg':
			subtitle = "And take in the beautiful scenery around Loch Bracadale";
			break;
		default:
			subtitle = 'Come and visit this newly established Bed and Breakfast in the picteresque hamlet of Fernilea';
			break;
	}
	document.getElementById("mainSubtitle").innerHTML = subtitle;	
}




