/**
 * 充值导航js
 */
// 第N个菜单显示
function showNav(i) {
	if (i < 0) {
		$("#imprest_left_nav .czxz_content").hide();
		$("#imprest_left_nav .wihte_three").attr('class', 'wihte');
	} else {
		$("#imprest_left_nav .czxz_content:eq(" + i + ")").show();
		$("#imprest_left_nav .wihte:eq(" + i + ")")
				.attr('class', 'wihte_three');
	}
}

// ID 为curNav 的 菜单显示
function showNavByName(curNav) {
	$("#imprest_left_nav .czxz_content").hide();
	$("#imprest_left_nav .titleon").attr('class', 'title');
	if (curNav != '') {
		$("#" + curNav + " .czxz_content").show();
		$("#" + curNav + " .title").attr('class', 'titleon');
	}
}

$(function() {
	// 所有菜单隐藏
	$("#imprest_left_nav .czxz_content").hide();

	$("#imprest_left_nav .titleon").attr('class', 'title');
	// 显示手状
	$("#imprest_left_nav .title").css('cursor', 'pointer');

	// 点击单个（向右）>菜单，该子菜单展示，其他菜单隐藏
	$("#imprest_left_nav .title").click(function() {
		$("#imprest_left_nav .titleon").attr('class', 'title');
		$("#imprest_left_nav .czxz_content").hide();

		// 该子菜单展示
			$(this).attr('class', 'titleon');
			// $(this).parents().children(".czxz_content").show();
			$(this).parents().children(".czxz_content").slideToggle("fast");
		});

});

