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(g){this.Variable=function(){this._=g;this.__=g.document;this.___=g.__.documentElement;this.$$=new function(){with(navigator){with(userAgent){this.browser={IE:!!match(/MSIE/),IE6:!!appVersion.match(/MSIE 6\.0/i),Moz:match(/Mozilla/i)&&!match(/compatible|WebKit/i),Opera:!!match(/Opera/i),Safari:!!match(/Mac|Safari/i)}}}this.history={load:function(){setTimeout(function(){g.$$.history.load()},200)}}};g.__.write("<div id=\"jsContainer\"><div id=\"jsHistoryDiv\" style=\"display:none;\">"+(this.$$.browser.IE?"":"<iframe id=\"jsHistoryFrame\" name=\"jsHistoryFrame\" onload=\"$$.history.load();\" src=\"about:blank\"><\/iframe>")+"<\/div><textarea id=\"jsSaveStatus\" style=\"display:none;\"><\/textarea><div id=\"tuna_jmpinfo\" style=\"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>");(function(){this.status=new function(){this.domReady=false;this.load=false;this.busy=0;this.dealt={};this.regEventCount=0;this.regEventHash={};this.charset=(((g.__.charset?g.__.charset:g.__.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=g.__.getElementById("tuna_alert");this.container=g.__.getElementById("jsContainer");this.saveStatus=g.__.getElementById("jsSaveStatus");this.back=false;this.pageValue={data:{}};this.globalValue={};this.today=new Date().toStdString()};this.history={isFirefox2:/Firefox\/2\.0\.0\.\d+/.test(navigator.userAgent),enabled:false,callback:{},info:{"#":["#","","",""]},current:"#",blank:"blank.html",div:g.__.getElementById("jsHistoryDiv"),frame:g.frames["jsHistoryFrame"],iframe:null,isReady:false,count:0,init:function(){if(g.$$.history.frame)return;this.div.innerHTML="<iframe id=\"jsHistoryFrame\" name=\"jsHistoryFrame\" src=\""+this.blank+"\" onload=\"$$.history.load();\"><\/iframe>";this.frame=g.frames["jsHistoryFrame"];this.iframe=$("jsHistoryFrame")},load:function(){this.isReady=true;g.$r("domReady",function(){var f=0;setInterval(function(){var a=(g.$$.history.isFirefox2?g:g.$$.history.frame).location.hash.replace(/^#/,"")||"#";if(a!=g.$$.history.current){if(f<1)f++;else{g.$$.history.current=a;var c=g.$$.history.info[a];if(c){$t("[history]返回标志:"+c[0]+"/"+a,"green",c.join("\t"));var d=g.$$.history.callback[c[0]];if(typeof d=="function")d.apply(c[0],c.slice(1))}if($$.browser.Opera)g.$saveHistory()}}else f=0},100)});$t("[history]初始化完成","green");var h=(g.$$.history.isFirefox2?g:g.$$.history.frame).location.hash.replace(/^#/,"")||"#";$t("[history]返回标志:"+h,"green");this.load=function(){}}};this.module={iframe:[],list:{address:"tuna_address_071206",calendar:"tuna_calendar_071206"},tab:{},selectAll:{},checkInput:{},address:{source:{}},calendar:{},jmpInfo:{count:0,page:{},array:{}},init:[]};this.string={"zh-cn":{weekday:"日一二三四五六",display:"@▲|▼@显示|隐藏@"},"zh-tw":{weekday:"日一二三四五六",display:"@▲|▼@顯示|隱藏@"},"en":{weekday:"SMTWTFS",display:"@Show|Hidden@"}}[this.status.version];this.access={}}).apply(this.$$)};this.window=function(){this.$fixE=function(a){a=g.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 $(g.__.createTextNode(a.join("\n")));else return $(g.__.createElement(a))};this.$toJson=function(c){if(typeof c=="undefined")return undefined;switch(c.constructor){case Object:var d=[],f;for(var h in c)d.push(g.$toJson(h)+":"+g.$toJson(c[h]));return"{"+d.join(",")+"}";case Array:return"["+c.map(function(a){return g.$toJson(a)}).join(",")+"]";case String:return"\""+c.replace(/([\n\r\\\/\'\"])/g,function(a){return{"\n":"\\n","\r":"\\r"}[a]||"\\"+a})+"\"";case Date:return"new Date("+c.getTime()+")";case Number:case Boolean:case Function:case RegExp:return c.toString();default:return"null"}};this.$fromJson=function(a){var c;var d=null;try{d=eval("("+a+")")}catch(e){};return d};this.$pageValue=function(){return g.$pageValue.get.apply(g,arguments)};this.$pageValue.set=function(a,c,d){d=d||g.$$.history.current;if(!(d in g.$$.status.pageValue.data))g.$$.status.pageValue.data[d]={};g.$$.status.pageValue.data[d][a]=c;if($$.browser.Opera)g.$savePageValue()};this.$pageValue.get=function(a,c){var d=g.$$.status.pageValue.data[c||g.$$.history.current];return d&&a in d?d[a]:null};this.$pageValue.del=function(a,c){var d=g.$$.status.pageValue.data[c||g.$$.history.current];if(d){delete d[a];if($$.browser.Opera)g.$savePageValue()}};this.$savePageValue=function(){g.$$.status.saveStatus.value=$toJson(g.$$.status.pageValue)};this.$saveHistory=function(){var a=[];for(var c in g.$$.history.info){var d=g.$$.history.info[c];if(d.constructor==Array&&d.length==4){var f=[c];for(var h=0;h<d.length;h++)f.push(escape(d[h]||""));a.push(escape(f.join("|")))}}g.$$.status.pageValue["historyInfo"]=a.join("|");g.$$.status.pageValue["historyCount"]=g.$$.history.count;if(g.$$.history.frame)g.$$.status.pageValue["lastHistory"]=g.$$.history.frame.location.href;g.$savePageValue()};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 h=f.queue||(f.queue={});c=c||g.$$.status.charset;a=a.replace('{$charset}',c);if(a in h){if(d){if(h[a])h[a].push(d);else d()}return}h[a]=d?[d]:[];var i=g.__.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(h[a].length)h[a].shift()();h[a]=null};i.src=a;g.__.getElementsByTagName("head")[0].appendChild(i)};this.$loadCss=function(a,c){if($$.browser.IE)g.__.createStyleSheet(a).charset=c||g.$$.status.charset;else{var d=g.__.createElement("link");with(d){type="text\/css";rel="stylesheet";href=a}g.__.$("head")[0].appendChild(d)}};this.$getCookie=function(a,c){var d=g.__.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){g.__.cookie=encodeURIComponent(a)+"="+d;return}}var f=new Date();f.setTime(f.getTime()-1);g.__.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");g.__.cookie=encodeURIComponent(a)+"="+f+encodeURIComponent(c)+"="+encodeURIComponent(d)}else g.__.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 h=/<[^>]+\smod=[\'\"]?([\w|]+)[^>]+/g;var i=/\smod_jmpInfo_page=[\'\"]?([^\'\"\s]+)/;var j=/id=[\'\"]?([\w\-]+)/i;var k=null;var l=null;var m=null;(d&&d.innerHTML?d:g.__.body).innerHTML.replace(h,function(a,c){try{if(c=="jmpInfo"){if(k=a.match(i))Ctrip.module.jmpInfo(k[1])}else if((l=a.match(j))&&(m=$(l[1]))){if(c in Ctrip.module)new Ctrip.module[c](m);else f.push(m)}}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:\/\/webresource.ctrip.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=g.$$.access[i];if(j)return j;else{j=new function(){var f=[],h=[];this.get=function(){var a=j.value;for(var c=0;c<f.length;c++){var d=f[c].call(a);if(typeof d!='undefined')a=d}return a};this.set=function(a){for(var c=0;c<h.length;c++){var d=h[c].call(a);if(typeof d!='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)h=[];else h.push(a);return}}}return g.$$.access[i]=j};this.$fixElement=function(f){function h(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._1;if(c){a.htmlFor=c.id||(c.id=$getUid());a._1=null}var d=a.style;d.borderBottom='#aaa 1px dashed';d.paddingBottom='0px';d.color='#1E1A75'}function l(a){var c=a.style;c.borderBottom='';c.paddingBottom='';c.color=''}f=f&&f.nodeType?f:g.__;if($$.browser.IE6){var m=f.getElementsByTagName("label");for(var n=0;n<m.length;n++){var o=i(m[n]);if(o&&/checkbox|radio/.test(o.type))(function(lbl,box){lbl._1=box;h(lbl,'mouseover',function(){k(lbl)});h(lbl,'mouseout',function(){l(lbl)})})(m[n],o)}}if($$.browser.IE){var p=f.getElementsByTagName("select");for(var n=0;n<p.length;n++)p[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(d,f,h,i){var j=["MSXML2.XMLHTTP","Microsoft.XMLHTTP"],k;try{k=new XMLHttpRequest()}catch(e){for(var l=0;l<j.length;l++)try{k=new ActiveXObject(j[l]);break}catch(e){}}if(!k)return;k.open(f?"POST":"GET",d||g.location.href,!!h);k.setRequestHeader("Content-Type","application\/x-www-form-urlencoded");k.setRequestHeader("If-Modified-Since",new Date(0));function m(){if(g.$$.history.enabled&&i){g.$$.history.init();var c="ajaxHistory_"+g.$$.history.count++;g.$$.history.current=c;(function(){if(g.$$.history.isReady){var a=g.$$.history.info[c]=[i,k.status==200?k.responseText:null,d,f];if(g.$$.history.isFirefox2)g.location.hash=c;else g.$$.history.frame.location.href=g.$$.history.blank+($$.browser.IE?"?"+!(g.$$.history.count%2):"")+"#"+c;if($$.browser.Opera)g.$saveHistory();$t("[history]增加历史:"+a[0]+"/"+c,"green",a.slice(1).join("\n"))}else setTimeout(arguments.callee,50)})()}return(k.status==200?(/xml/i.test(k.getResponseHeader("content-type"))?k.responseXML:k.responseText):null)}if(h)k.onreadystatechange=function(){if(k.readyState==4){var n=m();if(h(n)===true){setTimeout(function(){g.$ajax(d,f,h)},1000)}}};k.send(f||"");return h?k:m()};function t(a){var c=a.keyCode||a.charCode;if($$.status.debug&&c==192){var d=q();if(d&&(d=d.frameElement))d.style.display=d.style.display==""?"none":""}}function q(){var a=$topWin.frames["Ctrip_debug"];if(a)return a;with(a=$topWin.$c("iframe")){frameBorder=0;id=name="Ctrip_debug";with(style){border="1px solid red";width="600px";height="300px";position=$$.browser.IE6?"absolute":"fixed";bottom=right="10px";background="white"}}$topWin.$$.status.container.appendChild(a);if($$.browser.IE6)$topWin.$r("scroll",function(){with($("Ctrip_debug").style){zoom=1;zoom=0}});with((a=q()).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",t);return a}this.$t=function(a,c,d){if(!$topWin.$$.status.debug)return;if(g!=$topWin)return $topWin.$t(a,c);var f=q();var h=new Date().getTime()%(1E7);var i="<font id=\"msg_"+h+"\"> "+a+"<\/font>";var j=f.document.createElement("div");if(c)j.style.color=c||"black";if(d)j.title=d;j.innerHTML="<font style=\"color:blue;\">"+h+"<\/font> "+i;with(f.document.body){if(firstChild)insertBefore(j,firstChild);else appendChild(j)}return a};this.$alert=function(a,c,d,f,h){a=$(a);var i=$("alertInfo"),j=$("alertTable"),k=1;i.innerHTML=c;$topWin.$$.status.alertDiv.style.display="";$topWin.$$.status.alertDiv.$setPos(a,f||"tl",h||"tr");$topWin.$$.status.alertDiv.$setIframe();a.className+=" pubGlobal_checkinfo_input01";if(d!==false)a.$setDisplay();function l(){a.className=a.className.replace("pubGlobal_checkinfo_input01","");$topWin.$$.status.alertDiv.style.display="none";$topWin.$$.status.alertDiv.$clearIframe();a.$ur("onblur",l);g.__.body.$ur("onmousedown",l);a.clearAlert=null;g.$alert.element=null}if(a.disabled)k=0;else setTimeout(function(){try{a.focus()}catch(e){k=0}},0);if(k)a.$r("onblur",l);else g.__.body.$r("onmousedown",l);g.$alert.element=a;a.clearAlert=l};this.checkinfo=this.$alert;this.$fix_height=function(){};this.c_linklist={};this.c_allyes_text={};this.c_allyes_delay=1000};function M(a){return(a.toString().match(/function([^\{]+)/i)||["","anonymous"])[1].replace(/\(\)/,"").trim()||"anonymous"}function y(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+=" "+M(a.func);return c}function v(h){return function(a){a=$fixE(a);var c=h.module.event[a.type],d;for(var f=0;f<c.length;f++){if(c[f].enabled){try{d=c[f].func.call(h,a);if($topWin.$$.status.debugEvent)$t(y(c[f])+" ("+(typeof d=="undefined"?"无返回值":d.toString().slice(0,100))+")",null,c[f].func);if(d===false)break}catch(a){$t(y(c[f])+" (执行错误)","red",c[f].func)}}else{c.splice(f,1);f--}}return d}};function z(a,c){if(typeof a=="object")return Ctrip.Object.apply(a);var d;if(c){var f=g.___.innerHTML.match(new RegExp("\\sid=([\\\'\\\"]?)([\\w$]+?[_$]"+a.toReString()+")\\1"),"g");if(f){for(var h=0;h<f.length;h++){d=g.$(f[h]);if(d)return d}}return g.$(a)}else d=g.__.getElementById(a);return d?$(d):null};function w(f){var h=this.getElementsByTagName(f);h.$each=function(a){var c;if(h.length!==undefined)for(var d=0;d<h.length&&(c=a.call(this,h[d],d))!==false;d++);else a.call(this,h,0);return c===false?0:1};for(var i=0;i<h.length;i++)$(h[i]);return h};function A(){return!this.value.trim()};function C(a){for(var c=0;c<this.options.length;c++){if(this.options[c].value==a){this.selectedIndex=c;return true}}return false};function D(a){return typeof this.attributes[a]!="undefined"};function E(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 F(){return $(this.firstChild)};function G(){return $(this.lastChild)};function H(){var a=this.childNodes;for(var c=0;c<a.length;c++)$(a[c]);return a};function N(){return $(this.nextSibling)};function I(){return $(this.previousSibling)};function O(){if(this.click)this.click();else{var a=__.createEvent("MouseEvents");a.initMouseEvent("click",true,true,g,0,0,0,0,0,false,false,false,false,0,this);this.dispatchEvent(a)}};function P(a){var c=this.currentStyle||g.getComputedStyle(this,null);return a?c[a]:c};function J(){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 Q(i,j,k,l){l=l||50;if(arguments.length==3&&typeof k=="number"){l=k;k=null}var m=this;if(i.constructor!=Array)i=[i];if(j.constructor!=Array)j=[j];i.each(function(h){j.each(function(d){h=h.replace(/^(on)?/i,"");h=h=="DOMContentLoaded"?"domready":h.toLowerCase();if(h=="domready")m=g;var f={enabled:true,obj:m,event:h,func:d,hash:k,level:l,id:g.$$.status.regEventCount++};if(h=="domready"&&g.$$.status.domReady||h=="load"&&(m==g||m==__.body)&&g.$$.status.load)d();else{if(!(h in m.module.event)){m.module.event[h]=[];if(m.attachEvent)m.attachEvent("on"+h,v(m));else m.addEventListener(h,v(m),false)}m.module.event[h].push(f);m.module.event[h].sort(function(a,c){return(a.level-c.level)||(a.id-c.id)})}if(k){if(!(k in g.$$.status.regEventHash))g.$$.status.regEventHash[k]=[];g.$$.status.regEventHash[k].push(f)}})})};function B(h,i,j){var k=this;if(h.constructor!=Array)h=[h];if(i.constructor!=Array)i=[i];h.each(function(f){i.each(function(a){f=f.replace(/^(on)?/i,"").toLowerCase();f=f=="DOMContentLoaded"?"domready":f.toLowerCase();if(f=="domready")k=g;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 K(a){var c=this;if(a in g.$$.status.regEventHash){var d=g.$$.status.regEventHash[a],f;while(f=d.shift())f.obj.$ur(f.event,f.func,a);delete g.$$.status.regEventHash[a]}};function R(){var a=this.ownerDocument;return a.parentWindow||a.defaultView};function S(x){function u(l,m){var n=[],o=l.match(/^([\.\#]*)([a-zA-Z0-9\-_*]+)(.*)$/i);if(!o)return[];if(o[1]=="#"){var p=g.$(o[2]);if(p)n.push(p)}else if(o[1]==".")m.each(function(obj){obj.$("*").$each(function(a){if(new RegExp("\\b"+o[2]+"\\b").test(a.className))n.push($(a))})});else for(var t=0;t<m.length;t++){var p=m[t].$(o[2]);if(p)for(var q=0;q<p.length;q++)n.push(p[q])}o[3].replace(/\[([^!=]+)(=|!=)([^\]]*)\]/gi,function(f,h,i,j){var k=n.slice(0);n=[];k.each(function(a){h={_f:"className",_1:"htmlFor"}["_"+h]||h;var c=a[h]||a.getAttribute(h);var d;if(h=="className")d=new RegExp("\\b"+j+"\\b").test(c);else d=c==j;if((i=="=")==d)n.push($(a))})});return n}var L=[this==g?g.__.body:this],s=[],r=[];x.replace(/[^\[,]([^\[,]*(\[[^\]]*\])*)+/g,function(c){var d=L.slice(0);c.replace(/(#|\*)/gi," $1").replace(/([^\^ ])\.(\w+)/gi,"$1[className=$2]").trim().split(/\s+/g).each(function(a){d=u(a,d)});s=s.concat(d)});s.each(function(a){if(!a.__selNodeFlag__){a.__selNodeFlag__=true;r.push(a)}});r.each(function(a){a.__selNodeFlag__=false});return r.length==0?null:r};function T(){var f=this,h=this,i,j=[0,0],k,l={"thin":2,"medium":4,"thick":6};function m(){if(f==h)return;function d(a){var c=/^(none|hidden)$/i.test(h.$getStyle("border"+a+"Style"))?0:h.$getStyle("border"+a+"Width");return l[c]||parseInt(c,10)||0}j[0]+=d("Left");j[1]+=d("Top")}do{i=$(h).$getWin();if(h.tagName.match(/^(iframe|frameset)$/i))m();k=-1;do{j[0]+=h.offsetLeft-h.scrollLeft;j[1]+=h.offsetTop-($$.browser.Safari&&h==i.document.body?0:h.scrollTop);switch(h.$getStyle("position")){case"absolute":m();break;case"fixed":k=1;break}}while(h.offsetParent&&h!=h.offsetParent&&(h=$(h.offsetParent))&&h!=g.___);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(h=i.frameElement);return j};function U(k,l,m){function n(h,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(l.match(h),this,j(m.match(h),k,o[i],1),-1)+"px"}var o=k.$getPos();l=l||"lt";m=m||"lb";this.style.left=n.call(this,/[lcr]/i,0);this.style.top=n.call(this,/[tmb]/i,1)};function V(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 W(){var a=this.module.iframe;if(a){a.style.display="none";this.module.iframe=null}return a};function bc(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 X(a){var c=this,d=c.firstChild||c.nextSibling;if(!d)do{c=c.parentNode;if(c==g.__.body)return null;d=c.nextSibling}while(!d);return $($abs(d,a,arguments.callee))};function Y(a){if(this==g.__.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 Z(){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 ba(){var a=this.$getPos();with($topWin.___){scrollLeft=a[0]-80;scrollTop=a[1]-80}};function bb(){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.$=z;else this.$=w;this.module={};this.module.event={};if(this.nodeType==1){if(this.tagName=="INPUT"&&/^(text|hidden)$/i.test(this.type)||this.tagName=="TEXTAREA")this.isNull=A;if(/^SELECT$/.test(this.tagName))this.$setValue=C}if(!this.hasAttribute)this.hasAttribute=D;this.$parentNode=E;this.$firstChild=F;this.$lastChild=G;this.$childNodes=H;this.$nSib=this.$nextSibling=N;this.$pSib=this.$previousSibling=I;this.$click=O;this.$getStyle=P;this.$getPara=J;this.$r=this.$regEvent=Q;this.$ur=this.$unregEvent=B;this.$urh=this.$unregEventHash=K;this.$getWin=R;this.$g=this.$selNode=S;this.$getPos=T;this.$setPos=U;this.$setIframe=V;this.$clearIframe=W;this.$nAbs=X;this.$pAbs=Y;this.$focusNext=Z;this.$setDisplay=ba;this.$isDisplay=bb;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=g.$$.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(_a=c.match(new RegExp("(^|@)"+a+"[^\\|]*\\|(\\d+)","i")))?_a[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.Boolean=function(){};this.Function=function(){};this.RegExp=function(){};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 h=0;h<f.length;h++){var i=f[h].split('|',2);f[h]=d.replaceWith({text:$s2t(i[0]),link:i[1],target:f[h].target||'_b'})}a.innerHTML=f.join('')};this.allyes=function(f){var h=n("user")||n("mod_allyes_user");if(!h){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 l='<div class="pubGlobal_adtxt140">{$text}<\/div>';var m='<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(h){if(h.indexOf('@')>-1)h=o(h.split('@'));f.innerHTML=m.replace('{$user}',h)}else{var a=[];if(i)a=i.map(function(b){b.button=b.button||';';return k.replace('{$height}',b.height).replace('{$iframe}',m.replace('{$user}',b.user))});if(j)a.push(l.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)});if(!$$.browser.Opera)g.$r("beforeunload",a.module.notice.check)}a.module.notice.check()};this.tab=function(h){var i=g.$g(h.getAttribute("mod_tab_button")||"");var j=g.$g(h.getAttribute("mod_tab_panel")||"");var k=parseInt(h.getAttribute("mod_tab_select")||1,10);var l=((h.getAttribute("mod_tab_event")||"").match(/^mouseover$/i)||"click").toString();if(!i||!j)return;h.module.tab=new function(){this.funcListHash={};this.select=function(a){if(this.funcListHash[a-1])this.funcListHash[a-1]()}};i.each(function(d,f){h.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(l,h.module.tab.funcListHash[f])});h.module.tab.select(k)};this.display=function(j){var k=j.$getPara("mod_display_panel"),l=[];k.each(function(a){a=g.$(a)||g.$selNode(a);if(a){if(a.length)a.each(function(a){l.push(a)});else l.push(a)}});j.$r("click",function(){(function(f){for(var h=0;h<f.childNodes.length;h++){with(f.childNodes[h]){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[h])}}})(j);l.each(function(a){a.style.display=a.$getStyle("display")=="none"?"":"none"})})};this.selectAll=function(d){var f=g.$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=g.$(a.getAttribute("mod_validate_true")||"");var d=g.$(a.getAttribute("mod_validate_false")||"");var f=a.getAttribute("mod_validate_function")||"";if(!f)return;var h=f.match(/^\/(.*?[^\\])\/([gmi]*?)$/);var i,j,k;f=g[f];if(h||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(h[1],h[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(g.Date.prototype);this.Variable.apply(g);this.Number.apply(g.Number.prototype);this.String.apply(g.String.prototype);this.Array.apply(g.Array.prototype);this.Boolean.apply(g.Boolean.prototype);this.Function.apply(g.Function.prototype);this.RegExp.apply(g.RegExp.prototype);this.window.apply(g);this.Object.apply(g);this.Object.apply(g.__);this.Object.apply(g.___);this.Object.apply(g.$$.status.alertDiv);this.init=new function(){var f=__.domain;if(/\.ctrip(travel)?\.com$/i.test(f)){f=/travel\.com$/i.test(f)?f.split('.').slice(1).join('.'):'ctrip.com';__.write("<script src=\"http:\/\/www."+f+"\/rp\/uiScript.asp\"><\/script>")}if(g.$$.status.charset=='big5')__.write("<script src=\"http:\/\/webresource.ctrip.com\/code\/js\/public\/public_s2t.js\" charset=\"utf-8\"><\/script>");else g.$s2t=function(a){return a};if($$.browser.IE6)try{__.execCommand("BackgroundImageCache",false,true)}catch(e){};g.$$.status.debug=/\$debug\$/i.test($topWin.name)||/^(true|1)$/.test($getQuery("debug"));g.$$.status.debugEvent=/\$debugEvent\$/i.test($topWin.name)||/^(true|1)$/.test($getQuery("debugEvent"));g.$$.status.alertDiv.innerHTML=g.$$.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 h(c){function d(){if(g.$$.status.domReady)return;var a;g.$$.status.domReady=true;if("domready"in g.module.event){while(a=g.module.event["domready"].shift())if(a.enabled)try{a.func(c)}catch(c){$t("domReady函数错误:"+a.func.toString().slice(0,100)+"...","red",a.func)}}}if($$.browser.Safari||$$.browser.Opera)setTimeout(d,1);else d()}if($$.browser.Moz)__.addEventListener("DOMContentLoaded",h,false);else if($$.browser.IE){try{if(!g.frameElement)(function(){try{g.___.doScroll("left")}catch(e){setTimeout(arguments.callee,50);return}h()})()}catch(e){}}else if($$.browser.Safari){var i=setInterval(function(){if(g.__.readyState=="loaded"||g.__.readyState=="complete"){clearInterval(i);h()}},10)}function loadPageValue(){var a=g.$$.status.saveStatus.value;if(a)$$.status.back=true;g.$$.status.pageValue=g.$fromJson(a||"{}");if(!("data"in g.$$.status.pageValue))g.$$.status.pageValue.data={};if(!$$.browser.Opera)g.$r("beforeunload",[g.$saveHistory,g.$savePageValue],90)}function loadHistory(){(g.$$.status.pageValue["historyInfo"]||"").split("|").each(function(a){var c=unescape(a).split("|");if(c.length==5){for(var d=0;d<c.length;d++)c[d]=unescape(c[d]);g.$$.history.info[c[0]]=c.slice(1);$t("[history]恢复历史:"+c[1]+"/"+c[2],"green",c.slice(2).join("\r"))}});g.$$.history.count=parseInt(g.$$.status.pageValue["historyCount"]||0,10)||0}g.$r("domReady",function(){$(g.__.body);loadPageValue();loadHistory();var a=g.$$.status.pageValue["lastHistory"];if(a)if($$.browser.IE||$$.browser.Opera){$r("load",function(){setTimeout(function(){g.$$.history.init()},1)})}else g.$$.history.init()},10);g.$r("domready",[g.$parserRe,g.$fixElement]);g.$r("load",[h,function(){g.$$.status.load=true}])}};var Ctrip=new $Ctrip(window);Ctrip.module.jmpInfo=(function(){var o='\/webresource\/ui\/jmpinfo_tuna\/';var p='http:\/\/webresource.ctrip.com\/styles\/control\/tuna_071206\/control_jmpinfo_tuna_071206.css';var t={CraftType:'http:\/\/webresource.ctrip.com\/code\/js\/resource\/jmpinfo_tuna/CraftType_{$charset}.js'};var q={"align-center":"cbct","align-left":"lblt","corner-left":"rblt","align-right":"rbrt","corner-right":"lbrt","above-align-left":"ltlb","above-align-right":"rtrb"};var x='__jpi_';var u=200;var L=400;var s=null,r=null,g=null,M=0,y=null,v=null,z={},w={},A={},C=false;window.$r('domReady',D);return function(a){D();if(a.nodeType==1){if(!a.id)a.id=x+M++;J(a)}else{K(a)}};function D(){if(C)return;C=true;$loadCss(p);s=$("tuna_jmpinfo");var a=document.documentElement;if(a.attachEvent)a.attachEvent('onmouseover',E);else a.addEventListener('mouseover',E,false)}function E(a){var c=O(a),d=null;if(!c)return;if(c.id&&(c.id in z)){if(c!=r&&c!=g){g=c;clearTimeout(v);v=setTimeout(H,L)}}else if((d=c.getAttribute('mod'))=='jmpInfo'){J(c);if(c!=r&&c!=g){g=c;clearTimeout(v);v=setTimeout(H,L)}}else if(r){if(I(c,r,s))clearTimeout(y);else y=setTimeout(N,u)}else if(g){if(!I(c,g)){clearTimeout(v);g=null}}}function F(a){if(!a.$getPos)$(a);var c=a.$getPos();return{left:c[0],top:c[1]}}function G(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 H(){if(!g)return;var a=Q(g);if(!a)return;r=g;g=null;s.innerHTML=w[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]||'';G(s,P(r,a.position))}function N(){r=null;G(s,null)}function I(a,c,d){while(a&&a!=c&&a!=d)a=a.parentNode;return!!a}function O(a){a=a||window.event;return a.srcElement||a.target}function P(a,c){var d=F(a);var f=a.offsetWidth,h=a.offsetHeight;var i=s.offsetWidth,j=s.offsetHeight;var k={l:0,c:f>>1,r:f};var l={t:0,c:h>>1,b:h};var m={l:0,c:i>>1,r:i};var n={t:0,c:j>>1,b:j};d.left+=k[c[0]]-m[c[2]];d.top+=l[c[1]]-n[c[3]];return d}function J(a){var c=B(a,'mod_jmpInfo_page','default_normal.asp');var d=K(c);var f=B(a,'mod_jmpInfo_position','');if(!f||!(f in q)){f='lblt'.split('');var h=F(a);if(h.left>500)f[0]=f[2]='r'}else{f=q[f].split('')}d.position=f;d.content=B(a,'mod_jmpInfo_content','').split('|');z[a.id]=d}function Q(a){var c=z[a.id];if(!w[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 K(a){var c=a,d=null;var f=a.indexOf('?');if(f>=0){c=a.slice(0,f).trim();d=S(a.slice(f+1))}if(!(c in w))R(c);return{page:c,search:d}}function R(c){w[c]=false;$ajax(o+c,null,function(a){if(a)w[c]=a.replace(/\n/g,'').replace(/^[\s\S]*<body.*?>|<\/body>[\s\S]*$/gi,'')})}function S(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))T(d);return{hash:A[d],key:f}}function T(f){var h=A[f]={};$loadJs(t[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('|');h[d[0]]=d}})}})();var $pageSize=function(a){var c={docWidth:___.scrollWidth,docHeight:___.scrollHeight,winWidth:___.clientWidth,winHeight:___.clientHeight,scrollLeft:$$.browser.Safari?__.body.scrollLeft:___.scrollLeft,scrollTop:$$.browser.Safari?__.body.scrollTop:___.scrollTop};if($$.browser.Safari){var d=___.$getStyle();c.docWidth+=parseInt(d.marginLeft)+parseInt(d.marginRight);c.docHeight+=parseInt(d.marginTop)+parseInt(d.marginBottom)}c.docWidth=Math.max(c.docWidth,c.winWidth);c.docHeight=Math.max(c.docHeight,c.winHeight);if(a){var f=a=='win';c.left=f?c.scrollLeft:0;c.top=f?c.scrollTop:0;if($$.browser.Mozilla){var d=___.$getStyle();c.left-=parseInt(d.borderLeftWidth)+parseInt(d.marginLeft);c.top-=parseInt(d.borderTopWidth)+parseInt(d.marginTop)}c.width=f?c.winWidth:Math.max(c.docWidth,c.winWidth);c.height=f?c.winHeight:Math.max(c.docHeight,c.winHeight)}return c};var maskShow=(function(){var i=null;var j=null;var k=false;var l={onresize:null,onscroll:null};return function(a,c){if(!i)o();k=!!c;if(!a){u(j,false);u(i,false);m(true);j=null;if(!k)for(var d in l){window[d]=l[d];l[d]=null}}else{if(j)u(j,false);j=a;p(j);t();i.style.zIndex=maskShow.zIndexBack||15;j.style.zIndex=maskShow.zIndexFore||20;u(j,true);u(i,true);m(false,a);if(!k)for(var d in l){l[d]=window[d];window[d]=t}}};function m(a,c){if(!$$.browser.IE6)return;var d=document.getElementsByTagName('select');var f=a?'visible':'hidden';for(var h=0;h<d.length;h++){if((a||!n(d[h],c))&&d[h].currentStyle.visibility!=f)d[h].style.visibility=f}}function n(a,c){while(a&&a!=c)a=a.parentNode;return a==c}function o(){i=document.createElement('div');i.style.cssText='background-color:{$c};border:none;position:absolute;visibility:hidden;opacity:{$a};filter:alpha(opacity={$A})'.replaceWith({c:maskShow.bgColor||'#fff',a:maskShow.bgAlpha||'0.7',A:maskShow.bgAlpha?parseInt(maskShow.bgAlpha*100):'70'});document.body.appendChild(i);maskShow.mask=i}function p(a){var c=a.style;c.position='absolute';c.left='-10000px';c.top='-10000px';c.visibility='hidden';c.display='block';c.zIndex=10}function t(){if(!j)return;var a=$pageSize('doc');x(i,a);var c=q(a,j.offsetWidth,j.offsetHeight);if(c.left<a.scrollLeft)c.left=a.scrollLeft;if(c.top<a.scrollTop)c.top=a.scrollTop;x(j,c)}function q(a,c,d){return{left:((a.winWidth-c)>>1)+a.scrollLeft+(maskShow.adjustX||0),top:((a.winHeight-d)>>1)+a.scrollTop+(maskShow.adjustY||0)}}function x(a,c){var d=a.style;d.left=(c.left||0)+'px';d.top=(c.top||0)+'px';if('width'in c)d.width=c.width+'px';if('height'in c)d.height=c.height+'px'}function u(a,c){a.style.visibility=c?'visible':'hidden';if(!c){a.style.left=-a.offsetWidth-100+'px';a.style.top=-a.offsetHeight-100+'px'}}})();Function.prototype.pass=function(){var c=[].slice.call(arguments,0);var d=this;return function(){var a=[].slice.call(arguments,0);return d.apply(null,c.concat(a))}};Function.prototype.bind=function(c){var d=[].slice.call(arguments,1);var f=this;return function(){var a=[].slice.call(arguments,0);return f.apply(c,d.concat(a))}};Function.prototype.delay=function(a){return setTimeout(this,a)};$$.module.loading={source:null,backto:null,preload:function(a){if(a&&typeof(a)=='number')this._5=a;this._2.bind(this).delay(this._5)},show:function(){if(this._3)return;if(!this._0)this._2();if(!this._0)return;this._6=maskShow.bgColor;this._7.href=this.backto||'javascript:$$.module.loading.hide()';maskShow.bgColor=this._c;maskShow.bgColor='#666';maskShow(this._0);this._d();this._3=true},hide:function(){if(_.ActiveXObject)__.execCommand('Stop');else if(_.stop)_.stop();maskShow(null);if(this._6)maskShow.bgColor=this._6;clearInterval(this._4);this._3=false},wireup:function(c){if(this._8||!c)return;var d=0;_.$(c).$r('submit',function(){d=new Date();alert(0)},1);_.$r('beforeunload',function(){var a=new Date()-d;if(a>0&&a<1000)$$.module.loading.show()},1);this._8=true},_9:false,_4:null,_5:12000,_0:null,_7:null,_g:null,_c:'#666',_3:false,_8:false,_e:['<div style="background:#FFFFFF none repeat scroll 0%;border:1px solid #CCDCED;height:453px;">','<h1 style="border-bottom:1px solid #CBDCED;height:85px;margin:0 auto;text-align:center;width:99%"><img src="http://pic.ctrip.com/common/pic_loading_logo.gif"></h1>','<div style="width:120px;height:12px;overflow:hidden;margin:80px auto 20px;background-image:url(http://pic.ctrip.com/common/pic_loading_progress.gif)">&nbsp;</div>','<p style="color:#cc6600;font-size:14px;font-weight:bold;text-align:center">我们正在处理您的请求，请稍候....</p>','<p style="margin-top:30px"><a style="display:block;width:104px;height:30px;margin:0 auto;background:url(http://pic.ctrip.com/common/btn_loading_cancel.gif) no-repeat 0 0;text-decoration:none;" onmouseover="this.style.backgroundPosition=\'0 -30px\'" onmouseout="this.style.backgroundPosition=\'0 0\'">&nbsp;</a></p>','<p><a target="_b" href="{$link}"><img style="display:block;margin:0 auto;margin-top:20px;" title="{$title}" alt="{$title}" width="" height="" src="{$img}"></p></div>'].join(''),_2:function(){if(this._0||!this.source)return;var a=this.source.split('@');a=a[Math.floor(Math.random()*a.length)].split('|');var c=this._0=document.createElement('div');c.style.cssText='width:556px;background:#d9e6f7;border:1px solid #b1cbe4;height:455px;padding:5px;position: absolute; left:-1000px; top:-1000px; z-index: 20;';c.innerHTML=this._e.replaceWith({img:a[0],link:a[1],title:a[2]||''});$$.status.container.appendChild(c);this._0=c;this._7=$(c).$('a')[0]},_d:function(){var c=0,d=120,f=20,h=300;var i=$(this._0).$('div')[1].style;clearInterval(this._4);var j=new Date(),k=-1;this._4=setInterval(function(){var a=(Math.floor((new Date()-j)/h)*f)%(d-c)+c;if(a!=k){k=a;i.backgroundPosition=a+'px 0'}},40)}};Ctrip.module.loading=function(a){var c=$$.module.loading;if(c._9||!(c._9=true))return;var d=a.getAttribute('mod_loading_source');if(d)c.source=d;var f=a.getAttribute('mod_loading_backto');if(f)c.backto=f;var h=parseInt(a.getAttribute('mod_loading_preload'));if(isNaN(h))h=null;var i=a.getAttribute('mod_loading_sourcescript');if(i)$loadJs.pass(i,null,c._2.bind(c)).delay(h||1);else if(h)c.preload(h);var j=a.getAttribute('mod_loading_wireup');if(j.toLowerCase()=="true")c.wireup(a.tagName=='FORM'?a:(a.form||document.aspnetForm))};