    /*
     * Program - SR Banner Rotator
     * File Name - banner_rotator.html
     * Author - Mohammad Ahsanul Haque Shovon
     * Web site - http://www29.websamba.com/shovon
     * Email - ahsanul_haque_shovon@yahoo.com
     * (C) ShuvoRim Pvt. Ltd.
     * All rights reserved.
     */


    var urlArray = new Array(5); //for URL's, increase size as necessary
    var banArray = new Array(5); //for banners, increase size as necessary
    var counter = 1;
    var url = "http://www.hit-sol.com"; //initial URL

    //add your necessary URL's
    urlArray[0] = "http://www.hit-sol.com";
    urlArray[1] = "http://www.final-cut-productions.com";
	urlArray[2] = "http://www.ryanphotoart.com";
	urlArray[3] = "http://www.jclinc.com";
	urlArray[4] = "http://www.mrincentives.com";


    if(document.images) //pre-load all banner images
    {
      for(i = 0; i < 5; i++)
      {
        banArray[i] = new Image(468, 60);
        banArray[i].src = "images/banners/banner" + (i+1) + ".jpg";
      }
    }

    function changeBanner() //banner changer function
    {
      if(counter > 4)
       counter = 0;

      document.banner.src = banArray[counter].src; //sets a new banner

      url = urlArray[counter]; //sets a new URL to the banner
      counter++; //increase the counter for the next banner
    }

    //calls the changeBanner() function every 5 seconds
    //change the timer as necessary (minutes * 60000) or (seconds * 1000)
    var timer = window.setInterval("changeBanner()", 6000);
