$(document).ready(function() {
						
	$('#nav').children('li:last').addClass('last')
	$('#nav').children('li').hover(
		function() {
			
			$(this).find('.selectul').show();
			
			$(this).addClass('move')
		},
		function() {
			$('#nav').find('.selectul').hide();
			$('#nav').children('li').removeClass('move')
		}
	);
	$('.selectul').children('li').eq(0).attr('style','z-index:100');
	$('.selectul').children('li').hover(
		function() {
			$(this).addClass('move');
			$('.selectul').find('li').attr('style','z-index:10')
			$('.select2').hide();
			$(this).find('.select2').show();
			$(this).attr('style','z-index:100')
		},
		function() {
			$('.select2').hide();
			$('.selectul').children('li').removeClass('move')
			$('.selectul').find('li').attr('style','z-index:10')
		}
	);
	
	
	
	
	$('.homelist').eq(0).find('dl:last').addClass('last');
	
	
	
	
	
	
	
	
	$("#ppth th:last-child").addClass('last');
	thNum=$('#ppth').find('th').length;
	/*
	
	allZS=0;
	for (var t88=0; t88<thNum; t88++) {
		kd=$('#ppth').find('th').eq(t88).attr('width');
		allZS=Number(allZS)+Number(kd);
	};
	$('#tableID').attr('width',allZS);
	*/
	trNum=$('#tableID').find('tr').length;
	for (var tt23=1; tt23<trNum;tt23++) {
		$('#tableID').find('tr').eq(tt23).find('td').eq(0).attr('style','text-align:center');
		$('#tableID').find('tr').eq(tt23).find('td').eq(1).attr('style','text-align:center');
		$('#tableID').find('tr').eq(tt23).find('td').eq(2).addClass('fontl');
		$('#tableID').find('tr').eq(tt23).find('td').eq(thNum-1).addClass('last');
	};
	$('#ppTd').children('tr:even').attr('style',' background-color:#f7feff')
	$('#ppTd').children('tr').hover(
		function() {
			$(this).attr('style',' background-color:#d5fdfd')
		},
		function() {
			var hhh=$('#ppTd').children('tr').index(this);
			if (hhh%2) {
				$(this).attr('style',' background-color:#f7feff');
			} else {
				$(this).attr('style',' background-color:#ecf8fe')
			}
		}
	)
	
	
	
	
	
	kkdt=1000;
	/*
	$('.tabbox').find('dt').toggle(
		function() {	
			ddds=$('.tabbox').find('dt').index(this);
			$(this).attr('id','move');
			$(this).parent().find('dd').slideDown('fast');
		},
		function() {
			ddds=$('.tabbox').find('dt').index(this);
			$(this).removeAttr('id');
			$(this).parent().find('dd').slideUp();		
		}
	);*/
	//$('.tabbox').find('dt').click(function() {
	//	xiaoshi()							   
										   
	//});
	$('.tabbox').find('dt').click(
		function() {
			ddds=$('.tabbox').find('dt').index(this);
			if (ddds==kkdt) {

				kkdt=1000
				$('.tabbox').find('dt').removeAttr('id');
				$('.tabbox').find('dd').slideUp();	
				return false;
			}
			$('.tabbox').find('dt').removeAttr('id');
			$('.tabbox').find('dd').slideUp();	
			
			$(this).attr('id','move');
			$(this).parent().find('dd').slideDown('fast');
			kkdt=ddds;
		}
	);
	

	
	$('#tabnav').find('li').click(function() {
		$('.txtMain').hide();
		$('#tabnav').find('li').removeClass('move');
		$(this).addClass('move')
		var linum=$('#tabnav').find('li').index(this);
		$('.txtMain').eq(linum).show();								   
	});
	
	
	$('#idh1').find('span').hide();
	var linum=$('#ulileng').find('li').length;
	if (linum>5) {
		$('#idh1').find('span').show();	
	};
	ligaodu=linum*23;
	$('#idh1').find('span').toggle(
		function() {
			$('#ulileng').animate({height: ligaodu+'px'}, "slow"); 	
		},
		function() {
			$('#ulileng').animate({height: '115px'}, "slow"); 
		}
	)
	

$('.gyMain').find('.txtMain').eq(0).show();

$('.gyNav').find('li').click(function() {
									 
		$('.gyMain').find('.txtMain').hide();
		$('.gyNav').find('li').removeClass('move');
		$(this).addClass('move');
		var linum=$('.gyNav').find('li').index(this);

		$('.gyMain').find('.txtMain').eq(linum).show();								   
});
	
	
	
})