// 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] = 'pontiac_sol-1.gif';
images[1] = 'pontiac_sol-2.gif';
images[2] = 'pontiac_sol-3.gif';

// 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.all) {
		document.images.pontiac.style.filter=transition;
		document.images.pontiac.filters[0].Apply();
	}
	document.images.pontiac.src = preload[j++].src;
	if (document.all) { document.images.pontiac.filters[0].Play(); }
	if (j == images.length) { j = 0; }
	setTimeout('run()', speed * 1000);
}

