From 888f21867e0ba5b91cfa1bc06b66f152489a0959 Mon Sep 17 00:00:00 2001 From: RichardWang <948658573@qq.com> Date: Sat, 19 Oct 2024 22:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=8E=E5=B8=82=E9=80=89=E6=8B=A9=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/default/js/address.js | 17 + WebContent/default/js/fixdiv.js | 1229 ++++++++++++++++++++++++++++++ 2 files changed, 1246 insertions(+) create mode 100644 WebContent/default/js/address.js create mode 100644 WebContent/default/js/fixdiv.js diff --git a/WebContent/default/js/address.js b/WebContent/default/js/address.js new file mode 100644 index 0000000..03fe92d --- /dev/null +++ b/WebContent/default/js/address.js @@ -0,0 +1,17 @@ +$$.module.address.source.hotel = "@Anqing|安庆|36|@Bangbu|蚌埠|37|@Chaohu|巢湖|38|@Chizhou|池州|39|@Chuzhou|滁州|40|@Fuyang|阜阳|41|@Hefei|合肥|42|@Huaibei|淮北|43|@Huainan|淮南|44|@Huangshan|黄山|45|@Liuan|六安|46|@Maanshan|马鞍山|47|@Suzhouu|宿州|48|@Tongling|铜陵|49|@Wuhu|芜湖|50|@Xuancheng|宣城|51|@BoZhou|亳州|52|@Beijing|北京|53|@Fuzhou|福州|54|@Longyan|龙岩|55|@Nanping|南平|56|@Ningde|宁德|57|@Putian|莆田|58|@Quanzhou|泉州|59|@Sanming|三明|60|@Xiamen|厦门|61|@Zhangzhou|漳州|62|@Baiyin|白银|63|@Dingxi|定西|64|@Gannan|甘南|65|@Jiayuguan|嘉峪关|66|@Jinchang|金昌|67|@Jiuquan|酒泉|68|@Lanzhou|兰州|69|@Linxia|临夏|70|@Longnan|陇南|71|@Pingliang|平凉|72|@Qingyang|庆阳|73|@Tianshui|天水|74|@Wuwei|武威|75|@Zhangye|张掖|76|@Chaozhou|潮州|77|@DongGuan|东莞|78|@Foshan|佛山|79|@Guangzhou|广州|80|@Heyuan|河源|81|@Huizhou|惠州|82|@Jiangmen|江门|83|@Jieyang|揭阳|84|@Maoming|茂名|85|@Meizhou|梅州|86|@Qingyuan|清远|87|@Shantou|汕头|88|@Shanwei|汕尾|89|@Shaoguan|韶关|90|@Shenzhen|深圳|91|@Yangjiang|阳江|92|@Yunfu|云浮|93|@Zhanjiang|湛江|94|@Zhaoqing|肇庆|95|@Zhongshan|中山|96|@Zhuhai|珠海|97|@Baise|百色|98|@Beihai|北海|99|@Chongzuo|崇左|100|@Fangchenggang|防城港|101|@Guilin|桂林|102|@Guigang|贵港|103|@Hechi|河池|104|@Hezhou|贺州|105|@Laibin|来宾|106|@Liuzhou|柳州|107|@Nanning|南宁|108|@Qinzhou|钦州|109|@Wuzhou|梧州|110|@Yulin|玉林|111|@Anshun|安顺|112|@Bijie|毕节|113|@Guiyang|贵阳|114|@Liupanshui|六盘水|115|@Qiandongnanmiaozudongzuzizhizhou|黔东|116|@Qiannanbuyizumiaozuzizhizhou|黔南|117|@Qianxinanbuyizumiaozuzizhizhou|黔西|118|@Tongren|铜仁|119|@Zunyi|遵义|120|@Baishalizuzizhixian|白沙|121|@Baotinglizumiaozuzizhixian|保亭|122|@Changjianglizuzizhixian|昌江|123|@Chengmaixian|澄迈县|124|@Dinganxian|定安县|125|@Dongfang|东方|126|@Haikou|海口|127|@Ledonglizuzizhixian|乐东|128|@Lingaoxian|临高县|129|@Lingshui|陵水|130|@Qionghai|琼海|131|@Qiongzhonglizumiaozuzizhixian|琼中|132|@Sanya|三亚|133|@Tunchangxian|屯昌县|134|@Wanning|万宁|135|@Wenchang|文昌|136|@Wuzhishan|五指山|137|@DanZhou|儋州|138|@Baoding|保定|139|@Cangzhou|沧州|140|@Chengde|承德|141|@Handan|邯郸|142|@Hengshui|衡水|143|@Langfang|廊坊|144|@Qinhuangdao|秦皇岛|145|@Shijiazhuang|石家庄|146|@Tangshan|唐山|147|@Xingtai|邢台|148|@Zhangjiakou|张家口|149|@Anyang|安阳|150|@Hebi|鹤壁|151|@Jiyuan|济源|152|@Jiaozuo|焦作|153|@Kaifeng|开封|154|@Luoyang|洛阳|155|@Nanyang|南阳|156|@Pingdingshan|平顶山|157|@Sanmenxia|三门峡|158|@Shangqiu|商丘|159|@Xinxiang|新乡|160|@Xinyang|信阳|161|@Xuchang|许昌|162|@Zhengzhou|郑州|163|@Zhoukou|周口|164|@Zhumadian|驻马店|165|@LuoHe|漯河|166|@PuYang|濮阳|167|@Daqing|大庆|168|@Daxinganling|大兴安岭|169|@Haerbin|哈尔滨|170|@Hegang|鹤岗|171|@Heihe|黑河|172|@Jixi|鸡西|173|@Jiamusi|佳木斯|174|@Mudanjiang|牡丹江|175|@Qitaihe|七台河|176|@Qiqihaer|齐齐哈尔|177|@Shuangyashan|双鸭山|178|@Suihua|绥化|179|@Yichun|伊春|180|@Ezhou|鄂州|181|@Enshitujiazumiaozuzizhizhou|恩施|182|@Huanggang|黄冈|183|@Huangshi|黄石|184|@Jingmen|荆门|185|@Jingzhou|荆州|186|@Qianjiang|潜江|187|@Shennongjialinqu|神农架|188|@Shiyan|十堰|189|@Suizhou|随州|190|@Tianmen|天门|191|@Wuhan|武汉|192|@Xiantao|仙桃|193|@Xianning|咸宁|194|@Xiangfan|襄樊|195|@Xiaogan|孝感|196|@Yichang|宜昌|197|@Changde|常德|198|@Changsha|长沙|199|@Chenzhou|郴州|200|@Hengyang|衡阳|201|@Huaihua|怀化|202|@Loudi|娄底|203|@Shaoyang|邵阳|204|@Xiangtan|湘潭|205|@Xiangxi|湘西|206|@Yiyang|益阳|207|@Yongzhou|永州|208|@Yueyang|岳阳|209|@Zhangjiajie|张家界|210|@Zhuzhou|株洲|211|@Baicheng|白城|212|@Baishan|白山|213|@Changchun|长春|214|@Jilin|吉林|215|@Liaoyuan|辽源|216|@Siping|四平|217|@Songyuan|松原|218|@Tonghua|通化|219|@Yanbian|延边|220|@Changzhou|常州|221|@Huaian|淮安|222|@Lianyungang|连云港|223|@Nanjing|南京|224|@Nantong|南通|225|@Suzhou|苏州|226|@Suqian|宿迁|227|@Taizhou|泰州|228|@Wuxi|无锡|229|@Xuzhou|徐州|230|@Yancheng|盐城|231|@Yangzhou|扬州|232|@Zhenjiang|镇江|233|@Fuzhou|抚州|234|@Ganzhou|赣州|235|@Jian|吉安|236|@Jingdezhen|景德镇|237|@Jiujiang|九江|238|@Nanchang|南昌|239|@Pingxiang|萍乡|240|@Shangrao|上饶|241|@Xinyu|新余|242|@Yichun|宜春|243|@Yingtan|鹰潭|244|@Anshan|鞍山|245|@Benxi|本溪|246|@Chaoyang|朝阳|247|@Dalian|大连|248|@Dandong|丹东|249|@Fushun|抚顺|250|@Fuxin|阜新|251|@Huludao|葫芦岛|252|@Jinzhou|锦州|253|@Liaoyang|辽阳|254|@Panjin|盘锦|255|@Shenyang|沈阳|256|@Tieling|铁岭|257|@Yingkou|营口|258|@Alashanmeng|阿拉善盟|259|@Bayannaoer|巴彦淖尔|260|@Baotou|包头|261|@Chifeng|赤峰|262|@Eerduosi|鄂尔多斯|263|@Huhehaote|呼和浩特|264|@Hulunbeier|呼伦贝尔|265|@Tongliao|通辽|266|@Wuhai|乌海|267|@Wulanchabushi|乌兰察布|268|@Xilinguole|锡林郭勒|269|@Xinganmeng|兴安盟|270|@Guyuan|固原|271|@Shizuishan|石嘴山|272|@Wuzhong|吴忠|273|@Yinchuan|银川|274|@Guoluocangzuzizhizhou|果洛|275|@Haibeicangzuzizhizhou|海北|276|@Haidong|海东|277|@Hainancangzuzizhizhou|海南|278|@Haixi|海西|279|@Huangnancangzuzizhizhou|黄南|280|@Xining|西宁|281|@Yushucangzuzizhizhou|玉树|282|@Binzhou|滨州|283|@Dezhou|德州|284|@Dongying|东营|285|@Heze|菏泽|286|@Jinan|济南|287|@Jining|济宁|288|@Laiwu|莱芜|289|@Liaocheng|聊城|290|@Linyi|临沂|291|@Qingdao|青岛|292|@Rizhao|日照|293|@Taian|泰安|294|@Weihai|威海|295|@Weifang|潍坊|296|@Yantai|烟台|297|@Zaozhuang|枣庄|298|@Zibo|淄博|299|@Changzhi|长治|300|@Datong|大同|301|@Jincheng|晋城|302|@Jinzhong|晋中|303|@Linfen|临汾|304|@Lvliang|吕梁|305|@Shuozhou|朔州|306|@Taiyuan|太原|307|@Xinzhou|忻州|308|@Yangquan|阳泉|309|@Yuncheng|运城|310|@Ankang|安康|311|@Baoji|宝鸡|312|@Hanzhong|汉中|313|@Shangluo|商洛|314|@Tongchuan|铜川|315|@Weinan|渭南|316|@Xian|西安|317|@Xianyang|咸阳|318|@Yanan|延安|319|@Yulin|榆林|320|@Shanghai|上海|321|@Abacangzuqiangzuzizhizhou|阿坝|322|@Bazhong|巴中|323|@Chengdu|成都|324|@Dazhou|达州|325|@Deyang|德阳|326|@Ganzi|甘孜|327|@Guangan|广安|328|@Guangyuan|广元|329|@Leshan|乐山|330|@Liangshan|凉山|331|@Meishan|眉山|332|@Mianyang|绵阳|333|@Nanchong|南充|334|@Neijiang|内江|335|@Panzhihua|攀枝花|336|@Suining|遂宁|337|@Yaan|雅安|338|@Yibin|宜宾|339|@Ziyang|资阳|340|@Zigong|自贡|341|@LuZhou|泸州|342|@Tianjin|天津|343|@Ali|阿里|344|@Changdu|昌都|345|@Lasa|拉萨|346|@Linzhi|林芝|347|@Naqu|那曲|348|@Rikaze|日喀则|349|@Shannan|山南|350|@Akesu|阿克苏|351|@Alaer|阿拉尔|352|@Bayinguoleng|巴音郭楞|353|@Boertalamengguzizhizhou|博尔塔拉|354|@Changjihuizuzizhizhou|昌吉|355|@Hami|哈密|356|@Hetian|和田|357|@Kashi|喀什|358|@Kelamayi|克拉玛依|359|@Kezilesukeerkezizizhizhou|克孜|360|@Shihezi|石河子|361|@Tumushuke|图木舒克|362|@Tulufan|吐鲁番|363|@Wulumuqi|乌鲁木齐|364|@Wujiaqu|五家渠|365|@Yili|伊犁|366|@Baoshan|保山|367|@Chuxiongyizuzizhizhou|楚雄|368|@Dali|大理|369|@Dehongdaizujingpozuzizhizhou|德宏|370|@Diqing|迪庆|371|@Honghehanizuyizuzizhizhou|红河|372|@Kunming|昆明|373|@Lijiang|丽江|374|@Lincang|临沧|375|@Nujianglilizuzizhizhou|怒江|376|@Qujing|曲靖|377|@Simao|思茅|378|@Wenshanzhuangzumiaozuzizhizhou|文山|379|@Xishuangbanna|西双版纳|380|@Yuxi|玉溪|381|@Zhaotong|昭通|382|@Hangzhou|杭州|383|@Huzhou|湖州|384|@Jiaxing|嘉兴|385|@Jinhua|金华|386|@Lishui|丽水|387|@Ningbo|宁波|388|@Shaoxing|绍兴|389|@Taizhou|台州|390|@Wenzhou|温州|391|@Zhoushan|舟山|392|@QuZhou|衢州|393|@Chongqing|重庆|394|@Xianggang|香港|395|@Aomen|澳门|396|@Gaoxiong|高雄|397|@Hualian|花莲|398|@Jilong|基隆|399|@Jiayi|嘉义|400|@Taibei|台北|401|@Taidong|台东|402|@Tainan|台南|403|@Taizhong|台中|404|@Zhongwei|中卫|3105|@Tacheng|塔城|3113|@Aletai|阿勒泰|3114|@Wusulijiang|乌苏里江|3143|@Chibishi|赤壁市|3280|@Shunde|顺德|3281"; +$$.module.address.source.hotel_hotData = { + "热门": "@80|北京@321|上海@80|广州@91|深圳@324|成都@383|杭州@192|武汉@317|西安@394|重庆@292|青岛@199|长沙@224|南京@61|厦门@373|昆明@248|大连@343|天津@163|郑州@133|三亚@287|济南@54|福州", + 'ABC': "@36|安庆@112|安顺@150|安阳@245|鞍山@259|阿拉善盟@311|安康@322|阿坝@344|阿里@351|阿克苏@352|阿拉尔@396|澳门@3114|阿勒泰@37|蚌埠@52|亳州@53|北京@63|白银@98|百色@99|北海@113|毕节@121|白沙@122|保亭@139|保定@212|白城@213|白山@246|本溪@260|巴彦淖尔@261|包头@283|滨州@312|宝鸡@323|巴中@353|巴音郭楞@354|博尔塔拉@367|保山@38|巢湖@39|池州@40|滁州@77|潮州@100|崇左@123|昌江@124|澄迈县@140|沧州@141|承德@198|常德@199|长沙@200|郴州@214|长春@221|常州@247|朝阳@262|赤峰@300|长治@324|成都@345|昌都@355|昌吉@368|楚雄@394|重庆@3280|赤壁市", + 'DEF':"@64|定西@78|东莞@125|定安县@126|东方@138|儋州@168|大庆@169|大兴安岭@248|大连@249|丹东@284|德州@285|东营@301|大同@325|达州@326|德阳@369|大理@370|德宏@371|迪庆@181|鄂州@182|恩施@263|鄂尔多斯@41|阜阳@54|福州@79|佛山@101|防城港@234|抚州@250|抚顺@251|阜新", + 'GHJ':"@65|甘南@80|广州@102|桂林@103|贵港@114|贵阳@235|赣州@271|固原@275|果洛@327|甘孜@328|广安@329|广元@397|高雄@42|合肥@43|淮北@44|淮南@45|黄山@81|河源@82|惠州@104|河池@105|贺州@127|海口@142|邯郸@143|衡水@151|鹤壁@170|哈尔滨@171|鹤岗@172|黑河@183|黄冈@184|黄石@201|衡阳@202|怀化@222|淮安@252|葫芦岛@264|呼和浩特@265|呼伦贝尔@276|海北@277|海东@278|海南@279|海西@280|黄南@286|菏泽@313|汉中@356|哈密@357|和田@372|红河@383|杭州@384|湖州@398|花莲@66|嘉峪关@67|金昌@68|酒泉@83|江门@84|揭阳@152|济源@153|焦作@173|鸡西@174|佳木斯@185|荆门@186|荆州@215|吉林@236|吉安@237|景德镇@238|九江@253|锦州@287|济南@288|济宁@302|晋城@303|晋中@385|嘉兴@386|金华@399|基隆@400|嘉义", + 'KLM':"@154|开封@358|喀什@359|克拉玛依@360|克孜@373|昆明@46|六安@55|龙岩@69|兰州@70|临夏@71|陇南@106|来宾@107|柳州@115|六盘水@128|乐东@129|临高县@130|陵水@144|廊坊@155|洛阳@166|漯河@203|娄底@216|辽源@223|连云港@254|辽阳@289|莱芜@290|聊城@291|临沂@304|临汾@305|吕梁@330|乐山@331|凉山@342|泸州@346|拉萨@347|林芝@374|丽江@375|临沧@387|丽水@47|马鞍山@85|茂名@86|梅州@175|牡丹江@332|眉山@333|绵阳", + 'NPQ':"@56|南平@57|宁德@108|南宁@156|南阳@224|南京@225|南通@239|南昌@334|南充@335|内江@348|那曲@376|怒江@388|宁波@58|莆田@72|平凉@157|平顶山@167|濮阳@240|萍乡@255|盘锦@336|攀枝花@59|泉州@73|庆阳@87|清远@109|钦州@116|黔东@117|黔南@118|黔西@131|琼海@132|琼中@145|秦皇岛@176|七台河@177|齐齐哈尔@187|潜江@292|青岛@377|曲靖@393|衢州", + 'RST':"@293|日照@349|日喀则@48|宿州@60|三明@88|汕头@89|汕尾@90|韶关@91|深圳@133|三亚@146|石家庄@158|三门峡@159|商丘@178|双鸭山@179|绥化@188|神农架@189|十堰@190|随州@204|邵阳@217|四平@218|松原@226|苏州@227|宿迁@241|上饶@256|沈阳@272|石嘴山@306|朔州@314|商洛@321|上海@337|遂宁@350|山南@361|石河子@378|思茅@389|绍兴@3281|顺德@49|铜陵@74|天水@119|铜仁@134|屯昌县@147|唐山@191|天门@343|天津@219|通化@228|泰州@257|铁岭@266|通辽@294|泰安@307|太原@315|铜川@343|天津@362|图木舒克@363|吐鲁番@390|台州@401|台北@402|台东@403|台南@404|台中@3113|塔城", + 'WXY':"@50|芜湖@75|武威@110|梧州@135|万宁@136|文昌@137|五指山@192|武汉@229|无锡@267|乌海@268|乌兰察布@273|吴忠@295|威海@296|潍坊@316|渭南@364|乌鲁木齐@365|五家渠@379|文山@391|温州@3143|乌苏里江@51|宣城@61|厦门@148|邢台@160|新乡@161|信阳@162|许昌@193|仙桃@194|咸宁@195|襄樊@196|孝感@205|湘潭@206|湘西@230|徐州@242|新余@269|锡林郭勒@270|兴安盟@281|西宁@308|忻州@317|西安@318|咸阳@380|西双版纳@395|香港@92|阳江@93|云浮@111|玉林@180|伊春@197|宜昌@207|益阳@208|永州@209|岳阳@220|延边@231|盐城@232|扬州@243|宜春@244|鹰潭@258|营口@274|银川@282|玉树@297|烟台@309|阳泉@310|运城@319|延安@320|榆林@338|雅安@339|宜宾@366|伊犁@381|玉溪", + 'Z':"@62|漳州@76|张掖@94|湛江@95|肇庆@96|中山@97|珠海@120|遵义@149|张家口@163|郑州@164|周口@165|驻马店@210|张家界@211|株洲@233|镇江@298|枣庄@299|淄博@340|资阳@341|自贡@382|昭通@392|舟山@3105|中卫" +}; + + +String.prototype.cntStr = function() { + return this.replace(/@+/g, "@"); +}; diff --git a/WebContent/default/js/fixdiv.js b/WebContent/default/js/fixdiv.js new file mode 100644 index 0000000..3e63fd5 --- /dev/null +++ b/WebContent/default/js/fixdiv.js @@ -0,0 +1,1229 @@ +var d = (document.domain || "").match(/anjiehotel(travel)?\.com$/); +if (d) window.__uidc_init = new Date * 1; +var _ = window, +__ = document, +___ = __.documentElement, +anjiehotel = { + module: {} +}, +$topWin = _, +$$ = {}; +_.module = {}; +_.module.event = {}; (function() { + try { + for (;;) { + var a = $topWin.parent; + if (a && a != $topWin && a.anjiehotel) $topWin = a; + else break + } + } catch(b) {} +})(); +$$.browser = function(a) { + var b = /opera/.test(a), + h = /chrome/.test(a), + c = /webkit/.test(a), + l = !h && /safari/.test(a), + f = !b && /msie/.test(a), + e = f && /msie 7/.test(a), + g = f && /msie 8/.test(a), + i = f && /msie 9/.test(a), + n = f && !e && !g && !i, + m = !c && /gecko/.test(a), + o = m && /rv:1\.8/.test(a); + m && /rv:1\.9/.test(a); + return { + IE: f, + IE6: n, + IE7: e, + IE8: g, + IE9: i, + Moz: m, + FF2: o, + Opera: b, + Safari: l, + WebKit: c, + Chrome: h + } +} (navigator.userAgent.toLowerCase()); + + +$$.status = new +function() { + this.load = this.domReady = !1; + this.regEventCount = this.busy = 0; + this.regEventHash = {}; + this.charset = (((_.__.charset ? _.__.charset: _.__.characterSet) || "").match(/^(gb2312|big5|utf-8)$/gi) || "gb2312").toString().toLowerCase(); + this.version = { + gb2312: "zh-cn", + "utf-8": "en" + } [this.charset]; + this.alertDiv = _.__.getElementById("tuna_alert"); + this.container = _.__.getElementById("jsContainer"); + this.saveStatus = _.__.getElementById("jsSaveStatus"); + this.back = !1; + this.pageValue = { + data: {} + }; + this.globalValue = {}; +}; +$$.module = { + iframe: [], + list: {}, + tab: {}, + selectAll: {}, + address: { + source: {} + }, + init: [] +}; +$$.string = { + "zh-cn": { + display: "@\u25b2|\u25bc@\u663e\u793a|\u9690\u85cf@" + } +}; +function $extend(a) { + for (var b = 1; b < arguments.length; b++) { + var h = arguments[b], + c; + for (c in h) h.hasOwnProperty(c) && (a[c] = h[c]) + } + return a +} +_.$s2t = function(a) { + return a +}; +$$.status.domReady = !0; + + + +$extend(Array.prototype, { + each: function(a) { + for (var b = 0, c = this.length; b < c; b++) if ((a ? a(this[b], b) : this[b]()) === !1) return ! 1; + return ! 0 + } +}); +$extend(String.prototype, { + replaceWith: function(a) { + return this.replace(/\{\$(\w+)\}/g, + function(b, c) { + return c in a ? a[c] : b + }) + }, + trim: function() { + return this.replace(/^\s+|\s+$/g, "") + }, + toReString: function() { + return this.replace(/([\.\\\/\+\*\?\[\]\{\}\(\)\^\$\|])/g, "\\$1") + } +}); + + + +function $viewSize(a) { + var a = a.ownerDocument || document, + b = a.parentWindow || a.defaultView, + c = a.documentElement; + return { + scrollLeft: b.pageXOffset || c.scrollLeft || a.body.scrollLeft || 0, + scrollTop: b.pageYOffset || c.scrollTop || a.body.scrollTop || 0, + clientTop: c.clientTop || 0, + clientLeft: c.clientLeft || 0 + } +} +function $pageSize(a) { + var b = { + docWidth: ___.scrollWidth, + docHeight: ___.scrollHeight, + winWidth: ___.clientWidth, + winHeight: ___.clientHeight, + scrollLeft: $$.browser.WebKit ? __.body.scrollLeft: ___.scrollLeft, + scrollTop: $$.browser.WebKit ? __.body.scrollTop: ___.scrollTop + }; + if ($$.browser.WebKit) { + var c = ___.$getStyle(); + b.docWidth += parseInt(c.marginLeft) + parseInt(c.marginRight); + b.docHeight += parseInt(c.marginTop) + parseInt(c.marginBottom) + } + b.docWidth = Math.max(b.docWidth, b.winWidth); + b.docHeight = Math.max(b.docHeight, b.winHeight); + if (a) { + var a = a == "win", + d = $$.support.testIEZoom(); + b.left = a ? b.scrollLeft: 0; + b.top = a ? b.scrollTop: 0; + $$.browser.Moz && (c = ___.$getStyle(), b.left -= parseInt(c.borderLeftWidth) + parseInt(c.marginLeft), b.top -= parseInt(c.borderTopWidth) + parseInt(c.marginTop)); + b.width = a ? Math.round(b.winWidth / d) : Math.max(b.docWidth, b.winWidth); + b.height = a ? Math.round(b.winHeight / d) : Math.max(b.docHeight, b.winHeight) + } + return b +} + + +function $fixE(a) { + a = _.event || a; + if (!a.target) a.target = a.srcElement || __; + if (a.target.nodeType === 3) a.target = a.target.parentNode; + if (!a.relatedTarget && a.fromElement) a.relatedTarget = a.fromElement === a.target ? a.toElement: a.fromElement; + if (a.pageX == null && a.clientX != null) { + var b = __.body; + a.pageX = a.clientX + (___ && ___.scrollLeft || b && b.scrollLeft || 0) - (___ && ___.clientLeft || b && b.clientLeft || 0); + a.pageY = a.clientY + (___ && ___.scrollTop || b && b.scrollTop || 0) - (___ && ___.clientTop || b && b.clientTop || 0) + } + a.$target = A$(a.target); + return a +} +function $stopEvent(a, b) { + a = $fixE(a); + b = b || 0; + if (b >= 0) a.preventDefault ? a.stopPropagation() : a.cancelBubble = !0; + if (b != 0) a.preventDefault ? a.preventDefault() : a.returnValue = !1 +} +function $getUid() { + return "uid_" + (new Date).getTime() + Math.random().toString().substr(2, 5) +} +var $contains = __.compareDocumentPosition ? +function(a, b) { + return a == b || !!(a.compareDocumentPosition(b) & 16) +}: function(a, b) { + return a.contains ? a.contains(b) : !0 +}; +function $c(a) { + return a.constructor == Array ? A$(__.createTextNode(a.join("\n"))) : A$(__.createElement(a)) +} +var $createElement = $c; + +function $pageValue() { + return $pageValue.get.apply(_, arguments) +} +$pageValue.set = function(a, b) { + $$.status.pageValue.data[a] = b; + $$.browser.Opera && $savePageValue() +}; +$pageValue.get = function(a) { + var b = $$.status.pageValue.data; + return b && a in b ? b[a] : null +}; +$pageValue.del = function(a) { + delete $$.status.pageValue.data[a]; + $$.browser.Opera && $savePageValue() +}; +function $savePageValue() { + $$.status.saveStatus.value = $toJson($$.status.pageValue) +} +function $globalValue() {} +function $getQuery(a) { + return (a = (location.search || "").match(RegExp("[\\?&]" + a + "=([^&]+)", "i"))) ? unescape(a[1]) : null +} + +function $parserRe(a) { + var b = [], + c = /\sid=['"]?([^\s>'"]+)/i, + d = null, + f = null; + (a && a.innerHTML ? a: __.body).innerHTML.replace(/<[^>]+\smod=['"]?([\w|]+)[^>]+/g, + function(g, p) { + try { + if (p.toLowerCase() !== "jmpinfo" && (d = g.match(c)) && (f = A$(d[1]))) p in anjiehotel.module ? new anjiehotel.module[p](f) : b.push(f) + } catch(m) { + $t("parserRe Error", [func, a]) + } + return "" + }); + var g = setInterval(function() { + var a = b.shift(); + a ? $topWin.$d(a) : clearInterval(g) + }, + 50) +} +$$.module.queue = {}; +function $d(a) { (A$(a).getAttribute("mod") || "").replace(/\w+/ig, + function(b) { + anjiehotel.module[b] ? new anjiehotel.module[b](a) : $isUndefined($$.module.queue[b]) ? $$.module.queue[b] = [a] : $$.module.queue[b].push(a) + }) +} +var $dealElement = $d; +function $t(a, b) { + typeof console !== "undefined" && console.error(typeof a === "string" ? a: a.message, b) +} + + + +function $fixElement(a) { + function b(a, b, c) { + "attachEvent" in a ? a.attachEvent("on" + b, c) : a.addEventListener(b, c) + } + function c(a) { + for (var a = a.getElementsByTagName("input"), b = 0; b < a.length; b++) if (/checkbox|radio/.test(a[b].type)) return a[b]; + return null + } + a = a && a.nodeType ? a: _.__; + if ($$.browser.IE6) { + var d = a.getElementsByTagName("label"); + for (i = 0; i < d.length; i++) { + var f = c(d[i]); + f && /checkbox|radio/.test(f.type) && + function(a, c) { + a._for = c; + b(a, "mouseover", + function() { + var b = a._for; + if (b) a.htmlFor = b.id || (b.id = $getUid()), + a._for = null; + b = a.style; + b.borderBottom = "#aaa 1px dashed"; + b.paddingBottom = "0px"; + b.color = "#1E1A75" + }); + b(a, "mouseout", + function() { + var b = a.style; + b.borderBottom = ""; + b.paddingBottom = ""; + b.color = "" + }) + } (d[i], f) + } + } + if ($$.browser.IE) { + a = a.getElementsByTagName("select"); + for (i = 0; i < a.length; i++) a[i].onmousewheel = function() { + return ! 1 + } + } +} + +var DOM = function() { + function a(a) { + return function(b) { + for (var b = $fixE(b), c = a.module.event[b.type], d, f = 0; f < c.length; f++) if (c[f].enabled) try { + if (d = c[f].func.call(a, b), d === !1) break + } catch(h) { + $t(h, [c[f].func, a]) + } else c.splice(f, 1), + f--; + return d + } + } + function b() { + var a = $pageSize("win"); + a.right = a.left + a.width; + a.bottom = a.top + a.height; + return a + } + function c(a, b) { + for (var c = [], d = 0, f = a.length; d < f; d++) { + var h; + h = " " + b + " "; + h = (" " + a[d].className + " ").replace(/[\n\t]/g, " ").indexOf(h) > -1 ? !0 : !1; + h && (c[c.length] = a[d]) + } + return c + } + function d(a, b, c) { + if (!a) return null; + b = b || "n"; + return b.match(RegExp({ + 1 : "n", + 3 : "t", + 8 : "c" + } [a.nodeType] || "o", "i")) ? a: c.call(a, b) + } + if (!this || this.nodeType === 3 || this.A$) return this; + if (this != _) this.module = {}, + this.module.event = {}; + var f = /^[\.#]?[^\.#]+/; + this.A$ = this.__ ? + function(a, b) { + if (typeof a == "object") return DOM.apply(a); + var c; + if (b) { + var d = ___.innerHTML.match(RegExp("\\sid=([\\'\\\"]?)([\\w$]+?[_$]" + a.toReString() + ")\\1"), "g"); + if (d) for (var f = 0; f < d.length; f++) if (c = A$(d[f])) return c; + return A$(a) + } else c = __.getElementById(a); + return c ? A$(c) : null + }: function(a) { + var b = this.getElementsByTagName(a); + b.$each = function(a) { + var c; + if ($isUndefined(b.length)) a.call(this, b, 0); + else for (var g = 0; g < b.length && (c = a.call(this, b[g], g)) !== !1; g++); + return c === !1 ? 0 : 1 + }; + for (a = 0; a < b.length; a++) A$(b[a]); + return b + }; + if (this.nodeType == 1) { + if (this.tagName == "INPUT" && /^(text|hidden)A$/i.test(this.type) || this.tagName == "TEXTAREA") this.isNull = function() { + return ! this.value.trim() + }; + if (/^SELECT$/.test(this.tagName)) this.$setValue = function(a) { + for (var b = 0; b < this.options.length; b++) if (this.options[b].value == a) return this.selectedIndex = b, + !0; + return ! 1 + } + } + if (!this.hasAttribute) this.hasAttribute = function(a) { + return ! $isUndefined(this.attributes[a]) + }; + this.$parentNode = function(a) { + var b = A$(this.parentNode); + a && b && b.tagName && b.tagName.toLowerCase() != a.toLowerCase() && (b = b.$parentNode(a)); + return b && b.tagName ? b: null + }; + this.$firstChild = function() { + return A$(this.firstChild) + }; + this.$lastChild = function() { + return A$(this.lastChild) + }; + this.$childNodes = function() { + for (var a = this.childNodes, b = 0; b < a.length; b++) A$(a[b]); + return a + }; + this.$nSib = this.$nextSibling = function() { + return A$(this.nextSibling) + }; + this.$pSib = this.$previousSibling = function() { + return A$(this.previousSibling) + }; + this.$click = function() { + if (this.click) this.click(); + else { + var a = __.createEvent("MouseEvents"); + a.initMouseEvent("click", !0, !0, _, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, this); + this.dispatchEvent(a) + } + }; + 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("\u000c") > -1 ? "\u000c": "|"); + for (a = 0; a < Math.max(arguments.length - 1, b.length); a++) b[a] = b[a] || arguments[a + 1] || ""; + return b + }; + this.$r = this.$regEvent = function(b, c, d, f) { + f = f || 50; + arguments.length == 3 && typeof d == "number" && (f = d, d = null); + var n = this; + b.constructor != Array && (b = [b]); + c.constructor != Array && (c = [c]); + b.each(function(b) { + c.each(function(c) { + b = b.replace(/^(on)?/i, ""); + b = b == "DOMContentLoaded" ? "domready": b.toLowerCase(); + b == "domready" && (n = _); + var g = { + enabled: !0, + obj: n, + event: b, + func: c, + hash: d, + level: f, + id: _.$$.status.regEventCount++ + }; + b == "domready" && $$.status.domReady || b == "load" && (n == _ || n == __.body) && $$.status.load ? c() : (b in n.module.event || (n.module.event[b] = [], n.attachEvent ? n.attachEvent("on" + b, a(n)) : n.addEventListener(b, a(n), !1)), n.module.event[b].push(g), n.module.event[b].sort(function(a, b) { + return a.level - b.level || a.id - b.id + })); + d && (d in $$.status.regEventHash || ($$.status.regEventHash[d] = []), $$.status.regEventHash[d].push(g)) + }) + }) + }; + + + this.$getWin = function() { + var a = this.ownerDocument, + a = a.parentWindow || a.defaultView; + return a == window && a !== window ? window: a + }; + this.$getEl = function(a) { + a || (a = ""); + var b = arguments[1], + d = f.exec(a); + if (!d) { + if (!b) return null; + for (var m = [], n = 0, h = b.length; n < h; n++) m[m.length] = A$(b[n]); + return m.length ? m: null + } + var h = d[0], + n = h.substring(1), + d = a.replace(h, ""), + q = h.substring(0, 1), + r = this; + if (b) if (q === ".") m = c(b, n); + else { + q = A$(n); + n = 0; + for (h = b.length; n < h; n++) b[n] === q && (m = [q]) + } else if (r = r.nodeName ? r: __, q === ".") { + b = r.getElementsByTagName("*"); + if (!b) return null; + m = c(b, n) + } else m = q === "#" ? (q = A$(n)) ? [q] : null: r.getElementsByTagName(h); + if (!m || !m.length) return null; + return arguments.callee(d, m) + }; + this.$g = this.$selNode = function(a) { + function b(a, c) { + var d = [], + g = a.match(/^([\.\#]*)([a-zA-Z0-9\-_*]+)(.*)$/i), + f; + if (!g) return []; + if (g[1] == "#")(f = A$(g[2])) && d.push(f); + else if (g[1] == ".") c.each(function(a) { + a.A$("*").$each(function(a) { + RegExp("\\b" + g[2] + "\\b").test(a.className) && d.push(A$(a)) + }) + }); + else for (var v = 0; v < c.length; v++) if (f = c[v].A$(g[2])) for (var w = 0; w < f.length; w++) d.push(f[w]); + g[3].replace(/\[([^!=]+)(=|!=)([^\]]*)\]/gi, + function(a, b, c, g) { + a = d.slice(0); + d = []; + a.each(function(a) { + b = { + "class": "className", + "for": "htmlFor" + } [b] || b; + var h = a[b] || a.getAttribute(b), + h = b == "className" ? RegExp("\\b" + g + "\\b").test(h) : h == g; + c == "=" == h && d.push(A$(a)) + }) + }); + return d + } + var c = [this == _ ? _.__.body: this], + d = [], + f = []; + a.replace(/[^\[,]([^\[,]*(\[[^\]]*\])*)+/g, + function(a) { + var g = c.slice(0); + a.replace(/(#|\*)/gi, " $1").replace(/([^\^ ])\.(\w+)/gi, "$1[className=$2]").trim().split(/\s+/g).each(function(a) { + g = b(a, g) + }); + d = d.concat(g) + }); + d.each(function(a) { + if (!a.__selNodeFlag__) a.__selNodeFlag__ = !0, + f.push(a) + }); + f.each(function(a) { + a.__selNodeFlag__ = !1; + a.hasAttribute("__selNodeFlag__") && a.removeAttribute("__selNodeFlag__") + }); + return f.length == 0 ? null: f + }; + this.$getPos = function() { + var a = this.$getWin(); + if (a == $topWin) return $offset(this); + for (var b = $offsetWin(this), c = []; a != $topWin;) { + if (a.parent != $topWin) c = $offsetWin(a.frameElement); + else { + var c = A$(a.frameElement), + d = c.ownerDocument, + d = d.defaultView ? d.defaultView.getComputedStyle(c, null) : c.currentStyle, + f = { + thin: 2, + medium: 4, + thick: 6 + }, + c = $offset(c); + if (!/^none|hidden$/i.test(d.borderLeftStyle)) { + var h = d.borderLeftWidth; + c[0] += f[h] || parseFloat(h) || 0 + } + if (!/^none|hidden$/i.test(d.borderTopStyle)) h = d.borderTopWidth, + c[1] += f[h] || parseFloat(h) || 0; + $$.browser.IE || (c[0] += parseFloat(d.paddingLeft), c[1] += parseFloat(d.paddingTop)) + } + b[0] += c[0]; + b[1] += c[1]; + a = a.parent + } + return b + }; + this.$setPos = function(a, c, d) { + function f(b, v) { + function q(a, b, c, d) { + return c + { + l: 0, + c: b.offsetWidth / 2, + r: b.offsetWidth, + t: 0, + m: b.offsetHeight / 2, + b: b.offsetHeight + } [a || "l"] * d + } + return q(c.match(b), this, q(d.match(b), a, h[v], 1), -1) + "px" + } + var n = !1, + h = a.$getPos(); + c === "auto" ? (c = "lt", d = "lb", n = !0) : (c || (c = "lt"), d || (d = "lb")); + if (n) { + var n = b(), + q = { + x: a.offsetWidth, + y: a.offsetHeight + }, + r = { + x: this.offsetWidth, + y: this.offsetHeight + }, + s = (c + d).split(""); + h[0] + r.x > n.right && h[0] + q.x - r.x >= n.left && (s[0] = "r", s[2] = "r"); + h[1] + q.y + r.y > n.bottom && h[1] - r.y >= n.top && (s[1] = "b", s[3] = "t"); + c = s.slice(0, -2).join(""); + d = s.slice(2).join("") + } + this.style.left = f.call(this, /[lcr]/i, 0); + this.style.top = f.call(this, /[tmb]/i, 1) + }; + this.$setIframe = function(a) { + if (a === !0 || $$.browser.IE6) { + if (this.module.iframe) a = this.module.iframe; + else { + a = function() { + for (var a = 0; a < $topWin.$$.module.iframe.length; a++) if ($topWin.$$.module.iframe[a].$getStyle("display") == "none") return $topWin.$$.module.iframe[a] + } (); + if (!a) { + a = $topWin.$c("iframe"); + with(a.style) width = height = "0px", + background = "#FFF", + position = "absolute", + display = "none", + zIndex = 100; + a.frameBorder = 0; + a.id = a.name = $getUid(); + $topWin.$$.status.container.appendChild(a); + $topWin.$$.module.iframe.push(a); + with($topWin.frames[a.id].document) open(), + write(""), + close() + } + this.module.iframe = a + } + a.$setPos(this, "tl", "tl"); + with(a.style) width = this.offsetWidth + "px", + height = this.offsetHeight + "px", + display = ""; + return a + } + }; + this.$clearIframe = function() { + var a = this.module.iframe; + if (a) a.style.display = "none", + this.module.iframe = null; + return a + }; + this.$focusNext = function() { + if (this.form) { + try { + this.blur() + } catch(a) {} + for (var b = this.form.elements, c, d = 0; d < b.length; d++) { + if (c && !A$(b[d]).disabled && b[d].$isDisplay()) try { + b[d].focus(); + break + } catch(f) {} + b[d] == this && (c = !0) + } + } + }; + return this +}; +DOM.apply(_); +DOM.apply(__); +DOM.apply(___); +DOM.apply($$.status.alertDiv); +$$.support = { + + testIEZoom: function() { + if (!$$.browser.IE7) return 1; + var a = $$.support.zoomTester; + if (!a) { + var a = __.body, + a = $$.status.container || a, + b = __.createElement("div"); + b.style.cssText = "position:absolute;left:-10000px;top:-10000px;width:400px;height:100px;"; + a.appendChild(b); + a = this.zoomTester = b + } + a = a.getBoundingClientRect(); + return (a.right - a.left) / 100 || 1 + }, + zoomTester: null +}; + + +var $offsetWin, $offset; +"getBoundingClientRect" in ___ ? ($offsetWin = function(a) { + var b = [0, 0], + c = a.ownerDocument, + d = $$.support.testIEZoom(); + c && $contains(c.documentElement, a) && (a = a.getBoundingClientRect(), b[0] = Math.round(a.left / d), b[1] = Math.round(a.top / d)); + return b +}, +$offset = function(a) { + if (!a) return null; + var b = [0, 0], + c = $viewSize(a), + a = $offsetWin(a), + d = $$.support.testIEZoom(); + b[1] = a[1] + Math.round((c.scrollTop - c.clientTop) / d); + b[0] = a[0] + Math.round((c.scrollLeft - c.clientLeft) / d); + return b +}) : ($offset = function(a) { + if (!a) return null; + $$.support.testCss(); + var b = a.ownerDocument, + c = b.documentElement, + d = [a.offsetLeft, a.offsetTop], + f = a.offsetParent, + g; + g = b.defaultView ? b.defaultView.getComputedStyle(a, null) : a.currentStyle; + for (var j = $$.support, p = /^t(?:able|d|h)A$/i; + (a = a.parentNode) && a !== b.body && a !== c;) { + if (j.supportsFixedPosition && g.position === "fixed") break; + g = b.defaultView ? b.defaultView.getComputedStyle(a, null) : a.currentStyle; + d[0] -= a.scrollLeft; + d[1] -= a.scrollTop; + if (a === f) { + d[0] += a.offsetLeft; + d[1] += a.offsetTop; + if (j.doesNotAddBorder && (!j.doesAddBorderForTableAndCells || !p.test(a.nodeName))) d[1] += parseFloat(g.borderTopWidth) || 0, + d[0] += parseFloat(g.borderLeftWidth) || 0; + f = a.offsetParent + } + j.subtractsBorderForOverflowNotVisible && g.overflow !== "visible" && (d[1] += parseFloat(g.borderTopWidth) || 0, d[0] += parseFloat(g.borderLeftWidth) || 0) + } + if (g.position === "relative" || g.position === "static") d[1] += b.body.offsetTop, + d[0] += b.body.offsetLeft; + return d +}, +$offsetWin = function(a) { + var b = [0, 0], + c = $viewSize(a), + a = $offset(a); + b[1] = a[1] - c.scrollTop + c.clientTop; + b[0] = a[0] - c.scrollLeft + c.clientLeft; + return b +}); + +var c_allyes_text = {}, +c_allyes_delay = 1E3; + +anjiehotel.module.notice = function(a) { + var b; + a.module.notice = new + function() { + this.enabled = !0; + this.tip = a.getAttribute("mod_notice_tip") || ""; + this.check = function() { + if (a.module.notice.enabled) with(a) isNull() ? (style.color = "gray", value = module.notice.tip) : style.color = "" + }; + this.isNull = a.isNull = function() { + return a.value.trim() == "" || a.value == a.module.notice.tip + } + }; + a.$r("focus", + function() { + b = !0; + if (a.module.notice.enabled && (a.style.color = "", a.value == a.module.notice.tip)) a.value = "" + }, + 10); + a.$r("blur", + function() { + b = !1; + a.module.notice.check() + }, + 90); + a.module.notice.check() +}; + +_.$r("domReady", +function() { + var a = ".tuna_calendar{width:362px;font-size:12px;font-family:tahoma, Arial, Helvetica, simsun, sans-serif;position:absolute;z-index:1000;background-color:#fff;border:solid 1px #999;-moz-box-shadow:3px 4px 5px #ccc;-webkit-box-shadow:3px 4px 5px #ccc;box-shadow:3px 4px 5px #ccc;margin:0;padding:5px 6px 4px}.tuna_calendar dt,.tuna_calendar dd{margin:0;padding:0}.tuna_calendar dl,.tuna_calendar dt,.tuna_calendar dd { margin:0; padding:0; }.tuna_calendar .select_day,.tuna_calendar dd a:hover,.tuna_calendar .calendar_title01 a,.tuna_calendar .calendar_title02 a,.tuna_calendar .today{background:#FFF url({$picserver}/common/un_bg_calender110117.png) no-repeat}.tuna_calendar a{color:#005ead;font-weight:bold;text-decoration:none!important}.tuna_calendar dl{float:left;width:175px;padding:6px 0 0}.tuna_calendar #calendar_month2{position:absolute;top:28px;left:186px;z-index:2;padding-bottom:5px;padding-left:6px;border-left:2px solid #999}.tuna_calendar dt{float:left;width:25px;height:22px;background:#ececec;font-weight:normal;color:#666;font-size:12px;line-height:20px;text-align:center;cursor:default}.tuna_calendar .day0,.tuna_calendar .day6{color:#f90;font-weight:bold}.tuna_calendar .day6{width:24px}.tuna_calendar dd{clear:both;padding-top:1px;display:inline-block}.tuna_calendar dd a{font-size:11px;text-align:center;height:24px;width:22px;line-height:24px;float:left;outline-width:0;background-color:#fff;padding:0 2px 1px 1px}.tuna_calendar dd a:hover{background-color:#fff;background-position:-26px -48px}.tuna_calendar .today{font-weight:bold;background-position:0 -74px;}.tuna_calendar .today:hover{}.tuna_calendar .select_day,.tuna_calendar .select_day:hover{color:#fff;background-color:#629be0;background-position:0 -48px}.tuna_calendar .blank_day,.tuna_calendar .over_day{color:#dbdbdb;font-weight:normal;cursor:default}.tuna_calendar .blank_day:hover,.tuna_calendar .over_day:hover{background-color:#fff;background-image:none}.tuna_calendar div{float:left;width:181px;color:#fff;font-weight:bold;height:23px;background:#004fb8}.tuna_calendar div a{cursor:pointer;width:40px;line-height:20px}.tuna_calendar .calendar_title01 span,.tuna_calendar .calendar_title02 span{float:left;width:143px;text-align:center;line-height:23px}.tuna_calendar .calendar_title01 span{padding-right:14px}.tuna_calendar .calendar_title02 span{padding-left:14px}.tuna_calendar .calendar_title01 a,.tuna_calendar .calendar_title02 a{background-color:#2d7fdd;float:left;width:23px;height:23px;overflow:hidden;text-indent:-10em}.tuna_calendar .calendar_title01 a{float:left}.tuna_calendar .calendar_title02 a{background-position:right 0;float:right}.tuna_calendar .calendar_title01 a:hover{background-color:#4895ec;background-position:0 -24px}.tuna_calendar .calendar_title02 a:hover{background-color:#4895ec;background-position:right -24px}.tuna_calendar b,.tuna_calendar i{background-color:#fff;display:block;width:372px;height:1px;border-right:1px solid #c3c3c3;border-left:1px solid #c3c3c3;overflow:hidden;position:absolute;left:0;z-index:1}.tuna_calendar i{border-top:1px solid #999;top:-2px}.tuna_calendar b{border-bottom:1px solid #999;bottom:-2px;_bottom:-3px}address_hot li,.address_hot_abb,.address_hot_adress{list-style:none;margin:0;padding:0}.address_hot_adress a{text-decoration:none}#tuna_address{font-family: Arial,Simsun; font-size: 12px;}#tuna_address #address_warp{background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #7F9DB9; margin: 0; min-height: 305px; padding: 0 0 4px; text-align: left; width: 220px;}* html #tuna_address #address_warp{height: 305px;}#tuna_address #address_message{background-color: #414582; border: medium none; color: #FFFFFF; display: block; font-family: Simyou; height: 1.7em; line-height: 20px; overflow: hidden; padding: 2px 0 2px 9px; width: auto; word-wrap: break-word;}#tuna_address #address_list{margin: 0; min-height: 277px; padding: 0;}* html #tuna_address #address_list{height: 277px;}#tuna_address #address_list span{float: right; font: 10px/22px verdana; margin: 0; overflow: hidden; padding: 0; text-align: right; white-space: nowrap; width: 110px;}#tuna_address #address_list a{border-bottom: 1px solid #FFFFFF; border-top: 1px solid #FFFFFF; color: #414582; cursor: pointer; display: block; height: 22px; line-height: 22px; min-height: 22px; overflow: hidden; padding: 1px 9px 0; text-align: left; text-decoration: none;}* html #tuna_address #address_list a{height: 22px;}#tuna_address #address_list a:hover{background: none repeat scroll 0 0 #E8F4FF; border-bottom: 1px solid #7F9DB9; border-top: 1px solid #7F9DB9;}#tuna_address .address_selected{background: none repeat scroll 0 0 #FFE6A6; color: #FFFFFF; height: 22px;}#tuna_address .address_pagebreak{display: none; line-height: 25px; margin: 0; padding: 0; text-align: center;}#tuna_address .address_pagebreak a{color: #414582; display: inline-block; font-family: Arial,Simsun,sans-serif; font-size: 14px; margin: 0; padding: 0 4px; text-align: center; text-decoration: underline; width: 15px;}#tuna_address #address_arrowl, #tuna_address #address_arrowr{color: #414582;}#tuna_address a.address_current{color: #000000; text-decoration: none;}.address_hot{background-color: #FFFFFF; font-size: 12px; width: 550px;}.address_hotcity{background-color: #414582; border-color: #2C7ECF; border-style: solid; border-width: 1px 1px 0; color: #CEE3FC; height: 24px; line-height: 24px; padding-left: 10px;}.address_hotcity strong{color: #FFFFFF;}.address_hotlist{border-color: #999999; border-style: solid; border-width: 0 1px 1px; overflow: hidden; padding: 5px;}.address_hot_abb{border-bottom: 1px solid #414582; padding-bottom: 20px;}.address_hot_abb li{color: #414582; cursor: pointer; float: left; height: 20px; line-height: 20px; list-style-type: none; text-align: center;}.address_hot_abb li span{padding:0 8px;}.address_hot_abb li .hot_selected{display:block; padding:0 7px; background-color: #FFFFFF; border-color: #414582; border-style: solid; border-width: 1px 1px 0; color: #000000; font-weight: bold;}.address_hot_adress{padding-top: 4px; width: 100%;}.address_hot_adress li{float: left; height: 24px; overflow: hidden; width: 67px;}.address_hot_adress li a{border: 1px solid #FFFFFF; color: #000000; display: block; height: 22px; line-height: 22px; padding-left: 5px;}.address_hot_adress li a:hover{background-color: #E8F4FF; border: 1px solid #ACCCEF; text-decoration: none;}.span_fest{text-indent:-9999px} .yuan_dan span, .chu_xi span, .chun_jie span, .yuan_xiao span, .qing_ming span, .lao_dong span, .duan_wu span, .zhong_qiu span, .guo_qing span { display:block; height:24px; background-image:url({$picserver}/common/icon_festival.png); background-repeat:no-repeat; } .tuna_calendar .yuan_dan:hover, .tuna_calendar .chu_xi:hover, .tuna_calendar .chun_jie:hover, .tuna_calendar .yuan_xiao:hover, .tuna_calendar .qing_ming:hover, .tuna_calendar .lao_dong:hover, .tuna_calendar .duan_wu:hover, .tuna_calendar .zhong_qiu:hover, .tuna_calendar .guo_qing:hover { background-image:url({$picserver}/common/icon_festival.png); background-repeat:no-repeat; background-position:0 -400px; cursor:pointer; } .tuna_calendar .festival_select, .tuna_calendar .festival_select:hover { background-image:url({$picserver}/common/icon_festival.png); background-repeat:no-repeat; background-position:0 -360px; } .yuan_dan span { background-position:0 6px; } .chu_xi span { background-position:0 -35px; } .chun_jie span { background-position:0 -74px; } .yuan_xiao span { background-position:0 -114px; } .qing_ming span { background-position:0 -155px; } .lao_dong span { background-position:0 -194px; } .duan_wu span { background-position:0 -234px; } .zhong_qiu span { background-position:0 -274px; } .guo_qing span { background-position:0 -314px; }".replaceWith({ + picserver: "" + }), + b; + $$.browser.IE ? (b = document.createStyleSheet(), b.cssText = a) : (b = document.createElement("style"), b.type = "text/css", b.textContent = a, document.getElementsByTagName("head")[0].appendChild(b)) +}); +$$.string.address = { + b: "\u8f93\u5165\u4e2d\u6587/\u62fc\u97f3\u6216\u2191\u2193\u9009\u62e9.", + i: "\u8f93\u5165", + j: "\u6216\u2191\u2193\u9009\u62e9.", + k: "\u4e2d\u6587/\u62fc\u97f3", + e: "\u8bf7\u8f93\u5165\u81f3\u5c11\u4e24\u4e2a\u5b57\u6bcd\u6216\u4e00\u4e2a\u6c49\u5b57.", + h: "", + o: "\u6309\u62fc\u97f3\u6392\u5e8f", + s: "\u5bf9\u4e0d\u8d77, \u627e\u4e0d\u5230: ", + l: "\u7ed3\u679c\u5171", + p: "\u9879,\u2190\u2192\u7ffb\u9875", + a: ",\u5171" +}; + + +(function() { + function a(a, b) { + return RegExp("\\b" + b + "\\b").test(a.className) + } + function b(a, b) { + var c = a.match(/^[^\|]+/), + d = b.match(/^[^\|]+/); + return c > d ? 1 : c == d ? 0 : -1 + } + function c() { + var a = $c("div"); + a.style.width = "0px"; + a.style.height = "0px"; + a.innerHTML = ''; + A$("jsContainer").appendChild(a); + g = A$("tuna_address"); + $$.module.address.source["default"] = "@@"; + j = A$("address_warp"); + p = A$("address_message"); + m = A$("address_list"); + n = [A$("address_p"), A$("address_p1"), A$("address_p2"), A$("address_p3"), A$("address_p4"), A$("address_p5")]; + h = A$("address_arrowl"); + q = A$("address_arrowr"); + r = m.getElementsByTagName("a"); + for (a = 0; a < r.length; a++) r[a].cloneNode(!0) + } + var d = "_".toString() + "hotData", + f = { + target: null, + hotTarget: null, + data: null, + selectedValue: null, + hotSelected: "\u70ed\u95e8", + tabTagName: "span", + tabListTagName: "ol", + cityListTagName: "ul", + cityTagName: "span", + hotData: {"热门": "@80|北京@",'A': "@36|安庆@112|安顺@150|安阳@245|鞍山"}, + hotTemplate: { + container: '', + title: '
\u70ed\u95e8\u57ce\u5e02{$text}
', + hotlist: '
{$text}
', + tags: '
    {$text}
', + tag: "
  • {$text}
  • ", + items: '', + item: '
  • {$text}
  • ' + }, + hotClassNames: { + tagSelected: "hot_selected" + } + }, + g, + j, + p, + m, + n, + h, + q, + r, + s = 0; + + + anjiehotel.module.address = function(k) { + function v() { + B && B.releaseCapture && (B.releaseCapture(), B = null) + } + function w() { (f.hotTarget || g).$setPos(k) + } + function R() { + var a = [], + b; + + + + for (b in f.hotData) s++, + a.push(f.hotTemplate.tag.replaceWith({ + text: b, + className: _.$s2t(k.hotSelected) == b ? "class=" + f.hotClassNames.tagSelected: "" + })); + return a.join("") + } + function S() { + var a = [], + b; + for (b in f.hotData) { + var c = [], + c = f.hotData[b].replace(/@([^@]*)\|([^@]*)/g, + function(a, b, c) { + return f.hotTemplate.item.replaceWith({ + data: [b, c].join("|"), + text: c + }) + }); + a.push(f.hotTemplate.items.replaceWith({ + text: c, + display: $s2t(k.hotSelected) == $s2t(b) ? "": "style='display:none'", + type: b + })) + } + return a.join("") + } + function N() { + for (var a = u.getElementsByTagName(f.cityListTagName), b = 0; b < a.length; b++) if (a[b].style.display == "") return a[b]; + return null + } + function T(a, b) { + clearInterval(E); + var c = b.$target.getAttribute("data"); + if (!c) return ! 1; + c = c.split("|"); + focusTarget.value = c[1].trim(); + var d = focusTarget.getAttribute("mod_address_reference"); + if (d && A$(d)) A$(d).value = c[0].trim(), + o.hook.change && o.hook.change(A$(k)); + u.$clearIframe(); + u.style.display = "none"; + k.blur(); + setTimeout(function() { + o.focusNext && setTimeout(function() { + k.$focusNext() + }, + 1) + }, + 0); + return ! 0 + } + function U() { + u.onmousedown = function(b) { + var b = $fixE(b), + c = b.$target; + c.setCapture && (v(), c.setCapture(), B = c); + f.olObj = c.$parentNode(f.tabListTagName); + f.ulObj = c.$parentNode(f.cityListTagName); + if (f.olObj) { + var b = f.olObj, + d = N(); + if (b && d) { + N().style.display = "none"; + k.hotSelected = c.innerText || c.textContent; + a: { + for (var d = _.$s2t(k.hotSelected), g = u.getElementsByTagName(f.cityListTagName), w = 0; w < g.length; w++) if (g[w].getAttribute("type") == d) { + d = g[w]; + break a + } + d = null + } + d.style.display = ""; + a: { + b = b.getElementsByTagName(f.cityTagName); + for (d = 0; d < b.length; d++) if (a(b[d], f.hotClassNames.tagSelected)) { + b = b[d]; + break a + } + b = null + } + d = f.hotClassNames.tagSelected; + if (a(b, d)) d = RegExp("(\\s|^)" + d.toReString() + "(\\s|$)"), + b.className = b.className.replace(d, " ").split(" ").join(" "); + c = c.tagName == f.cityTagName.toUpperCase() ? c: c.getElementsByTagName(f.cityTagName)[0]; + b = f.hotClassNames.tagSelected; + if (!a(c, b)) c.className = c.className + " " + b + } + } else if (f.ulObj) return T(f.ulObj, b); + else focusTarget.select(); + return ! 1 + }; + u.onmouseup = v + } + function V() { + f.hotData = $$.module.address.source[o.source + d]; + if (f.hotData) { + O = k; + k.select(); + if (!k.hotSelected) k.hotSelected = f.hotSelected; + var a = A$("address_hot"); + a && a.parentNode.removeChild(a); + var a = f.hotTemplate.container.replaceWith({ + text: [f.hotTemplate.title.replaceWith({ + text: $$.module.address.source[o.source + "_keyWord"] || " \uff08\u53ef\u76f4\u63a5\u8f93\u5165\u57ce\u5e02\u6216\u57ce\u5e02\u62fc\u97f3\uff09" + }), f.hotTemplate.hotlist.replaceWith({ + text: [f.hotTemplate.tags.replaceWith({ + text: R(), + style: s > 1 ? "": "display:none;" + }), S()].join("") + })].join("") + }), + b = "", + a = a.replace(/\{guestId:(\w+)\}/g, + function(a, c) { + b = c; ! k.guests[b] && A$(b) && (k.guests[b] = A$(b)); + return '
    '.replace("{id}", c + x) + }), + c = $c("div"); + c.innerHTML = a; + u = A$(c.removeChild(c.firstChild)); + __.body.appendChild(u); + for (b in k.guests) a = A$(b + x), + a.parentNode.className = "", + a.parentNode.replaceChild(k.guests[b], a); + u.style.display = ""; + u.style.zIndex = 111; + u.style.position = "absolute"; + u.$setPos(O); + u.$setIframe(); + U(); + s = 0 + } + } + function H(a) { + a && $stopEvent(a); + switch (this) { + case h: + y.m_get(y.page - 1); + break; + case q: + y.m_get(y.page + 1); + break; + default: + y.m_get(parseInt(this.firstChild.nodeValue)) + } + return ! 1 + } + function K() { + with(g.style) width = j.offsetWidth + "px", + height = j.offsetHeight + "px"; + g.$setIframe() + } + function P() { + if (o.suggest.length == 0) { + if (g.style.display = "none", t !== null) r[t].className = "", + t = null + } else y.m_set(o.suggest), + p.lastChild.nodeValue = $$.status.version.match(/^zh-/) ? $$.string.address.i + (k.module.notice ? k.module.notice.tip: $$.string.address.k) + $$.string.address.j: $$.string.address.b + } + function L() { + focusTarget = k; + var a = k.value.trim(); + if (a !== I) if (I = a, a = a.replace(/([\(\)\\\[\]\.\+\?\*\|\^\$])/gi, "\\$1").replace(/@|\|/gi, ""), C && $$.module.address.source[o.source + d]) V(), + C = !1, + f.hotTarget = u; + else { + if (u && !u.style.display) f.hotTarget = null, + u.$clearIframe(), + u.style.display = "none"; + if (a) { + if (u) u.$clearIframe(), + u.style.display = "none"; + g.style.display = ""; + var c = $$.module.address.source[o.source], + v = RegExp("@([^@]*\\|)?" + a + "[^@]*", "gi"), + w = RegExp("@[^@]*" + a + "[^@]*", "gi"), + h = [], + n = [], + j = [], + c = c.replace(RegExp("@([^\\|@]*\\|)?" + a + "[^@]*", "gi"), + function(a) { + h.push(a); + return "" + }); + h && h.sort(b); + c = c.replace(v, + function(a) { + n.push(a); + return "" + }); + n && n.sort(b); + c = c.replace(w, + function(a) { + j.push(a); + return "" + }); + j && j.sort(b); + arr = h.concat(n).concat(j); + p.style.backgroundColor = arr.length ? "#414582": "#414582";// #67A1E2 #0053AA + if (!arr || !arr.length) { + p.lastChild.nodeValue = o.auto ? $$.string.address.s + ($$.status.version == "en" ? "": k.value) : $$.string.address.h + k.value + ", " + $$.string.address.o; + if (!o.auto && (g.style.display = "none", t !== null)) r[t].className = "", + t = null; + m.style.display == "none" && P(); + K() + } else p.lastChild.nodeValue = $$.string.address.h + k.value + ", " + $$.string.address.o, + y.m_set(arr); + C = !1 + } else P(), + K() + } + } + function J(a, b) { + k.value = D[a][1] || D[a][0]; + if (o.reference) o.reference.value = D[a][2]; + if (z) z.value = D.join("|"); + o.hook.change && o.hook.change(k); + r[t].className = ""; + t = null; + b !== !1 && o.focusNext && setTimeout(function() { + k.$focusNext() + }, + 1) + } + var B = null; + k.guests = {}; + var x = (new Date).getTime(), + O, + u, + F, + G = k.$getWin(), + o = k.module.address = {}, + E, + t = null, + I, + D = [], + C = !1; + o.ver = k.getAttribute("mod_address_ver"); + o.autoFilter = /^(true|1)A$/.test(k.getAttribute("mod_address_autofilter")); + g || c(); + k.setAttribute("autoComplete", "off"); + $r("beforeunload", + function() { + k.setAttribute("autoComplete", "on") + }); + o.focusNext = k.getAttribute("mod_address_focusNext"); + o.focusNext = /^(1|true)A$/i.test(o.focusNext || ""); + o.reference = k.getAttribute("mod_address_reference"); + var z = k.getAttribute("mod_address_cookie"); + if (z && (z = G.A$(z), !z)) { + var A = G.$c("input"); + with(A) type = "hidden", + id = name = z; + z = A; + k.parentNode.insertBefore(z, k) + } + if (o.reference) o.reference = G.A$(o.reference) || G.A$(o.reference, !0); + var A = k.getAttribute("mod_address_suggest"), + Q = k.getAttribute("mod_address_cookieSuggest"); + o.suggest = []; + if (Q) o.suggest = Q.match(/[^@]+@/gi), + A && o.suggest._push(A.match(/[^@]+@/gi)); + else if (A) o.suggest = A.match(/[^@]+@/gi); + if (o.suggest.length > 12) o.suggest = o.suggest.slice(0, 12); + o.source = k.getAttribute("mod_address_source") || "default"; + + o.auto = k.getAttribute("mod_address_auto"); + o.auto = o.auto && o.auto.match(/^(false|0)A$/i) ? !1 : !0; + o.redraw = function() { + E && L() + }; + o.hook = {}; + (k.getAttribute("mod_address_hook") || "").replace(/(on)?([^;:]+):([^;]+)/gi, + function(a, b, c, d) { + o.hook[c.toLowerCase()] = G[d] + }); + var M = !1, + y = new + function() { + var a; + this.maxpage = this.page = 1; + this.m_get = function(b) { + if (!a || !b || b < 1 || b > this.maxpage) return null; + this.page = b; + this.pagelist = a.slice((b - 1) * 12, Math.min(b * 12, a.length)); + for (b = 0; b < r.length; b++) if (b < this.pagelist.length) { + r[b].style.display = "block"; + var c = this.pagelist[b].replace(/@/g, "").split("|"); + r[b].lastChild.nodeValue = c[1]; + r[b].firstChild.firstChild.nodeValue = c[0]; + D[b] = c + } else r[b].style.display = "none", + D[b] = null; + if (t !== null) { + if (t >= this.pagelist.length) r[t].className = "", + t = this.pagelist.length - 1, + r[t].className = "address_selected" + } else t = 0, + r[0].className = "address_selected"; + var b = this.maxpage < 6 || this.page < 3 ? 1 : this.page > this.maxpage - 2 ? this.maxpage - 4 : this.page - 2, + c = Math.min(b + 4, this.maxpage), + d; + h.style.display = this.page == 1 ? "none": ""; + q.style.display = this.page == this.maxpage ? "none": ""; + for (var f = b; f < b + 5; f++) d = n[f - b + 1], + f <= c ? (d.firstChild.nodeValue = f, d.className = f == this.page ? "address_current": "", d.style.display = "") : d.style.display = "none"; + n[0].style.display = this.maxpage > 1 ? "block": "none"; + m.style.display = p.style.display = ""; + if (!F) g.style.display = "", + b = k.$getPos(), + g.offsetWidth + b[0] > ___.offsetWidth ? g.$setPos(k, "tr", "br") : g.$setPos(k), + g.$setIframe(), + F = !0; + K.call(this) + }; + this.m_set = function(b) { + a = b; + this.maxpage = Math.ceil(b.length / 12); + this.page = 1; + this.m_get(1) + } + }; + + + k.$r("onfocus", + function() { + function a(b) { + r[b].onmousedown = function() { + J(b); + k.blur() + } + } + if (!M) { + M = !0; + setTimeout(function() { + M = !1 + }); + C = !0; + F = !1; + m.style.display = p.style.display = n[0].style.display = "none"; + g.onmousedown = function(a) { + C = !1; + var a = $fixE(a), + b = a.$target; + b.setCapture && (v(), b.setCapture(), B = b); + $stopEvent(a, 1); + return ! 1 + }; + g.onmouseup = v; + _.$r("resize", w); + for (var b = 0; b < r.length; b++) new a(b); + h.onmousedown = q.onmousedown = H; + for (b = 1; b < n.length; b++) n[b].onmousedown = H; + I = null; + if (t !== null) r[t].className = "address_selected"; + o.hook.focus && o.hook.focus(k); + L(); + E = setInterval(L, 150) + } + }); + k.blur(); + k.$r("onblur", + function() { + C = !1; + clearInterval(E); + E = null; + if (u) u.$clearIframe(), + u.style.display = "none"; + g.$clearIframe(); + g.style.display = "none"; + if (t !== null) k.value && (o.auto ? J(t, !1) : o.check()), + r[t].className = "", + t = null; + g.onmousedown = null; + g.onmouseup = null; + v(); + _.$ur("resize", w) + }); + o.hook.load && o.hook.load(k) + } +})(); + + + +(function() { + $r("domready", [$parserRe, $fixElement,function() {}]); +})(); \ No newline at end of file