﻿/*tuna_071206.js*/
function t_tips(t){
	if(t=='HDMU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_HDMU;
	}else if(t=='CHNJ'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_CHNJ;
	}else if(t=='CCBC'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_CCBC;
	}else if(t=='MSCU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_MSCU;
	}else if(t=='EISU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_EISU;
	}else if(t=='OOLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_OOLU;
	}else if(t=='MAEU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_MAEU;
	}else if(t=='HJSC'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_HJSC;
	}
	
	else if(t=='YMLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_YMLU;
	}else if(t=='APLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_APLU;
	}else if(t=='RCLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_RCLU;
	}else if(t=='CMDU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_CMDU;
	}else if(t=='CSVV'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_CSVV;
	}else if(t=='SNTU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_SNTU;
	}else if(t=='NYKS'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_NYKS;
	}else if(t=='KKLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_KKLU;
	}else if(t=='HSDG'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_HSDG;
	}else if(t=='ZIMU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_ZIMU;
	}else if(t=='UASU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_UASU;
	}else if(t=='GCNU'){
		document.getElementById("searchType2").className='formunselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_GCNU;
	}else if(t=='FANE'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_FANE;
	}else if(t=='KMTC'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_KMTC;
	}else if(t=='SITX'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_SITX;
	}else if(t=='ESLT'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_ESLT;
	}else if(t=='TSLU'){
		document.getElementById("searchType2").className='formunselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML=ResourcesBundle.common_TSLU;
	}
	else if(t=='MOLU'){
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formunselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML="";
	}
	//
	else if(t=='CNTSN_GANGQU'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formunselect';
		searchTextChange_pier(2);
		changeRd(2);
		document.getElementById("scacPierNotice").innerHTML=ResourcesBundle.common_CNTSN_GANGQU;
	}
	else if(t=='CNTAO_GANGQU'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formunselect';
		searchTextChange_pier(2);
		changeRd(2);
	}
	else if(t=='CNSHA_YANGSAN'||t=='CNSHA_YANGYI'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}else if(t=='CNSHA_WAIER'||t=='CNSHA_WAIYI'||t=='CNSHA_WAISI'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}else if(t=='CNSHA_WAIWU'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}else if(t=='CNSHA_JIUSHIQU'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}else if(t=='CNSHA'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}
	
	else if(t=='CNNBO'||t=='CNNBO_ERQI'||t=='CNNBO_SANQI'||t=='CNNBO_SIQI'||t=='CNNBO_DAXIE'||t=='CNNBO_YUANDONG'){
		document.getElementById("searchType_pier2").className='formselect';
		document.getElementById("searchType_pier1").className='formunselect';
		document.getElementById("searchType_pier3").className='formselect';
		searchTextChange_pier(3);
		changeRd(3);
	}
	else{
		document.getElementById("searchType2").className='formselect';
		document.getElementById("searchType1").className='formselect';
		document.getElementById("searchType3").className='formselect';
		document.getElementById("scacNotice").innerHTML="";
	}
}

var $topWin=window;
(function () {
	try{
		while(true) {
			var a=$topWin.parent;
			if(a&&a!=$topWin&&a.$Ctrip)$topWin=a;
			else return
		}
	}catch(e) {
	}
})();

window.$Ctrip=function (h) {
	this.Variable=function () {
		this._=h;
		this.__=h.document;
		this.___=h.__.documentElement;
		h.__.write("<div id=\"jsContainer\"><input id=\"jsSaveStatus\" type=\"text\" style=\"display:none;\" \/><div id=\"tuna_jmpinfo\" style=\"display:none;visibility:hidden;position:absolute;z-index:120;overflow:hidden;\"><\/div><div id=\"tuna_alert\" style=\"display:none;position:absolute;z-Index:999;overflow:hidden;\"><\/div><\/div>");
		this.$$=new function () {
			this.status=new function () {
				this.domReady=false;
				this.busy=0;
				this.dealt={
				};
				this.regEventCount=0;
				this.regEventHash={
				};
				this.charset=(((h.__.charset?h.__.charset:h.__.characterSet)||"").match(/^(gb2312|big5|utf-8)$/gi)||"gb2312").toString ().toLowerCase();
				this.version={
					"gb2312":"zh-cn","big5":"zh-tw","utf-8":"en"
				}[this.charset];
				var a=$topWin.__.getElementsByTagName("script");
				this.debug=false;
				this.debugEvent=false;
				this.alertDiv=h.__.getElementById("tuna_alert");
				this.container=h.__.getElementById("jsContainer");
				this.saveStatus=h.__.getElementById("jsSaveStatus");
				this.back=false;
				this.pageValue={
				};
				this.globalValue={
				};
				this.today=new Date().toStdString()
			};
			this.module={
				iframe:[],list:{
					address:"tuna_address_071206",calendar:"tuna_calendar_071206"
				},tab:{
				},selectAll:{
				},checkInput:{
				},address:{
					source:{
					}
				},calendar:{
				},jmpInfo:{
					count:0,page:{
					},array:{
					}
				},init:[]
			};
			with(navigator) {
				with(userAgent) {
					this.browser={
						IE:!!match(/MSIE/),IE6:!!appVersion.match(/MSIE6\.0/i),Moz:match(/Mozilla/i)&&!match(/compatible|WebKit/i),Opera:!!match(/Opera/i),Safari:!!match(/Mac|Safari/i)
					}
				}
			}this.string={
				"zh-cn":{
					weekday:"",display:""
				},"zh-tw":{
					weekday:"",display:""
				},"en":{
					weekday:"",display:""
				}
			}[this.status.version];
			this.access={
			}
		}
	};
	this.window=function () {
		this.$fixE=function (a) {
			a=h.event||a||arguments.callee.caller.arguments[0];
			$(a.$target=a.target?(a.target.nodeType&&a.target.nodeType==3?a.target.parentNode:a.target):a.srcElement);
			return a
		};
		this.$stopEvent=function (a,c) {
			a=$fixE(a);
			c=c||0;
			if(c>=0)a.preventDefault?a.stopPropagation():(a.cancelBubble=true);
			if(c!=0)a.preventDefault?a.preventDefault():(a.returnValue=false)
		};
		this.$getUid=function () {
			return "uid_"+(new Date()).getTime()+Math.random().toString ().substr(2,5)
		};
		this.$c=this.$createElement=function (a) {
			if(a.constructor ==Array){
				return  $(h.__.createTextNode(a.join("\n")));
				}
			else {
			return $(h.__.createElement(a))
			}
		};
		this.$pageValue=function () {
			return h.$pageValue.get.apply(h,arguments)
		};
		(function w() {
			var f=h.$$.status.saveStatus.value;
			if(f)$$.status.back=true;
			h.$$.status.saveStatus.value.replace(/\|([^:\|]+):([^:\|]*)\|/g,function (a,c,d) {
				h.$$.status.pageValue[unescape(c)]=unescape(d)
			});
			x()
		})();
		function x() {
			var a=[];
			for(var c in h.$$.status.pageValue)a.push(escape(c)+":"+escape(h.$$.status.pageValue[c]));h.$$.status.saveStatus.value="|"+a.join("|")+"|"
		}this.$pageValue.set=function (a,c) {
			h.$$.status.pageValue[a]=c
		};
		this.$pageValue.get=function (a) {
			return h.$$.status.pageValue[a]
		};
		this.$pageValue.del=function (a) {
			delete h.$$.status.pageValue[a]
		};
		this.$globalValue=function () {
		};
		this.$getQuery=function (a) {
			var c=(location.search||"").match(new RegExp("[\\?&]"+a+"=([^&]+)","i"));
			return c?unescape(c[1]):null
		};
		this.$loadJs=function (a,c,d) {
			var f=arguments.callee;
			var g=f.queue||(f.queue={
			});
			c=c||h.$$.status.charset;
			a=a.replace('{$charset}',c);
			if(a in g) {
				if(d) {
					if(g[a])g[a].push(d);
					else d()
				}return
			}g[a]=d?[d]:[];
			var i=h.__.createElement("script");
			i.type="text/javascript";
			i.charset=c;
			i.onload=i.onreadystatechange=function () {
				if(i.readyState&&i.readyState!="loaded"&&i.readyState!="complete")return ;
				i.onreadystatechange=i.onload=null;
				while(g[a].length)g[a].shift()();
				g[a]=null
			};
			i.src=a;
			h.__.getElementsByTagName("head")[0].appendChild(i)
		};
		this.$loadCss=function (a,c) {
			if($$.browser.IE)h.__.createStyleSheet(a).charset=c||h.$$.status.charset;
			else {
				var d=h.__.createElement("link");
				with(d) {
					type="text\/css";
					rel="stylesheet";
					href=a
				}h.__.$("head")[0].appendChild(d)
			}
		};
		this.$getCookie=function (a,c) {
			var d=h.__.cookie.match(new RegExp("(?:^|;)\\s*"+encodeURIComponent(a)+"=([^;]+)"));
			if(c===false)return d?d[1]:null;
			if(d&&c)d=d[1].match(new RegExp("(?:^|&)\\s*"+encodeURIComponent(c)+"=([^&]+)"));
			return d?decodeURIComponent(d[1]):null
		};
		this.$delCookie=function (a,c) {
			if(c) {
				var d=$getCookie(a,false);
				if(d===null)return ;
				d=d.replace(new RegExp("(^|&)\\s*"+encodeURIComponent(c)+"=[^&]+"),"").replace(/^\s*&/,"");
				if(d) {
					h.__.cookie=encodeURIComponent(a)+"="+d;
					return
				}
			}var f=new Date();
			f.setTime(f.getTime()-1);
			h.__.cookie=encodeURIComponent(a)+"=;expires="+f
		};
		this.$setCookie=function (a,c,d) {
			if(!d) {
				d=c;
				c=null
			}if(c) {
				var f=$getCookie(a,false)||"";
				if(f)f=(f+"&").replace(new RegExp("(^|&)\\s*"+encodeURIComponent(c)+"=[^&]+&"),"$1");
				h.__.cookie=encodeURIComponent(a)+"="+f+encodeURIComponent(c)+"="+encodeURIComponent(d)
			}else h.__.cookie=encodeURIComponent(a)+"="+encodeURIComponent(d)
		};
		this.$init=function (a) {
			if(a)$topWin.$$.module.init.push(a);
			else $topWin.$$.module.init.each()
		};
		this.$parserRe=function (d) {
			var f=[];
			var g=/<[^>]+\smod=[\'\"]?([\w|]+)[^>]+/g;
			var i=/\smod_jmpInfo_page=[\'\"]?([^\'\"\s]+)/;
			var j=/id=[\'\"]?([\w\-]+)/i;
			var k=null;
			var m=null;
			var l=null;
			(d&&d.innerHTML?d:h.__.body).innerHTML.replace(g,function (a,c) {
				try{
					if(c=="jmpInfo") {
						if(k=a.match(i))Ctrip.module.jmpInfo(k[1])
					}else if((m=a.match(j))&&(l=$(m[1]))) {
						if(c in Ctrip.module)new Ctrip.module[c](l);
						else f.push(l)
					}
				}catch(e) {
					$t("parserRe函数错误:"+func.toString ().slice(0,50)+"...","red")
				};
				return ""
			});
			var n=setInterval(function () {
				var a=f.shift();
				if(a)$topWin.$d(a);
				else clearInterval(n)
			},50)
		};
		this.$d=this.$dealElement=function (c) {
			($(c).getAttribute("mod")||"").replace(/\w+/ig,function (a) {
				if($topWin.$$.module.list[a]) {
					if(!$topWin.$$.module[a].list) {
						$topWin.$$.module[a].list=[];
						$topWin.$loadJs("http:\/\/www.tastysoft.com\/code\/js\/"+$topWin.$$.module.list[a]+".js","utf-8")
					}$topWin.$$.module[a].list.push(c);
					$topWin.$init()
				}else if(Ctrip.module[a]) {
					if(a=='jmpInfo')Ctrip.module[a](c);
					else new Ctrip.module[a](c)
				}return ''
			})
		};
		this.$i=function (i) {
			var j=h.$$.access[i];
			if(j)return j;
			else {
				j=new function () {
					var f=[],g=[];
					this.get=function () {
						var a=j.value;
						for(var c=0;c<f.length;c++) {
							var d=f[c].call(a);
							if(typeofd!='undefined')a=d
						}return a
					};
					this.set=function (a) {
						for(var c=0;c<g.length;c++) {
							var d=g[c].call(a);
							if(typeofd!='undefined')a=d
						}return j.value=a
					};
					this.regGet=function (a) {
						if(!a)f=[];
						else f.push(a);
						return
					};
					this.regSet=function (a) {
						if(!a)g=[];
						else g.push(a);
						return
					}
				}
			}return h.$$.access[i]=j
		};
		this.$fixElement=function (f) {
			function g(a,c,d) {
				if('attachEvent' in a)a.attachEvent('on'+c,d);
				else a.addEventListener(c,d)
			}function i(a) {
				a=a.getElementsByTagName('input');
				for(var c=0;c<a.length;c++)if(/checkbox|radio/.test(a[c].type))return a[c];return null
			}function j(a) {
				if(!a)a=window.event;
				return a.srcElement||a.target
			}function k(a) {
				var c=a._0;
				if(c) {
					a.htmlFor=c.id||(c.id=$getUid());
					a._0=null
				}var d=a.style;
				d.borderBottom='#aaa 1px dashed';
				d.paddingBottom='0px';
				d.color='#1E1A75'
			}function m(a) {
				var c=a.style;
				c.borderBottom='';
				c.paddingBottom='';
				c.color=''
			}f=f&&f.nodeType?f:h.__;
			if($$.browser.IE6) {
				var l=f.getElementsByTagName("label");
				for(var n=0;n<l.length;n++) {
					var o=i(l[n]);
					if(o&&/checkbox|radio/.test(o.type))(function (lbl,box) {
						lbl._0=box;
						g(lbl,'mouseover',function () {
							k(lbl)
						});
						g(lbl,'mouseout',function () {
							m(lbl)
						})
					})(l[n],o)
				}
			}if($$.browser.IE) {
				var t=f.getElementsByTagName("select");
				for(var n=0;n<t.length;n++)t[n].onmousewheel=function () {
					return false
				}
			}
		};
		this.$removeTextNode=function (a) {
			if(!a)return ;
			var c=a.firstChild,d;
			while(c) {
				d=c.nextSibling;
				if(c.nodeType==3)a.removeChild(c);
				else $removeTextNode(c);
				c=d
			}return a
		};
		this.$ajax=function (a,c,d) {
			var f=["MSXML2.XMLHTTP","Microsoft.XMLHTTP"],g;
			try{
				g=new XMLHttpRequest()
			}catch(e) {
				for(var i=0;i<f.length;i++)try{
					g=new ActiveXObject(f[i]);
					break
				}catch(e) {
				}
			}if(!g)return ;
			g.open(c?"POST":"GET",a||h.location.href,!!d);
			g.setRequestHeader("Content-Type","application\/x-www-form-urlencoded");
			g.setRequestHeader("If-Modified-Since",new Date(0));
			if(d)g.onreadystatechange=function () {
				if(g.readyState==4) {
					var j=g.status==200?(/xml/i.test(g.getResponseHeader("content-type"))?g.responseXML:g.responseText):null;
					if(d(j)===true) {
						setTimeout(function () {
							h.$ajax(a,c,d)
						},1000)
					}
				}
			};
			g.send(c||'');
			return d?g:(g.status==200?(/xml/i.test(g.getResponseHeader("content-type"))?g.responseXML:g.responseText):null)
		};
		function y(a) {
			var c=a.keyCode||a.charCode;
			if($$.status.debug&&c==192) {
				var d=r();
				if(d&&(d=d.frameElement))d.style.display=d.style.display==""?"none":""
			}
		}function r() {
			var a=$topWin.frames["Ctrip_debug"];
			if(a)return a;
			with(a=$topWin.$c("iframe")) {
				frameBorder=0;
				id=name="Ctrip_debug";
				style.border="1px solid red";
				style.width="600px";
				style.height="300px";
				style.position=$$.browser.IE6?"absolute":"fixed";
				style.bottom=style.right="10px"
			}$topWin.$$.status.container.appendChild(a);
			if($$.browser.IE6)$topWin.$r("scroll",function () {
				with($("Ctrip_debug").style) {
					zoom=1;
					zoom=0
				}
			});
			with((a=r()).document) {
				open();
				write("<style>body{margin:0;padding:0;font-family:Arial;font-size:12px;overflow:scroll;}div{border-bottom:1px solid #CCC;}<\/style><body><\/body>");
				close()
			}$topWin.__.$r("keydown",y);
			return a
		}this.$t=function (a,c,d) {
			if(!$topWin.$$.status.debug)return ;
			if(h!=$topWin)return $topWin.$t(a,c);
			var f=r();
			var g=new Date().getTime()%(1E7);
			var i="<font id=\"msg_"+g+"\" color=\""+c+"\"> "+a+"<\/font>";
			var j=f.document.createElement("div");
			if(c)j.style.color=c;
			if(d)j.title=d;
			j.innerHTML="<font style=\"color:blue;\">"+g+"<\/font> "+i;
			with(f.document.body) {
				if(firstChild)insertBefore(j,firstChild);
				else appendChild(j)
			}return a
		};
		this.$alert=function (a,c,d,f,g) {
			a=$(a);
			var i=$("alertInfo"),j=$("alertTable"),k=1;
			i.innerHTML=c;
			$topWin.$$.status.alertDiv.style.display="";
			$topWin.$$.status.alertDiv.$setPos(a,f||"tl",g||"tr");
			$topWin.$$.status.alertDiv.$setIframe();
			a.className+=" pubGlobal_checkinfo_input01";
			if(d!==false)a.$setDisplay();
			function m() {
				a.className=a.className.replace("pubGlobal_checkinfo_input01","");
				$topWin.$$.status.alertDiv.style.display="none";
				$topWin.$$.status.alertDiv.$clearIframe();
				a.$ur("onblur",m);
				h.__.body.$ur("onmousedown",m);
				a.clearAlert=null;
				h.$alert.element=null
			}if(a.disabled)k=0;
			else setTimeout(function () {
				try{
					a.focus()
				}catch(e) {
					k=0
				}
			},0);
			if(k)a.$r("onblur",m);
			else h.__.body.$r("onmousedown",m);
			h.$alert.element=a;
			a.clearAlert=m
		};
		this.checkinfo=this.$alert;
		this.$fix_height=function () {
		};
		this.c_linklist={
		};
		this.c_allyes_text={
		};
		this.c_allyes_delay=1000
	};
	
	/*##*/
	function p(a) {
		return (a.toString ().match(/function ([^\{]+)/i)||["","anonymous"])[1].replace(/\(\)/,"").trim()||"anonymous"
	}function s(a) {
		var c="["+a.event+"] ";
		c+=a.obj.tagName||{
			3:a.obj.nodeValue,9:"document"
		}[a.obj.nodeType||""]||"window";
		c+=a.obj.id?"#"+a.obj.id:(a.obj.name?"@"+a.obj.name:"");
		c+=" "+p(a.func);
		return c
	}function q(g) {
		return function (a) {
			a=$fixE(a);
			var c=g.module.event[a.type],d;
			for(var f=0;f<c.length;f++) {
				if(c[f].enabled) {
					try{
						d=c[f].func.call(g,a);
						if($topWin.$$.status.debugEvent)$t(s(c[f])+" ("+(typeofd=="undefined"?"无返回值":d.toString ().slice(0,100))+")",null,c[f].func);
						if(d===false)break
					}catch(a) {
						$t(s(c[f])+" (执行错误)","red",c[f].func)
					}
				}else {
					c.splice(f,1);
					f--
				}
			}return d
		}
	};
	function N(a,c) {
		if(typeof a=="object")return Ctrip.Object.apply(a);
		var d;
		if(c) {
			var f=h.___.innerHTML.match(new RegExp("\\sid=([\\\'\\\"]?)([\\w$]+?[_$]"+a.toReString()+")\\1"),"g");
			if(f) {
				for(var g=0;g<f.length;g++) {
					d=h.$(f[g]);
					if(d)return d
				}
			}return h.$(a)
		}else d=h.__.getElementById(a);
		return d?$(d):null
	};
	function C(f) {
		var g=this.getElementsByTagName(f);
		g.$each=function (a) {
			var c;
			if(g.length!==undefined)for(var d=0;d<g.length&&(c=a.call(this,g[d],d))!==false;d++);else a.call(this,g,0);return c===false?0:1
		};for(var i=0;i<g.length;i++)$(g[i]);return g
	};function u() {
		return !this.value.trim()
	};
	function z(a) {
		for(var c=0;c<this.options.length;c++) {
			if(this.options[c].value==a) {
				this.selectedIndex=c;
				return true
			}
		}return false
	};
	function v(a) {
		return typeofthis.attributes[a]!="undefined"
	};
	function A(a) {
		var c=$(this.parentNode);
		if(a&&c&&c.tagName&&c.tagName.toLowerCase()!=a.toLowerCase())c=c.$parentNode(a);
		return c&&c.tagName?c:null
	};
	function D() {
		return $(this.firstChild)
	};
	function F() {
		return $(this.lastChild)
	};
	function G() {
		var a=this.childNodes;
		for(var c=0;c<a.length;c++)$(a[c]);return a
	};function H() {
		return $(this.nextSibling)
	};
	function I() {
		return $(this.previousSibling)
	};
	function J() {
		if(this.click)this.click();
		else {
			var a=__.createEvent("MouseEvents");
			a.initMouseEvent("click",true,true,h,0,0,0,0,0,false,false,false,false,0,this);
			this.dispatchEvent(a)
		}
	};
	function O(a) {
		var c=this.currentStyle||h.getComputedStyle(this,null);
		return a?c[a]:c
	};
	function K() {
		var a,c=(a=this.getAttribute(arguments[0])||"").split(a.indexOf("")>-1?"":"|");
		for(var d=0;d<Math.max(arguments.length-1,c.length);d++)c[d]=c[d]||arguments[d+1]||"";return c
	};function P(i,j,k,m) {
		m=m||50;
		if(arguments.length==3&&typeof k=="number") {
			m=k;
			k=null
		}var l=this;
		if(i.constructor !=Array)i=[i];
		if(j.constructor !=Array)j=[j];
		i.each(function (g) {
			j.each(function (d) {
				g=g.replace(/^(on)?/i,"");
				g=g=="DOMContentLoaded"?"domready":g.toLowerCase();
				if(g=="domready")l=h;
				var f={
					enabled:true,obj:l,event:g,func:d,hash:k,level:m,id:h.$$.status.regEventCount++
				};
				if(g=="domready"&&h.$$.status.domReady)d();
				else {
					if(!(g in l.module.event)) {
						l.module.event[g]=[];
						if(l.attachEvent)l.attachEvent("on"+g,q(l));
						else l.addEventListener(g,q(l),false)
					}l.module.event[g].push(f);
					l.module.event[g].sort(function (a,c) {
						return (a.level-c.level)||(a.id-c.id)
					})
				}if(k) {
					if(!(k in h.$$.status.regEventHash))h.$$.status.regEventHash[k]=[];
					h.$$.status.regEventHash[k].push(f)
				}
			})
		})
	};
	function Q(g,i,j) {
		var k=this;
		if(g.constructor !=Array)g=[g];
		if(i.constructor !=Array)i=[i];
		g.each(function (f) {
			i.each(function (a) {
				f=f.replace(/^(on)?/i,"").toLowerCase();
				f=f=="DOMContentLoaded"?"domready":f.toLowerCase();
				if(f=="domready")k=h;
				if(f in k.module.event) {
					var c=k.module.event[f];
					for(var d=0;d<c.length;d++) {
						if(c[d].enabled&&c[d].func==a&&(!j||c[d].hash==j)) {
							c[d].enabled=false;
							break
						}
					}
				}
			})
		})
	};
	function L(a) {
		var c=this;
		if(a in h.$$.status.regEventHash) {
			var d=h.$$.status.regEventHash[a],f;
			while(f=d.shift())f.obj.$ur(f.event,f.func,a);
			delete h.$$.status.regEventHash[a]
		}
	};
	function R() {
		var a=this.ownerDocument;
		return a.parentWindow||a.defaultView
	};
	function B(x) {
		function y(k,m) {
			var l=[],n=k.match(/^([\.\#]*)([a-zA-Z0-9\-_*]+)(.*)$/i);
			if(!n)return [];
			if(n[1]=="#") {
				var o=$(n[2]);
				if(o)l.push(o)
			}else if(n[1]==".")m.each(function (obj) {
				$each(obj.$("*"),function (a) {
					if(a.className.match(new RegExp("\\b"+n[2]+"\\b")))l.push($(a))
				})
			});
			else for(var t=0;t<m.length;t++) {
				var o=m[t].$(n[2]);
				if(o)for(var w=0;w<o.length;w++)l.push(o[w])
			}n[3].replace(/\[([^!=]+)(=|!=)([^\]]*)\]/gi,function (d,f,g,i) {
				var j=l.slice(0);
				l=[];
				j.each(function (a) {
					f={
						_3:"className",_0:"htmlFor"
					}["_"+f]||f;
					var c=a[f]||a.getAttribute(f);
					if(g!="="^c==i)l.push($(a))
				})
			});
			return l
		}var r=[this==h?h.__.body:this];
		x.replace(/(#|\*)/gi," $1").replace(/([^\^])\.(\w+)/gi,"$1[className=$2]").trim().split(/\s+/g).each(function (a) {
			r=y(a,r)
		});
		return r.length==0?null:r
	};
	function M() {
		var f=this,g=this,i,j=[0,0],k,m={
			"thin":2,"medium":4,"thick":6
		};
		function l() {
			if(f==g)return ;
			function d(a) {
				var c=/^(none|hidden)$/i.test(g.$getStyle("border"+a+"Style"))?0:g.$getStyle("border"+a+"Width");
				return m[c]||parseInt(c,10)||0
			}j[0]+=d("Left");
			j[1]+=d("Top")
		}do{
			i=$(g).$getWin();
			if(g.tagName.match(/^(iframe|frameset)$/i))l();
			k=-1;
			do{
				j[0]+=g.offsetLeft-g.scrollLeft;
				j[1]+=g.offsetTop-($$.browser.Safari&&g==i.document.body?0:g.scrollTop);
				switch(g.$getStyle("position")) {
					case "absolute":l();
					break;
					case "fixed":k=1;
					break
				}
			}while(g.offsetParent&&g!=g.offsetParent&&(g=$(g.offsetParent))&&g!=h.___);
			if($$.browser.Safari) {
				j[0]+=i.__.body.leftMargin||0;
				j[1]+=i.__.body.topMargin||0
			}if(k==1||i!=$topWin) {
				j[0]+=i.___.scrollLeft*k;
				j[1]+=i.___.scrollTop*k
			}
		}while(g=i.frameElement);
		return j
	};
	function S(k,m,l) {
		function n(g,i) {
			function j(a,c,d,f) {
				return d+{
					"l":0,"c":c.offsetWidth/2,"r":c.offsetWidth,"t":0,"m":c.offsetHeight/2,"b":c.offsetHeight
				}[a||"l"]*f
			}return j(m.match(g),this,j(l.match(g),k,o[i],1),-1)+"px"
		}var o=k.$getPos();
		m=m||"lt";
		l=l||"lb";
		this.style.left=n.call(this,/[lcr]/i,0);
		this.style.top=n.call(this,/[tmb]/i,1)
	};
	function T(c) {
		if(c!==true&&!$$.browser.IE6)return ;
		if(this.module.iframe)f=this.module.iframe;
		else {
			function d() {
				for(var a=0;a<$topWin.$$.module.iframe.length;a++) {
					if($topWin.$$.module.iframe[a].$getStyle("display")=="none")return $topWin.$$.module.iframe[a]
				}
			}var f=d();
			if(!f) {
				f=$topWin.$c("iframe");
				with(f.style) {
					width=height="0px";
					background="#FFF";
					position="absolute";
					display="none";
					zIndex=100
				}f.frameBorder=0;
				f.id=f.name=$getUid();
				$topWin.$$.status.container.appendChild(f);
				$topWin.$$.module.iframe.push(f);
				with($topWin.frames[f.id].document) {
					open();
					write('<style>html,body{overflow:hidden}</style>');
					close()
				}
			}this.module.iframe=f
		}f.$setPos(this,"tl","tl");
		with(f.style) {
			width=this.offsetWidth+"px";
			height=this.offsetHeight+"px";
			display=""
		}return f
	};
	function U() {
		var a=this.module.iframe;
		if(a) {
			a.style.display="none";
			this.module.iframe=null
		}return a
	};
	function ba(a,c,d) {
		if(!a)return null;
		c=c||"n";
		var f=new RegExp(({
			1:"n",3:"t",8:"c"
		}[a.nodeType])||"o","i");
		return c.match(f)?a:d.call(a,c)
	}function V(a) {
		var c=this,d=c.firstChild||c.nextSibling;
		if(!d)do{
			c=c.parentNode;
			if(c==h.__.body)return null;
			d=c.nextSibling
		}while(!d);
		return $($abs(d,a,arguments.callee))
	};
	function W(a) {
		if(this==h.__.body)return null;
		var c=this.previousSibling;
		if(c) {
			while(c.lastChild)c=c.lastChild
		}else c=this.parentNode;
		return $($abs(c,a,arguments.callee))
	};
	function X() {
		if(!this.form)return ;
		try{
			this.blur()
		}catch(e) {
		};
		var a=this.form.elements,c;
		for(var d=0;d<a.length;d++) {
			if(c) {
				if(!$(a[d]).disabled&&a[d].$isDisplay())try{
					a[d].focus();
					return
				}catch(e) {
				}
			}if(a[d]==this)c=true
		}
	};
	function Y() {
		var a=this.$getPos();
		with($topWin.___) {
			scrollLeft=a[0]-80;
			scrollTop=a[1]-80
		}
	};
	function Z() {
		var a=this;
		do{
			if(a.tagName=="INPUT"&&a.type=="hidden"||a.$getStyle("display")=="none"||a.$getStyle("visibility")=="hidden")return false
		}while((a=a.$parentNode())&&a.nodeType==1);
		return true
	};
	this.Object=function () {
		if(!this||this.nodeType==3||this.$)return this;
		if(this.__)this.$=N;
		else this.$=C;
		this.module={
		};
		this.module.event={
		};
		if(this.nodeType==1) {
			if(this.tagName=="INPUT"&&/^(text|hidden)$/i.test(this.type)||this.tagName=="TEXTAREA")this.isNull=u;
			if(/^SELECT$/.test(this.tagName))this.$setValue=z
		}if(!this.hasAttribute)this.hasAttribute=v;
		this.$parentNode=A;
		this.$firstChild=D;
		this.$lastChild=F;
		this.$childNodes=G;
		this.$nSib=this.$nextSibling=H;
		this.$pSib=this.$previousSibling=I;
		this.$click=J;
		this.$getStyle=O;
		this.$getPara=K;
		this.$r=this.$regEvent=P;
		this.$ur=this.$unregEvent=Q;
		this.$urh=this.$unregEventHash=L;
		this.$getWin=R;
		this.$g=this.$selNode=B;
		this.$getPos=M;
		this.$setPos=S;
		this.$setIframe=T;
		this.$clearIframe=U;
		this.$nAbs=V;
		this.$pAbs=W;
		this.$focusNext=X;
		this.$setDisplay=Y;
		this.$isDisplay=Z;
		return this
	};
	this.Array=function () {
		this.each=function (a) {
			for(var c=0;c<this.length;c++)if((a?a(this[c],c):this[c]())===false)return false;return true
		};if($$.browser.IE)this.map=function (func) {
			var d=[];
			for(var f=0;f<this.length;f++)d.push(func(this[f]));return d
		}
	};this.Number=function () {
		this.parseCur=function (a) {
			var c=this.toFixed(a||2),d=/(\d)(\d{3}[,\.])/;
			while(d.test(c))c=c.replace(d,"$1,$2");
			c=c.replace(/^(-?)\./,"$10.");
			return a===0?c.replace(/\..*$/,""):c
		}
	};
	this.String=function () {
		this.replaceWith=function (d) {
			return this.replace(/\{\$(\w+)\}/g,function (a,c) {
				if(c in d)return d[c];
				else return a
			})
		};
		this.trim=function () {
			return this.replace(/^\s+|\s+$/g,'')
		};
		this.isEmail=function () {
			var a=/^[^@\s]+@[^@\.\s]+(\.[^@\.\s]+)+$/;
			return a.test(this)
		};
		this.isDateTime=function () {
			var a=h.$$.status.version.match(/^zh-/)?this:this.replace(/^(\d{1,2})-(\d{1,2})-(\d{4})$/,"$3-$1-$2");
			var c=a.match(/^((19|20)\d{2})-(\d{1,2})-(\d{1,2})$/);
			if(!c)return false;
			for(var d=1;d<5;d++)c[d]=parseInt(c[d],10);if(c[3]<1||c[3]>12||c[4]<1||c[4]>31)return false;var f=new Date(c[1],c[3]-1,c[4]);return f.getDate()==c[4]?f:null
		};this.toReString=function () {
			return this.replace(/([\.\\\/\+\*\?\[\]\{\}\(\)\^\$\|])/g,"\\$1")
		};
		this.isChinaIDCard=function () {
			var a=this.toLowerCase().match(/./g);
			if(this.match(/^\d{17}[\dx]$/i)) {
				var c=0,d=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];
				for(var f=0;f<17;f++)c+=parseInt(a[f],10)*d[f];if("10x98765432".charAt(c%11)!=a[17])return false;return !!this.replace(/^\d{6}(\d{4})(\d{2})(\d{2}).+$/,"$1-$2-$3").isDateTime()
			}if(this.match(/^\d{15}$/))return !!this.replace(/^\d{6}(\d{2})(\d{2})(\d{2}).+$/,"19$1-$2-$3").isDateTime();
			return false
		};
		this.parseStdDate=function () {
			var c="January|1@February|2@March|3@April|4@May|5@June|6@July|7@August|8@September|9@October|10@November|11@December|12",d=this.replace(/[\-,\.\/]+/g,"-").replace(/(^|-)0+(?=\d+)/g,"$1").replace(/[a-z]{3,}/i,function (a) {
				return (_1=c.match(new RegExp("(^|@)"+a+"[^\\|]*\\|(\\d+)","i")))?_1[2]:a
			}).replace(/^([^-]{1,2}-[^-]{1,2})-([^-]{4})$/,"$2-$1");
			return d.isDateTime()?d:null
		};
		this.parseEngDate=function () {
			var a=this.parseStdDate();
			if(!a)return null;
			var c=a.match(/^(\d{4})-(\d{1,2})-(\d{1,2})$/);
			return "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|")[parseInt(c[2])-1]+"-"+c[3]+"-"+c[1]
		}
	};
	this.Date=function () {
		this.dateValue=function () {
			return new Date(this.getFullYear(),this.getMonth(),this.getDate())
		};
		this.addDate=function (a) {
			return new Date(this.getFullYear(),this.getMonth(),this.getDate()+a)
		};
		this.toStdString=function () {
			return this.getFullYear()+"-"+(this.getMonth()+1)+"-"+this.getDate()
		};
		this.toEngString=function () {
			return "Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec".split("|")[this.getMonth()]+"-"+this.getDate()+"-"+this.getFullYear()
		}
	};
	this.module=new function () {
		this.linklist=function (a) {
			var c=a.getAttribute('mod_linklist_class');
			if(c===null)c='pubSidebar_linkmargin01';
			var d='<a class="'+c+'" href="{$link}" title="{$text}" target="{$target}">{$text}</a>';
			var f=a.getAttribute('mod_linklist_id');
			if(!f||!(f=window.c_linklist[f])||f.constructor !==Array)return ;
			for(var g=0;g<f.length;g++) {
				var i=f[g].split('|',2);
				f[g]=d.replaceWith({
					text:$s2t(i[0]),link:i[1],target:f[g].target||'_2'
				})
			}a.innerHTML=f.join('')
		};
		this.allyes=function (f) {
			var g=n("user")||n("mod_allyes_user");
			if(!g) {
				var i=n('mod_allyes_buttons',window);
				var j=n('mod_allyes_text',window.c_allyes_text);
				if(!i&&!j)return
			}var k='<div class="pubGlobal_ad140x60" style="height:{$height}px">{$iframe}<\/div>';
			var m='<div class="pubGlobal_adtxt140">{$text}<\/div>';
			var l='<iframe marginheight="0" width="100%" height="100%" marginwidth="0" frameborder="0" scrolling="no" src="http://allyes.ctrip.com/main/adfshow?user={$user}&db=ctrip&border=0&local=yes"><\/iframe>';
			setTimeout(function () {
				if(g) {
					if(g.indexOf('@')>-1)g=o(g.split('@'));
					f.innerHTML=l.replace('{$user}',g)
				}else {
					var a=[];
					if(i)a=i.map(function (b) {
						b.button=b.button||';';
						return k.replace('{$height}',b.height).replace('{$iframe}',l.replace('{$user}',b.user))
					});
					if(j)a.push(m.replace('{$text}',$s2t(j)));
					f.innerHTML=a.join('')
				}
			},window.c_allyes_delay);
			function n(a,c) {
				var d=f.getAttribute(a);
				if(!d)return null;
				if(c)return c[d]||null;
				else return d
			}function o(a) {
				var c=/^(SearchFlights\.aspx|SearchHotels\.aspx|query\.asp)$/i;
				var d=location.pathname;
				d=d.slice(d.lastIndexOf('/')+1);
				return c.test(d)?a[0]:a[1]
			}
		};
		this.notice=function (a) {
			var c;
			a.module.notice=new function () {
				this.enabled=true;
				this.tip=a.getAttribute("mod_notice_tip")||"";
				this.check=function () {
					if(a.module.notice.enabled) {
						with(a) {
							if(isNull()) {
								style.color="gray";
								value=module.notice.tip
							}else style.color=""
						}
					}
				};
				this.isNull=a.isNull=function () {
					return a.value.trim()==""||a.value==a.module.notice.tip
				}
			};
			a.$r("focus",function () {
				c=true;
				if(a.module.notice.enabled) {
					a.style.color="";
					if(a.value==a.module.notice.tip)a.value=""
				}
			},10);
			a.$r("blur",function () {
				c=false;
				a.module.notice.check()
			},90);
			if(a.form) {
				var d=$(a.form);
				d.$r("submit",function () {
					if(a.isNull())a.value="";
					setTimeout(function () {
						if(!c)a.module.notice.check()
					},1)
				});
				h.$r("beforeunload",a.module.notice.check)
			}a.module.notice.check()
		};
		this.tab=function (g) {
			var i=h.$g(g.getAttribute("mod_tab_button")||"");
			var j=h.$g(g.getAttribute("mod_tab_panel")||"");
			var k=parseInt(g.getAttribute("mod_tab_select")||1,10);
			var m=((g.getAttribute("mod_tab_event")||"").match(/^mouseover$/i)||"click").toString ();
			if(!i||!j)return ;
			g.module.tab=new function () {
				this.funcListHash={
				};
				this.select=function (a) {
					if(this.funcListHash[a-1])this.funcListHash[a-1]()
				}
			};
			i.each(function (d,f) {
				g.module.tab.funcListHash[f]=function () {
					i.each(function (a,c) {
						a.className=a.className.replace(/_(no)?current/g,"_"+(f==c?"":"no")+"current");
						if(j[c])j[c].style.display=(f==c)?"":"none"
					})
				};
				d.$r(m,g.module.tab.funcListHash[f])
			});
			g.module.tab.select(k)
		};
		this.display=function (j) {
			var k=j.$getPara("mod_display_panel"),m=[];
			k.each(function (a) {
				a=h.$(a)||h.$selNode(a);
				if(a) {
					if(a.length)a.each(function (a) {
						m.push(a)
					});
					else m.push(a)
				}
			});
			j.$r("click",function () {
				(function (f) {
					for(var g=0;g<f.childNodes.length;g++) {
						with(f.childNodes[g]) {
							if(nodeType==3) {
								var i=new RegExp($$.string.display.match(/[^@]+/g).join("|"),"gi");
								nodeValue=nodeValue.replace(i,function (a) {
									var c=new RegExp("@"+a+"\\|([^@]+)|([^@]+)\\|"+a+"@","i");
									var d=$$.string.display.match(c);
									return d[1]||d[2]
								})
							}else arguments.callee(f.childNodes[g])
						}
					}
				})(j);
				m.each(function (a) {
					a.style.display=a.$getStyle("display")=="none"?"":"none"
				})
			})
		};
		this.selectAll=function (d) {
			var f=$selNode(d.getAttribute("mod_selectAll_input")||"");
			if(!f)return ;
			f.each(function (c) {
				if(c!=d)c.$r("onclick",function () {
					d.checked=f.each(function (a) {
						if(a!=d&&!a.checked)return false
					})
				})
			});
			d.$r("click",function () {
				f.each(function (a) {
					a.checked=d.checked
				})
			})
		};
		this.validate=function (a) {
			var c=h.$(a.getAttribute("mod_validate_true")||"");
			var d=h.$(a.getAttribute("mod_validate_false")||"");
			var f=a.getAttribute("mod_validate_function")||"";
			if(!f)return ;
			var g=f.match(/^\/(.*?[^\\])\/([gmi]*?)$/);
			var i,j,k;
			f=h[f];
			if(g||f) {
				a.module.validate=new function () {
					this.check=function () {
						if(a.value||!c&&!d)k=!(j=f?f(a.value,a):a.value.match(new RegExp(g[1],g[2])));
						else j=k=false;
						if(c)c.style.display=j?"":"none";
						if(d)d.style.display=k?"":"none"
					}
				};
				a.$r("focus",function () {
					i=setInterval(a.module.validate.check,200)
				});
				a.$r("blur",function () {
					a.module.validate.check();
					clearInterval(i)
				})
			}
		}
	};
	this.debug=new function () {
	};
	this.Date.apply(h.Date.prototype);
	this.Variable.apply(h);
	this.Number.apply(h.Number.prototype);
	this.String.apply(h.String.prototype);
	this.Array.apply(h.Array.prototype);
	this.window.apply(h);
	this.Object.apply(h);
	this.Object.apply(h.__);
	this.Object.apply(h.___);
	this.Object.apply(h.$$.status.alertDiv);
	this.init=new function () {
		var d=__.domain;
		if(/\.ctrip(travel)?\.com$/i.test(d)) {
			d=/travel\.com$/i.test(d)?d.split('.').slice(1).join('.'):'ctrip.com';
			__.write("<script src=\"http:\/\/www."+d+"\/rp\/uiScript.asp\"><\/script>")
		}if(h.$$.status.charset=='big5')__.write("<script src=\"http:\/\/www.tastysoft.com\/code\/js\/public\/public_s2t.js\" charset=\"utf-8\"><\/script>");
		else h.$s2t=function (a) {
			return a
		};
		if($$.browser.IE6)try{
			__.execCommand("BackgroundImageCache",false,true)
		}catch(e) {
		};
		h.$$.status.debug=/\$debug\$/i.test($topWin.name)||/^(true|1)$/.test($getQuery("debug"));
		h.$$.status.debugEvent=/\$debugEvent\$/i.test($topWin.name)||/^(true|1)$/.test($getQuery("debugEvent"));
		h.$$.status.alertDiv.innerHTML=h.$$.status.version.match(/^zh-/)?"<table id=\"alertTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"alert_tl\"></td><td class=\"alert_tc\"><div><\/div><\/td><td class=\"alert_tr\"><\/td><\/tr><tr><td class=\"alert_ml\"><div><\/div><\/td><td id=\"alertInfo\" class=\"alert_mc\">这里是内容<\/td><td class=\"alert_mr\"><div><\/div><\/td><\/tr><tr><td class=\"alert_bl\"><\/td><td class=\"alert_bc\"><div><\/div><\/td><td class=\"alert_br\"><\/td><\/tr><\/table>":"<table id=\"alertTable\" style=\"font-family:Arial;margin:0;\" cellpadding=\"0\" cellspacing=\"0\"><tr><td style=\"margin:0;padding:0px 2px 2px 0px;background:#E7E7E7;\"><div id=\"alertInfo\" style=\"margin:0px;padding:10px;font-size:12px;text-align:left;background:#FFFFE8;border:1px solid #FFDF47;color:#000;white-space:nowrap;\">内容<\/div><\/td><\/tr><\/table>";
		function f(a) {
			var c;
			h.$$.status.domReady=true;
			if("domready" in h.module.event) {
				while(c=h.module.event["domready"].shift())if(c.enabled)try{
					c.func(a)
				}catch(a) {
					$t("domReady函数错误:"+c.func.toString ().slice(0,100)+"...","red",c.func)
				}
			}
		}if($$.browser.Moz||$$.browser.Opera)__.addEventListener("DOMContentLoaded",f,false);
		else if($$.browser.IE) {
			if(!h.frameElement)(function () {
				try{
					h.___.doScroll("left")
				}catch(e) {
					setTimeout(arguments.callee,50);
					return
				}f()
			})()
		}else if($$.browser.Safari) {
			var g=setInterval(function () {
				if(h.__.readyState=="loaded"||h.__.readyState=="complete") {
					clearInterval(g);
					f()
				}
			},10)
		}h.$r("domready",[function () {
			$(h.__.body)
		},h.$parserRe,h.$fixElement]);
		h.$r("load",function () {
			if(!h.$$.status.domReady)f()
		})
	}
};
var Ctrip=new $Ctrip(window);
this.jmpInfo=(function () {
	var d="http:\/\/www.tastysoft.com\/styles\/control\/tuna_071206\/control_jmpinfo_tuna_071206.css";
	var f="\/webresource\/ui\/jmpinfo_tuna\/";
	var g="http:\/\/www.tastysoft.com\/code\/js\/resource\/jmpinfo_tuna\/";
	var i=$("tuna_jmpinfo");
	function j() {
		/*$loadCss(d);*/_.___.$r("mouseover",function (a) {
			var c=$fix(E).$target;
			if(c)k(c)
		})
	}i.$("mouseover",function () {
	});
	i.$("mouseout",function () {
	});
	function k(a) {
	}function m(a) {
	}return function (a) {
		if(!$$.module.jmpInfo.count)j();
		$$.module.jmpInfo.count++
	}
})();
Ctrip.module.jmpInfo=(function () {
	var o='\/webresource\/ui\/jmpinfo_tuna\/';
	var t='http:\/\/www.tastysoft.com\/styles\/control\/tuna_071206\/control_jmpinfo_tuna_071206.css';
	var w={
		CraftType:'http:\/\/www.tastysoft.com\/code\/js\/resource\/jmpinfo_tuna/CraftType_{$charset}.js'
	};
	var x={
		"align-center":"cbct","align-left":"lblt","corner-left":"rblt","align-right":"rbrt","corner-right":"lbrt","above-align-left":"ltlb","above-align-right":"rtrb"
	};
	var y='__jpi_';
	var r=200;
	var h=400;
	var p=null,s=null,q=null,N=0,C=null,u=null,z={
	},v={
	},A={
	},D=false;
	window.$r('domReady',F);
	return function (a) {
		F();
		if(a.nodeType==1) {
			if(!a.id)a.id=y+N++;
			L(a)
		}else {
			M(a)
		}
	};
	function F() {
		if(D)return ;
		D=true;
		/*$loadCss(t)*/;
		p=document.createElement("div");
		p.id='tuna_jmpinfo';
		p.style.cssText='visibility:hidden;position:absolute;z-index:120;overflow:hidden';
		$$.status.container.appendChild(p);
		p=$(p.id);
		var a=document.documentElement;
		if(a.attachEvent)a.attachEvent('onmouseover',G);
		else a.addEventListener('mouseover',G,false)
	}function G(a) {
		var c=P(a),d=null;
		if(!c)return ;
		if(c.id&&(c.id in z)) {
			if(c!=s&&c!=q) {
				q=c;
				clearTimeout(u);
				u=setTimeout(J,h)
			}
		}else if((d=c.getAttribute('mod'))=='jmpInfo') {
			L(c);
			if(c!=s&&c!=q) {
				q=c;
				clearTimeout(u);
				u=setTimeout(J,h)
			}
		}else if(s) {
			if(K(c,s,p))clearTimeout(C);
			else C=setTimeout(O,r)
		}else if(q) {
			if(!K(c,q)) {
				clearTimeout(u);
				q=null
			}
		}
	}function H(a) {
		if(!a.$getPos)$(a);
		var c=a.$getPos();
		return {
			left:c[0],top:c[1]
		}
	}function I(a,c) {
		var d=a.style;
		if(!c) {
			d.visibility='hidden';
			d.left=d.top='-500px';
			a.$clearIframe()
		}else {
			var d=a.style;
			d.left=c.left+'px';
			d.top=c.top+'px';
			d.visibility='visible';
			a.$setIframe()
		}
	}function J() {
		if(!q)return ;
		var a=R(q);
		if(!a)return ;
		s=q;
		q=null;
		p.innerHTML=v[a.page];
		for(var c=1;el=document.getElementById('para'+c);c++)el.innerHTML=a.content[c-1]||'';for(var c=1;el=document.getElementById('array'+c);c++)el.innerHTML=a.para[c-1]||'';I(p,Q(s,a.position))
	}function O() {
		s=null;
		I(p,null)
	}function K(a,c,d) {
		while(a&&a!=c&&a!=d)a=a.parentNode;
		return !!a
	}function P(a) {
		a=a||window.event;
		return a.srcElement||a.target
	}function Q(a,c) {
		var d=H(a);
		var f=a.offsetWidth,g=a.offsetHeight;
		var i=p.offsetWidth,j=p.offsetHeight;
		var k={
			l:0,c:f>>1,r:f
		};
		var m={
			t:0,c:g>>1,b:g
		};
		var l={
			l:0,c:i>>1,r:i
		};
		var n={
			t:0,c:j>>1,b:j
		};
		d.left+=k[c[0]]-l[c[2]];
		d.top+=m[c[1]]-n[c[3]];
		return d
	}function L(a) {
		var c=B(a,'mod_jmpInfo_page','default_normal.asp');
		var d=M(c);
		var f=B(a,'mod_jmpInfo_position','');
		if(!f||!(f in x)) {
			f='lblt'.split('');
			var g=H(a);
			if(g.left>500)f[0]=f[2]='r'
		}else {
			f=x[f].split('')
		}d.position=f;
		d.content=B(a,'mod_jmpInfo_content','').split('|');
		z[a.id]=d
	}function R(a) {
		var c=z[a.id];
		if(!v[c.page])return null;
		if(c.search)c.para=c.search.hash[c.search.key]||[];
		return c
	}function B(a,c,d) {
		return a.getAttribute(c)||d||''
	}function M(a) {
		var c=a,d=null;
		var f=a.indexOf('?');
		if(f>=0) {
			c=a.slice(0,f).trim();
			d=T(a.slice(f+1))
		}if(!(c in v))S(c);
		return {
			page:c,search:d
		}
	}function S(c) {
		v[c]=false;
		$ajax(o+c,null,function (a) {
			if(a)v[c]=a.replace(/\n/g,'').replace(/^[\s\S]*<body.*?>|<\/body>[\s\S]*$/gi,'')
		})
	}function T(a) {
		var c=a.indexOf('=');
		if(c==-1)return null;
		var d=a.slice(0,c);
		var f=a.slice(c+1);
		if(!(d in A))U(d);
		return {
			hash:A[d],key:f
		}
	}function U(f) {
		var g=A[f]={
		};
		$loadJs(w[f],null,function () {
			var a=$$.module.jmpInfo.array[f].slice(1,-1).split('@');
			for(var c=0;c<a.length;c++) {
				var d=a[c].split('|');
				g[d[0]]=d
			}
		})
	}
})();

/*初始化list列表*/
$$.module.address.list=[];
$$.module.calendar.list=[];
$ur("domReady",$parserRe);
$$.module.searchBox={
	init:function(){this.funcList.each();},
	funcList:[function(){$parserRe($("searchBox"));}]
};
/*tuna_address_071206.js*/
$$.string.address={
	"zh-cn":{
		b:ResourcesBundle.common_scac_b,i:ResourcesBundle.common_scac_i,j:ResourcesBundle.common_scac_j,k:ResourcesBundle.common_scac_k,e:ResourcesBundle.common_scac_e,h:ResourcesBundle.common_scac_h,o:ResourcesBundle.common_scac_o,s:ResourcesBundle.common_scac_s,l:ResourcesBundle.common_scac_l,p:ResourcesBundle.common_scac_p,a:ResourcesBundle.common_scac_a
	},"zh-tw":{
		b:ResourcesBundle.common_scac_b,i:ResourcesBundle.common_scac_i,j:ResourcesBundle.common_scac_j,k:ResourcesBundle.common_scac_k,e:ResourcesBundle.common_scac_e,h:ResourcesBundle.common_scac_h,o:ResourcesBundle.common_scac_o,s:ResourcesBundle.common_scac_s,l:ResourcesBundle.common_scac_l,p:ResourcesBundle.common_scac_p,a:ResourcesBundle.common_scac_a
	},"en":{
		b:ResourcesBundle.common_scac_b,i:ResourcesBundle.common_scac_i,j:ResourcesBundle.common_scac_j,k:ResourcesBundle.common_scac_k,e:ResourcesBundle.common_scac_e,h:ResourcesBundle.common_scac_h,o:ResourcesBundle.common_scac_o,s:ResourcesBundle.common_scac_s,l:ResourcesBundle.common_scac_l,p:ResourcesBundle.common_scac_p,a:ResourcesBundle.common_scac_a
	}
}[$$.status.version];
$$.module.address.sourceMap={
	"shipping":["","utf-8"],"flight":["","utf-8"],"train":["","utf-8"],"express":["","utf-8"],"shipping_n":["","utf-8"],"flight_n":["","utf-8"],"express_n":["","utf-8"],"pier_n":["","utf-8"]
};
function sortFunc(c,b) {
	var e=c.match(/^[^\|]+/),f=b.match(/^[^\|]+/);
	return e>f?1:(e==f?0:-1)
}(function c_address() {
	var G=$c("div");
	with(G.style) {
		width="0px";
		height="0px"
	}G.innerHTML="<div id=\"tuna_address\" style=\"display:none;position:absolute;z-index:120;overflow:hidden;\"><div id=\"address_warp\"><div id=\"address_message\">&nbsp;<\/div><div id=\"address_list\"><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><a class=\"a1\" href=\"###\"><span>&nbsp;<\/span>&nbsp;<\/a><\/div><div class=\"address_pagebreak\" id=\"address_p\"><a id=\"address_arrowl\" href=\"javascript:;\" name=\"p\">&lt;-<\/a><a id=\"address_p1\" href=\"javascript:;\" name=\"1\" class=\"address_current\">1<\/a><a id=\"address_p2\" href=\"javascript:;\" name=\"2\">2<\/a><a id=\"address_p3\" href=\"javascript:;\" name=\"3\">3<\/a><a id=\"address_p4\" href=\"javascript:;\" name=\"4\">4<\/a><a id=\"address_p5\" href=\"javascript:;\" name=\"5\">5<\/a><a id=\"address_arrowr\" href=\"javascript:;\" name=\"n\">-&gt;<\/a><\/div><\/div><\/div>";
	$("jsContainer").appendChild(G);
	var j=$("tuna_address");
	$$.module.address.source["default"]="@@";
	var L=$("address_warp"),u=$('address_message'),A=$('address_list'),v=[$('address_p'),$('address_p1'),$('address_p2'),$('address_p3'),$('address_p4'),$('address_p5')],B=$('address_arrowl'),C=$('address_arrowr'),h=A.getElementsByTagName("a"),R=[];
	for(var D=0;D<h.length;D++)R[D]=h[D].cloneNode(true);
	function M() {
		function Q(d) {
			var n=0,r,s=d.$getWin();
			var a=d.module.address={
			};
			var S,w,g=null,t,p=[];
			d.setAttribute("autoComplete","off");
			$r("beforeunload",function () {
				d.setAttribute("autoComplete","on")
			});
			a.focusNext=d.getAttribute("mod_address_focusNext");
			a.focusNext=/^(1|true)$/i.test(a.focusNext||"");
			a.reference=d.getAttribute("mod_address_reference");
			var m=d.getAttribute("mod_address_cookie");
			if(m) {
				m=s.$(m);
				if(!m) {
					var H=s.$c("input");
					with(H) {
						type="hidden";
						id=name=m
					}m=H;
					d.parentNode.insertBefore(m,d)
				}
			}if(a.reference)a.reference=s.$(a.reference)||s.$(a.reference,true);
			var x=d.getAttribute("mod_address_suggest");
			var I=d.getAttribute("mod_address_cookieSuggest");
			a.suggest=[];
			if(I) {
				a.suggest=I.match(/[^@]+@/gi);
				if(x)a.suggest._0(x.match(/[^@]+@/gi))
			}else if(x)a.suggest=x.match(/[^@]+@/gi);
			/*##*/
			if(a.suggest.length>100)a.suggest=a.suggest.slice(0,100);
			a.source=d.getAttribute("mod_address_source")||"default";
			/*##*/
			if(!$$.module.address.source[a.source]) {
				$$.module.address.source[a.source]="@@";
				if($$.module.address.sourceMap[a.source])$loadJs($$.module.address.sourceMap[a.source][0].replace(/\{\$charset\}/gi,$$.status.charset),($$.module.address.sourceMap[a.source][1]||"").replace(/\{\$charset\}/gi,$$.status.charset)||$$.status.charset);
				else $loadJs("http://www.tastysoft.com/code/js/resource/address_tuna/"+a.source+"_"+$$.status.charset+".js",$$.status.charset)
			}
			a.auto=d.getAttribute("mod_address_auto");
			a.auto=a.auto&&a.auto.match(/^(false|0)$/i)?false:true;
			a.redraw=function () {
				if(w)F()
			};
			a.hook={
			};
			(d.getAttribute("mod_address_hook")||"").replace(/(on)?([^;:]+):([^;]+)/gi,function (c,b,e,f) {
				a.hook[e.toLowerCase()]=s[f]
			});
			function N() {
				if(n) {
					n=0;
					return
				}r=false;
				A.style.display=u.style.display=v[0].style.display="none";
				function e(b) {
					h[b].onmousedown=function (c) {
						z(b);
						$stopEvent(c);
						if(h[b].outerHTML)h[b].outerHTML=h[b].outerHTML+"";
						d.blur()
					}
				}j.onmousedown=function () {
					n=1
				};
				for(var f=0;f<h.length;f++)new e(f);B.onmousedown=C.onmousedown=y;for(var f=1;f<v.length;f++)v[f].onmousedown=y;t=null;if(g!==null)h[g].className="address_selected";if(a.hook["focus"])a.hook["focus"](d);setTimeout(F,0);w=setInterval(F,150)
			}function y(c) {
				n=1;
				if(c)$stopEvent(c);
				switch(this) {
					case B:k.m_get(k.page-1);
					break;
					case C:k.m_get(k.page+1);
					break;
					default:k.m_get(parseInt(this.firstChild.nodeValue))
				}
			}var k=new function () {
				var o;
				this.page=1;
				this.pagelist;
				this.maxpage=1;
				this.m_get=function (c) {
					if(!o||!c||c<1||c>this.maxpage)return null;
					this.page=c;
					this.pagelist=o.slice((c-1)*12,Math.min(c*12,o.length));
					for(var b=0;b<h.length;b++) {
						if(b<this.pagelist.length) {
							h[b].style.display="block";
							var e=this.pagelist[b].replace(/@/g,"").split("|");
							h[b].lastChild.nodeValue=e[1];
							h[b].firstChild.firstChild.nodeValue=e[0];
							p[b]=e
						}else {
							h[b].style.display="none";
							p[b]=null
						}
					}if(g!==null) {
						if(g>=this.pagelist.length) {
							h[g].className="";
							g=this.pagelist.length-1;
							h[g].className="address_selected"
						}
					}else {
						g=0;
						h[0].className="address_selected"
					}l.call(this);
					A.style.display=u.style.display="";
					if(!r) {
						j.style.display="";
						j.$setPos(d);
						j.$setIframe();
						r=true
					}E.call(this)
				};
				this.m_set=function (c) {
					o=c;
					this.maxpage=Math.ceil(c.length/12);
					this.page=1;
					this.m_get(1)
				};
				function l() {
					var c=this.maxpage<6||this.page<3?1:this.page>this.maxpage-2?this.maxpage-4:this.page-2;
					var b=Math.min(c+4,this.maxpage);
					var e;
					B.style.display=this.page==1?"none":"";
					C.style.display=this.page==this.maxpage?"none":"";
					for(var f=c;f<c+5;f++) {
						e=v[f-c+1];
						if(f<=b) {
							e.firstChild.nodeValue=f;
							e.className=f==this.page?"address_current":"";
							e.style.display=""
						}else e.style.display="none"
					}v[0].style.display=this.maxpage>1?"block":"none"
				}
			};
			function E() {
				with(j.style) {
					/*##*/
					width=L.offsetWidth+"px";
					height=L.offsetHeight+"px"
				}j.$setIframe()
			}function J() {
				if(a.suggest.length==0) {
					j.style.display="none";
					if(g!==null) {
						h[g].className="";
						g=null
					}return
				}k.m_set(a.suggest);
				u.lastChild.nodeValue=$$.status.version.match(/^zh-/)?$$.string.address.i+(d.module.notice?d.module.notice.tip:$$.string.address.k)+$$.string.address.j:$$.string.address.b
			}function F() {
				var b=d.value.trim();
				if(b===t)return ;
				t=b;
				b=b.replace(/([\(\)\\\[\]\.\+\?\*\|\^\$])/gi,"\\$1").replace(/@|\|/gi,"");
				if(!b) {
					J();
					E();
					return
				}j.style.display="";
				var e=$$.module.address.source[a.source];
				var f=new RegExp("@([^@]*\\|)?"+b+"[^@]*","gi");
				var o=new RegExp("@[^@]*"+b+"[^@]*","gi");
				var l=[],i=[];
				e=e.replace(f,function (c) {
					l.push(c);
					return ""
				});
				if(l)l.sort(sortFunc);
				e=e.replace(o,function (c) {
					i.push(c);
					return ""
				});
				if(i)i.sort(sortFunc);
				if(l&&i)arr=l.concat(i);
				else arr=l||i;
				if(!arr||!arr.length) {
					u.lastChild.nodeValue=a.auto?($$.string.address.s+($$.status.version=="en"?"":d.value)):($$.string.address.h+d.value+", "+$$.string.address.o);
					if(!a.auto) {
						j.style.display="none";
						if(g!==null) {
							h[g].className="";
							g=null
						}
					}if(A.style.display=="none")J();
					E()
				}else {
					u.lastChild.nodeValue=$$.string.address.h+d.value+", "+$$.string.address.o;
					k.m_set(arr)
				}
			}function O(c) {
				var b=c?c.keyCode:event.charCode;
				var e="|"+b+"|";
				if(g==null) {
					if("|13|".indexOf(e)!=-1) {
						$stopEvent(c,1);
						if(a.focusNext)setTimeout(function () {
							d.$focusNext()
						},1)
					}return true
				}if("|13|".indexOf(e)!=-1) {
					$stopEvent(c,1);
					z(g);
					d.blur()
				}if("|33|37|109|188|219|".indexOf(e)!=-1) {
					y.call(B);
					$stopEvent(c,1)
				}if("|34|39|61|190|221|".indexOf(e)!=-1) {
					y.call(C);
					$stopEvent(c,1)
				}if("|38|40|".indexOf(e)!=-1) {
					h[g].className="";
					g+=k.pagelist.length-39+b;
					g%=k.pagelist.length;
					h[g].className="address_selected";
					$stopEvent(c,1)
				}
			}function z(c,b) {
				n=2;
				d.value=p[c][1]||p[c][0];
				if(a.reference)
				{
					/*##*/
					var tvalue = p[c][2];
					t_tips(tvalue);
					a.reference.value=tvalue;
				}
				if(m)m.value=p.join("|");
				if(a.hook["change"])a.hook["change"](d);
				if(b!==false&&a.focusNext)setTimeout(function () {
					d.$focusNext()
				},1)
			}function P() {
				if(n==1) {
					setTimeout(function () {
						d.focus()
					},1);
					return
				}clearInterval(w);
				w=null;
				j.$clearIframe();
				j.style.display="none";
				if(g!==null) {
					if(d.value&&n!=2&&a.auto)z(g,false);
					h[g].className="";
					g=null
				}n=0;
				j.onmousedown=null
			}a.check=function () {
				var b=d.value.trim();
				if(d.isNull&&d.isNull())b="";
				if(b===t)return ;
				var e;t=b;b=b.replace(/([\(\)\\\[\]\.\+\?\*\|\^\$])/gi,"\\$1").replace(/@|\|/gi,"");
				if(b) {
					var f=$$.module.address.source[a.source];
					var o=new RegExp("@([^@]*\\|)?"+b+"[^@]*","gi");
					var l=new RegExp("@[^@]*"+b+"[^@]*","gi");
					var i=[],q=[];
					f=f.replace(o,function (c) {
						i.push(c);
						return ""
					});
					if(i)i.sort(sortFunc);
					f=f.replace(l,function (c) {
						q.push(c);
						return ""
					});
					if(q)q.sort(sortFunc);
					if(i&&q)e=i.concat(q);
					else e=i||q;
					if(e&&e.length) {
						r=true;
						k.m_set(e);
						r=false;
						z(0,false);
						n=0
					}
				}if(d.module.notice)d.module.notice.check();
				return !!e
			};
			d.$r("onfocus",N);
			d.blur();
			d.$r("onblur",P);
			d.$r("onkeydown",O);
			if(a.hook["load"])a.hook["load"](d)
		}
		var K;
		while((K=$$.module.address.list.shift())!=null){
			new Q(K)
		}
	}
	$init(M);
	M()
})();
