// JavaScript Document
$(document).ready(function () {
    function Set_Height($obj) {
        $heights = $obj.parent().parent().parent().parent('.leftbox').css('height');
        $('.left-back').css('height', $heights);
    }


    Set_Height($('.accardeon').children('li:first').children('a'));
    $('.accardeon li a').click(function () {
        if ($(this).attr('href') == '#' && $(this).next().is(':hidden')) {
            $(this).parent().parent().children('li').not($(this).parent()).children('.sub-acc').hide();
            $(this).next('.sub-acc').fadeIn();
            Set_Height($(this));
            return false;
        }
        else if ($(this).attr('href') == '#') {
            $(this).next('.sub-acc').hide();
            Set_Height($(this));
            return false;
        }
    });
})

