$(document).ready(function(){
	// 拼音索引
	$('.spellIndex dd').hover(function(){
		var obj = $(this);
		var t = $(this).children('span').html();
		t = t.substring(0,1).toLowerCase();
        $(this).addClass('hover');
		if(!$(this).children().is('ul'))
		{			
		$.get('ajaxData/categoryList.php',{letter:t},function(data){
		    obj.append(data);
		});	
		}
	},function(){
		$(this).removeClass('hover');
	});	
	// 分类子菜单
	$('.categoryList li').hover(function(){
		if ($(this).children('ul').length > 0)
		$(this).addClass('hover');
	},function(){
		$(this).removeClass('hover');
	});
});

