// Created from the JavaScript SlideShow ScriptWriter http://www.codeave.com
var pic_num = 0;
//
var sho_pix = new Image();
sho_pix.src = pix[pic_num];
function startshow(mysleep) {	var sleep;
	if (mysleep > 0) {	sleep=mysleep+1000;	} else {	sleep=9000;	}
	setInterval("slideshow()", sleep);
}
function slideshow() {
	pic_num++;
	if (pic_num == pix.length) {
		pic_num = 0;
	}
	sho_pix.src = pix[pic_num];
	document["rot_pix"].src = sho_pix.src;
}
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}
function restartshow() {	var sleep=60000;
	setInterval("slideshow()", sleep);
}
addLoadEvent(restartshow);
addLoadEvent(function() {
	setInterval("slideshow()", 60000);
}
);
//<a HREF="javascript:void(0);"onClick="window.location.reload(); startshow('60000');"><IMG name="rot_pix" SRc=".pic.jpg" alt="" align=left border=0></a>
