/**
 * reflection.js v1.7
 *
 * Contributors: Cow http://cow.neondragon.net
 *               Gfx http://www.jroller.com/page/gfx/
 *               Sitharus http://www.sitharus.com
 *               Andreas Linde http://www.andreaslinde.de
 *               Tralala, coder @ http://www.vbulletin.org
 *
 * Freely distributable under MIT-style license.
 */
 
/** add, remove **/
(function($){

  //If the UI scope is not availalable, add it
   $.ui = $.ui || {};
   
   
   $.fn.reflecter = function(options) {
		return this.each(function() {
			new $.ui.reflecter(this,options);	
		});
	};
   
   $.ui.reflecter = function(el,options) {
     this.element = el;        
     var _imgs = $("img", el); 
     _imgs.each(function() {
       var image = $(this).get(0);
       Reflection.add(image, options);
     });
   }
   
   $.extend($.ui.magnifier.prototype, {
       disable : function() {
       var _imgs = $("img", el); 
      _imgs.each(function() {
        var image = $(this).get(0);
        Reflection.remove(image)
      });
			
	}
   });
  
})($);