
x=1;
pics=new Array("back1.jpg","back2.jpg","back3.jpg","back4.jpg");
z=pics.length;

function goforit(){
	changeit('mother',pics[x]);
	x++;
	if(x==z){
		x=0;
	}
}

function changeit(id,pic){
	$("#mothermask").fadeIn('slow', function(){
		$('#mother').html("<img src='img/"+pic+"' width=100%>");
		$('#mothermask').fadeOut('slow');
	});
}


$(document).ready(function () {
	intervl = setInterval("goforit()",8000);
});

