// image slideshow by micron
// for more xanga scripts and help go to createblog.com

// set slideshow speed in seconds
var speed = 5;
// set transition duration in seconds (only for ie 5.5+)
var duration = 2;
// set transition effect (only for ie 5.5+)
var transition = 'progid:DXImageTransform.Microsoft.Fade(Duration='+duration+')';
var images = new Array();

// url to your images
images[0] = 'images/splash-1.jpg';
images[1] = 'images/splash-2.jpg';
images[2] = 'images/splash-3.jpg';
//magic number
numImages = 3;

// do not edit anything below this line
var preload = new Image();
for (var i = 0; i < images.length; i++) {
	preload[i] = new Image();
	preload[i].src = images[i];
}

var j = 0;
function run() {
	if(document.images.splash){
		if (document.all && document.images.splash.style) {
			document.images.splash.style.filter=transition;
			document.images.splash.filters[0].Apply();
		}
		document.images.splash.src = preload[j++].src;
		if (document.all && document.images.splash.style) { document.images.splash.filters[0].Play(); }
	}
	if (j == numImages) { j = 0; }
	setTimeout('run()', speed * 1000);
}
run();
