
$(function() {
	var $caption = $('div.caption'),
		$case1 = $('#case1');
		
	$case1.crossSlide({
  		fade: 3
	}, [
  	{
    	src:  'images/ll.jpg',
    	alt:  'SOLO PERFORMER',
    	from: '100% 80% 1.0x',
    	to:   '100% 100% 1.0x',
    	time: 4
  	}, {
    src:  'images/top01.jpg',	
	alt:  'Yoshihiro Osako',
	 
    from: '60% 10% 1.0x',
    to:   '50% 90% 1.5x',
    time: 4
  }, {
    src:  'images/top02.jpg',
	alt:  'Hideyuki Doi',
	
    from: '70% 100% 1.0x',
    to:   '10% 10% 1.5x',
    time: 4
  }, {
    src:  'images/top03.jpg',
	alt:  'Takashi Mori',
	
    from: '100% 10% 1.0x',
    to:   '10% 90% 1.5x',
    time: 4
  }, {
    src:  'images/top04.jpg',
	alt:  'Ryusei Hattori',
	
    from: 'bottom left 1.7x',
    to:   'top left 3.0x',
    time: 4
  }, {
    src:  'images/top05.jpg',
	alt:  'Takumi Seino',
	
    from: '100% 80% 2.0x',
    to:   'top left 1.7x',
    time: 4
  }, {
    src:  'images/top06.jpg',
	alt:  'Hideki Nakanishi',
	
    from: '20% 60% 2.5x',
    to:   '80% 10% 2.0x',
    time: 4
  }, {
    src:  'images/top07.jpg',
	alt:  'DJ ROMP',
	
    from: '60% 90% 2.0x',
    to:   '40% 20% 1.5x',
    time: 4
  }
], function(idx, img, idxOut, imgOut) {
	
  if (idxOut == undefined)
  {
    $caption.text(img.alt).animate({ opacity: .7 })
  }
  else
  {
    $caption.fadeOut()
  }
  $caption.show().css({ opacity: 0 })
 });
});

