﻿// JScript File
    var bannerImg1 = new Array();
    var bannerImgURL1 = new Array();

    /*------- Configuration -------- */
    /*Set time interval between image rotations*/
    var bannerTime1 = 8 ; // 2 - in seconds
    
    // Enter the names of the images below for 1st banner
    bannerImg1[0]="images/External header.png";
    bannerImgURL1[0]="AppIntgr.aspx";
    
    bannerImg1[1]="images/Chemistry_Output_Tables.PNG";
    bannerImgURL1[1]="ChemTables.aspx";
    
    bannerImg1[2]="images/Maps.PNG";    
    bannerImgURL1[2]="DataAnalysis.aspx";
    
    bannerImg1[3]="images/Graphs.PNG";
    bannerImgURL1[3]="TrendAnalysis.aspx";
    
    bannerImg1[4]="images/Chem QA2.PNG";
    bannerImgURL1[4]="ChemQA.aspx";
    
    bannerImg1[5]="images/Import.jpg";
    bannerImgURL1[5]="Import_Lab_Other_Data.aspx";
        
    /* NO NEED TO EDIT THE BELOW CODE */
    var newBanner1 = 0;
    var totalBan1 = bannerImg1.length;
    
    /* Call this function to trigger the image rotation to start*/
    function startBanner()
    {
      //  document.getElementById('manualPointer').style.display='none';
        cycleBan1();
    }
    
    function cycleBan1() 
    {
      newBanner1++;
      if (newBanner1 == totalBan1) 
        {
        newBanner1 = 0;
        }
      document.banner1.src=bannerImg1[newBanner1];
      /* COMMENT BELOW LINE OR CHANGE FOR MOUSE POINTER */
      document.banner1.style.cursor="pointer";
      document.banner1.onclick= function() { document.location =bannerImgURL1[newBanner1]; }
     
      // set the time below for length of image display
      // i.e., "4*1000" is 4 seconds
      setTimeout("cycleBan1()", bannerTime1*1000);
    }
