﻿//attorney section sliders
jQuery(document).ready(
    function() 
    {
        //click.	            
        $(".expandable").click(
            function() 
            {
                var collapsedImage = $(this).find(".collapsedImage");
                var expandedImage = $(this).find(".expandedImage");                
                
                var sectionData = $(this).parent().find(".sectiondata");
            
                if (!sectionData.is(":visible")) 
                {
                    collapsedImage.hide();
                    expandedImage.show();
                    sectionData.slideDown("slow");
                    sectionData.parent().find('a').addClass('expanded');                    
                }
                else 
                {
                    expandedImage.hide();
                    collapsedImage.show();
                    sectionData.slideUp("slow");
                    sectionData.parent().find('a').removeClass('expanded');
                }
            }
        );        
    }
);