// Function to use Shiftzoom script to zoom and pan around photo
function zoom(direction)
{
	thePhoto = document.getElementById("photo");

	if (direction == "in")
	{
		shiftzoom.kenburns(thePhoto,[50,50,100,1,10,10]);
		document.getElementById("zoom_in").disabled = true;
		document.getElementById("zoom_out").disabled = false;
	}
	else if (direction == "out")
	{
		shiftzoom.kenburns(thePhoto,[0,0,0,1,10,10]);
		document.getElementById("zoom_in").disabled = false;
		document.getElementById("zoom_out").disabled = true;
	};
};

// Function to use Shiftzoom to change photo image
function changePhoto(filename)
{
 	shiftzoom.source(document.getElementById("photo"),filename,false);
	shiftzoom.zooming(document.getElementById("photo"),0);
	document.getElementById("zoom_in").disabled = false;
	document.getElementById("zoom_out").disabled = true;
	return false;
};


