Calling a colorbox from a bxslider slide

Calling a colorbox from a bxslider slide

I have bxSlider set up with one of the slides being a colorbox ligtbox, but I can't get the bxslider image or a link to open the colorbox. Here is my code:

  1.  $(document).ready(function() {
  2.         var $gallery = $('a.slideGroup').colorbox({rel:'slideGroup',@trans, @slideshow, slideshowSpeed: 4000, @showTitles });

  3.         $("a#openGallery").click(function(e){
  4.             e.preventDefault();
  5.             $gallery.eq(0).click();
  6.         });
  7.  
  8. $('a.slideGroup').colorbox({onComplete:function(){
  9.   $('#cboxTitle').css('color', '#800000 !important');
  10.   }});
  11. $('a.slideGroup').colorbox({onComplete:function(){
  12.     var cboxTitleHeight = $('#cboxTitle').height();
  13.     var cboxContentHeight = $('#cboxContent').height();
  14.     var cboxWrapperHeight = $('#cboxWrapper').height();
  15.     var colorboxHeight = $('#colorbox').height();
  16. var cboxPhotoHeight = $('.cboxPhoto').height();

  17.     $('#cboxMiddleLeft, #cboxMiddleRight, #cboxContent').css('height', (cboxContentHeight + cboxTitleHeight) + 'px');
  18.     $('#cboxWrapper').css('height', (cboxWrapperHeight + cboxTitleHeight) + 'px');
  19.     $('#colorbox').css('height', (colorboxHeight + cboxTitleHeight) + 'px' );
  20. $('#cboxLoadedContent').css('height', (cboxTitleHeight + cboxPhotoHeight) + 'px'
  21. }});
  22.     });
Here is the page I am using it on: