slide_x = 1;
cat_photo_size = 0;
$(document).ready(function(){
	cat_photo_size = $('.cat_photo').width();
	i = setInterval('slide_images()', 50);
});

function slide_images() {
	$('.cat_container .cat_photo').each(function(){
		x_str = $(this).css('left');
		x = parseInt(x_str.substr(0, x_str.length - 2)) - 1;
		if (x == cat_photo_size * -1)
			x = cat_photo_size * $(this).parent().find('.cat_photo').length - cat_photo_size;
		$(this).css('left', x + 'px');
	});
}