function opacity(link) {
	var opacity = 50;
	var img = link.firstChild;
	if (typeof img.style.filter != "undefined") {
		img.style.filter = "alpha(opacity=" + 100 + ")";
		link.onmouseout = function mouseout() {
			img.style.filter = "alpha(opacity=" + opacity + ")";
		}
	}
	if (typeof img.style.opacity != "undefined") {
		img.style.opacity = 1;
		link.onmouseout = function mouseout() {
			img.style.opacity = opacity/100;
		}
	}
}