if(typeof eu=="undefined"){var eu={};if(typeof eu.iksproject=="undefined"){eu.iksproject={}}}eu.iksproject.PersonPlugin=new GENTICS.Aloha.Plugin("eu.iksproject.plugins.Person");eu.iksproject.LoaderPlugin.loadAsset("eu.iksproject.plugins.Person","person","css");eu.iksproject.PersonPlugin.languages=["en","fi","fr"];eu.iksproject.PersonPlugin.init=function(){var that=this;this.initButtons()};eu.iksproject.PersonPlugin.initButtons=function(){this.createPersonButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_addPerson",size:"small",tooltip:this.i18n("button.person.tooltip"),onclick:function(element,event){if(GENTICS.Aloha.activeEditable){GENTICS.Aloha.activeEditable.obj[0].focus()}var markup=jQuery("").attr({"xmlns:v":"http://rdf.data-vocabulary.org/#","typeof":"v:Person",property:"v:name"});var rangeObject=GENTICS.Aloha.Selection.rangeObject;GENTICS.Utils.Dom.addMarkup(rangeObject,markup);rangeObject.select();return false}});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.createPersonButton,this.i18n("tab.annotations"),1)};