var firstbgcarousel=new bgCarousel({ wrapperid: 'mybgcarousel', //ID of blank DIV on page to house carousel imagearray: [ ['autumnpark.jpg', '

Autumn Day

The sun peaks through the trees.'], // ["image_path", "optional description"] ['chime.jpg', '

Wind Chime

The bellweather of the sky, the chime speaks of impending turmoil.'], ['girlportrait.jpg', 'The scent of spring invigorates her as she inhales whilst the warm breeze brings a wave of tranquility.'], ['redbench.jpg', 'Alone and Lonliness- Peace and Inner Struggle'] //<--no trailing comma after very last image element! ], displaymode: {type:'auto', pause:3000, cycles:2, stoponclick:false, pauseonmouseover:true}, navbuttons: ['left.gif', 'right.gif', 'up.gif', 'down.gif'], // path to nav images activeslideclass: 'selectedslide', // CSS class that gets added to currently shown DIV slide orientation: 'h', //Valid values: "h" or "v" persist: true, //remember last viewed slide and recall within same session? slideduration: 500 //transition duration (milliseconds) })

<div id="mybgcarousel" class="bgcarousel"></div>