$(document).ready(function(){

$('#cross').crossSlide({
  fade: 1
}, [
  {
    src:  'slide/picture1.jpeg',
    from: '100% 80% 1x',
    to:   '100% 0% 1.7x',
    time: 8
  }, {
    src:  'slide/picture2.jpeg',
    from: 'top left',
    to:   'bottom right 1.5x',
    time: 4
  }, {
    src:  'slide/picture3.jpeg',
    from: '100% 80% 1.5x',
    to:   '80% 0% 1.1x',
    time: 6
  }, {
    src:  'slide/picture4.jpeg',
    from: '100% 90% 1.5x',
    to:   'top right 1.5x',
    time: 4
  }
], function(idx, img, idxOut, imgOut) {
  if (idxOut == undefined)
  {
    // starting single image phase, put up caption
    $('div.caption').text(img.alt).animate({ opacity: .7 })
  }
  else
  {
    // starting cross-fade phase, take out caption
    $('div.caption').fadeOut()
  }
});
$("#divUltimiSlide").easySlider({
	auto: true,
	vertical: false,
	speed: 800,
	continuous: true
	});

$("#slidesContainer").easySlider({
	auto: true,
	speed: 1000,
	continuous: true
	});
});



