$(function() {
	$('#category_list>li').removeAttr('class').children('ul').hide().find(':last-child').addClass('tree_end');
	//$('#category_list>li').children('a').css({background:'left center no-repeat url(/img/btn_plus.png)', paddingLeft: '15px'});
	$('#category_list>li>a').click(function() {
		var target = $(this).parent('li');
		$(target).toggleClass('selected');
		if( $(target).is('.selected') ) {
			$(target).children('ul').slideDown('fast');
			//$(target).children('a').css('background-image', 'url(/img/btn_minus.png)' );
		} else {
			$(target).children('ul').slideUp('fast');
			//$(target).children('a').css('background-image', 'url(/img/btn_plus.png)' );
		}
	});
});
$(function() {
	var timeTable;
	$('a.parent,#parent2child_list').mouseover(function() {
		if(typeof timeTable != 'undefined') clearTimeout(timeTable);
		$('#parent2child_list').slideDown('fast');
	}).mouseout(function() {
		timeTable = setTimeout(function(){
			$('#parent2child_list').slideUp('fast');
		}, 200);
	});
	
});