$(function() {
    var custom = {
            'ab': function(a, b) {
                return a == b
            },
            'cd': function(c, d) {
                return c(d)
            },
            'href': 'href',
            'hr': function(e, f) {
                return e == f
            },
            'selected': 'selected',
            'gh': function(g, h) {
                return g(h)
            },
            'stbn': '#starlist',
            'on': 'active',
            'ij': function(i, j) {
                return i(j)
            },
            'fmak': '.fademask',
            'kl': function(k, l) {
                return k(l)
            },
            'menu': '.mobile-menu',
            'mn': function(m, n) {
                return m(n)
            },
            'op': function(o, p) {
                return o(p)
            },
            'qr': function(q, r) {
                return q(r)
            },
            'wrap': '.b-nav-search_wrap',
            'st': function(s, t) {
                return s(t)
            },
            'uv': function(u, v) {
                return u < v
            },
            'wx': function(w, x) {
                return w > x
            },
            'sup': 'slideUp',
            'yz': function(y, z) {
                return y > z
            },
            'dab': function(aa, bb) {
                return aa > bb
            },
            'gotop': '#go-to-top',
            'dcd': function(cc, dd) {
                return cc(dd)
            },
            'smap': '.sitemap a:eq(1)',
            'def': function(ee, ff) {
                return ee(ff)
            },
            'dgh': function(gg, hh) {
                return gg(hh)
            },
            'dot': '.dot',
            'dij': function(ii, jj) {
                return ii(jj)
            },
            'dkl': function(kk, ll) {
                return kk(ll)
            },
            'stli': '#starlist li',
            'ck': 'click',
            'btn': '.search-btn',
            'hdr': 'header',
            'dmn': function(mm, nn) {
                return mm(nn)
            },
            'dop': function(oo, pp) {
                return oo > pp
            },
            'dqr': function(qq, rr) {
                return qq(rr)
            }
        },
        ss = location['href'],
        yd = custom['dcd']($, custom['smap'])['attr'](custom['href']);
     custom['def']($, '#starlist .sub-nav')['before']('<em class="dot"><i class="jzicon-arrow-down"></i></em>'), custom['dgh']($, custom['dot'])['click'](function() {
        custom['gh']($, custom['stbn'])['hasClass'](custom['on']) && custom['cd']($, this)['next']()['slideToggle']()
    }), custom['dij']($, custom['menu'])['click'](function() {
        $(custom['stbn'])['toggleClass'](custom['on']), custom['ij']($, custom['fmak'])['toggleClass']('active')
    }), custom['dkl']($, custom['stli'])['hover'](function() {
        $(this)['addClass']('on')
    }, function() {
        custom['cd']($, this)['removeClass']('on')
    }), $(document)['bind'](custom['ck'], function(gn) {
        custom['kl']($, custom['menu'])['is'](':visible') && !custom['kl']($, gn['target'])['closest'](custom['menu'])['length'] && !custom['mn']($, gn['target'])['closest']('#starlist')['length'] && ($(custom['stbn'])['removeClass'](custom['on']), custom['op']($, custom['fmak'])['removeClass'](custom['on']))
    }), $(custom['btn'])['click'](function() {
        custom['qr']($, custom['wrap'])['toggleClass']('active')
    }), $(document)['bind']('click', function(tm) {
        custom['st']($, '.search-btn')['is'](':visible') && !$(tm['target'])['closest']('.search-btn')['length'] && !custom['mn']($, tm['target'])['closest'](custom['wrap'])['length'] && $(custom['wrap'])['removeClass'](custom['on'])
    });
    var cg = 0,
        ec, gr = document['getElementById'](custom['hdr']);
    window['addEventListener']('scroll', function(ju) {
        ec = window['scrollY'];
        if (custom['uv'](cg, ec) && custom['wx'](ec, 80)) gr['classList']['add'](custom['sup']);
        else custom['yz'](cg, ec) && gr['classList']['remove'](custom['sup']);
        cg = ec
    }), custom['dmn']($, custom['gotop'])['click'](function() {
        return $('html, body')['animate']({
            'scrollTop': 0
        }, 300), ![]
    });
    var yz = $(window)['scrollTop'](),
        tx = 500;
    custom['dop'](yz, tx) && custom['kl']($, '#go-to-top')['addClass']('active'), custom['dqr']($, window)['scroll'](function() {
        yz = custom['st']($, window)['scrollTop'](), custom['dab'](yz, tx) ? custom['st']($, custom['gotop'])['addClass'](custom['on']) : $(custom['gotop'])['removeClass']('active')
    })
}); 



