//########## Image swapping function
function swap(imagename, status)
{
self.onerror = function() { location.reload();} //netscape 6 rollover bug fix
var ext;	
if (status == 0) {ext = '.src';} 
if (status == 1) {ext = '_on.src';}
if (document.images) { document [imagename].src = eval(imagename + ext); } //make the change...
}

//########## Preload images
//main nav
home_rentals = new Image(31,32); home_rentals.src = "images/home_rentals_on.gif";
home_rentals_on = new Image(31,32); home_rentals_on.src = "images/home_rentals.gif";
home_skiing = new Image(40,32); home_skiing.src = "images/home_skiing_on.gif";
home_skiing_on = new Image(40,32); home_skiing_on.src = "images/home_skiing.gif";
home_yacht = new Image(36,32); home_yacht.src = "images/home_yacht_on.gif";
home_yacht_on = new Image(36,32); home_yacht_on.src = "images/home_yacht.gif";
home_brochure = new Image(34,32); home_brochure.src = "images/home_brochure_on.gif";
home_brochure_on = new Image(34,32); home_brochure_on.src = "images/home_brochure.gif";
//footer nav
f_nav_villa = new Image(22,26); f_nav_villa.src = "images/f_nav_villa_on.gif";
f_nav_villa_on = new Image(22,26); f_nav_villa_on.src = "images/f_nav_villa.gif";
f_nav_skiing = new Image(28,26); f_nav_skiing.src = "images/f_nav_skiing_on.gif"
f_nav_skiing_on = new Image(28,26); f_nav_skiing_on.src = "images/f_nav_skiing.gif"
f_nav_yacht = new Image(26,26); f_nav_yacht.src = "images/f_nav_yacht_on.gif"
f_nav_yacht_on = new Image(26,26); f_nav_yacht_on.src = "images/f_nav_yacht.gif"
f_nav_brochure = new Image(26,26); f_nav_brochure.src = "images/f_nav_brochure_on.gif"
f_nav_brochure_on = new Image(26,26); f_nav_brochure_on.src = "images/f_nav_brochure.gif"
//email page to a friend link...
f_email = new Image(20,26); f_email.src = "images/f_email_on.gif"
f_email_on = new Image(20,26); f_email_on.src = "images/f_email.gif"