function initApplicationCompatibility(){    // This routine does nothing more than tweak the UI based on the host    // application.    /* client.hostCompat.typeChromeBrowser indicates whether we should use     * type="chrome" <browser> elements for the output window documents.     * Using these is necessary to work properly with xpcnativewrappers, but     * broke selection in older builds.     */    client.hostCompat.typeChromeBrowser = false;    // Set up simple host and platform information.    client.host = "Unknown";    var app = getService("@mozilla.org/xre/app-info;1", "nsIXULAppInfo");    if (app)    {        // Use the XULAppInfo.ID to find out what host we run on.        switch (app.ID)        {            case "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}":                client.host = "Firefox";                if (compareVersions(app.version, "1.4") <= 0)                    client.hostCompat.typeChromeBrowser = true;                break;            case "{" + __cz_guid + "}":                // We ARE the app, in other words, we're running in XULrunner.                client.host = "XULrunner";                client.hostCompat.typeChromeBrowser = true;                break;            case "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}": // SeaMonkey                client.host = "Mozilla";                client.hostCompat.typeChromeBrowser = true;                break;            case "{a463f10c-3994-11da-9945-000d60ca027b}": // Flock                client.host = "Flock";                client.hostCompat.typeChromeBrowser = true;                break;            default:                client.unknownUID = app.ID;                client.host = ""; // Unknown host, show an error later.        }    }    else if ("getBrowserURL" in window)    {        var url = getBrowserURL();        if (url == "chrome://navigator/content/navigator.xul")        {            client.host = "Mozilla";        }        else if (url == "chrome://browser/content/browser.xul")        {            client.host = "Firefox";        }        else        {            client.host = ""; // We don't know this host. Show an error later.            client.unknownUID = url;        }    }    client.platform = "Unknown";    if (navigator.platform.search(/mac/i) > -1)        client.platform = "Mac";    if (navigator.platform.search(/win/i) > -1)        client.platform = "Windows";    if (navigator.platform.search(/linux/i) > -1)        client.platform = "Linux";    if (navigator.platform.search(/os\/2/i) > -1)        client.platform = "OS/2";    client.hostPlatform = client.host + client.platform;    CIRCServer.prototype.OS_RPLY = navigator.oscpu + " (" +                                   navigator.platform + ")";    // Windows likes \r\n line endings, as wussy-notepad can't cope with just    // \n logs.    if (client.platform == "Windows")        client.lineEnd = "\r\n";    else        client.lineEnd = "\n";}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/2fe82e08f87671b1a5f5e6648549a7ad6ecc79ea/static.js/clean/extensions/irc/xul/content/static.js