//Slides, A Slideshow Plugin for jQuery - http://slidesjs.com/
//To view default options, see 'slides.jquery.js'
$(function(){
var ieversion = -1;
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
	ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
}
var b = 301;
if ( ieversion == 7 ) { b = 304; }
  $('#slides').slides({
    preload: true,
    preloadImage: 'js/jquery/plugins/slides/img/loading.gif',
    play: 10000,
    pause: 30000,
    effect: 'fade',
    hoverPause: true,
    generatePagination: false,
    paginationClass: 'slides-control-pagination',
    animationStart: function(current){
      $('.caption').animate({
        bottom:270
      },100);
      if (window.console && console.log) {
        // example return of current slide number
        //console.log('animationStart on slide: ', current);
      };
    },
    animationComplete: function(current){
      $('.caption').animate({
        bottom: b
      },200);
      if (window.console && console.log) {
        // example return of current slide number
        //console.log('animationComplete on slide: ', current);
      };
    }
  });
});


