//---------------------------------------------------
// Function: swapImg
// Swap sketch/color images
//
// Parameters:
//		image - the image whose image we want to swap
//		option1 - the source of the color version
//		option2 - the source of the sketch version
//---------------------------------------------------
function swapImg( image, option1, option2 ) {

	// If the current source is option 1, swap it for option 2
	if( ( document.images[ image ].src ).indexOf( option1 ) > -1 ) {
		document.images[ image ].src = option2;
	}

	// Otherwise, swap it for option 1
	else {
		document.images[ image ].src = option1;
	}
}
