imageLinkPrefix1 = "http://cloud.originlab.com/images/graph_rotate/graphs/";

  bannerImages1    = new Array(
"2002_08_07-Aaron_Wiegand.png", 
"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"
//"AreaPlotWithHorizColorGradient.jpg",
//"Bars2DWithTransparency.jpg",
//"ColorMapFromSecondMatrix.jpg",
//"IntersectingFitSurfacesWithDropLines.jpg",
//"IntersectSurfaces.jpg",
//"PieChart_3DDisplay.jpg",
//"ScatterWithTransparency.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"
//"Area Plot with Gradient Color Fill",
//"Bar Plot with Transparency Applied",
//"3D Surface with Color Map from Another Matrix",
//"Fit Surface with Data and Droplines",
//"Multiple Intersecting Surfaces",
//"Pie Chart with Increment Color and 3D Effect",
//"Bubble Plot with Transparency"
);

  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"
//"0",
//"0",
//"0",
//"0",
//"0",
//"0",
//"0"
);



  imageLinkPrefix2 = "http://cloud.originlab.com/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"
//"StackColumnWithLabel.jpg",
//"TernaryContourAltColorMap.jpg",
//"TernaryWithGradientFill.jpg",
//"Vector3D.jpg",
//"WaterfallWithColorMap.jpg",
//"WaterfallWithHighlightSeries.jpg",
//"WindrosePlot.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"
//"Stacked Column Plot with Custom Labels",
//"Ternary Contour Plot",
//"Ternary Chart with Gradient Color Fill",
//"3D Vector Plot",
//"Waterfall Graph with Y-Value Color-Mapping",
//"Waterfall Graph with Highlighted Data Plot",
//"Windrose Plot"
);
  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"
//"0",
//"0",
//"0",
//"0",
//"0",
//"0",
//"0"
);

  //GLT 01/25/2011 WEB-139 ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE
  imageLinkPrefix3 = "http://cloud.originlab.com/images/graph_rotate/graphs/";
  bannerImages3 = new Array(
"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",
"Hofstein_hmpg.jpg",
"KevinTeed_hmpg.jpg",
"Kooij_hmpg.jpg",
"KristianMolhave_hmpg.gif",
"LinearFit1_hmpg.jpg",
"mickelson_hmpg.jpg",
"water_hmpg.jpg",
"3D_Sur_Colormap_Second_Matrix.png",
"3D_Vector.png",
"3D_Sur_Symbols_Droplines.png",
"Ternary_Contour.png",
"WaterfallPlot.png",
"Symbol_Transparency.png"
);
  bannerTitles3 = new Array(
"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",
"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",
"3D_Sur_Colormap_Second_Matrix.png",
"3D_Vector.png",
"3D_Sur_Symbols_Droplines.png",
"Ternary_Contour.png",
"WaterfallPlot.png",
"Symbol_Transparency.png"
);
  bannerURLs3 = new Array(
"37",
"98",
//"82",
"81",
"19",
//"89",
"106",
"10",
"7",
"16",
"72",
"73",
"68",
"110",
"15",
"134",
"214",
"215",
"216",
"217",
"218",
"219"
);
  //End:ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE

  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 01/25/2011 WEB-139 ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE
	//		//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
    document.id_bannerImage3.src = imageLinkPrefix3 + bannerImages3[(thisBanner % bannerImages3.length)];
    document.id_bannerImage3.title = bannerTitles3[(thisBanner % bannerImages3.length)];
    //document.write(thisBanner % bannerImages3.length);
    //End:ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE



    //GLT 01/25/2011 WEB-139 ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE
	//		if (!isIE) {
	//		  //document.anchors["id_bannerURL1"].href = urlLinkPrefix + bannerURLs1[thisBanner] + urlLinkSuffix;  /// AW 11/08/2010 WEB-139 POINT_TO_MAIN_GRAPH
	//		  document.anchors["id_bannerURL1"].title = bannerTitles1[thisBanner];
	//		  //document.anchors["id_bannerURL2"].href = urlLinkPrefix + bannerURLs2[thisBanner] + urlLinkSuffix;  /// AW 11/08/2010 WEB-139 POINT_TO_MAIN_GRAPH
    //		  document.anchors["id_bannerURL2"].title = bannerTitles2[thisBanner];	
	//
	//		}
	//		else {
	//		    //id_bannerURL1.href = urlLinkPrefix + bannerURLs1[thisBanner] + urlLinkSuffix;  /// AW 11/08/2010 WEB-139 POINT_TO_MAIN_GRAPH
	//		  id_bannerURL1.title = bannerTitles1[thisBanner];
	//		  //id_bannerURL2.href = urlLinkPrefix + bannerURLs2[thisBanner] + urlLinkSuffix;   /// AW 11/08/2010 WEB-139 POINT_TO_MAIN_GRAPH
	//		  id_bannerURL2.title = bannerTitles2[thisBanner];
    //		}
    //
    //Go back to the old way of linking to each graph's larger image
    //Also add new images for third rotating graph
    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];
    	document.anchors["id_bannerURL3"].href = urlLinkPrefix + bannerURLs3[(thisBanner % bannerImages3.length)] + urlLinkSuffix;
    	document.anchors["id_bannerURL3"].title = bannerTitles3[(thisBanner % bannerImages3.length)];
    }
    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];
    	id_bannerURL3.href = urlLinkPrefix + bannerURLs3[(thisBanner % bannerImages3.length)] + urlLinkSuffix;
    	id_bannerURL3.title = bannerTitles3[(thisBanner % bannerImages3.length)];
    }
	//End:ADD_NEW_85_GRAPHS_TO_ROTATING_BANNER_ON_HOMEPAGE
    setTimeout("rotateBanners()", numSeconds * 1000);
    thisBanner = (thisBanner + 1) % bannerImages1.length;
  }

  if (isIE) {
    window.onload = rotateBanners;
  }
  else {
    window.onload = rotateBanners();
  }


