  imageLinkPrefix1 = "/images/graph_rotate/graphs/";

  bannerImages1    = new Array(
"2002_08_07-Aaron_Wiegand_hmpg.jpg", 
"2002_08_07-Aaron_Wiegand2_hmpg.jpg", 
"3DBar1_hmpg.jpg", 
"3DPieChart_hmpg.jpg", 
"AlbertTomko_new_hmpg.jpg",
"box1_hmpg.jpg",
"BoxChart_hmpg.jpg",
"CharlesKibby_hmpg.jpg",
"Choe_hmpg.jpg",
"Contour_hmpg.jpg",
"dobson_chris_stack_hmpg.jpg",
"ErrorBar1_hmpg.jpg",
"gardner_james_curvecmp_hmpg.jpg",
"graph_floating_column_hmpg.jpg",
"graph_gallery_area2_hmpg.jpg",
"graph_gallery_bubble+cmap_hmpg.jpg",
"graph_gallery_fill_area_hmpg.jpg",
"graph_gallery_polar_hmpg.jpg",
"graph_gallery_vert_drop_line_hmpg.gif",
"graph_gallery_xyerror_hmpg.jpg",
"graph_stack_col_messing_terry_hmpg.jpg",
"HiLoClose1_hmpg.jpg",
"Histo_hmpg.jpg",
"hoffman_jenny_fitxwaterfall_hmpg.jpg",
"Hofstein_hmpg.jpg",
"KevinTeed_hmpg.jpg",
"Kooij_hmpg.jpg",
"KristianMolhave_hmpg.gif",
"LinearFit1_hmpg.jpg",
"mickelson_hmpg.jpg",
"water_hmpg.jpg");

  bannerTitles1    = new Array(
"2D Custom Panel Graph Template with Line and Column Plots",
"2D Polar (Windrose) Graph",
"3D Bar Graph",
"3D Pie Graph",
"Contour Graph with Map Overlay",
"Box Chart",
"Diamond Box Chart with Column Scatter Plot",
"2D Panel Graph with Line Plots",
"2D Waterfall Graph",
"Contour Graph",
"2D Three Row Stack Panel Graph with Fill Area Plots",
"Column and Scatter Graphs with Error Bars",
"2D Multiple Line and Scatter Plot Graph",
"2D Floating Column Graph",
"2D Two Panel Area Graph with multiple Area plots",
"2D Bubble + Color Mapped Graph of Earthquake Data",
"2D Fill Area graph with Two Sets of Fill Area plots",
"2D Polar Chart",
"2D Vertical Drop Line Graph using Spherical Symbols",
"2D XY Error Graph with Multiple Data Plots",
"2D Stack Column Graph",
"High-Low-Close Plot",
"Histogram Graph",
"2D Multiple Line and Scatter Plot Graph",
"2D Line Graph",
"3D Graph with projected Drop Lines",
"3D Color Map Surface Graph with Contour Projection",
"Two Panel Graph with 3D Wire Surface Plots",
"Line Graph Depicting the Results of a Linear Regression",
"Black and White Contour Graph with Map Overlay",
"Box Plot with custom box legend");

  bannerURLs1  = new Array(
"25",
"26",
"83",
"47",
"97",
"103",
"104",
"24",
"23",
"96",
"33",
"109",
"32",
"45",
"39",
"49",
"38",
"46",
"40",
"42",
"44",
"111",
"105",
"34",
"16",
"72",
"73",
"68",
"110",
"15",
"134"
);



  imageLinkPrefix2 = "/images/graph_rotate/graphs/";

  bannerImages2    = new Array(
"NelsonVeissid_hmpg.jpg",
"PeterHoeckel_hmpg.jpg",
"pickar_joel_neuro_hmpg.gif",
"Pie2_hmpg.jpg",
"Polyakov_hmpg.jpg",
"population_hmpg.jpg",
"possible_drillssp1_hmpg.jpg",
"Ralchenko_hmpg.jpg",
"SeanFu_hmpg.jpg",
"SergeyVyazovkin_hmpg.jpg",
"sinha_naveen_bubbleplot_hmpg.jpg",
"sinha_naveen_FFTplot_hmpg.jpg",
"sinha_naveen_stftplot_hmpg.jpg",
"StackedHist1_hmpg.jpg",
"SurvivalPlot1_hmpg.jpg",
"TomCarter_hmpg.jpg",
"unknown_creator1_g1-_hmpg.gif",
"user_ph1_hmpg.jpg",
"VanRudd_hmpg.jpg",
"VectorColor_hmpg.jpg",
"webster_christopher_1089496_Fig1_hmpg.gif",
"webster_christopher_1089496_Fig2_hmpg.gif",
"webster_christopher_1089496_Fig3_hmpg.gif",
"weisman_bruce_Fig2A_hmpg.gif",
"weisman_bruce_surface_hmpg.gif",
"weisman_bruce_TOC_hmpg.jpg",
"win_mar97_hmpg.gif",
"win_sept97_hmpg.gif",
"xbarr1_hmpg.jpg",
"YeowChinHock_hmpg.jpg",
"ZsoltRevay_hmpg.jpg");

  bannerTitles2    = new Array(
"Contour Graph with Color Scale Legend",
"2D Line Graph",
"2D Six Panel (3 rows by 2 columns) Line Graph",
"2D Pie Graph",
"2D Stacked Panel Graph with Inset Layers and Line Plots",
"2D Column Graph",
"3D Scatter Graph with Data Projections",
"3D Color Map Surface Graph with Contour Projection",
"3D Ribbons Plot",
"3D Wire Surface Graph",
"Double-Y Graph",
"Simple 2D Line Graph",
"Contour Plot of Dopplar Data",
"Stacked Histograms Graph",
"Line Graph Depicting Survival Analysis Results",
"3D Color Map Surface Graph with Contour Projection",
"4 Row Stack Panel Graph",
"Contour Graph",
"Contour Graph of a Hershey's&reg; Chocolate Bar",
"2D Vector Graph",
"2D Two Panel Stack Graph with Scatter Plots",
"2D Double-Y Graph with Scatter Plots",
"2D Four Panel, Multi-layer Graph with Line and Scatter Plots",
"Contour Color Fill Plot",
"3D Color Map Surface Graph with upwards Contour Projection",
"3D Color Map Surface Graph",
"2D Floating Column Graph",
"Contour Graph",
"QC (X Bar R) Chart",
"2D Scatter Graph",
"2D Line Graph with Log Scale"
);
  bannerURLs2      = new Array(
"90",
"22",
"31",
"48",
"27",
"20",
"80",
"75",
"78",
"70",
"29",
"30",
"99",
"108",
"107",
"71",
"28",
"95",
"87",
"21",
"35",
"36",
"37",
"98",
"82",
"81",
"19",
"89",
"106",
"10",
"7"
);






  urlLinkPrefix   = "/www/products/GraphGallery.aspx?GID=";
  urlLinkSuffix	  = "&s=8&lm=215";
  numSeconds      = 9;

  var d=new Date();
  var thisBanner=d.getSeconds()%(bannerImages1.length-1);
  var isIE = (navigator.appName == "Microsoft Internet Explorer");

  function rotateBanners(){
    document.id_bannerImage1.src = imageLinkPrefix1 + bannerImages1[thisBanner];
    document.id_bannerImage1.title = bannerTitles1[thisBanner];
    document.id_bannerImage2.src = imageLinkPrefix2 + bannerImages2[thisBanner];
    document.id_bannerImage2.title = bannerTitles2[thisBanner];

    //GLT IT#4 INCREASE_SITE_WIDTH
    //Add an extra image and use the next image plus 5 in the array
    document.id_bannerImage3.src = imageLinkPrefix2 + bannerImages2[(thisBanner + 5) % bannerImages2.length];
    document.id_bannerImage3.title = bannerTitles2[(thisBanner + 5) % bannerImages2.length];
    //End:INCREASE_SITE_WIDTH
 
    if (!isIE) {
      document.anchors["id_bannerURL1"].href = urlLinkPrefix + bannerURLs1[thisBanner] + urlLinkSuffix;
      document.anchors["id_bannerURL1"].title = bannerTitles1[thisBanner];
      document.anchors["id_bannerURL2"].href = urlLinkPrefix + bannerURLs2[thisBanner] + urlLinkSuffix;
      document.anchors["id_bannerURL2"].title = bannerTitles2[thisBanner];
 
    }
    else {
      id_bannerURL1.href = urlLinkPrefix + bannerURLs1[thisBanner] + urlLinkSuffix;
      id_bannerURL1.title = bannerTitles1[thisBanner];
      id_bannerURL2.href = urlLinkPrefix + bannerURLs2[thisBanner] + urlLinkSuffix;
      id_bannerURL2.title = bannerTitles2[thisBanner];
 
    }
    setTimeout("rotateBanners()", numSeconds*1000);
    thisBanner = (thisBanner + 1) % bannerImages1.length;
  }

  if (isIE) {
    window.onload = rotateBanners;
  }
  else {
    window.onload = rotateBanners();
  }

