var currentIndex=1;
var max=3;
function next()
{
	currentIndex+=1;
	if(currentIndex>max)
		currentIndex=1;
	var source="images/screenshots/screen"+currentIndex+".jpg";

	var image = document.getElementById("screenshot_img");
	image.src=source;
}

function previous()
{
	currentIndex-=1;
	if(currentIndex<1)
		currentIndex=max;
	var source="images/screenshots/screen"+currentIndex+".jpg";

	var image = document.getElementById("screenshot_img");
	image.src=source;
}

function setMax(theMax)
{
	max=theMax;
}

function toggleProductRow()
{
	$('product_list_tr').toggle();
}