﻿/// <reference path="jquery.min-vsdoc.js" />
/*
Accordion Script
Dependency : jquery.min.js
특정 파일에서 직접 삽입해서 사용함
*/

$(function() {
    var prevTarget = null;
    $('.service_faq li.content').css('cursor', 'pointer');
    $('.service_faq li.overContent').hide();
    $('.service_faq li:has(img)').click(function(e) {
        if ($(this).hasClass('content')) {
            $(this).removeClass().addClass('over');
            $(this).children().attr('src', '/images/2.0/img_arrow_top.gif');
            $(this).children().attr('alt', '닫기');
            $(this).next().show();
        } else {
            $(this).removeClass().addClass('content');
            $(this).children().attr('src', '/images/2.0/img_arrow_bottom.gif');
            $(this).children().attr('alt', '열기');
            $(this).next().hide();
        }
    }).eq(0).click();
});
