var randomQuote = new Array()
/* --------------cycling banner of comments-------------- */

var randomQuote = new Array(
"comment 1",
"comment 2",
"comment 3"
)

function randomComment()
{
/*
  var arrayCount = randomQuote.length
  var randomNum = Math.floor((Math.random() * arrayCount))
  document.comment.src = randomQuote[randomNum]
  setTimeout("randomComment()",1 * 15000)  
  */
  document.write("This is some javascript!");
}


/* --------------cycling banner of schools served-------------- */

var adImages = new Array(
"../leftSideGraphics/button3MM.gif",
"../leftSideGraphics/button3MM1.gif",
"../leftSideGraphics/button3MM2.gif",
"../leftSideGraphics/button3MM3.gif",
"../leftSideGraphics/button3MM4.gif",
"../leftSideGraphics/button3MM5.gif")

thisAd = 0
imgCt = adImages.length

function rotate()
{
  if(document.images)
  {
    thisAd++
    if(thisAd == imgCt)
    {
      thisAd = 0
      document.adBanner.src = adImages[thisAd]
      setTimeout("rotate()",1 * 500)    //2000
    }
    else
    {
      if(thisAd == (imgCt - 1))
      {
        document.adBanner.src = adImages[thisAd]
        setTimeout("rotate()",1 * 5000)   //10000    
      }
      else
      {    
        document.adBanner.src = adImages[thisAd]
        setTimeout("rotate()",1 * 50)    //200
      }
    }
  }
}





