$(window).load(function() {
	
	$('#cobblestone').pan({fps: 30, dir: 'left', depth: 50});
	$('#hills-fg').pan({fps: 30, dir: 'left', depth: 40});
	$('#cloud-bg').pan({fps: 10, dir: 'left', depth: 40});
	$('#hills-bg').pan({fps: 30, dir: 'left', depth: 25});
	$('#hills-bg, #hills-fg, #cobblestone').spRelSpeed(4);	
$('body').flyToTap();
$('#horse')
      .sprite({fps: 12, no_of_frames: 8})
	  .activeOnClick().active()
      .spRandom({
          top: 10,
          left: 100,
          right: 200,
          bottom: 22,
          speed: 4000,
          pause: 3000
      });
});
