
function togglePhoto(photoID,imageDir,imageName,smallWidth,smallHeight,largeWidth,largeHeight) {

//	Some versions of IE return the width including padding. So comparing to exact width of
//	small photo will not always work.

	smallWidthPlusBit = smallWidth + 10;
	
	if ( document.getElementById(photoID).width < smallWidthPlusBit )
	{
		document.getElementById(photoID).src=imageDir + imageName + "-big.jpg";
		document.getElementById(photoID).width=largeWidth;
		document.getElementById(photoID).height=largeHeight;
	}
	else
	{
		document.getElementById(photoID).src=imageDir + imageName + ".jpg";
		document.getElementById(photoID).width=smallWidth;
		document.getElementById(photoID).height=smallHeight;
	}

}


