var gemius_identifier = new String();
function KSGemius() {
    // private variables
    var ks_gemius_prefix = /\http:\/\/slownikkomputerowy\.pl\b/gi;
    gemius_identifier = new String(GetSection(''));

    function GetPath(url) {
        return url.replace(ks_gemius_prefix, '');
    }

    function GetSection(ks_section_local) {

        var result = ks_section_local;
        if (ks_section_local == '') {
            var url = document.location.href;
            var path = GetPath(url);
            var s = 'pxXrsju4bN9wVkUK4dnkpeVF7A7pNawoVa4TefXRQKL.o7';
            var elems = {
                strona_glowna: { id: 0, hash: 'pxXrsju4bN9wVkUK4dnkpeVF7A7pNawoVa4TefXRQKL.o7', reg: "^\/$" },
                jak_uzywac: { id: 1, hash: '.cnrsqNRbN8Cnat41y_nhZbyXmXsR4bK0F0m34inRWP.F7', reg: "^\/jak-tego-uzywac.aspx" },
                jak_dziala: { id: 2, hash: 'pxZL0ju4fBbW0OW9IjdMJuVFXmXpNYbKVc6sms6E7R3.J7', reg: "^\/jak-to-dziala.aspx" },
                jak_kupic: { id: 3, hash: '.WnlFqLhETKs4ivx1y8oSeUT.lzpjseZHyhc1lLTlST.v7', reg: "^\/jak-to-kupic.aspx" },
                ostatnio_dodane: { id: 5, hash: '.WnlFqLhETIMf8wkd0IQouUTTBjpjmxZv8PpCqt08GP.u7', reg: "^\/ostatnio-dodane-hasla.aspx.*" },
                ostatnio_modyfikowane: { id: 6, hash: '.cpFNqNRIWqs0my3n9NovZdS.lzsN8eZcKRcWJA5vUT.X7', reg: "^\/ostatnio-modyfikowane-hasla.aspx.*" },
                szukaj: { id: 7, hash: 'pxZFNDu4ITLW0CKSak8kguVFTDjpNWxp9SpD9.6SsGP.37', reg: "^\/szukaj.aspx.*" },
                haslo: { id: 8, hash: '.cnrEKNRbCgCYwrF1723jOVz7O7pfqwYH2gzUtNIKC7.b7', reg: "^\/hasla/.*" },
                others2: { id: 9, hash: 'pxXrsju4bN9wVkUK4dnkpeVF7A7pNawoVa4TefXRQKL.o7', reg: "^/.*" }
            };
            // first match
            for (i in elems) {
                var k = elems[i];
                var nn = i;
                var re = new RegExp(k.reg, "gi");
                if (path.match(re)) {
                    s = k.hash;
                    break;
                }
            }
            result = s;
        }
        return result;
    }; //GetPath

} // KSGemius

var gemius = new KSGemius();


