Ext.namespace("Zarafa.plugins.extbox");Zarafa.plugins.extbox.ABOUT='<p>Copyright (C) 2005-2013  Zarafa B.V. &lt;info@zarafa.com&gt;</p><p>This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p><p>This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.</p><p>You should have received a copy of the GNU Affero General Public License along with this program.  If not, see <a href="http://www.gnu.org/licenses/" target="_blank">http://www.gnu.org/licenses/</a>.</p>';
Ext.namespace("Zarafa.plugins.extbox");
Zarafa.plugins.extbox.ExtBoxPlugin=Ext.extend(Zarafa.core.Plugin,{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.core.PluginMetaData({name:"extbox",displayName:_("Extbox Plugin"),about:Zarafa.plugins.extbox.ABOUT,pluginConstructor:Zarafa.plugins.extbox.ExtBoxPlugin}))});
