(function( $ ){
    $.fn.thoAccordion = function() {
        var animationTime = 360; // in milliseconds
        $(this).find(' .accordion_content > li').each( function() {
            $(this).find("a").mouseover( function() {
                $(this).closest(".accordion_content").find("li").not($(this).closest("li")).find('.collapsible').slideUp(animationTime);// closes all collapsible sections of all items, except the one that needs to be opened
                $(this).closest("li").find('.collapsible').slideDown(animationTime); // opens up the relevant item's collapsible sections
            });
        });

        // if IE6
        if ($.browser.msie && parseInt($.browser.version) == 6) {
            $(this).find(".accordion_content li:first-child .collapsible").css('display', 'block');
        }

        $(this).find(' .accordion_content').css('height', $(this).find(' .accordion_content').height()); // lock the accordion height so the widget doesn't constantly
    };
})( jQuery );
