﻿function FchangeSlide() {this.prior = this.slide;this.i += 1;if (this.i >= this.n) this.i = 0;this.slide = $(x[this.i]);if (this.prior != null) new Effect.Fade(this.prior, {duration: 1.0 });new Effect.Appear(this.slide, { duration: 1.0 });}function Show(i, n, slide, prior) {this.i = i;this.n = n;this.slide = slide;this.prior = prior;this.changeSlide = FchangeSlide;}function runSlides(show) {timr = setInterval("show.changeSlide()", 4000);}var show;document.observe("dom:loaded",initPage);function initPage() {x = document.getElementById("Rotator").getElementsByTagName("div");show = new Show(1,x.length,$(x[0]),null);if (x.length > 0) runSlides(show);}
