Ext.namespace("Zarafa.plugins");
Zarafa.plugins.ExtBoxPlugin=Ext.extend(Zarafa.core.Plugin,{constructor:function(){Zarafa.plugins.ExtBoxPlugin.superclass.constructor.call(this,{name:"lightbox"})},doOpen:function(a){var b=a.get("name");a={easing:"elasticOut",resizeDuration:0.6,close:"&#215;",hideInfo:"auto",href:a.getInlineImageUrl(),title:b};Ext.ux.Lightbox.open(a)},bidSharedComponent:function(a,b){var c=-1;switch(a){case Zarafa.core.data.SharedComponentType["common.view"]:if(b instanceof Zarafa.core.data.IPMAttachmentRecord){var d=b.get("name");
if(Ext.ux.Lightbox.isImage(d))c=1}break}return c},getSharedComponent:function(a){var b;switch(a){case Zarafa.core.data.SharedComponentType["common.view"]:b=this;break}return b}});Zarafa.onReady(function(){container.registerPlugin(new Zarafa.plugins.ExtBoxPlugin)});
