// JavaScript Document

var a = total - 1;
var b = 0;
function changePicture(counter)
{
	if(counter < total)
		{
			if(counter == 0 ){$("#name_sp_"+a).hide();}
			b = counter - 1;
			$('#name_sp_'+b).hide();
			$('#name_sp_'+counter).show("slow");
			counter++;
			CallSwitchPic=window.setTimeout("changePicture("+counter+")",4000); 
		}
	else
		{
				changePicture(0);
		}	
}