ComCore.EmbeddedComponents=Class.create();ComCore.EmbeddedComponents.prototype={initialize:function(A){debug("ComCore.EmbeddedComponents.initialize()");this.config=Object.extend({embedClassName:"share"},A);this.initEmbedLinks()},initEmbedLinks:function(){var A=this;this.embedLinks=$$("a."+this.config.embedClassName);if(this.embedLinks){this.embedLinks.each(function(B){Event.observe(B,"click",A.onEmbedLinkClicked.bind(A))})}},onEmbedLinkClicked:function(D){var C=D.element();var B=C.getClassData("componenttypeid");var E=C.getClassData("itemid");var A=C.getClassData("csrftoken");debug(B);debug(E);ComCore.Dialog.initialize();ComCore.Dialog.options.width=680;ComCore.Dialog.getContent(ComCore.Page.buildAjaxURL("embed","embedMainprofileComponent")+"&componenttypeid="+B+(E?"&"+E:"")+"&"+A);D.stop()},_eoo:true};