

function imgBw(img) {
	imgUrl = img.src;
	imgUrl = imgUrl.replace("small.png","small-bw.png");
	img.src = imgUrl;
}

function imgClr(img) {
	imgUrl = img.src;
	imgUrl = imgUrl.replace("-bw", "");
	img.src = imgUrl;
}

function refThumbOver(div, headId, imgId) {
	div.style.backgroundColor = '#606060';
	var headSpan = document.getElementById(headId);
	headSpan.style.color = '#202020';
	headSpan.style.backgroundColor = '#e0e0e0';
	var img = document.getElementById(imgId);
	imgClr(img);
}

function refThumbOut(div, headId, imgId) {
	div.style.backgroundColor = '#404040';
	var headSpan = document.getElementById(headId);
	headSpan.style.color = '#404040';
	headSpan.style.backgroundColor = '#d0d0d0';
	
	var img = document.getElementById(imgId);
	imgBw(img);
}

function showLoadingImg(imgId) {
	document.getElementById(imgId).style.visibility = "visible";
}




