function changeImage () {
	var images = new Array();
	images[0] = 'url(images/gallery/gallery1.jpg) no-repeat';
	images[1] = 'url(images/gallery/gallery2.jpg) no-repeat';
	images[2] = 'url(images/gallery/gallery3.jpg) no-repeat';
	images[3] = 'url(images/gallery/gallery4.jpg) no-repeat';
	images[4] = 'url(images/gallery/gallery5.jpg) no-repeat';
	
	var messages_rand = Math.ceil(Math.random() * 4);
	var current_image = images[messages_rand];

	$('.img_right .image')
		.fadeTo(100, 0.5, function() {
			$(this).css('background', current_image);
			$(this).fadeTo(100, 1.0);
		})
	;
}

jQuery(function($) {

	$("#galleryCarousel")
		.jcarousel({
	        scroll: 3,
	        animation: 800
		})
	;
	$('.img_right a').css('background', 'url(images/home/1.jpg) no-repeat');
	setInterval("changeImage()", 5000);
	
});
