$(document).ready(function(){
    $('#section_scrollable').leftScrollbar();
    if(undefined!=window.section){
         $(".leftmenuitem[section="+section+"]").hide();
    }
   
    $( "#accordion_content" ).accordion({
      collapsible: true,
      animated: false,
      autoHeight:false
    }).find("h3:first").click().blur();
    $("#accordion_content").accordion('option', 'animated', true);

    $("#logo_header").hover(
        function(){
            
            $("#logo_hometitle").show('clip');
        },
        function(){
            $("#logo_hometitle").hide('clip');
        }

    );
   /* $("a.infolink").click(function(){showusefulinfo($(this).attr('uiitem_id'))});*/

    
});

function showusefulinfo(id){
    //closeusefulinfo();
    //load ajax content
    $("#messagewindow").show();
    $("#messagewindow_content").load("/staticpages/usefulinfodisplay/"+id);
}
function closeusefulinfo(){
    //close window
    $("#messagewindow").hide();
    //replace content with loading gif
    $("#messagewindow_content").html("loading");

}
