// JavaScript Document
 $(document).ready(function() {
  $("#slideshow").crossSlide({
  fade: 2
}, [
  {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide1.jpg",
    from: "0% 0% 1.1x",
    to:   "0% 0% 1.3x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide2.jpg",
    from: '0% 100% 1.2x',
    to:   '0% 100% 1.4x',
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide3.jpg",
    from: "0% 0% 1.1x",
    to:   "0% 0% 1.3x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide4.jpg",
    from: "100% 50% 1.1x",
    to:   "100% 50% 1.25x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide5.jpg",
    from: "0% 100% 1.1x",
    to:   "0% 100% 1.3x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide6.jpg",
    from: "0% 0% 1.1x",
    to:   "0% 0% 1.3x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide7.jpg",
    from: "50% 0% 1.4x",
    to:   "50% 0% 1.05x",
    time: 4
  }, {
    src:  "http://www.krautz-beton.de/templates/allcss2/img/slide8.jpg",
    from: "0% 0% 1.1x",
    to:   "0% 0% 1.3x",
    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()
  }
});
});


