(function(a){a.fn.disabledBind=function(b,c){return a(this).each(function(){var f=a(this);var h=f.closest(".disabledBindWrapper");if(!h.length){h=a('<span class="disabledBindWrapper"></span>').insertBefore(f).css("position","relative");f.appendTo(h)}var e=h.find(".disabledBindClickable");if(!e.length){var d=f.position();var e=a('<div class="disabledBindClickable"></div>').css("position","absolute").css("top",d.top+"px").css("left",d.left+"px").css("margin-top",f.css("margin-top")).css("margin-right",f.css("margin-right")).css("margin-bottom",f.css("margin-bottom")).css("margin-left",f.css("margin-left")).css("padding","0").css("border","none").width(f.outerWidth()).height(f.outerHeight()).insertAfter(f);var g=f.css("z-index");if(g!="auto"&&g!=""){e.css("z-index",parseInt(g,10)+1)}}e.bind(b,c)})};a.fn.disabledUnbind=function(b,c){return a(this).each(function(){var e=a(this);var f=e.closest(".disabledBindWrapper");if(!f.length){return}var d=f.find(".disabledBindClickable");if(!d.length){return}d.unbind(b,c);if(d.data("events")===null){d.remove();if(f.data("events")===null){e.insertBefore(f);f.remove()}}})}})(jQuery);
