var imgDir = "images";
var lgPrefix = "large_prop_";
var suffix = ".jpg";
var imgName = "largeImg";

// Function to swap a large image based on the thumbnail clicked.
// idx = Index for image to load
function swapImg(idx) {
	if(document.images) {
		var imgSource = lgPrefix + idx + suffix;
		document.images[imgName].src = imgSource;
	}
}

var imgDir = "images";
var planPrefix = "floor_plan_";
var plansuffix = ".gif";
var planName = "FloorPlanImg";

// Function to swap floor plans based on clicking button.
// ipx = Index for image to load
function swapPlan(ipx) {
	if(document.images) {
		var planSource = planPrefix + ipx + plansuffix;
		document.images[planName].src = planSource;
	}
}
