// JavaScript Document

function hoverSwap(imgObj){
	var fName = imgObj.src;
	var spot = fName.indexOf(".jpg");
	var first = fName.substring(0,spot);
	var last = fName.substring(spot);
	var newName = first + "_h" + last;
	return newName;
}

function offHoverSwap(imgObj){
	var fName = imgObj.src;
	var spot = fName.indexOf(".jpg");
	var first = fName.substring(0,(spot-2));
	var last = fName.substring(spot);
	var newName = first + last;
	return newName;
}

function imageSwap(imgSrc, imgDest, orient){
	document.getElementById(imgDest).src=imgSrc;
	if(orient){
		document.getElementById(imgDest).width="500";
		document.getElementById(imgDest).height="300";
	}else{
		document.getElementById(imgDest).width="200";
		document.getElementById(imgDest).height="300";
	}
}
