$(document).ready(function () {
    var obl = new Array()
    var a = new Array()
    
    obl = $("#navigation > *")
    
    jQuery.each(obl, function(){
        a.push($(this).find('a:first'))
    })
    
    jQuery.each(a, function(){
        $(this).click(function(){
            $('.active').removeClass('active')
            $(this).parent().addClass('active')
        })
    })
    
})