
function SetBannerImage(col, idx, imgList, config)
{
    var a = document.getElementById("id_bannerURL" + col);
    var img = document.getElementById("id_bannerImage" + col);

    a.href = config.linkPrefix + imgList.gid[idx] + config.linkSuffix;
    a.title = img.title = imgList.title[idx];

    img.src = config.imgUrlPrefix + imgList.src[idx];
}

function RotateImages(cols, images, idx, config)
{
    for (var i = 0; i < cols; i++)
    {
        SetBannerImage(i, idx, images[i], config);
    }

    setTimeout(function ()
    {
        RotateImages(cols, images, (++idx) % (images[0].gid.length), config);
    },
    config.delayInterval * 1000);
}

window.onload = function() {
  var config={
    linkPrefix:'/www/products/GraphGallery.aspx?GID=',
    linkSuffix:'&s=8&lm=215',
    imgUrlPrefix:'http://cloud.originlab.com/www/resources/graph_gallery/images_galleries_new/',
    delayInterval:5};
  var images=[
{
gid:['263','262','265','266','250','251','253','254'],
src:['Pb-Cd_3D_Spectrum_s.png','Box_Chart_With_Scatter_s.png','Custom_Report_s.png','Spider_Chart_s.png','WaterfallWithHighlightSeries_s.png','Error_Bars_As_Lines_s.png','Image_Profiles_s.png','Pareto_Chart_s.png'],
title:['A 3D colormap surface plot with contour projection in the XY plane.','Box chart of temperature data with scatter plot and distribution overlay.','Custom Report created using Origin Worksheet for High Density Electrode Analysis.','The radar chart is used primarily for data comparison.','Waterfall plot with a single trace highlighed with different color.','Scatter plot with error bars displayed using Fill Area option.','Image Graph with multiple horizontal and vertical profiles/projections.','Pareto chart  with labels and custom colors for individual columns.']},{
gid:['252','258','245','256','249','82','228','257'],
src:['Wind_Rose_s.png','3DBarsWithZColorMap_s.png','Area_Plot_With_Horizontal_Color_Gradient_s.png','IntersectingColorSurfaces_s.png','Polar_with_Scatter_s.png','Surface_Emission_Intensity_of_Single_Walled_Nanotubes_s.gif','Error_Bars_with_Fill_Area_s.png','WireframeSurface_s.png'],
title:['Windrose graph displaying wind speed and wind direction','"3D bar graph of matrix data with transparency','Area plot of two datasets where a horizontal color gradient has been applied.','Two intersecting surface plots with transparency and different color map','"Polar plot representing four dimensions: bubble size','"Emission intensity plotted as a function of excitation and emission wavelengths.  In this surface plot','Three datasets plotted as lines with error bars and semi-transparent fill areas.','Wire frame surface plot with transparency.']},{
gid:['27','248','261','4','255','247','201','246'],
src:['Panel_Graph_with_Inset_Plots_High_Resolution_Electron_Energyloss_Spectra_s.gif','TernaryWithGradientFill_s.png','optic_flow_study_contour_with_transparency_s.png','Line_Symbol_Harmonic_Oscillation_and_Morse_Potential_Energy_Functions_s.gif','3DSurfaceWithErrorBars_s.png','StackBarWithLabels_s.png','Contour_with_Major_Minor_Levels_Filled_by_Color_Palette_s.png','CustomLabelsForColumns_s.png'],
title:['This multi-panel graph uses Origin�s strong layering capability to represent high-resolution electron energy-loss spectra from a GaN surface.','"Ternary chart with gradient fill for layer background','Individual contour plots on left side ovelayed with transparency on right side.','This graph displays differences between �Harmonic Oscillator� and �Morse� potential energy functions and the resulting vibrational energies.','3D surface plot with a error bar from another matrix','Bar chart with labels','Contour plot with major and minor levels filled and Rainbow palette applied.','Column chart with Custom Labels']},{
gid:['244','92','227','233','241','260','232','231'],
src:['Contour_Plot_with_Optical_Density_of_States_s.png','Contour_Plot_with_Scatter_Overlay_Erythrocyte_Survival_Rate_s.gif','intersect_surfaces_s.png','Surface_Temperature_with_Sea_Level_Pressure_s.png','Waterfall_Chart_s.png','3DSymbolWithErrorBars_s.png','Overlay_Contour_Plot_s.png','Skip_Points_Allowed_for_Error_Bars_s.png'],
title:['This graph shows the calculated optical density of states of a superlattice as function of the photon energy and the electric field.','Contour plot illustrating the influence of two different agents on the survival rate of cryopreserved red blood cells.','Three intersecting surface plots with transparency','Overlay of two contour plots in one graph layer.','Waterfall (or Bridge) Chart showing value changes with floating columns','3D scatter plot with error bars','"Color-filled contour plot with color scale representing matrix data','Line plot with error bars drawn in user-specified point increments.']}  ];
  RotateImages(4, images, 0, config);
};

