var current_image = 1;

var total_images = 12;

var images_cache = new Array;

function init_slideshow()

{

	for (i = 1; i <= total_images; i++) {

		images_cache[i] = new Image;

		images_cache[i].src = 'pics/b' + i + '.jpg';

	}

	self.setTimeout('slideshow()', 5000);

}

function slideshow()

{

	current_image++;

	if (current_image > total_images)

		current_image = 1;

	document.getElementById('content').style.background = 'url(pics/b' + current_image + '.jpg) no-repeat 0% 31px';

	self.setTimeout('slideshow()', 5000);

}

