﻿window.$Ctrip=function(_)
{
	this.window=function()
	{
            this._=_;
            this.__=_.document;
			this.___=_.__.documentElement;
			_.__.write("<div id=\"jsContainer\"><input id=\"jsSaveStatus\" type=\"text\" style=\"display:none;\" \/><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.domReadyFunc=[];
					this.dealt={};
					this.regEvent=[];
					this.regEventHash={};
					this.charset=(((_.__.charset?_.__.charset:_.__.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=top.__.getElementsByTagName("script");
					this.debug=false;this.alertDiv=_.__.getElementById("tuna_alert");this.container=_.__.getElementById("jsContainer");this.saveStatus=_.__.getElementById("jsSaveStatus")};
					this.module={
						iframe:[],list:{address:"tuna_address_071206",calendar:"tuna_calendar_071206"},tab:{},selectAll:{},checkInput:{},address:{source:{}},calendar:{},jmpInfo:{array:{}},init:[]};
						with(navigator){with(userAgent){this.browser={IE:!!match(/MSIE/),IE6:!!appVersion.match(/MSIE 6\.0/),Moz:match(/Mozilla/)&&!match(/(compatible|webkit)/),Opera:!!match(/Opera/),Safari:!!match(/Mac|Safari/)}}}this.string={"zh-cn":{weekday:"日一二三四五六",display:"@▲|▼@显示|隐藏@"},"zh-tw":{weekday:"日一二三四五六",display:"@▲|▼@顯示|隱藏@"},"en":{weekday:"SMTWTFS",display:"@Show|Hidden@"}}[this.status.version]};
					this.$fixE=function(e)
					{
						e=_.event||e||arguments.callee.caller.arguments[0];
						Ctrip.Object.apply(e.$target=e.target?(e.target.nodeType==3?e.target.parentNode:e.target):e.srcElement);
						return e};
						this.$stopEvent=function(e,a)
							{
							e=$fixE(e);
							a=a||0;
							if(a>=0)e.preventDefault?e.stopPropagation():(e.cancelBubble=true);
							if(a!=0)e.preventDefault?e.preventDefault():(e.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 Ctrip.Object.apply(_.__.createTextNode(a.join("\n")));
								else 
									return Ctrip.Object.apply(_.__.createElement(a))
							};
						    this.$getQuery=function(a)
						    {
							    var b=(location.search||"").match(new RegExp("[\\?&]"+a+"=([^&]+)","i"));
							    return b?unescape(b[1]):null
						    };
						    this.$loadJs=function(a,b,c)
						    {
							    var d=arguments.callee;
							    var e=d.queue||(d.queue={});
							    b=b||$$.status.charset;a=a.replace('{$charset}',b);
							    if(a in e)
							        {
							            if(c)
							                {
							                    if(
							                        e[a])e[a].push(c);
							                    else 
							                        c()
							                 }
							            return
							         }
							    e[a]=c?[c]:[];
                                var f=_.__.createElement("script");
                                f.type="text/javascript";
                                f.charset=b;
                                f.onload=f.onreadystatechange=function()
                                {
                                    if(f.readyState&&f.readyState!="loaded"&&f.readyState!="complete")
                                        return;
                                    f.onreadystatechange=f.onload=null;
                                    while(e[a].length)
                                        e[a].shift()();
                                    e[a]=null
                                };
                                f.src=a;
                                _.__.getElementsByTagName("head")[0].appendChild(f)
                            };
                        this.$loadCss=function(a,b)
                        {
                            if(top.$$.browser.IE)
                                _.__.createStyleSheet(a).charset=b||$$.status.charset;
                            else
                            {
                                var c=_.__.createElement("link");
                                with(c)
                                {
                                    type="text\/css";
                                    rel="stylesheet";
                                    href=a
                                }
                                _.__.$("head")[0].appendChild(c)
                            }
                        };
                    this.$init=function(a)
                    {
                        if(a)
                            $$.module.init.push(a);
                        else 
                            $$.module.init.each()
                    };
                    this.$parserRe=function(c)
                    {
                        var d=[];
                        var f=/<[^>]+\smod=[\'\"]?([\w|]+)[^>]+/g;var g=/\smod_jmpInfo_page=[\'\"]?([^\'\"\s]+)/;var h=/id=[\'\"]?([\w\-]+)/i;
                        var i=null;
                        var j=null;
                        var k=null;
                        (c&&c.innerHTML?c:_.__.body).innerHTML.replace(f,function(a,b)
                                                                        {
                                                                            try{
                                                                            if(b=="jmpInfo")
                                                                            {
                                                                            if(i=a.match(g))
                                                                            Ctrip.module.jmpInfo(i[1])
                                                                            }
                                                                            else if((j=a.match(h))&&(k=$(j[1])))
                                                                            {
                                                                                if(b in Ctrip.module)
                                                                                    new Ctrip.module[b](k);
                                                                                else d.push(k)
                                                                            }
                                                                            }
                                                                            catch(e)
                                                                            {
                                                                                $t("parserRe函数错误:"+func.toString().slice(0,50)+"...","red")
                                                                            };
                                                                            return""
                                                                            }
                                                                            );
                        var l=setInterval(
                            function()
                            {
                                var a=d.shift();
                                if(a)
                                    _.$d(a);
                                else 
                                    clearInterval(l)
                            },50)
                    };
                    this.$d=this.$dealElement=function(b)
                        {
                            Ctrip.Object.apply(b);
                            (b.getAttribute("mod")||"").replace(/\w+/ig,function(a){if(top.$$.module.list[a]){if(!top.$$.module[a].list){top.$$.module[a].list=[];top.$loadJs("http:\/\/webresource.ctrip.com\/code\/js\/"+top.$$.module.list[a]+".js","utf-8")}top.$$.module[a].list.push(b);top.$init()}else if(Ctrip.module[a]){if(a=='jmpInfo')Ctrip.module[a](b);else new Ctrip.module[a](b)}return''})};this.$fixElement=function(d){function addEvent(a,b,c){if('attachEvent'in a)a.attachEvent('on'+b,c);else a.addEventListener(b,c)}function firstInput(a){a=a.getElementsByTagName('input');for(var i=0;i<a.length;i++)if(/checkbox|radio/.test(a[i].type))return a[i];return null}function srcElement(e){if(!e)e=window.event;return e.srcElement||e.target}function mover(a){var b=a._0;if(b){a.htmlFor=b.id||(b.id=$getUid());a._0=null}var c=a.style;c.borderBottom='#aaa 1px dashed';c.paddingBottom='0px';c.color='#1E1A75'}function mout(a){var b=a.style;b.borderBottom='';b.paddingBottom='';b.color=''}d=d&&d.nodeType?d:_.__;if($$.browser.IE6){var f=d.getElementsByTagName("label");for(var i=0;i<f.length;i++){var g=firstInput(f[i]);if(g&&/checkbox|radio/.test(g.type))(function(lbl,box){lbl._0=box;addEvent(lbl,'mouseover',function(){mover(lbl)});addEvent(lbl,'mouseout',function(){mout(lbl)})})(f[i],g)}}if($$.browser.IE){var h=d.getElementsByTagName("select");for(var i=0;i<h.length;i++)h[i].onmousewheel=function(){return false}}};this.$ajax=function(a,b,c){var d=["MSXML2.XMLHTTP","Microsoft.XMLHTTP"],f;try{f=new XMLHttpRequest()}catch(e){for(var i=0;i<d.length;i++)try{f=new ActiveXObject(d[i]);break}catch(e){}}if(!f)return;f.open(b?"POST":"GET",a||_.location.href,!!c);f.setRequestHeader("Content-Type","application\/x-www-form-urlencoded");f.setRequestHeader("If-Modified-Since",new Date(0));if(c)f.onreadystatechange=function(){if(f.readyState==4)if(c(f.status==200?f.responseText:null)===true){setTimeout(function(){_.$ajax(a,b,c)},1000)}};f.send(b||'');return c?f:(f.status==200?f.responseText:null)};function $getDebug(){var a=top.frames["Ctrip_debug"];if(a)return a;with(a=top.$c("iframe")){frameBorder=0;id=name="Ctrip_debug";style.border="1px solid red";style.width="400px";style.height="300px";
                     style.position=$$.browser.IE6?"absolute":"fixed";
                     style.bottom=style.right="10px"}top.$$.status.container.appendChild(a);
                     if($$.browser.IE6)top.$r("scroll",function(){with($("Ctrip_debug").style){zoom=1;zoom=0}});
                     with((a=$getDebug()).document)
                     {
                            open();
                            write("<style>body{margin:0;padding:0;font-family:fixedsys;font-size:12px;overflow:hidden}<\/style><body><\/body>");
                            close()
                     }
                     return a
                     }
                      this.$t=function(a,b)
                      {
                        if(!top.$$.status.debug)
                            return;
                        if(_!=top)
                            return top.$t(a,b);
                        var c=$getDebug(),d=a;
                        with(c.document.body)
                        {
                            d=new Date().getTime()%(1E7)+":"+d;
                            if(b)
                                d="<font color=\""+b+"\">"+d+"<\/font>";
                                innerHTML=d+"<br \/>"+innerHTML
                         }
                         return a
                       };
                       this.$alert=function(a,b,c,d,f)
                       {
                            var g=$("alertInfo"),h=$("alertTable"),i=1;
                            if(typeof(a)=="string")
                                a=$(a);
                            else 
                                Ctrip.Object.apply(a);
                            g.innerHTML=b;
                            $$.status.alertDiv.style.display="";
                            $$.status.alertDiv.$setPos(a,d||"tl",f||"tr");
                            $$.status.alertDiv.$setIframe();
                            a.className+=" pubGlobal_checkinfo_input01";
                            if(c!==false)
                                a.$setDisplay();
                            function clearAlertDiv()
                            {
                                a.className=a.className.replace("pubGlobal_checkinfo_input01","");
                                $$.status.alertDiv.style.display="none";
                                $$.status.alertDiv.$clearIframe();
                                a.$ur("onblur",clearAlertDiv);
                                _.__.body.$ur("onmousedown",clearAlertDiv);
                                a.clearAlert=null;
                                _.$alert.element=null}
                                if(a.disabled)
                                    i=0;
                                else 
                                    setTimeout(function(){try{a.focus()}catch(e){i=0}},0);
                                if(i)
                                    a.$r("onblur",clearAlertDiv);
                                else 
                                    _.__.body.$r("onmousedown",clearAlertDiv);
                                _.$alert.element=a;a.clearAlert=clearAlertDiv};
                                this.checkinfo=this.$alert;
                                this.$fix_height=function(){};
                                this.c_linklist={};
                                this.c_allyes_text={};
                                this.c_allyes_delay=1000
                            };
                            this.Object=function()
                            {
                                if(!this||this.nodeType==3||this.$)
                                    return this;
                                if(this.__)
                                    this.$=function(objId)
                                    {
                                        var p=_.__.getElementById(objId);
                                        Ctrip.Object.apply(p);
                                        return p
                                    };
                                else 
                                    this.$=function(c)
                                    {
                                        var d=this.getElementsByTagName(c);
                                        d.$each=function(a)
                                            {
                                                var b;
                                                if(d.length!==undefined)
                                                    for(var i=0;i<d.length&&(b=a.call(this,d[i],i))!==false;i++);
                                                else a.call(this,d,0);
                                                    return b===false?0:1
                                             };
                                        for(var i=0;i<d.length;i++)
                                            Ctrip.Object.apply(d[i]);
                                        return d
                                    };
                                    this.module={};
                                    if(!this.hasAttribute)
                                    this.hasAttribute=function(str){return typeof this.attributes[str]!="undefined"};
                                    this.$parentNode=function(){return Ctrip.Object.apply(this.parentNode)};
                                    this.$firstChild=function(){return Ctrip.Object.apply(this.firstChild)};
                                    this.$lastChild=function(){return Ctrip.Object.apply(this.lastChild)};
                                    this.$childNodes=function(){var a=this.childNodes;for(var i=0;i<a.length;i++)Ctrip.Object.apply(a[i]);return a};
                                    this.$nSib=this.$nextSibling=function(){return Ctrip.Object.apply(this.nextSibling)};
                                    this.$pSib=this.$previousSibling=function(){return Ctrip.Object.apply(this.previousSibling)};
                                    this.$getStyle=function(a){var b=this.currentStyle||_.getComputedStyle(this,null);return a?b[a]:b};
                                    this.$getPara=function(){var a,b=(a=this.getAttribute(arguments[0])||"").split(a.indexOf("")>-1?"":"|");for(var i=0;i<Math.max(arguments.length-1,b.length);i++)b[i]=b[i]||arguments[i+1]||"";return b};
                                    this.$r=this.$regEvent=function(a,b,c)
                                        {
                                            var d=this;
                                            if(a.constructor!=Array)a=[a];
                                            if(b.constructor!=Array)b=[b];
                                            a.each(
                                                function(e)
                                                {
                                                    b.each(function(f)
                                                    {
                                                        if(d.__&&e.match(/^(on)?domready$/i))
                                                        {
                                                            if($$.status.domReady)f();
                                                            else $$.status.domReadyFunc.push(f);
                                                            return
                                                        }
                                                        if(d.attachEvent)
                                                            d.attachEvent(e.replace(/^(on)?/i,"on"),f);
                                                        else 
                                                            d.addEventListener(e.replace(/^(on)?/i,""),f,false);
                                                        if($$.browser.IE6)$$.status.regEvent.push([d,e,f]);
                                                        if(c)
                                                        {
                                                            if(!$$.status.regEventHash[c])
                                                                $$.status.regEventHash[c]=[];
                                                            $$.status.regEventHash[c].push([d,e,f])
                                                        }
                                                    })
                                                 })
                                           };
                                    this.$ur=this.$unregEvent=function(a,b)
                                        {
                                            var c=this;
                                            if(a.constructor!=Array)a=[a];
                                            if(b.constructor!=Array)b=[b];
                                            a.each(function(e)
                                            {
                                                b.each(function(f){if(c.detachEvent)c.detachEvent(e.replace(/^(on)?/i,"on"),f);else c.removeEventListener(e.replace(/^(on)?/i,""),f,false)
                                            })
                                            })
                                            };
                                    this.$urh=this.$unregEventHash=function(a)
                                        {
                                            var b=$$.status.regEventHash[a];
                                            if(!b)
                                                return;
                                            for(var i=b.length-1;i>=0;i--)
                                            {
                                                if(this.__||this==b[i][0])
                                                    {
                                                        b[i][0].$ur(b[i][1],b[i][2]);
                                                        b.splice(i,1)
                                                    }
                                             }
                                             $$.status.regEventHash[a]=b.length?b:null};
                                             this.$getWin=function()
                                                    {
                                                        var a=this.ownerDocument;
                                                        return a.parentWindow||a.defaultView
                                                    };
                                             this.$g=this.$selNode=function(n)
                                                    {
                                                        function _1(g,h)
                                                        {
                                                            var k=[],l=g.match(/^([\.\#]*)([a-zA-Z0-9\-_*]+)(.*)$/i);
                                                            if(!l)
                                                                return[];
                                                            if(l[1]=="#")
                                                                {
                                                                    var m=$(l[2]);
                                                                    if(m)k.push(m)
                                                                 }
                                                            else if(l[1]==".")
                                                                h.each(function(p)
                                                                        {
                                                                            $each(p.$("*"),function(a)
                                                                                            {
                                                                                                if(a.className.match(new RegExp("\\b"+l[2]+"\\b")))
                                                                                                    k.push(Ctrip.Object.apply(a))
                                                                                             })
                                                                         });
                                                             else 
                                                                for(var i=0;i<h.length;i++)
                                                                    {
                                                                        var m=h[i].$(l[2]);
                                                                        if(m)
                                                                            for(var j=0;j<m.length;j++)
                                                                                k.push(m[j])}l[3].replace(/\[([^!=]+)(=|!=)([^\]]*)\]/gi,function(a,b,c,d)
                                                                                                                                        {
                                                                                                                                            var f=k.slice(0);k=[];
                                                                                                                                            f.each(function(a)
                                                                                                                                                    {
                                                                                                                                                        b={_2:"className",_0:"htmlFor"}["_"+b]||b;
                                                                                                                                                        var e=a[b]||a.getAttribute(b);
                                                                                                                                                        if(c!="="^e==d)
                                                                                                                                                            k.push(Ctrip.Object.apply(a))
                                                                                                                                                     })
                                                                                                                                          });
                                                                         return k
                                                                     }
                                                                var o=[this==_?_.__.body:this];
                                                                n.replace(/(#|\*)/gi," $1").replace(/([^\^ ])\.(\w+)/gi,"$1[className=$2]").trim().split(/\s+/g).each(function(a){o=_1(a,o)});
                                                                return o.length==0?null:o
                                                        };
                                                        this.$getPos=function()
                                                            {
                                                                var a=this,w,b=[0,0],c,d,e={"thin":2,"medium":4,"thick":6},f;function _3(){f=[a.$getStyle("borderLeftStyle").match(/none|hidden/)?0:a.$getStyle("borderLeftWidth"),a.$getStyle("borderTopStyle").match(/none|hidden/)?0:a.$getStyle("borderTopWidth")];b[0]+=e[f[0]]||parseInt(f[0])||0;b[1]+=e[f[1]]||parseInt(f[1])||0}
                                                                do
                                                                    {
                                                                        w=Ctrip.Object.apply(a).$getWin();
                                                                        if(a.tagName.match(/^(iframe|frameset)$/i))_3();
                                                                            d=-1;
                                                                        do{
                                                                            b[0]+=a.offsetLeft-a.scrollLeft;
                                                                            b[1]+=a.offsetTop-($$.browser.Safari&&a==w.document.body?0:a.scrollTop);
                                                                        switch(a.$getStyle("position"))
                                                                        {
                                                                            case"absolute":_3();
                                                                                break;
                                                                            case"fixed":d=1;
                                                                                break
                                                                         }
                                                                    }
                                                                while(a.offsetParent&&a!=a.offsetParent&&(a=Ctrip.Object.apply(a.offsetParent))&&a!=_.___);
                                                                if($$.browser.Safari)
                                                                    {
                                                                        b[0]+=w.__.body.leftMargin||0;
                                                                        b[1]+=w.__.body.topMargin||0
                                                                    }
                                                                if(d==1||w!=top)
                                                                    {
                                                                        b[0]+=w.___.scrollLeft*d;
                                                                        b[1]+=w.___.scrollTop*d}
                                                                    }
                                                                while(a=w.frameElement);
                                                                return b
                                                                };
                                                         this.$setPos=function(e,f,g)
                                                         {
                                                            function _1(d,i)
                                                            {
                                                                function _4(a,b,c,i)
                                                                    {
                                                                        return c+{"l":0,"c":b.offsetWidth/2,"r":b.offsetWidth,"t":0,"m":b.offsetHeight/2,"b":b.offsetHeight}[a||"l"]*i}
                                                                        return _4(f.match(d),this,_4(g.match(d),e,h[i],1),-1)+"px"
                                                                    }
                                                                var h=e.$getPos();
                                                                f=f||"lt";
                                                                g=g||"lb";
                                                                this.style.left=_1.call(this,/[lcr]/i,0);
                                                                this.style.top=_1.call(this,/[tmb]/i,1)};
                                                                this.$setIframe=function(a)
                                                                    {
                                                                        if(a!==true&&!$$.browser.IE6)
                                                                            return;
                                                                        if(this.module.iframe)
                                                                            b=this.module.iframe;
                                                                        else
                                                                            {
                                                                                function getIframe()
                                                                                {
                                                                                    for(var i=0;i<top.$$.module.iframe.length;i++)
                                                                                    {
                                                                                        if(top.$$.module.iframe[i].$getStyle("display")=="none")
                                                                                            return top.$$.module.iframe[i]
                                                                                     }
                                                                                 }
                                                                                var b=getIframe();
                                                                                if(!b)
                                                                                {
                                                                                    b=top.$c("iframe");
                                                                                    with(b.style)
                                                                                    {
                                                                                        width=height="0px";
                                                                                        background="#FFF";
                                                                                        position="absolute";
                                                                                        display="none";
                                                                                        zIndex=100
                                                                                    }
                                                                                    b.frameBorder=0;
                                                                                    b.id=b.name=$getUid();
                                                                top.$$.status.container.appendChild(b);
                                                                top.$$.module.iframe.push(b);
                                                                with(top.frames[b.id].document)
                                                                {
                                                                    open();
                                                                    write('<style>html,body{overflow:hidden}</style>');
                                                                    close()
                                                                }
                                                            }
                                                            this.module.iframe=b
                                                         }
                                                         b.$setPos(this,"tl","tl");
                                                         with(b.style)
                                                         {
                                                            width=this.offsetWidth+"px";
                                                            height=this.offsetHeight+"px";
                                                            display=""
                                                         }
                                                         return b
                                                         };
                                                         this.$clearIframe=function(){var a=this.module.iframe;if(a){a.style.display="none";this.module.iframe=null}return a};function $abs(a,b,c){if(!a)return null;b=b||"n";var d=new RegExp(({1:"n",3:"t",8:"c"}[a.nodeType])||"o","i");
                                                                return b.match(d)?a:c.call(a,b)}this.$nAbs=function(a){var b=this,c=b.firstChild||b.nextSibling;if(!c)do{b=b.parentNode;if(b==_.__.body)return null;c=b.nextSibling}while(!c);
                                                                return Ctrip.Object.apply($abs(c,a,arguments.callee))};
this.$pAbs=function(a){if(this==_.__.body)return null;var b=this.previousSibling;if(b){while(b.lastChild)b=b.lastChild}else b=this.parentNode;return Ctrip.Object.apply($abs(b,a,arguments.callee))};this.$focusNext=function(){if(!this.form)return;try{this.blur()}catch(e){};var a=this.form.elements,b;for(var i=0;i<a.length;i++){if(b){Ctrip.Object.apply(a[i]);if(!a[i].disabled&&a[i].$isDisplay())try{a[i].focus();
return}catch(e){}}if(a[i]==this)b=true}};this.$setDisplay=function(){var a=this.$getPos();with(top.___){scrollLeft=a[0]-80;scrollTop=a[1]-80}};
this.$isDisplay=function(){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};return this};this.Array=function(){this.each=function(a){for(var i=0;i<this.length;i++)if((a?a(this[i],i):this[i]())===false)return 0;return 1};
if($$.browser.IE)this.map=function(func){var b=[];for(var i=0;i<this.length;i++)b.push(func(this[i]));return b}};
this.Number=function(){this.parseCur=function(a){var b=this.toFixed(a||2),c=/(\d)(\d{3}[,\.])/;
while(c.test(b))b=b.replace(c,"$1,$2");b=b.replace(/^(-?)\./,"$10.");return a===0?b.replace(/\..*$/,""):b}};this.String=function(){this.replaceWith=function(a){return this.replace(/\{\$(\w+)\}/g,function(s,k){if(k in a)return a[k];else return s})};this.trim=function(){return this.replace(/^\s+|\s+$/g,'')};this.isEmail=function(){var a=/^\w+([\-\+\.]\w+)*@\w+([\-\.]\w+)*\.\w+([\-\.]\w+)*$/;return a.test(this)};
this.isDateTime=function(){var a=$$.status.version.match(/^zh-/)?this:this.replace(/^(\d{1,2})-(\d{1,2})-(\d{4})$/,"$3-$1-$2");
var b=a.match(/^((19|20)\d{2})-(\d{1,2})-(\d{1,2})$/);if(!b)return false;for(var i=1;i<5;i++)b[i]=parseInt(b[i],10);if(b[3]<1||b[3]>12||b[4]<1||b[4]>31)return false;var c=new Date(b[1],b[3]-1,b[4]);return c.getDate()==b[4]?c:null};this.isChinaIDCard=function(){var a=this.toLowerCase().match(/./g);if(this.match(/^\d{17}[\dx]$/i)){var b=0,c=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];
for(var i=0;i<17;i++)b+=parseInt(a[i],10)*c[i];if("10x98765432".charAt(b%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 b="January|1@February|2@March|3@April|4@May|5@June|6@July|7@August|8@September|9@October|10@November|11@December|12",c=this.replace(/[ \-,\.\/]+/g,"-").replace(/(^|-)0+(?=\d+)/g,"$1").replace(/[a-z]{3,}/i,function(a){return(_5=b.match(new RegExp("(^|@)"+a+"[^\\|]*\\|(\\d+)","i")))?_5[2]:a}).replace(/^([^-]{1,2}-[^-]{1,2})-([^-]{4})$/,"$2-$1");
return c.isDateTime()?c:null};this.parseEngDate=function(){var a=this.parseStdDate();if(!a)return null;
var b=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(b[2])-1]+"-"+b[3]+"-"+b[1]}};
this.Date=function(){this.dateValue=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate())}};
this.module=new function(){this.linklist=function(b){var c=b.getAttribute('mod_linklist_class');
if(c===null)c='pubSidebar_linkmargin01';var s='<a class="'+c+'" href="{$link}" title="{$text}" target="{$target}">{$text}</a>';
var a=b.getAttribute('mod_linklist_id');if(!a||!(a=window.c_linklist[a])||a.constructor!==Array)return;
for(var i=0;i<a.length;i++){var t=a[i].split('|',2);a[i]=s.replaceWith({text:$s2t(t[0]),link:t[1],target:a[i].target||'_6'})}b.innerHTML=a.join('')};this.allyes=function(d){var e=attr("user")||attr("mod_allyes_user");
if(!e){var f=attr('mod_allyes_buttons',window);var g=attr('mod_allyes_text',window.c_allyes_text);if(!f&&!g)return}var h='<div class="pubGlobal_ad140x60" style="height:{$height}px">{$iframe}<\/div>';
var i='<div class="pubGlobal_adtxt140">{$text}<\/div>';
var j='<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(e){if(e.indexOf('@')>-1)e=choose(e.split('@'));d.innerHTML=j.replace('{$user}',e)}else{var a=[];if(f)a=f.map(function(b){b.button=b.button||';';
return h.replace('{$height}',b.height).replace('{$iframe}',j.replace('{$user}',b.user))});if(g)a.push(i.replace('{$text}',$s2t(g)));d.innerHTML=a.join('')}},window.c_allyes_delay);
function attr(a,b){var v=d.getAttribute(a);if(!v)return null;if(b)return b[v]||null;else return v}function choose(a){var b=/^(SearchFlights\.aspx|SearchHotels\.aspx|query\.asp)$/i;
var c=location.pathname;
c=c.slice(c.lastIndexOf('/')+1);
return b.test(c)?a[0]:a[1]}};
this.notice=function(a){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(){if(a.module.notice.enabled){a.style.color="";if(a.value==a.module.notice.tip)a.value=""}});a.$r("blur",function(){setTimeout(a.module.notice.check,1)});a.module.notice.check()};
this.tab=function(d){var e=_.$g(d.getAttribute("mod_tab_button")||"");
var f=_.$g(d.getAttribute("mod_tab_panel")||"");
var g=parseInt(d.getAttribute("mod_tab_select")||1,10);
var h=((d.getAttribute("mod_tab_event")||"").match(/^mouseover$/i)||"click").toString();
var c={"true":"_"+"current","false":"_"+"nocurrent"};
if(!e||!f)return;
d.module.tab=new function(){this.funcListHash={};
this.select=function(i){if(this.funcListHash[i-1])this.funcListHash[i-1]()}};
e.each(function(b,j){d.module.tab.funcListHash[j]=function(){e.each(function(a,k){a.className=a.className.replace(c[j!=k],c[j==k]);
if(f[k])f[k].style.display=(j==k)?"":"none"})};
b.$r(h,d.module.tab.funcListHash[j])});
d.module.tab.select(g)};
this.display=function(f){var g=f.$getPara("mod_display_panel"),h=[];
g.each(function(a){a=_.$(a)||_.$selNode(a);if(a){if(a.length)a.each(function(a){h.push(a)});
else h.push(a)}});f.$r("click",function(){(function(d){for(var i=0;i<d.childNodes.length;i++){with(d.childNodes[i]){if(nodeType==3){var e=new RegExp($$.string.display.match(/[^@]+/g).join("|"),"gi");nodeValue=nodeValue.replace(e,function(a){var b=new RegExp("@"+a+"\\|([^@]+)|([^@]+)\\|"+a+"@","i");var c=$$.string.display.match(b);
return c[1]||c[2]})}else arguments.callee(d.childNodes[i])}}})(f);h.each(function(a){a.style.display=a.$getStyle("display")=="none"?"":"none"})})};this.selectAll=function(c){var d=$selNode(c.getAttribute("mod_selectAll_input")||"");if(!d)return;
d.each(
    function(b)
    {
        if(b!=c)
        b.$r("onclick",function(){c.checked=d.each(function(a){if(a!=c&&!a.checked)return false})})});
        c.$r("click",function(){d.each(function(a){a.checked=c.checked})})};
        this.validate=function(a){var b=_.$(a.getAttribute("mod_validate_true")||"");var c=_.$(a.getAttribute("mod_validate_false")||"");var d=a.getAttribute("mod_validate_function")||"";if(!d)return;var e=d.match(/^\/(.*?[^\\])\/([gmi]*?)$/);var f,g,h;d=_[d];if(e||d){a.module.validate=new function(){this.check=function(){if(a.value||!b&&!c)h=!(g=d?d(a.value,a):a.value.match(new RegExp(e[1],e[2])));else g=h=false;if(b)b.style.display=g?"":"none";if(c)c.style.display=h?"":"none"}};a.$r("focus",function(){f=setInterval(a.module.validate.check,200)});a.$r("blur",function(){a.module.validate.check();clearInterval(f)})}}};this.debug=new function(){};this.window.apply(_);this.Object.apply(_);
this.Object.apply(_.__);this.Object.apply(_.___);
this.Array.apply(_.Array.prototype);
this.Number.apply(_.Number.prototype);
this.String.apply(_.String.prototype);
this.Date.apply(_.Date.prototype);
this.Object.apply($$.status.alertDiv);
this.init=new function()
{
    if($$.status.charset=='big5')
        __.write('<script src="http://webresource.ctrip.com/code/js/public/public_s2t.js" charset="utf-8"></script>');
    else 
        _.$s2t=function(s){return s};
    if($$.browser.IE6)
        __.execCommand("BackgroundImageCache",false,true);
        $$.status.debug=/^(true|1)$/.test($getQuery("debug"));
        $$.status.alertDiv.innerHTML=$$.status.version.match(/^zh-/)?"<table id=\"alertTable\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;\"><tr><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_tl.gif) left top no-repeat;\"><\/td><td style=\"height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_tm.gif) left top repeat-x;\"><\/td><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_tr.gif) left top no-repeat;\"><\/td><\/tr><tr><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_ml.gif) left top repeat-y;\"><\/td><td id=\"alertInfo\" style=\"margin:0;padding:5px 10px 10px 5px;background:#FFFFE8;\">内容<\/td><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_mr.gif) left top repeat-y;\"><\/td><\/tr><tr><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_bl.gif) left top no-repeat;\"><\/td><td style=\"height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_bm.gif) left top repeat-x;\"><\/td><td style=\"width:10px;height:10px;background:url(http:\/\/pic.ctrip.com\/common\/blk_jmpInfo02_br.gif) left top no-repeat;\"><\/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 evtDomReady(e)
        {
            var a;$$.status.domReady=true;
            while(a=$$.status.domReadyFunc.shift())
            try{a(e)}catch(e){$t("domReady函数错误:"+a.toString().slice(0,50)+"...","red")}
        }
        if($$.browser.Moz||$$.browser.Opera)
            _.$r("DOMContentLoaded",evtDomReady);
        else if($$.browser.IE)
        {
            _.__.write("<script id=\"ieDomReady\" src=\":\/\/\" defer=\"true\"><\/script>");
            _.__.getElementById("ieDomReady").onreadystatechange=function(){if(this.readyState=="complete")evtDomReady()}
        }
        else if($$.browser.Safari)
        {
            var b=setInterval(function(){if(_.__.readyState=="loaded"||_.__.readyState=="complete"){clearInterval(b);evtDomReady()}},10)
        }
        if($$.browser.IE6)
            _.$r("unload",function(){var c;while(c=$$.status.regEvent.shift()){if(c[0])c[0].$ur(c[1],c[2])}});
            _.$r("domready",[function(){Ctrip.Object.apply(_.__.body)},_.$parserRe,_.$fixElement])}};
            var Ctrip=new $Ctrip(window);
            Ctrip.module.jmpInfo=(function(){var k='\/webresource\/ui\/jmpinfo_tuna\/';var l='http:\/\/webresource.ctrip.com\/styles\/control\/tuna_071206\/control_jmpinfo_tuna_071206.css';
            var m={CraftType:'http:\/\/webresource.ctrip.com\/code\/js\/resource\/jmpinfo_tuna/CraftType_{$charset}.js'};
            var n={"align-center":"cbct","align-left":"lblt","corner-left":"rblt","align-right":"rbrt","corner-right":"lbrt","above-align-left":"ltlb","above-align-right":"rtrb"};
            var o='__jpi_';
            var q=200;
            var r=400;
            var t=null,u=null,v=null,w=0,x=null,y=null,z={},A={},B={},C=false;
            window.$r('domReady',init);
            return function(a){init();if(a.nodeType==1){if(!a.id)a.id=o+w++;setConfig(a)}else{requestPage(a)}};
            function init(){if(C)return;C=true;$loadCss(l);t=document.createElement("div");
            t.id='tuna_jmpinfo';
            t.style.cssText='visibility:hidden;position:absolute;z-index:120;overflow:hidden';
            $$.status.container.appendChild(t);t=$(t.id);var a=document.documentElement;
            if(a.attachEvent)a.attachEvent('onmouseover',hover);
            else a.addEventListener('mouseover',hover,false)
            }function hover(e){var a=src(e),b=null;if(!a)return;if(a.id&&(a.id in z)){if(a!=u&&a!=v){v=a;clearTimeout(y);y=setTimeout(show,r)}}else if((b=a.getAttribute('mod'))=='jmpInfo'){setConfig(a);if(a!=u&&a!=v){v=a;clearTimeout(y);y=setTimeout(show,r)}}else if(u){if(inArea(a,u,t))clearTimeout(x);else x=setTimeout(hide,q)}else if(v){if(!inArea(a,v)){clearTimeout(y);v=null}}}function getPos(a){if(!a.$getPos)Ctrip.Object.apply(a);var p=a.$getPos();return{left:p[0],top:p[1]}}function display(a,b){var c=a.style;if(!b){c.visibility='hidden';a.$clearIframe()}else{var c=a.style;c.left=b.left+'px';c.top=b.top+'px';c.visibility='visible';a.$setIframe()}}function show(){if(!v)return;var a=getConfig(v);if(!a)return;u=v;v=null;t.innerHTML=A[a.page];for(var i=1;el=document.getElementById('para'+i);i++)el.innerHTML=a.content[i-1]||'';for(var i=1;el=document.getElementById('array'+i);i++)el.innerHTML=a.para[i-1]||'';
            display(t,decidePos(u,a.position))}
function hide(){u=null;display(t,null)}function inArea(a,b,c){while(a&&a!=b&&a!=c)a=a.parentNode;return!!a}function src(a){a=a||window.event;return a.srcElement||a.target}function decidePos(a,b){var p=getPos(a);var c=a.offsetWidth,d=a.offsetHeight;var e=t.offsetWidth,f=t.offsetHeight;
var g={l:0,c:c>>1,r:c};
var h={t:0,c:d>>1,b:d};
var i={l:0,c:e>>1,r:e};
var j={t:0,c:f>>1,b:f};p.left+=g[b[0]]-i[b[2]];p.top+=h[b[1]]-j[b[3]];
return p}function setConfig(a){var b=attr(a,'mod_jmpInfo_page','default_normal.asp');
var c=requestPage(b);var p=attr(a,'mod_jmpInfo_position','');if(!p||!(p in n)){p='lblt'.split('');
var d=getPos(a);if(d.left>500)p[0]=p[2]='r'}
else{p=n[p].split('')}c.position=p;c.content=attr(a,'mod_jmpInfo_content','').split('|');
z[a.id]=c}function getConfig(a){var d=z[a.id];if(!A[d.page])return null;
if(d.search)d.para=d.search.hash[d.search.key]||[];
return d}function attr(a,b,c){return a.getAttribute(b)||c||''}
function requestPage(a){var p=a,s=null;
var i=a.indexOf('?');if(i>=0){p=a.slice(0,i).trim();s=requestPara(a.slice(i+1))}if(!(p in A))doRequestPage(p);
return{page:p,search:s}}function doRequestPage(p){A[p]=false;$ajax(k+p,null,function(a){if(a)A[p]=a.replace(/\n/g,'').replace(/^[\s\S]*<body.*?>|<\/body>[\s\S]*$/gi,'')})}function requestPara(s){var i=s.indexOf('=');if(i==-1)return null;var a=s.slice(0,i);var b=s.slice(i+1);if(!(a in B))doRequestPara(a);return{hash:B[a],key:b}}function doRequestPara(c){var p=B[c]={};$loadJs(m[c],null,function(){var a=$$.module.jmpInfo.array[c].slice(1,-1).split('@');
for(var i=0;i<a.length;i++){var b=a[i].split('|');p[b[0]]=b}
})}})();