
function makevisible(cur,which)
{
	var image = document.getElementById('iimg|' + cur);	

	strength=(which==0)? 1.0 : 0.3	


	if(typeof image.style.opacity == "string") 
		// Safari, Opera etc.
		image.style.opacity = strength;
	else if(typeof image.style.MozOpacity == "string") 
		// Mozilla
		image.style.MozOpacity = strength;
	else
		//IE
		if (which == 0)
		{
			strength = 1;
		}
		else if (which == 0.3)
		{
			strength = .3;
		}

		image.style.filter = "alpha(opacity = "+strength*100+")";


}
/*

function makevisible(cur,which)
{		
	// Copied straight from instructors... NOT EFFICIENT
	
	var classes = document.getElementsByTagName("img");	
	
	// Traverse all the images..	
	for (var i=0; i<classes.length; i++)
	{		
		var myClass = classes[i].className;
		
		if(myClass == 'iimg|' + cur)
		{
			strength=(which==0)? 1 : 0.5	
			
			
			if(typeof classes[i].style.opacity == "string") 
				// Safari, Opera etc.
				classes[i].style.opacity = strength;
			else if(typeof classes[i].style.MozOpacity == "string") 
				// Mozilla
				classes[i].style.MozOpacity = strength;
			else
				//IE
				if (which == 0)
				{
					strength = 1;
				}
				else if (which == 0.5)
				{
					strength = .5;
				}
				
				classes[i].style.filter = "alpha(opacity=30); -moz-opacity:0.3; opacity:.30;";
		}	
	}
	
	//alert(document.getElementById(cur).className);
	
	//if (which == 0)
	//{
	//	document.getElementById(cur).className = "buthover";
	//}
	//else
	//{
	//	document.getElementById(cur).className = "but";
	//}
	//alert(document.getElementById(cur).className);
}
*/
