if (document.images ) {
	property_hover= new Image(72,48);
	property_hover.src='img/nav-property-hover.gif';
	property_off= new Image(72,48);
	property_off.src='img/nav-property.gif';

	plans_hover = new Image(44,48);
	plans_hover.src='img/nav-plans-hover.gif';
	plans_off= new Image(44,48);
	plans_off.src='img/nav-plans.gif';

	location_hover= new Image(77,48);
	location_hover.src='img/nav-location-hover.gif';
	location_off= new Image(77,48);
	location_off.src='img/nav-location.gif';

	contact_hover= new Image(72,48);
	contact_hover.src='img/nav-contact-hover.gif';
	contact_off= new Image(72,48);
	contact_off.src='img/nav-contact.gif';
}
function swap(img,swapImg) {
	if (document.images) {
		document[img].src= swapImg.src;
	}
}
function swapSrc(img, src) {
	if(document.images)
		document[img].src=src;
}
function aerialMap() {
    if (document.all) {
	    document.getElementById('main').style.background = 'transparent url(img/img-location-aerial.jpg) no-repeat top left;';
    } else {
        document.getElementById('main').style.backgroundImage = 'url(img/img-location-aerial.jpg)';
    }
    
	if(document.images) {
		document['the_town'].src='img/nav-location-the_town-link.gif';
		document['aerial_map'].src='img/nav-location-aerial_map.gif';
	}
}
function theTown() {
    if (document.all) {
	    document.getElementById('main').style.background = 'transparent url(img/img-location-town.jpg) no-repeat top left;';
    } else {
        document.getElementById('main').style.backgroundImage = 'url(img/img-location-town.jpg)';
    }
	if(document.images) {
		document['the_town'].src='img/nav-location-the_town.gif';
		document['aerial_map'].src='img/nav-location-aerial_map-link.gif';
	}
}
function plansDrawing(x) {
	if(document.images) {
		document['image'].src="img/img-plans" + x + "-drawing.jpg";
		document['drawing'].src="img/nav-plans_" + x + "-drawing.gif";
		document['view'].src="img/nav-plans_" + x +  "-view-off.gif";
	}	
}
function plansView(x) {
	if(document.images) {
		document['image'].src="img/img-plans" + x +"-view.jpg";
		document['drawing'].src="img/nav-plans_" + x + "-drawing-off.gif";
		document['view'].src="img/nav-plans_" + x + "-view.gif";
	}
}
