

	var anum=1;
	var direction;
	var direction2;

function scrollPhotoParts(where)
{
 if (where=='goback')
 	{
		$("#imgBack").hide();
		direction = 'right';
		direction2 = 'left';
		nextanum=parseInt(anum)-1;
			if (anum<1)
				{ 
					nextanum=5;
					anum=1;
				}
	}
 if (where=='gonext')
 {
	direction = 'left';
	direction2 = 'right';
	$("#imgNext").hide();
	nextanum=parseInt(anum)+1;
		if (anum>=6)
			{ 
				nextanum=1;
				anum=5;
			}
}
 
var adiv='tablePhotoPart'+anum;
$("#tablePhotoPart"+anum).hide("slide", { direction: direction }, 200);
  
if (where=='goback')
 {
	anum = anum - 1;
		if (anum<1)
			{ 
				nextanum=5;
				anum=5;
			}
 }
 if (where=='gonext')
	 {
		anum = anum +1;
			if (anum>=6)
					{ 
						nextanum=1;
						anum=1;
					}

	 }

var  t =	setTimeout ( "call(nextanum, direction2)", 300 );
}

function call(nextdiv,dir)
  {
   $("#tablePhotoPart"+nextdiv).show("slide", { direction: dir }, 200); 
	setTimeout ( "showNextPrev()", 201 );
  }
function showNextPrev()
 {
	 $("#imgNext").show();
	 $("#imgBack").show();
 
 }
