var min = 0;
var max = $(".frontimages").size() - 1;
var now = 0;

function showcurrent(id)
{	
	$(".frontimages").hide();
	$("#big" + id).fadeIn(800);
}

function switchimages(x)
{
	if(x>max) {
		x = min;
	}
	showcurrent(x);
	var next = x +1;
	setTimeout("switchimages(" + next + ")", 6500);
}

switchimages(0, 0);