// Set initial variables

next = 1;
speed = 3800;
timer = "off";

function cycle() {
  if (document.images) {
    next = next + 1;
    if (next == tout.length+1) next = 1;
      document.images["toutgraphic"].src = tout[next].src;
	  setTimeout("cycle()",speed);
  }
}

function bannerlink() {
  document.location = toutlink[next];
}

function MakeArray(n) {
  this.length = n;
  for (var i = 1; i<=n; i++) {
    this[i] = new Image();
  }
  return this;
}

// These are the rotating links
toutlink = new Array(2);
toutlink[1] = "http://shop.scholastic.com/webapp/wcs/stores/servlet/ProductDisplay?storeId=21553&catalogId=21155&langId=-1&productId=60124&sa_campaign=internal_ads/usolveit/home";
toutlink[2] = "http://shop.scholastic.com/webapp/wcs/stores/servlet/ProductDisplay?storeId=21553&catalogId=21155&langId=-1&productId=60124&sa_campaign=internal_ads/usolveit/home";

// alt text for the touts

// This function loads the images once the rest of the page has loaded and starts the cycling function.
// When new images are put in, change the file names here

function kickstart() {
  if (document.images) {
  //This first array is for the banner/touts that would be rotating
    tout = new MakeArray(2);
	tout[1].src = "/usolveit/images/nav_join.gif";
	tout[2].src = "/usolveit/images/nav_join.gif";
  document.images["toutgraphic"].src = tout[1].src;
    if (timer=="off") setTimeout("cycle()",speed);
      timer = "on";
  }

}


<!--<a href=""><img src="/kids/images/gamesbig_balloonbust.jpg" alt="" name="toutgraphic" width="200" height="150" border="0" id="toutgraphic"></a>-->

