var mycarousel_itemList = [ {html: '

Torrevecchia

penthouse Torrevecchia

penthouse

€ 1.200

'}, {html: '

Trastevere

penthouse Trastevere

penthouse

€ 900.000

'}, {html: '

Casetta Mattei

apartment Casetta Mattei

apartment

€ 290.000

'}, {html: '

Pisana

apartment Pisana

apartment

€ 239.000

'}, {html: '

Pisana

apartment Pisana

apartment

€ 239.000

'}, {html: '

Casetta Mattei

apartment Casetta Mattei

apartment

€ 290.000

'}, {html: '

Portuense

apartment Portuense

apartment

€ 1.200

'}, {html: '

Case Rosse

apartment Case Rosse

apartment

€ 179.000

'}, {html: '

Portuense

apartment Portuense

apartment

€ 360.000

'}, {html: '

Pineta Sacchetti

rooms Pineta Sacchetti

rooms

€ 500

'}, {html: '

Torrevecchia

penthouse Torrevecchia

penthouse

€ 249.000

'}, {html: '

Bravetta

apartment Bravetta

apartment

€ 395.000

'}, {html: '

Colli Portuensi

penthouse Colli Portuensi

penthouse

€ 790.000

'}, {html: '

Torrevecchia

rooms Torrevecchia

rooms

€ 600

'}, {html: '

Lido Di Ostia

shop Lido Di Ostia

shop

€ 750

'}, {html: '

Marconi

apartment Marconi

apartment

€ 315.000

'}, {html: '

Campo Ascolano - Villaggio Tognazzi

apartment Campo Ascolano - Villaggio Tognazzi

apartment

€ 175.000

'}, {html: '

Monteverde Vecchio

apartment Monteverde Vecchio

apartment

€ 360.000

'}, {html: '

Ardeatino

shop Ardeatino

shop

€ 69.000

'}, {html: '

Colli Portuensi

apartment Colli Portuensi

apartment

€ 559.000

'}, {html: '

San Saba

apartment San Saba

apartment

€ 650.000

'} ]; 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); }; function mycarousel_getItemHTML(item) { return item.html; }; jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel( { auto: 3, scroll: 1, wrap: 'circular', itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback}, itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback} }); });