$(document).ready(function() {
	// do something here

$(".products").find("li:last").css({"background":"none","margin-right":"0"});

$(".companyshow:even").addClass("co");
$(".companyprofile").hide();
$(".companyshow").hover(
			function(){
				$(this).addClass("hover");
				$(this).find(".companyprofile").fadeIn()
				$(this).find('.productslist').addClass('mouseon')
				//animate({height: 'show',opacity: 'show'}, 'slow');

				},
			function(){
				$(this).removeClass("hover");
				$(this).find(".companyprofile").hide()
				$(this).find('.productslist').removeClass('mouseon')
				}
						);
$(".recentcompany").next().find("dd").hide();
$(".recentcompany").next().find("dl").hover(
			function(){
				
				$(this).find("dd").animate({height: 'show',opacity: 'show'}, 'fast').end().find("dt").addClass("namehover");
				},
				function(){
				$(this).find("dd").animate({height: 'hide',opacity: 'hide'}, 'fast').end().find("dt").removeClass("namehover");
				}
);
//$('.subnav').attr("id", "subnav_div");

$('.toggle').toggle(
				   function(){
				   $('.subnav').removeClass('subnavoff');
				   $(this).css("background","url(images/nav.gif) no-repeat right -34px")},
				   function(){$('.subnav').addClass('subnavoff');
				   $(this).css("background","url(images/nav.gif) no-repeat right 0px")
				   });
$('.news li').hover(
				   function(){$(this).addClass('lion')},
				   function(){$(this).removeClass('lion')
				   });
$('.canshu tr:even').css('background','#fafafa');
$('.canshu td:even').css('color','#999');
$('.canshu td:last').css({'color':'#666','line-height':'20px'});
//留言部分
$('#mask').height($(document).height()).hide();
$('#feedback').hide();
$('.fd').click(function(){
			$('#mask').animate({
			height: 'show',
			opacity: '0.5'
		}, 'slow');
$('#feedback').animate({opacity: 'show'}, 'slow');});
$(".close").click(function(){
			$('#mask').animate({
			height: 'hide',
			opacity: 'hide'
		}, 'slow');	
$('#feedback').animate({opacity: 'hide'}, 'hide');});
//留言结束
$('.navon1').mouseover(function(){
$('select').hide();});
$('.navon1 ul').mouseout(function(){
$('select').show();})
$('#nav li').not('.navon1').mouseover(function(){
$('select').show();})
$('#msg').hide();
$('.fback').click(function(){
						   $('#msg').animate({
											 height:'show',
											 opacity:'show'},'slow');});
$('.btt').click(function(){
						 $('#msg').animate({
											 opacity:'hide'},'slow');});
});