// Standard result format - "type: name(version)[options]".
// If no version or options, leave them out.

includeScript("_init");

function result(bShowType, bShowVersion, bShowOptions) {
    var sResult = "";

    if (bDetected) {
        if (bShowType) {
            sResult += sType + ": ";
        }
        sResult += sName;
        if (bShowVersion && sVersion != "") {
            sResult += "(" + sVersion + ")";
        }
        if (bShowOptions && sOptions != "") {
            sResult += "[" + sOptions + "]";
        }

        if ((typeof _setResult) == 'function') {
            _setResult(sType, sName, sVersion, sOptions);
        }
    }

    return sResult;
}