// JavaScript Document
$(document).ready(function(e) {
    $('.catItem').click(function(e) {
        $(this).next('ul.list_1').slideToggle("normal");
    });
	
	$('.tg_tab').click(function(e) {
        $(this).next('ul').slideToggle("normal");
    });
	
	$('.acc_t').click(function(e) {
        $(this).next('.acc_c').slideToggle("normal");
		//$(this).next('.acc_c').css('display','block');
		$(this).children('div.acc_arrow').toggleClass('acc_arrow_active');
    });
	
	$('.tab_header a').click(function(e) {
		
		$('.tabContent').css('display','none');
		$('div' + $(this).attr('rel')).css('display','block');
		$('.tab_header div').removeClass('selected');
		$(this).parent().addClass('selected');
		
    });
	
	$('.tab_header_home a').click(function(e) {
		
		$('.tabContent').css('display','none');
		$('div' + $(this).attr('rel')).css('display','block');
		$('.tab_header_home div').removeClass('selected');
		$(this).parent().addClass('selected');
		
		if($(this).hasClass('newIFT'))
			$('.Tabmask').css('display','block');
		else 
			$('.Tabmask').css('display','none');
    });
	
	if($('.sec_yellow')) {
		$('.hover').find('.plusIcon').css('display','block');
	}
	
	$('.sec_yellow').click(function(e) {
        $(this).children().find('input[type=radio]').attr('checked', 'checked');
		$('.hover').find('.plusIcon').css('display','none');
		$('.sec_yellow').removeClass('hover');
		$(this).addClass('hover');
		$(this).find('.plusIcon').css('display','block');
    });
	/*
	$('.sec_yellow_2').click(function(e) {
        $(this).children().find('input[type=radio]').attr('checked', 'checked');
		$('.sec_yellow').removeClass('hover');
		$('.sec_yellow_2').removeClass('hover');
		$(this).addClass('hover');
    });
	*/
});

