/* jQuery mouseable() plugin | Copyright (c) 2015, 2016 Dan Zervoudakes | https://github.com/dzervoudakes/jQuery-mouseable/blob/master/LICENSE */
(function(a){a.fn.mouseable=function(e){var f,d;if(e){if(typeof e==="object"){f=e.hasOwnProperty("hoverClass")?e.hoverClass:"over";d=e.hasOwnProperty("activeClass")?e.activeClass:"down"}else{throw new Error('Classes parameter for mouseable() must be an object with properties "hoverClass" and/or "activeClass".')}}else{f="over";d="down"}function b(h,g){return"ontouchend" in document?h:g}var c={hover:b("touchstart","mouseenter"),remove:b("touchend","mouseleave"),down:b("touchstart","mousedown"),up:b("touchend","mouseup mouseleave")};a(this).on(c.hover,function(){a(this).addClass(f)}).on(c.remove,function(){a(this).removeClass(f)}).on(c.down,function(){a(this).addClass(d)}).on(c.up,function(){a(this).removeClass(d)});return this}}(jQuery));