var CurrentSection = '';

jQuery(document).ready(function () {
    var hash = window.location.hash.substr(1);

    if (hash.length > 0) {
        if ($("#" + hash + "a").length) {
            CurrentSection = hash;
        } else {
            CurrentSection = 'news';
        }
    } else {
        CurrentSection = 'news';
    }
    $("#" + CurrentSection + "a").parent().addClass('current');

});

function GoToSection(section) {
    $("#" + CurrentSection + "a").parent().removeClass('current');
    CurrentSection = section;
    $("#" + section + "a").parent().addClass('current');
}
