title: Colorbox Prototype error: invalid array length
body: <p>I have a following code to display images in colorbox:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (function($){
  $('a.gallery').colorbox({rel:'gal'});
  })(jQuery);
  &lt;/script&gt;
  </code></pre>
  
  <p>CMS I am working on is a mess. 
  It has prototype, jquery, jquery-ui and many more.</p>
  
  <p>In Firebug console I get following:
  invalid array length
  [Break On This Error]<br>
  this[i] = this[i + 1];</p>
  
  <p>prototype.js line 387 (version 1.4.0)
  which is:</p>
  
  <pre><code>shift: function() {
  var result = this[0];
  for (var i = 0; i &lt; this.length - 1; i++)
  this[i] = this[i + 1];
  this.length--;
  return result;
  }, 
  </code></pre>
  
  <p>All I get is a faded background and colorbox corners load (corners don't remove).</p>
  
  <p>jQuery.noConflict(); didn't work either.</p>
  
  <p>Please help!</p>