$(document).ready(function() {
  $('.scroll.one').jcarousel({
    scroll: 2
  });

  $('.scroll.two').jcarousel({
    scroll: 2
  });

  $('.scroll.three').jcarousel({
    scroll: 2
  });
  $(".wrap_scroll.one").find("a").click(function(){
    var loader = $(".loader");
    var newImage = $(this).attr('href');
    var title = $(this).find("img").attr('title');
    var bigImage = $('.big_img.one img').not(".loader");
    $.ajax({
      type:"GET",
      url: $(this).attr('href'),
      success:function(data){},
      complete: function(){ loader.hide(); },
      beforeSend: function(){
        loader.show();
        bigImage.attr('src', newImage);
      }
    });

    return false;
  });

  $(".wrap_scroll.two").find("a").click(function(){
    var loader = $(".loader");
    var newImage = $(this).attr('href');
    var title = $(this).find("img").attr('title');
    var bigImage = $('.big_img.two img').not(".loader");
    $.ajax({
      type:"GET",
      url: $(this).attr('href'),
      success:function(data){},
      complete: function(){ loader.hide(); },
      beforeSend: function(){
        loader.show();
        bigImage.attr('src', newImage);
      }
    });

    return false;
  });

  $(".wrap_scroll.three").find("a").click(function(){
    var loader = $(".loader");
    var newImage = $(this).attr('href');
    var title = $(this).find("img").attr('title');
    var bigImage = $('.big_img.three img').not(".loader");
    $.ajax({
      type:"GET",
      url: $(this).attr('href'),
      success:function(data){},
      complete: function(){ loader.hide(); },
      beforeSend: function(){
        loader.show();
        bigImage.attr('src', newImage);
      }
    });

    return false;
  });
});


