jQuery(function() {
	window.setTimeout(artworkSwitch, 10000);
});

function artworkSwitch() {
	jQuery(".slideshow:hidden").load("artworkSlideshow.ajax.php", function() {
		jQuery("img", this).bind("load", imgLoad);
		tb_init(".slideshow:hidden a.thickbox");
	});
}

function imgLoad() {
	objFade = jQuery(".slideshow:visible");
	objCache = jQuery(".slideshow:hidden");
	objFade.css("position", "absolute");
	objCache.show().css("opacity", "1.0").css("position", "static");
	objFade.fadeOut(2000, function() { jQuery(this).hide(); });
	window.setTimeout(artworkSwitch, 10000);
}