/**
 * Use this ScriptDoc file to manage the documentation for the corresponding namespace in your JavaScript library.
 * @classDescription 站点公用模块
 * @author Guojie , Jerry Guo
 * @copyright http://www.classd.cn
 * @version 1.0.1 --fix 2009.10.14
 */

$(function(){
	/*
	 * @导航模块
	 */
	/*var mian_nav_display = $("#man_nav>ul>li");
	var sub_nav_div = $("#sub_nav>div.nav");
	sub_nav_div.eq(0).show();
	mian_nav_display.each(function(index){
		var index_id = index;
		$(this).mouseover(function(){
			mian_nav_display.removeClass("focus");
			$(this).addClass("focus");
			sub_nav_div.hide();
			sub_nav_div.eq(index_id).show();
		});
	});
	/*
	 * @滑动门模块,各页面能用
	 */
	var content_text = $("div>.content_text").children("div");
	content_text.eq(1).children("div").eq(0).show();
	content_text.eq(0).children("span").each(function(index){
		var display_id=index;
		$(this).click(function(){
			$(this).parent().children("span").removeClass("focus");
			$(this).addClass("focus");
			content_text.eq(1).children("div").hide();
			content_text.eq(1).children("div").eq(display_id).show();
		});
	});
	/*
	 * @城市单击模块
	 */
	var china_airport_in_city = $('#china_airport_in_city');
	china_airport_in_city.children("div.airPort:first").show();
	china_airport_in_city.children("label:last").css("border","none");
	china_airport_in_city.children("label:first").addClass("focus");
	china_airport_in_city.children("label").each(function(index){
		var index_id = index;
		$(this).click(function(){
			china_airport_in_city.children("div.airPort").css("display","none");
			china_airport_in_city.children("label").removeClass("focus");
			$(this).addClass("focus")
			china_airport_in_city.children("div.airPort:eq(" + index_id + ")").show();
		});
	});
	$("#footer>div.about").children("a:last").css("border","none");
	/*
	 * 客户服务页面
	 */
	var service_content = $('#service_content>div.title>span');
	var service_content_subnav = $('#service_content>div.content>div');
	service_content_subnav.css('display','none');
	service_content_subnav.eq(0).css('display','block');
	service_content.each(function(index){
		var index_id = index;
		$(this).mouseover(function(){
			service_content.removeClass('focus');
			$(this).addClass('focus');
			service_content_subnav.hide();
			service_content_subnav.eq(index_id).css('display','block');
		});
	});
});

/*首页旅游滑动门*/
function door(i,n)
{
	
	if(n==1)
	{
		for(var j=0;j<5;j++)
		{
			document.getElementById("tp"+j).style.display="none";
			document.getElementById("tpDoor"+j).style.backgroundImage="";
			
		}
			document.getElementById("tp"+i).style.display="";
			document.getElementById("tpDoor"+i).style.backgroundImage="url(Thems/images/tp/tp_doorCk.gif)";
	}
	else
	{
		for(var j=0;j<5;j++)
		{
			document.getElementById("vs"+j).style.display="none";
			document.getElementById("vsDoor"+j).style.backgroundImage="";
			
		}
			document.getElementById("vs"+i).style.display="";
			document.getElementById("vsDoor"+i).style.backgroundImage="url(Thems/images/tp/tp_doorCk.gif)";

	}
}