$(document).ready(function() {
    $("#menu > #OnThis"+CID).addClass("Hover");//显示具有OnThis类的当前样式
    $("#menu > #OnThis"+CID).next().addClass("HiddenBJ");//隐藏下一个标签的分隔线

	$("#menu > li").mouseover(function() {
	$("#menu > li").removeClass("Hover");//清除所有当前样式
	$(this).addClass("Hover");	//显示当前样式
	$("#menu > li").removeClass("HiddenBJ");//显示所有分隔线
	$(this).next().addClass("HiddenBJ");//隐藏下一个标签的分隔线
    });

	$("#menu > li").mouseout(function(){
	$("#menu > li").removeClass("Hover");//清除所有当前样式
	$("#menu > #OnThis"+CID).addClass("Hover");//显示具有OnThis类的当前样式
	$("#menu > li").removeClass("HiddenBJ");//显示所有分隔线
    $("#menu > #OnThis"+CID).next().addClass("HiddenBJ");//隐藏下一个标签的分隔线
	});
	
//显示登录中
	$("#onlogin").click(function(){
	$("#loading").show("slow");
	});

//滑动门1
	$(".DBox1 > span").mouseover(function() {
	$(this).parent().children().removeClass("ShowOn");
	$(this).addClass("ShowOn");
	});

//滑动门2
    $(".show1").addClass("ShowOn");
	$(".DBox2 > li").mouseover(function() {
	$(this).parent().children().removeClass("ShowOn");
	$(this).addClass("ShowOn");
	});

//滑动门3
	$(".DBox3 > li").mouseover(function() {
	$(this).parent().children().removeClass("ShowOn");
	$(this).addClass("ShowOn");
	});

//合作伙伴
    $("#FriendLink > a").mouseover(function(){
	$("#FriendLink > a").removeClass("showimg");
    $(this).addClass("showimg");
	});
	$("#FriendLink > a").mouseout(function(){
	$("#FriendLink > a").removeClass("showimg");
	});
});



//域名查询中英切换
	$.fn.checkCbx = function(){    
		return this.each(function(){    
			this.checked = false;    
		});    
	}

	$(function(){    
		$("#DomainEN > span input").click(function(){    
			$("#DomainCN input").checkCbx();  
            $("#freehosttype").attr("value",'');
            $("#freehosttype").attr("value",'1');
			$("#DtypeIMG").attr({ src: "/imgxw/domainImg.gif", alt: "英文域名查询" });
			$("#subSearch").attr("src","/imgxw/domain_sub2.gif");
			$("#from1").attr("action","http://sys.rwchina.com/style/info/2009-11-18.asp");
        });
	});

	$(function(){    
		$("#DomainCN > span input").click(function(){    
			$("#DomainEN input").checkCbx(); 
			$("#freehosttype").attr("value",'');
            $("#freehosttype").attr("value",'3');
			$("#DtypeIMG").attr({ src: "/imgxw/cndomainImg.gif", alt: "中文域名查询" });
			$("#subSearch").attr("src","/imgxw/domain_sub1.gif");
			$("#from1").attr("action","http://sys.rwchina.com/style/info/domaincheckpub.asp");
		});
	});
//域名输入框变换
	$(function(){    
		$("#DomainCN > input[name='domain']").click(function(){    
			$(this).removeClass("domainInput");
			$(this).addClass("domainInput_select");
			alert($(this));
		});
	});
//点击开始->运行，输入 REGSVR32 MSXML3.DLL 回车，OK~