JScript help? What is the main purpose of  this JavaScript code?
<p>What is the main purpose of the following JavaScript code?</p>

<pre><code>&lt;script&gt;

var QunarUtil=new function(){var prefix='/scripts/';var suffix='';var host='';if(location.host.indexOf('src.')!=-1){prefix='/scripts/src/';host='http://hstatic.qunar.com';suffix='.js';}else if(location.host.indexOf('enc.')!=-1){prefix='/scripts/';host='http://hstatic.qunar.com';suffix='.js';}else if(location.host.substring(0,10)=='sdev-'){prefix=location.host.substring(5,location.host.indexOf('.'));prefix='/'+prefix.replace(/\-/ig,'/');host='http://hstatic.qunar.com';suffix='.js';}else if(location.host.indexOf("h.qunar.com")!=-1){host='http://hstatic.qunar.com';suffix='';}
this.getScriptURL=function(name,isList){if(name.charAt(0)!='/')
return this.getScript(prefix+name,isList);else
return this.getScript(name,isList);}
this.getScript=function(src,isList){return'&lt;'+'script type="text/javascript" src="'+host+src+(isList?suffix:'.js')+'?'+__QUNARVER__+'"&gt;&lt;/'+'script&gt;';}
this.writeScript=function(name,isList){document.write(this.getScriptURL(name,isList));}
this.writeScriptList=function(list){for(var i=0;i&lt;list.length;i++)
document.write(this.getScriptURL(list[i]));}
var cssRoot='/styles/';this.writeCSS=function(cssList){for(var i=0;i&lt;cssList.length;i++){document.write('&lt;link rel="stylesheet" href="'+cssRoot+cssList[i]+'?'+__QUNARVER__+'"&gt;');}}
this.writeStaticScript=function(src){document.write('&lt;scr'+'ipt type="text/javascript" src="'+src+'"&gt;&lt;/'+'scr'+'ipt&gt;');}
this.writeStaticList=function(src){document.write('&lt;scr'+'ipt type="text/javascript" src="'+src+suffix+'?'+__QUNARVER__+'"&gt;&lt;/'+'scr'+'ipt&gt;');}}
$include=function(){for(var i=0;i&lt;arguments.length;i++){QunarUtil.writeScript(arguments[i],true);}}
&lt;/script&gt;
</code></pre>

<hr>

<p>Uncompressed version:</p>

<pre><code>&lt;script&gt;
    var QunarUtil = new
    function() {
        var prefix = '/scripts/';
        var suffix = '';
        var host = '';
        if (location.host.indexOf('src.') != -1) {
            prefix = '/scripts/src/';
            host = 'http://hstatic.qunar.com';
            suffix = '.js';
        } else if (location.host.indexOf('enc.') != -1) {
            prefix = '/scripts/';
            host = 'http://hstatic.qunar.com';
            suffix = '.js';
        } else if (location.host.substring(0, 10) == 'sdev-') {
            prefix = location.host.substring(5, location.host.indexOf('.'));
            prefix = '/' + prefix.replace(/\-/ig, '/');
            host = 'http://hstatic.qunar.com';
            suffix = '.js';
        } else if (location.host.indexOf("h.qunar.com") != -1) {
            host = 'http://hstatic.qunar.com';
            suffix = '';
        }
        this.getScriptURL = function(name, isList) {
            if (name.charAt(0) != '/') return this.getScript(prefix + name, isList);
            else
            return this.getScript(name, isList);
        }
        this.getScript = function(src, isList) {
            return '&lt;' + 'script type="text/javascript" src="' + host + src + (isList ? suffix : '.js') + '?' + __QUNARVER__ + '"&gt;&lt;/' + 'script&gt;';
        }
        this.writeScript = function(name, isList) {
            document.write(this.getScriptURL(name, isList));
        }
        this.writeScriptList = function(list) {
            for (var i = 0; i &lt; list.length; i++)
            document.write(this.getScriptURL(list[i]));
        }
        var cssRoot = '/styles/';
        this.writeCSS = function(cssList) {
            for (var i = 0; i &lt; cssList.length; i++) {
                document.write('&lt;link rel="stylesheet" href="' + cssRoot + cssList[i] + '?' + __QUNARVER__ + '"&gt;');
            }
        }
        this.writeStaticScript = function(src) {
            document.write('&lt;scr' + 'ipt type="text/javascript" src="' + src + '"&gt;&lt;/' + 'scr' + 'ipt&gt;');
        }
        this.writeStaticList = function(src) {
            document.write('&lt;scr' + 'ipt type="text/javascript" src="' + src + suffix + '?' + __QUNARVER__ + '"&gt;&lt;/' + 'scr' + 'ipt&gt;');
        }
    }
    $include = function() {
        for (var i = 0; i &lt; arguments.length; i++) {
            QunarUtil.writeScript(arguments[i], true);
        }
    }
&lt;/script&gt;
</code></pre>
