$(document).ready(function(){
    if($('div.flash span.information'))
        if($('div.flash span.information').delay)
            $('div.flash span.information').delay(3000).hide('slow');

    $('li.menuItem').click(function(){
        
    });

    activeLink = $('div#menu a.active');
    if(activeLink.next().get(0))
        if(activeLink.next().get(0).tagName == 'UL')
            activeLink.next().show();
    while(activeLink)
    {
        if(activeLink.parent().parent().get(0))
        {
            if(activeLink.parent().parent().get(0).tagName == 'UL')
            {
                activeLink.parent().parent().show();
                activeLink = activeLink.parent().parent();
            }
            else
                activeLink = null;
        }
        else
            activeLink = null;
    }

    $('div#subpages a.title').click(function(){
        if($(this).next().next().get(0))
            if($(this).next().next().get(0).tagName == 'UL')
            {
                if($(this).next().next().is(':visible'))
                    $(this).next().next().hide();
                else
                    $(this).next().next().show();
            }
    });
});

