$(window).load(function(){
 $(".photosgallery-captions").sliderkit({
  circular:true,
  mousewheel:true,
  keyboard:true,
  shownavitems:6,
  auto:false,
  circular: true,
  panelfxspeed:500,
  panelbtnshover:true,
  freeheight : true,
  navfxafter: function(){},
  panelfxafter:function(){
   $(".sliderkit-nav-clip img").each(function(){
   var i = $(this);
   //i.css({"width":nul,"height":null})
   if (i[0] && i[0].naturalWidth && i[0].naturalHeight) {
    var r = i[0].naturalWidth / i[0].naturalHeight;
    var w,h;
    if (r>1) { h = 120; w = Math.round(h*r)}
    else { w = 120; h = Math.round(w/r)}
    i.css({'position':'absolute','left':(120-w)/2,'top':(120-h)/2,'width':w,'height':h});
   } 
   
   }) 
  }
 });


});

$(function() {
 if (typeof $('#busy1').activity == "function") {
  $('#busy1').activity();
  $('#busy2').activity({segments: 8, steps: 3, opacity: 0.3, width: 4, space: 0, length: 5, color: '#0b0b0b', speed: 1.5});
  $('#busy3').activity({segments: 8, width:2, space: 0, length: 3, color: '#fff', speed: 1.5});
  $('#busy4').activity({segments: 12, width: 5.5, space: 6, length: 13, color: '#252525', speed: 1.5});
  $('#busy5').activity({segments: 12, align: 'left', valign: 'top', steps: 3, width:2, space: 1, length: 3, color: '#030303', speed: 1.5});
  $('#busy6').activity({outside: true, align: 'right', segments: 10, steps: 3, width:2, space: 0, length: 3, color: '#000', speed: 1.5});
 }
});
