/* Image Swap - Note the src locations & required file names... */

var tempimg = '';
var tempext = '';

function fImg(img) {
	if (img) {
		var ext = document[img].src.substring(eval(document[img].src.length-4),document[img].src.length);
		document[img].src = 'images/'+ img +'_on'+ ext;
		tempimg = img;
		tempext = ext;
	}
	else {
		document[tempimg].src = 'images/'+ tempimg + tempext;
	}
}