<!-- 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 = "holidayhomedevon.co.uk";
var fulldomain = "holidayhomedevon.co.uk?subject=Online Enquiry (The Parlour)";
document.write('<font color="#FF9933"><a href=\"mailto:' + name + '@' + fulldomain + '\">');
document.write(name + '@' + domain + '</a></font>');
}

//---------------------------
function BrowserSniffer() {
  if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
  else if (document.all) type="IE";
  else if (document.layers) type="NN";
  else if (!document.all && document.getElementById) type="MO";
  else type = "IE";
}

//---------------------------
function ChangeContent(id, str) {

  if (type=="IE") {
    document.all[id].innerHTML = str;
  }
  if (type=="NN") {
    document.layers[id].document.open();
    document.layers[id].document.write(str);
    document.layers[id].document.close();
  }
  if (type=="MO" || type=="OP") {
    document.getElementById(id).innerHTML = str;
  }
}

//---------------------------
function swapImage(index) {
//*****************************************************
//Configuration information

images = new Array(7); //number of images

images[0] = "<img height=\"282\" src=\"images/kitchen.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[1] = "<img height=\"282\" src=\"images/lounge.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[2] = "<img height=\"282\" src=\"images/bedroom.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[3] = "<img height=\"282\" src=\"images/twin-bedroom.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[4] = "<img height=\"282\" src=\"images/view1.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[5] = "<img height=\"282\" src=\"images/view2.jpg\" width=\"400\" align=\"left\" border=\"0\">";
images[6] = "<img height=\"282\" src=\"images/outside.jpg\" width=\"400\" align=\"left\" border=\"0\">";

//*****************************************************

  type = "IE"; //default setting
  BrowserSniffer(); //find out which browser
  choosenImage = images[index];
  ChangeContent("box0", choosenImage);
}


// Stop hiding code -->



