(function($) { //If the UI scope is not availalable, add it $.ui = $.ui || {}; //Make nodes selectable by expression $.extend($.expr[':'], { magnifier: "(' '+a.className+' ').indexOf(' ui-magnifier ')" }); //Macros for external methods that support chaining var methods = "destroy,enable,disable,reset".split(","); for(var i=0;i *', el).each(function() { var co = $(this).offset({ border: false }); if(self.options.overlap) var cp = $(this).position(); self.items.push([this, co, [$(this).width(),$(this).height()], (cp || null)]); if(o.opacity) $(this).css('opacity', o.opacity.min); }); if(o.overlap) { for(var i=0;i this.pp.left-o.distance && p[0] < this.pp.left + this.element.offsetWidth + o.distance) && (p[1] > this.pp.top-o.distance && p[1] < this.pp.top + this.element.offsetHeight + o.distance)); if(!overlap) return false; for(var i=0;i