﻿stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})

function ShowButton(leftId, rightId, idx, max)
{
    if (idx <= 0)
    {
        document.getElementById(leftId).style.display='none';
         document.getElementById(rightId).style.display='block';
        return;
    }
    else
    {
        document.getElementById(rightId).style.display='block';
        if (idx >= max - 3)
        {
            document.getElementById(rightId).style.display='none';
             document.getElementById(leftId).style.display='block';
            return;
        }
        else
        {
            document.getElementById(leftId).style.display='block';
            return;
        }
    }
}


