var mycarousel_itemList = [
	{url: 'incipio-dermashot-for-iphone-4.html', title: 'Incipio dermaSHOT', price: '19.99', image: 'dermaSHOT.png'},
    {url: 'griffin-jumper-case-for-ipad.html', title: 'Griffin Jumper', price: '27.99', image: 'Jumper1.png'},
    {url: 'gorillamobile.html', title: 'Joby GorillaMobile', price: '39.99', image: 'Gorillamobile.png'},
    {url: 'motorola-eq7.html', title: 'Motorola EQ7', price: '99.99', image: 'Motorolaeq7.png'}, 
    {url: 'amzer-argyle-skin-case.html', title: 'Argyle Skin Case', price: '14.99', image: 'ClearArgyleTPU.png'},
    {url: 'contour-design-isee-for-ipad.html', title: 'Contour Design iSee', price: '37.99', image: 'iSee.png'}, 
    {url: 'dexim-p-flip-accessory-bundle.html', title: 'Dexim P-Flip', price: '69.99', image: 'Deximpflip.png'},
    {url: 'griffin-flat-auxilary-audio-cable-6-feet.html', title: 'Griffin Auxilary Cable', price: '19.99', image: 'GriffinAuxCable.png'},
    {url: 'full-guard-screen-protector.html', title: 'iPhone4 Screen Guard', price: '14.99', image: 'FullGuardScreenProtex.png'}, 
    {url: 'iluv-casual-case-for-ipad.html', title: 'iLuv Casual Case', price: '34.99', image: 'iLuvCasualCase.png'},
    {url: 'mophie-juice-pak.html', title: 'Mophie Juice Pak', price: '77.99', image: 'MophieJuicePak.png'}
];

function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
{
    // The index() method calculates the index from a
    // given index who is out of the actual item range.
    var idx = carousel.index(i, mycarousel_itemList.length);
    carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
};

function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
{
    carousel.remove(i);
};

/**
 * Item html creation helper.
 */
function mycarousel_getItemHTML(item)
{
    return '<span style="display: block;width: 170px; height: 212px; padding: 2px; background: transparent url(skin/frontend/default/blank/images/slideshow/' + item.image + ') no-repeat bottom left;position: relative;"><span class="item-content">' + item.title + '<br /><em>Our Price: <span class="price">$' + item.price + '</span></em></span><span class="buy-now"><a href="' + item.url + '"><img src="skin/frontend/default/blank/images/shopnow-button.png" alt="Shop Now" /></a></span></span>';
};


