$(document).ready(function($) {
$('.cycle').cyclotron();
$(".cycle").css('cursor', 'url(http://i.imgur.com/FrQFOJo.png),auto');
});
(function($) {
$.fn.cyclotron = function(options) {
var settings = $.extend({
dampingFactor: 0.93,
historySize: 5
}, options);
return this.each(function() {
var container, sx, dx = 0,
armed, offset = 0,
tick, prev, h = [];
container = $(this);
container.mousedown(function(e) {
sx = e.pageX - offset;
armed = true;
e.preventDefault();
});
container.mousemove(function(e) {
var px;
if (armed) {
px = e.pageX;
if (prev === undefined) {
prev = px;