<!--   Script by Olivier Ausems
var ls = "n";	// language setting

//Preload the Images
if (document.images) {
  	if(!document.pics) document.pics=new Array();
    var i; 
	var a = new Array("frame-nw.gif", "frame-n.gif", "frame-title.gif", "frame-ne.gif", "frame-w.gif", "frame-e.gif", "frame-sw.gif", "frame-s.gif", "frame-se.gif", "plan.gif", "plana.gif", "1" + ls + ".gif", "1" + ls + "a.gif", "2" + ls + ".gif", "2" + ls + "a.gif", "3" + ls + ".gif", "3" + ls + "a.gif", "4" + ls + ".gif", "4" + ls + "a.gif", "5" + ls + ".gif", "5" + ls + "a.gif");
	for(i = 0; i < a.length; i++){ 
		document.pics[i] = new Image; 
		document.pics[i].src = imgPath + a[i];
		}
}

function buttonSyntax(sItem, sTitle){
	var sImg, sImgA;
	var sHeight = "30";

	if (sItem == "5"){
		sHeight = "31";
		}

	// Check with document.title to decide what button is current one.
	if (document.title == sTitle) {
		sImg = sItem + ls + "a.gif";
		sImgA = sImg;}
	else {
		sImg = sItem + ls + ".gif";
		sImgA = sItem + ls + "a.gif";}
	
	return '<img src="../images/' + sImg + '" width="178" height="' + sHeight + '" alt="' + sTitle + '" border="0" onMouseOver="changeImg(this, \'' + sImgA + '\')" onMouseOut="changeImg(this, \'' + sImg + '\')"></a>';
}

// Create the menu syntax
document.write('<a href="index.html">' + buttonSyntax("1", "Home") + '</a><br>');
document.write('<a href="chateau.html">' + buttonSyntax("2", "Le Petit Château") + '</a><br>');
document.write('<a href="cordial.html">' + buttonSyntax("3", "Villa Cordial") + '</a><br>');
document.write('<a href="route.html">' + buttonSyntax("4", "Route") + '</a><br>');
document.write('<a href="contact.html">' + buttonSyntax("5", "Contact") + '</a><br>');

// End of JavaScript -->