<!--
function KS_NewImage() {
this.name	= KS_NewImage.arguments[0];this.imgname = KS_NewImage.arguments[1];
this.current = 0;this.images = new Array;this.timer = null;
for (var i=0; i < (KS_NewImage.arguments.length - 2); ++i)	this.images[i] = KS_NewImage.arguments[i+2];

this.replace   = replaceNewImage;this.slideshow = slideshowNewImage;this.stopshow  = stopshowNewImage;this.execSlide  = execSlideNewImage;
this.init		= initNewImage;}//KS_NewImage
function initNewImage(slide, secs) {	this.replace();		if (slide) this.slideshow(secs);}//KS_loadNextImage();

function replaceNewImage() {	var imgCookie = new Cookie(document, "imageCookie", 8760);
	if (document.cookie) { imgCookie.load(); this.current = imgCookie["lastImg"]; }//if 
	else { this.current = -1;}//else	
	this.current = ((parseInt(this.current) + 1) % this.images.length);	MM_swapImage(this.imgname,'',this.images[this.current],1);	imgCookie["lastImg"] = this.current;	imgCookie.store();
}//replaceNewImage

function slideshowNewImage(secs) {	this.timer = setTimeout(this.name + ".execSlide(" + secs + ")", (secs * 1000));}//slideshowNewImage();

function execSlideNewImage(secs) {	clearTimeout(this.timer);
	this.replace();	this.timer = setTimeout(this.name + ".execSlide(" + secs + ")", (secs * 1000));}//execReplaceNewImage
function stopshowNewImage() {	clearTimeout(this.timer);}//slideshowNewImage();
-->