function switchPic() 
{
		if (!document.getElementById("picholder")) return true;
		var picholder = document.getElementById("picholder");
		picholder.setAttribute("src", flipped[y-1].src);
		var tempspan = document.getElementById("itemdescription");
		tempspan.firstChild.nodeValue = y;
		
		return false;
}

function switchPicRight() 
{
		y+=1;
		if (y > numpics) y = 1;
		switchPic();
		return false;
}

function switchPicLeft() 
{
		y-=1;
		if (y < 1) y = numpics;
		switchPic();
		return false;
}

