var navImageDir = "images/nav/";

// function used for swapping images on the home page

function swapThis(where,what) {
	var theSrc = eval("document." + where);
	var theUrl = navImageDir + where + "_" + what + ".jpg";
	theSrc.src=theUrl;
}

// function to open the gallery window

function launchGallery(whichClient) {
	var theUrl = "gallery/" + whichClient + ".html";
	window.open(theUrl, "gallery", "width=600, height=500, scrollbars=no");
}

// function to open the contact Me window

function launchContact() {
	var theUrl = "contact.html";
	window.open(theUrl, "contact", "width=400, height=200, scrollbars=no");
}

// Close Button Controls
var closeOnURL = "images/close_on.gif";
var closeOffURL = "images/close_off.gif";

function swapClose(whichImg, doWhat) {
	if(doWhat == "on") {
		whichImg.firstChild.src = closeOnURL;
	} else {
		whichImg.firstChild.src = closeOffURL;
	}
}

function closeWin() {
	window.close();
}
