title: grouping image using colorbox and jquery plugin
body: <p>i am creating a plugin on the top of colorbox modalpopup.</p>
  
  <p>jquery plugin</p>
  
  <pre><code>$(document).ready(function(){
  
  (function($) {
  
    $.fn.pop= function(options) {
  
      var options = $.extend({}, $.fn.pop.defaults, options);
  
      return this.each(function() {
        var o = options;
        var obj = $(this);
         obj.click(function() {
       obj.colorbox({height:o.h, width:o.w , iframe:true});       
     });       
      });
    };     
    $.fn.pop.defaults = {
      h: '60%',
   w: '60%'
    };
  })(jQuery);
  });
  </code></pre>
  
  <p>at the user level i just make them call
  $(".classname").pop(); //if they need to optimize the length width they just give the nos</p>
  
  <p>now my question is if i need to group image i got to do something like this.</p>
  
  <pre><code>$("a[rel='example1']").colorbox();
  </code></pre>
  
  <p>insted of this i need to call my function </p>
  
  <pre><code>$("a[rel='example1']").pop();
  </code></pre>
  
  <p>but it doesn't group itself. anyhelp will be appreciated</p>