
function Meer(nummer)
{
	var divID = "detail" + nummer;
	var plusID = "hoofd" + nummer;

	if(document.getElementById(plusID).src == "http://gepwnage.nl/img/plus.png")
	{
		/* uitklappen */
		document.getElementById(plusID).src = "http://gepwnage.nl/img/min.png";
		document.getElementById(divID).style.display = '';		
	}
	else
	{
		/* inklappen */
		document.getElementById(plusID).src = "http://gepwnage.nl/img/plus.png";
    document.getElementById(divID).style.display = 'none';
	}
}

alpha = 0;
alpha2 = 100;
eerstekeer = true;
wie = "";

function foto(naam)
{
  if(naam == wie){ return 0; }

  wie = naam;
	alpha2 = 100;
  fadeout();
}


function foto2(naam)
{
  
  document.getElementById('groepsfoto').style.filter = "alpha(opacity=0)";
  document.getElementById('groepsfoto').style.opacity = 0;
	document.getElementById('groepsfoto').src = "img/groepsfoto/"+naam+".jpg";

	setTimeout("fadein()",100);
  alpha = 0;

}

function fadein()
{
	alpha = alpha+5;
 
  document.getElementById('groepsfoto').style.filter = "alpha(opacity="+alpha+")";
  document.getElementById('groepsfoto').style.opacity = alpha/100;
  
  if(alpha < 100){ setTimeout("fadein()",25); }
}

function fadeout()
{
  alpha2 = alpha2-5;

  document.getElementById('groepsfoto').style.filter = "alpha(opacity="+alpha2+")";
  document.getElementById('groepsfoto').style.opacity = alpha2/100;

  if(alpha2 > 0){ setTimeout("fadeout()",15); } else { foto2(wie); }

}

