"xblphr").item(0).id;
					return null;
					]]>
				</xbl:body>
			</xbl:method>
			<xbl:method name="MyType">
				<xbl:body>
					<![CDATA[
					if (this.getElementsByTagName("xblslso").length>0)
						return "also";
					if (this.getElementsByTagName("xblphr").length>0)
						return "phr";
					return null;
					]]>
				</xbl:body>
			</xbl:method>
			<xbl:method name="SelectPhr">
				<xbl:parameter name="poEvent"/>
				<xbl:body>
					<![CDATA[
                    if (this.hasAttribute("Selected"))
                        return;
                    this.setAttribute("Selected","true");
                    if(window.parent.opener) {
                        //Unselect the phrase select if there is one
                        window.parent.opener.UnSelectDefInPhr(document);
                        //Select the phrase in iframe dictionary
                        var frameElt = window.parent.opener.document.getElementById("iPhrase");
                        var FrameIp  = frameElt.contentDocument;
                        var oPhr     = FrameIp.getElementById(this.MyId());
                        oPhr.parentNode.SelectPhr();
                        window.parent.opener.ScrollToElt(oPhr.parentNode,frameElt,false,false);
                        return;
                    }

                    window.parent.UnSelectDefInPhr();
                    window.parent.UnSelectDefInTree();
                    
                    if (this.MyType() == "also") {
                        var oPopup        = window.parent.openPopup(window.parent.POPUP_POPMODE, "chrome://led/content/popup/popup_popupmode.xul");
                        oPopup.headwordId = this.getElementsByTagName("xblslso").item(0).id;
                        oPopup.crossrefId = this.MyHil();
                    }
                    if (this.getAttribute("class").indexOf("dic")>=0)
                        window.parent.SelectDefInTree(this);
                    window.parent.LoadFrames(this);
                    ]]>
				</xbl:body>
			</xbl:method>
		</xbl:implementation>
		<xbl:handlers>
			<xbl:handler event="click" action="this.SelectPhr(event);"/>
		</xbl:handlers>
	</xbl:binding>

</xbl:bindings>
	