eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } (';(1($){$.g.h=1(c){2 d=$.g.h,k=1(){2 a=$(3),7=m(a);q(7.p);a.v().12().9()},j=1(){2 a=$(3),7=m(a),o=d.5;q(7.p);7.p=S(1(){a.9()},o.B);d.n()},m=1(a){2 b=a.G(\'6:R\')[0];d.5=d.o[b.u];f b};f 3.F(1(){2 s=3.u=d.o.N;2 o=$.x({},d.y,c);d.o[s]=d.5=o;$(\'l\',3)[\'M\'](k,j).9();2 b=$(\'a\',3);b.F(1(i){2 a=b.C(i).G(\'l\');b.C(i).L(1(){k.E(a)}).I(1(){j.E(a)})})})};2 e=$.g.h;e.4=\'\';e.o=[];e.5={};e.y={4:\'#P\',8:\'J\',B:K};e.n=1(){$(e.5.4).A(e.4)};e.w=1(){$(e.5.4).t(e.4)};$.g.x({9:1(){2 o=e.5;2 a=$([\'l.\',o.8].O(\'\'),3).H(3).A(o.8).r(\'>6\').Q().z(\'D\',\'T\');f 3},v:1(){2 o=e.5,U=$6=3.t(o.8).r(\'>6\').z(\'D\',\'V\');2 a=$(3).W(\'X\');Y(e.4!=a)e.n();e.4=a;e.w();$6.Z(\'10\');f 3}})})(11);', 62, 65, '|function|var|this|border|op|ul|menu|hoverClass|hideSuckerfishUl||||||return|fn|suckerfish||out|over|li|getMenu|resetBorder||sfTimer|clearTimeout|find||addClass|serial|showSuckerfishUl|setBorder|extend|defaults|css|removeClass|delay|eq|visibility|call|each|parents|add|blur|sfHover|800|focus|hover|length|join|subnavborder|hide|first|setTimeout|hidden|sh|visible|attr|id|if|slideDown|fast|jQuery|siblings'.split('|'), 0, {}))

var ie6 = $.browser.msie && $.browser.version.substr(0, 1) < 7;
var timeout=null;
App = {
    SEARCH_FIELD: '#searchInputBox',
    searchText: '',
    init: function() {
        if (!ie6) $('#nav').suckerfish({ delay: 0 });
        else App.ieNav();
        if (!ie6) $('#search').mouseover(function() { App.showSearch(); });
        var s = this.SEARCH_FIELD;
        this.searchText = $(s).val();
        this.searchInput(s, 'enter');

        if (window.opera) $(s).keypress(function(e) { App.startHideSearch(); });
        else $(s).keydown(function(e) { App.startHideSearch(); });

        $('#searchInput').mouseout(function() { App.startHideSearch(); });
        $('#contentContainer hr').each(function() { $(this).after("<div class='hr'>&nbsp;</div>"); $(this).remove(); });
        $.ajaxSetup({
            cache: false,
            error: function(x, e) {
                var note = 'Unknown Error.\n' + x.responseText;
                switch (x.status) {
                    case 0: return;
                    case 404: note = 'Sorry, the requested URL was not found.'; break;
                    case 500: note = 'Sorry, there was an internel server error.'; break;
                }
                switch (e) {
                    case 'parsererror': note = 'Sorry, there was an error parsing JSON request.'; break;
                    case 'timeout': note = 'Sorry, there was a request time out.'; break;
                }
            }
        });
    },
    getParameter: function(name) {
        name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
        var regexS = "[\\?&]" + name + "=([^&#]*)";
        var regex = new RegExp(regexS);
        var results = regex.exec(window.location.href);
        if (results == null) return "";
        else return results[1];
    },
    hideSearch: function() {
        clearInterval(timeout);
        $('#searchInput').hide();
    },
    ieNav: function() {
        // convert this script to jQuery
        if (document.all && document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i = 0; i < navRoot.childNodes.length; i++) {
                node = navRoot.childNodes[i];
                if (node.nodeName == "LI") {
                    node.onmouseover = function() { this.className += " sfhover"; }
                    node.onmouseout = function() { this.className = this.className.replace(" sfhover", ""); }
                }
            }
        }
    },
    search: function() {
        var s = this.SEARCH_FIELD;
        if ($(s).val() == this.searchText) $(s).val('');
        $('#searchForm').submit();
    },
    searchInput: function(id, text) {
        var d = text;
        $id = $(id);
        $id.focus(function() { if ($(this).val() == d) $(this).val(''); });
        $id.blur(function() { if ($.trim($(this).val()) == '') $(this).val(d); });
    },
    showSearch: function() {
        $('#searchInput').show();
        this.startHideSearch();
    },
    startHideSearch: function() {
        clearInterval(timeout);
        timeout = setInterval(App.hideSearch, 3000);
    }
};
// window load
$().ready(function(){
	App.init();
});