//Javascript document

//function to display a photo
function showPhoto (whichPhoto) {
if (document.getElementById) {
	document.getElementById('placeholder').src = 'images/square_t.gif';
	document.getElementById('placeholder').src = whichPhoto.href;
	if (whichPhoto.title) {
		document.getElementById('caption').childNodes[0].nodeValue = whichPhoto.title;
	}
	else {
		document.getElementById('caption').childNodes[0].nodeValue = whichPhoto.childNodes[0].nodeValue;
	}
	return false;
	}
	else {
		return true;
	}
}
//rollover and caption swap for overview pages
function showProject(whichProject,whichCaption) {
if (document.getElementById) {
	document.getElementById('placeholder').src = 'images/square_t.gif';
	document.getElementById('placeholder').src = eval(whichProject + ".src");
	document.getElementById('caption').childNodes[0].nodeValue = whichCaption;
	}
else {
	return true;
	}
}

//separate image swap function, not in use
function chgImg(imgField, newImg) {
	if (document.images) {
		document[imgField].src = eval(newImg + ".src");
	}
}

//separate caption swap function, not in use
function chgCaption(whichCaption) {
	if (document.getElementById) {
		document.getElementById('caption').childNodes[0].nodeValue = whichCaption;
	}
}

