jQuery(function($) {     

$('#crossslide').crossSlide({
  fade: 1
}, [
  {
    src:  'images2011/home_anim/animpic1b.jpg',
    alt:  'AbleInstall',
    from: 'top center .21x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic2b.jpg',
    from: 'top center .2x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic3b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic4b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  },  {
    src:  'images2011/home_anim/animpic5b.jpg',
    alt:  'Sand Castle',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic6b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic7b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic8b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  },  {
    src:  'images2011/home_anim/animpic9b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic10b.jpg',
    from: 'top center .25x',
    to:   'top center .5x',
    time: 4
  }, {
    src:  'images2011/home_anim/animpic11b.jpg',
    from: 'top center .3x',
    to:   'top center .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()
  }
});

}); 

