jQuery.fn.fkGalleryCaption=function(options){var elements=$(this).get();$.each(elements,function(){new jQuery.fkGalleryCaption(this,options);});return elements;}
jQuery.fkGalleryCaption=fkComponent.extend({init:function(element,options){var instance=this;this.dom=$(element);this.options=$.extend({dependent:false,depends_on:null},options);this.initOk=false;this.cpGalleryViewer=null;$(document).bind("gallery-viewer-display-start",function(event,data){if(instance.initOk===false)
{instance.cpGalleryViewer=data.viewer;instance.initOk=true;}
instance.setContent(instance.cpGalleryViewer.getImageCaption());});},setContent:function(content){this.dom.html(content);}});
