function setMenu()
{
	if (sec)
	{
		var section, obj, objhref;
		section = 'n'+sec;
		objhref = 'nav_'+sec;
		obj = document.getElementById(section);
		obj.src = "/vimages/nav_"+section+"_on.gif";
		obj.onmouseout = null;
		document.getElementById(objhref).onmouseout = null;
	}
}

// Preload nav and rollovers
var iPath = '/vimages/nav_';
var iExt = 'gif';
var suffix = new Array('on', 'off');

function preLoad()
{
  if(document.images)
  {
    var argLen = arguments.length;
    for(var i = 0; i < argLen; i++)
    {
      var arg = arguments[i];
      var sufLen = suffix.length;
      for(j = 0; j < sufLen; j++)
      {
        var suf = suffix[j]
        self[arg + '_' + suf] = new Image();
        self[arg + '_' + suf].src = iPath + arg + '_' + suf + '.' + iExt;
      }
    }
  }
}


function rollOver(iName, iState)
{
  if(document.images && self[iName + '_' + iState])
  {
    document.getElementById(iName).src = self[iName + '_' + iState].src;
  }
}

function load()
{
  preLoad('nhome', 'ncottages', 'namenities', 'nlocation', 'nthingstodo', 'nteam', 'nnews', 'ncontact', 'nrequest','nfaq','nrentals');
  setMenu();
}

window.onload = function() 
{
load();
};