function slideshow(e) {
	if (typeof(e)=='string') e = document.getElementById(e);
	if (e) show(1);
}
function show(n) {
	document.images.slide.src = '/images/slide'+n+'.jpg';
	window.setTimeout('next('+n+')', 5000);
}
function next(n) {
	show((++n>5)?1:n);
}
function previous(n) {
	show((--n<1)?5:n);
}
function first() {
	show(1);
}
function last() {
	show(5);
}