(function($){
$(window).load(function(){


 $('#jW').sprite({fps: 25, no_of_frames: 10}).activeOnClick().active();
  $('body').flyToTap();
 
 
 $('#jW').isDraggable({
    start: function() {
        // Fade sprite to 70% opacity when at the start of the drag
        $('#jW').fadeTo('fast', 0.7);
    },
    stop: function() {
        // Return sprite to 100% opacity when finished
        $('#jW').fadeTo('fast', 1);
    },
    drag: function() {
        // This event will fire constantly whilst the object is being dragged
    }
});
 
 $('#jW')
      .sprite({fps: 25, no_of_frames: 10})
      .spRandom({
          top: 30,
          left: 700,
          right: 800,
          bottom: 0,
          speed: 1000,
          pause: 3000
      });
  
 $('#bH').sprite({fps: 2, no_of_frames: 15})

});
	 })(jQuery);
