/**
 * simple slideshow with dojo
 */
dojo.require("dojo.NodeList-traverse");
var count = 0;
var currentItem = 1;
dojo.ready(function() {
  count = dojo.query("img", "aSlideshow").length;
  aSlideshowDesc(dojo.query(".aSActive").attr("alt"));
  setInterval("aSlideshow()", 5000);
});
function aSlideshow() {
  var active = dojo.query(".aSActive");
  var next = active.next("img");
  active.removeClass();
  if (next == "") {
    currentItem = 0;
    next = dojo.query("#aSlideshow img").first();
  }
  currentItem++;
  next.addClass("aSActive");
  aSlideshowDesc(next.attr("alt"));
}
function aSlideshowDesc(title) {
  dojo.byId("aSlideshowDesc").innerHTML = "&#160;&#160;" + title;
}
