var layers = new Array('photo1','photo2','photo3','photo4','photo5','photo6','photo7','photo8','photo9','photo10','photo11');

function showPhoto(tab, number)
{
	var photo = new getPhoto("photo" + number);

	for(i = 0; i < layers.length; i++)
	{
		document.getElementById(layers[i]).style.display = (("photo" + number) == layers[i]) ? 'block':'none';
	}
	
	photo.style.display = ("photo" + number) ? 'block':'visible';
	//return false;
}

function getPhoto(name)
{
	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
}
