   = oIframeDoc.getElementsByTagName("xblkpron");
        var oPronUsNode   = oIframeDoc.getElementsByTagName("xblspron");
        var oPlayGbBtn    = poWindow.document.getElementById("playGbBtn");
        var oPlayUsBtn    = poWindow.document.getElementById("playUsBtn");
        var oHwdLabel     = poWindow.document.getElementById("hwdLabel");
        var oPosLabel     = poWindow.document.getElementById("posLabel");
        var oPronLabel    = poWindow.document.getElementById("pronLabel");
        var oUspronLabel  = poWindow.document.getElementById("uspronLabel");
        var oPronSparator = poWindow.document.getElementById("pronSeparator");
        var oSyllNode     = getElementByAttr(oIframeDoc, "span", "class", "HYPHENATION");
        var oPronNode     = getElementByAttr(oIframeDoc, "div", "class", "infoHwd");

        // Get the pronunciation characters (Ugly method!)
        if (oPronNode) {
            oSpanList = oPronNode.getElementsByTagName("span");
            for (var i=0; i<oSpanList.length; i++) {
                if (oSpanList[i].className == "PRON")
                    oSpanPron = oSpanList[i];
                if (oSpanList[i].className == "AMEVARPRON")
                    oSpanUsPron = oSpanList[i];
                if (oSpanPron & oSpanUsPron)
                    break;
            }
        }

        // Show the current headword
        bHasUsPron         = (oSpanUsPron && oSpanUsPron.childNodes.length == 2);
        oHwdLabel.value    = getHwdDocFromId(giOpenEntry);
        oPosLabel.value    = getHwdPosFromId(giOpenEntry);
        oPronLabel.value   = (oSpanPron ? "/" + oSpanPron.innerHTML : "") + (oSpanPron && !bHasUsPron ? "/" : "");
        oUspronLabel.value = (bHasUsPron ? oSpanUsPron.childNodes[1].data + "/" : "");
        oPronSparator.collapsed = !bHasUsPron;

        //Set the play buttons as disabled if the entry don't have GB/US pronunciation
        if (!oPronGbNode.length)
            oPlayGbBtn.setAttribute("disabled", "true");
        if (!oPronUsNode.length)
            oPlayUsBtn.setAttribute("disabled", "true");

        if (!goSkSoundRecord) {
            goSkSoundRecord = Components.classes["@idm.fr/sk_sound_recorder;1"].createInstance().QueryInterface(Components.interfaces.skXISoundRecorder);
            goSkSoundRecord.Init(16,1,22050,10);
        }
    } catch (err) {
       //alert("ERROR function loadPronPopup:\n" + err);
    }
}

function playPronHeadword(piLanguage, piSoundId, pbIsAuto) {
    try {
        var oIframeDoc, oPronNode, oPronFs, oSoundFile;
        var iPronId, iFileId;

        //Sound data files not available
        if (!gHasSounData)
            return;

        //A sound is already playing
        if (goSkMp3.isPlaying())
            goSkMp3.stop();

        if(!piSoundId)
            oIframeDoc = document.getElementById("frame_dictionary").contentDocument;

        if (pbIsAuto && (!setLed.autoplay && !piLanguage))
            return;

        if ((!piLanguage && setLed.soundB) || (piLanguage == PRON_GB)) {
            //Play British pronunciation
            if(!piSoundId)
                oPronNode = oIframeDoc.getElementsByTagName("xblkpron");
            oPronFs = GetFsObject("prongbFs", !pbIsAuto);
        } else {
            //Play American pronunciation
            if(!piSoundId)
                oPronNode = oIframeDoc.getElementsByTagName("xblspron");
            oPronFs = GetFsObject("pronusFs", !pbIsAuto);
        }

        if ((!piSoundId && !oPronNode.length) || !oPronFs)
            return;

        iPronId      = (piSoundId ? piSoundId: oPronNode[0].id);
        iFileId      = GetAvatarOfType(iPronId, f_full);
        oBinarySound = oPronFs.GetFile(iFileId);
        if (oBinarySound) {
            oBinarySound = oBinarySound.GetData();
            goSkMp3.setsound(oBinarySound);
            goSkMp3.play(true);
        }
    } catch (err) {
       //alert("ERROR function playPronHeadword:\n" + err);
    }
}

function startRecord(poWindow){
    try {    
        var oRecordBtn = poWindow.document.getElementById("recordBtn");
        if (oRecordBtn.hasAttribute("record")) {
            oRecordBtn.removeAttribute("record");
            goSkSoundRecord.Stop();
        } else {
            oRecordBtn.setAttribute("record", "true");
            goSkSoundRecord.Record();
        }
    } catch (err) {
       //alert("ERROR function startRecord:\n" + err);
    }
}

function playRecord(poWindow){
    try {
        goSkSoundRecord.Play();
    } catch (err) {
       //alert("ERROR function playRecord:\n" + err);
    }
}
h