﻿$(document).ready(function(){
	$(".news").mouseover(function(){
		$(".news").each(function(){$(this).css("color","");});
		$(".news__note").each(function(){$(this).hide();});
		$(this).css("color","#f00");
		$("#news"+$(this).attr("name")).show();
	});
	//$($(".news")[0]).mouseover();
	
	$(".jiandu").mouseover(function(){
		$(".jiandu").each(function(){$(this).removeClass("mon0").addClass("mon1");});
		$(".jiandu_note").each(function(){$(this).hide();});
		$(this).removeClass("mon1").addClass("mon0");
		$("#jiandu"+$(this).attr("name")).show();
		$("#jdmore").attr("href",$(this).attr("h"));
	});
	
	$(".cwh").mouseover(function(){
		$(".cwh").each(function(){$(this).removeClass("mon0").addClass("mon1");});
		$(".cwh_note").each(function(){$(this).hide();});
		$(this).removeClass("mon1").addClass("mon0");
		$("#cwh"+$(this).attr("name")).show();
		$("#cwhmore").attr("href",$(this).attr("h"));
	});
	
	$(".daibiao").mouseover(function(){
		$(".daibiao").each(function(){$(this).removeClass("mon0").addClass("mon1");});
		$(".daibiao_note").each(function(){$(this).hide();});
		$(this).removeClass("mon1").addClass("mon0");
		$("#daibiao"+$(this).attr("name")).show();
		$("#dbmore").attr("href",$(this).attr("h"));
	});
	$(".falv").mouseover(function(){
		$(".falv").each(function(){$(this).removeClass("rtit0").addClass("rtit1");});
		$(this).removeClass("rtit1").addClass("rtit0");
		$("#falvType").val($(this).attr("id"));
	});
	
	$("#rendayaowen").click(function(){
		window.open("news.jspx?tid=z0g27chqyx");
	});
	$("#jicenrenda").click(function(){
		window.open("news.jspx?tid=z0g27ci3ir");
	});
	$("#yifuliangyuan").click(function(){
		window.open("supervision.jspx?tid=z0g27cl8um");
	});
	$("#zhuangxiangjiandu").click(function(){
		window.open("supervision.jspx?tid=z0g27ckqno");
	});
	$("#jihuajiandu").click(function(){
		window.open("supervision.jspx?tid=z0g27ckxrq");
	});
	$("#zhifajiancha").click(function(){
		window.open("supervision.jspx?tid=z0g27cl17v");
	});
	$("#beianshencha").click(function(){
		window.open("list.jsp?id0=z0g25vfelt&id1=z0g25vg9hs");
	});
	$("#lindaojianghua").click(function(){
		window.open("cwh.jspx?id=z0g27cnjib");
	});
	$("#juedingjueyi").click(function(){
		window.open("cwh_nojc.jspx?id=z0g25x209a");
	});
	$("#renshirenmian").click(function(){
		window.open("jigou.jspx?id=z0g27a2bdk");
	});
	$("#daibiaogongzuo").click(function(){
		window.open("dbzj.jspx?mid=z0g3kyazs1");
	});
	$("#daibiaofengcai").click(function(){
		window.open("dbzj.jspx?mid=z0g3kybi3o");
	});
	$("#yuandi").click(function(){
		window.open("jigou.jspx?id=z0g27c9trk");
	});
	$("#daibiaolvzhi").click(function(){
		window.open("dbzj.jspx?mid=z0g3kybrqv");
	});
	$("#yianbanli").click(function(){
		window.open("jigou.jspx?id=z0g27c7xvz");
	});
	$(".linkStyle").change(function(){
		var href = $(this).val();
		window.open(href);
		this.selectedIndex=0;
	});

    $(".fg").mouseover(function(){
        $(".fg").removeClass("fg_red");
        $(this).addClass("fg_red");
        $(".fgc").hide();
        $("#fg"+$(this).attr("sub")).show();
    });
    $($(".fg")[0]).mouseover();
});
