//HomePage item
$(document).ready(
	function()
	{
		//首页滚动NEWS
		$(".home_news>ul>li").hover(
			function()
			{
				$(this).addClass("hover");
			},
			function()
			{
				$(this).removeClass("hover");
			}
		);

		//首页home_hot_solutions
		$(".home_hot_solutions ul li:first").addClass("first");

		//首页home_led_case
		$(".home_led_case ul li:first").addClass("first");
		$(".home_led_case ul li").hover(
			function()
			{
				$(this).addClass("hover");
			},
			function()
			{
				$(this).removeClass("hover");
			}
		);

		//首页home_new_product
		$(".home_new_product ul li").hover(
			function()
			{
				$(this).addClass("hover");
			},
			function()
			{
				$(this).removeClass("hover");
			}
		);

		//subnav最后一个li
		$(".subnav>ul>li:last").addClass("last");

		//subnav li命名Class
		$(".subnav>ul>li").addClass("subnavLi");

		//case listPage,定义第三个li
		$(".case_listPage>li:nth-child(3n)").addClass("n3");
		
		//case listPage,鼠标经过效果
		$(".case_listPage>li").hover(
			function()
			{
				$(this).addClass("hover");
			},
			function()
			{
				$(this).removeClass("hover");
			}
		);

		//产品主页
		$(".products_homepage li:odd").addClass("odd");

		//产品列表页
		$(".article_info li:even").addClass("even");

		//solutions Page
		$(".solutions_info li:odd").addClass("odd");
		$(".solutions_info li:even").addClass("even");

		//PRODUCT COMMON PROBLEM Page
		$(".product_common_problem li").hover(
			function()
			{
				$(this).addClass("hover");
			},
			function(){
				$(this).removeClass("hover");
			}
		);

		//pagelist
		$(".pagelist a").hover(
			function()
			{
				$(this).addClass("current");
			},
			function(){
				$(this).removeClass("current");
			}
		);

		//company_news
		$(".list_news li").hover(
			function()
			{
				$(this).addClass("current");
			},
			function(){
				$(this).removeClass("current");
			}
		);
		
		//Download Center Hide
		var downloadCenterHide = $(".subnav>ul>li>a");
		downloadCenterHide.each(
			function(){
				if ( $(this).text()=="Download Center Hide" )
				{
					$(this).parents("li").addClass("hide");
				}
			}
		);
	}
);

function imgsrc(){
	$("#vdcodeimg").removeAttr("src");
	$("#vdcodeimg").attr("src","/include/vdimgck.php?"+Math.random());
}


