function getContent(c, d) {
    $(c).load(d, function (a, d) {
        if (d != 'error') {
            var e = $(a).find('#content').html();
            if (!$.browser.msie) {
                var b = new RegExp("../images", "g");
                e = e.replace(b, "images");
            } else if (parseInt($.browser.version) >= 8) {
                var b = new RegExp("../images", "g");
                e = e.replace(b, "images");
            } else {
                var f = parseUri(window.location).directory;
                var s = new RegExp("/", "g");
                f = f.replace(s, '');
                var t = window.location.protocol + '//' + window.location.host;
                var b = new RegExp(t, "g");
                e = e.replace(b, t + '/' + f);
            }
            $(c).html(e);
        }
    })
}
function changeVisility(a) {
    document.getElementById(a).style.display = "inline";
    document.getElementById(a).style.visibility = "visible"
};

// parseUri 1.2.2
// (c) Steven Levithan <stevenlevithan.com>
// MIT License

function parseUri(str) {
    var o = parseUri.options,
		m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
		uri = {},
		i = 14;

    while (i--) uri[o.key[i]] = m[i] || "";

    uri[o.q.name] = {};
    uri[o.key[12]].replace(o.q.parser, function($0, $1, $2) {
        if ($1) uri[o.q.name][$1] = $2;
    });

    return uri;
};

parseUri.options = {
    strictMode: false,
    key: ["source", "protocol", "authority", "userInfo", "user", "password", "host", "port", "relative", "path", "directory", "file", "query", "anchor"],
    q: {
        name: "queryKey",
        parser: /(?:^|&)([^&=]*)=?([^&]*)/g
    },
    parser: {
        strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
        loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
    }
};
