var action = 0;
var counter = 10;
	
function offText(counter) {
	text0.style.display = 'none';
	for (var x = 1; x <= counter; x++) {
		textID = eval('text' + x);
		textID.style.display = 'none';
		imageID = eval('image' + x);
		imageID.style.display = 'none';
	}
}

function overText(actionID,counter) { 
	action = 1;
	offText (counter);
    textID = eval('text'+actionID);
	textID.style.display = 'inline';
	imageID = eval('image'+actionID);
	imageID.style.display = 'inline';
}
	

function outText(counter) { 
	if (action == 1) {
		offText (counter);
		action = 0;
		text0.style.display = 'inline';
	}
}

function clickText(textID) { 
	action = 0;
}

function prices() {
	if (confirm('Selecting OK will open an Adobe PDF file in a new browser window,\nfrom this window you can choose to print or save a copy of the file\nto your computer.\n\nYou will need to have Adobe PDF Viewer installed to view this file.')) { return true; }
	else { return false; } 
}

if (document.images) {
	  accomodation0 = new Image();
	  accomodation0.src  = 'accomodation0.gif';
	  accomodation1 = new Image();
	  accomodation1.src = 'accomodation1.gif';
	  accomodation2 = new Image();
	  accomodation2.src = 'accomodation2.gif';
	  
	  features0 = new Image();
	  features0.src  = 'features0.gif';
	  features1 = new Image();
	  features1.src = 'features1.gif';
	  features2 = new Image();
	  features2.src = 'features2.gif';
	  
	  prices1 = new Image();
	  prices1.src  = 'prices1.gif';
	  prices0 = new Image();
	  prices0.src = 'prices0.gif';
	  
	  home0 = new Image();
	  home0.src  = 'home0.gif';
	  home1 = new Image();
	  home1.src = 'home1.gif';
	  home2 = new Image();
	  home2.src = 'home2.gif';
	}
	
	function change(Name,Image,No) {
		 if (!document.images) {}
	     else document.images[Name].src = eval(Image + No + '.src');
	}
