Repository: justzx2011/openyoudao Branch: master Commit: 6fc7a9c0266c Files: 46 Total size: 307.2 KB Directory structure: gitextract_o8e93rl4/ ├── .gitignore ├── LICENSE ├── MANIFEST.in ├── README.md ├── cache/ │ ├── config.html │ ├── construction/ │ │ └── youdao/ │ │ └── head.html │ ├── css/ │ │ ├── entry-min.css │ │ ├── pad.css │ │ ├── result-min.css │ │ └── style_result.css │ ├── donate.html │ ├── expand.html │ ├── google.html │ ├── goslate.html │ ├── help.html │ ├── js/ │ │ ├── autocomplete.r156903.js │ │ ├── extra.js │ │ ├── huaci.js │ │ ├── icibatop.js │ │ ├── jquery.sidebar.js │ │ ├── jsScrollbar.js │ │ ├── jsScroller.js │ │ ├── jsScrollerTween.js │ │ └── result-min.js │ ├── lock.html │ ├── origin.html │ ├── result.html │ ├── unlock.html │ ├── zh2en.html │ ├── zh2enlj.html │ ├── zh2fr.html │ ├── zh2frlj.html │ ├── zh2jap.html │ ├── zh2japlj.html │ ├── zh2ko.html │ └── zh2kolj.html ├── desktop/ │ └── openyoudao.desktop ├── fusionyoudao.py ├── gl.py ├── goslate.py ├── install-openyoudao.sh ├── openyoudao.py ├── scripts/ │ └── openyoudao ├── setup.py ├── uninstall-openyoudao.sh └── webshot.py ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *.pyc *.swp ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: MANIFEST.in ================================================ include LICENSE README.md recursive-include cache * include desktop/openyoudao.desktop ================================================ FILE: README.md ================================================ # YouDao It is a YouDao client for linux. Author: justzx2011@gmail.com @justzx lvzongting@gmail.com @lvzongting Powered by xdlinux.info 西电开源社区 #Dependencies: python-xlib python-webkit python-lxml python-beautifulsoup xclip inotify-tools curl #Installation: #Archlinux: yaourt -S openyoudao #Ubuntu/debian: Add mirrorlist: deb http://ppa.launchpad.net/justzx2011/openyoudao-v0.4/ubuntu trusty main deb-src http://ppa.launchpad.net/justzx2011/openyoudao-v0.4/ubuntu trusty main sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 14C9B91C3F9493B9 sudo apt-get update sudo apt-get install openyoudao #Opensuse: http://software.opensuse.org/package/openyoudao #Fedora 19/20/21/rawhide 使用以下命令安装: yum install dnf-plugins-core dnf copr enable mosquito/myrepo dnf install openyoudao #RHEL/CentOS 7 使用以下命令安装: yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo yum install epel-release yum install openyoudao #setup.py: git clone https://github.com/justzx2011/openyoudao python setup.py build sudo python setup.py install #其他发行版linux: #apt-get install python-xlib python-webkit python-lxml python-beautifulsoup xclip inotify-tools curl $wget https://github.com/justzx2011/openyoudao/archive/beta0.4.tar.gz tar -xvf beta0.4.tar.gz && cd openyoudao-beta0.4 安装bin文件,方便程序执行: 将bin文件:scripts/openyoudao安装到目录/usr/bin/openyoudao: #cp scripts/openyoudao /usr/bin/. 设置权限: #chmod 755 /usr/bin/openyoudao 安装libs文件: #mkdir /usr/lib/openyoudao #cp ./*.py /usr/lib/openyoudao #chmod 644 /usr/lib/openyoudao/*.py 安装cache文件: #mkdir /var/cache/openyoudao #cp -rf cache/* /usr/share/openyoudao/. 安装desktop: #cp desktop/openyoudao.desktop /usr/share/applications/ #chmod 644 /usr/share/applications/openyoudao.desktop 哈哈~现在应该看到openyoudao的图标了吧~ 点击图标就能运行程序了 TODO -------------- 01 重新设计软件界面 02 增强与其它程序的兼容性 03 重新规划目录、打包 04 重新格式化网页界面 ----- 使用beautiful soup 05 创建配置页面 06 去除滚动条,改用js 07 编写config.html,作为配置页,用作主页,用js 08 浏览器侧边加方形标签,用于切换 09 推入软件源 10 完善项目主页 11 增加项目日志 12 打包ppa 13 打包rpm 14 增加ocr取词功能 15 编写QT版本 16 添加离线取词功能 17 修改取词模式添加快捷键辅助取词 18 添加命令行查词功能 19 编写mac版本 20 优化项目主页,添加后台线程下载功能,加快访问速度 21 编程多线程下载代理,提高取词速度 22 实现程序的可脚本化 23 改用PyQT4Qt中Webkit 24 捕捉程序异常,sqlite操作可能会抛出异常,特别是多线程 25 减少global使用,太多的global 影响程序的健壮性 26 对DOM操作,借鉴PhantomJS和CasperJS 27 实现man手册的跳转 28 以守护进程运行该程序 29 脚本竞技场 30 寻找轻量级的取词方案 31 修复视频播放 DONE ----- 2014-8-02 ------- 发布openyoudao v0.4版本 2014-5-17 ------- 发布openyoudao v0.3版本 2014-4-16 ------- 发布openyoudao v0.2版本 2013-9-01 ------- 发布openyoudao beta版本 2012-8-23 ------- 发布了ppa包 2012-8-21 ------- 修改了程序设计,将用户配置文件转移到了$HOME/.openyoudao目录下 2012-8-17 ------- 创建项目邮件列表,辅助项目测试 2012-8-08 ------- 修复了发音功能 2012-8-07 ------- 重新编写了使用教程,以兼容各个发行版linux 2012-8-01 ------- 修正了取词脚本 2012-7-23 ------- 添加程序运行过程中所需要的临时文件,以解决系统权限问题 2012-7-22 ------- 修正了desktop存在的bug 2012-7-21 ------- 考虑到python-requests存在过期依赖问题,改用curl进行网页下载 2012-7-19 ------- 将程序打包为aur 2012-7-11 ------- 编写了openyoudao.desktop 2012-7-10 ------- kokdemo重新设计了项目主页 2012-7-04 ------- 增加了代理设置 2012-7-01 ------- 完善了README.md,更新了网页,发布Alpha 2012-6-30 ------- 增加了程序图标,调整了相对路径,清理了github分支 2012-6-29 ------- 改进了webshot 2012-6-26 ------- 修复了icb,解决了css冲突 2012-6-25 ------- 调整了线程的开启顺序,清空剪切板,清空管道 2012-6-22 ------- 通过inotify取词 2012-6-20 ------- 改用lxml加速下载,实现了字典的流畅切换,去除搜索框 2012-6-18 ------- 加速了页面重构 2012-6-15 ------- 从localStorage动态载入配置文件 2012-6-11 ------- 添加了侧边栏,通过localStorage.content存储配置信息 2012-6-10 ------- 调整了程序目录,添加了程序启动页面 2012-6-09 ------- 修复链接,解决了超长字符串替换问题,用js重写了滚动条 2012-6-07 ------- 增加了程序健壮性 2012-6-06 ------- 对网页进行了简单重构 2012-6-01 ------- 增加了滚动条 2012-5-31 ------- 解决了字符串问题,实现了特殊字符的正确提取 2012-5-30 ------- 解决了权限问题,可以用普通用户运行程序 2012-5-28 ------- 成功的将界面和程序高度分离 2012-5-27 ------- 主程序结构设计完成,一般情况下结构不会变更 2012-5-26 ------- 完成了程序退出机制,全局统一退出标志,为差错控制模块预留了接口 UPDATES -------------- 2014-8-02 ------- 增加了取词历史 2014-7-07 ------- 增加了取词锁定功能 2014-7-06 ------- 增加了谷歌翻译 2014-5-16 ------- 增加了汉日互译、汉韩互译、汉法互译 2014-5-15 ------- 修复了视频例句无法播放的问题 2014-5-7 ------- 增加了程序启动图标 2014-4-16 ------- 解决了程序异常中断的bug 2012-8-23 ------- 发布ppa 2012-8-17 ------- 创建项目邮件列表,辅助项目测试 2012-8-08 ------- 修复了发音功能 2012-7-19 ------- 发布aur包 2012-7-01 ------- 发布Alpha 2012-6-10 ------- 增加了侧边栏 2012-6-9 ------- 增加了滚动条 2012-6-6 ------- 重构了界面 2012-6-4 ------- 对网页进行了重构,修改了css,网页交由bainizhao更新维护 2012-6-1 ------- 增加了滚动条 2012-5-31 ------- 给项目主页添加了域名,地址:http://openyoudao.org/ 2012-5-30 ------- 修正了一些Bug,项目可以正常使用,正式命名为openyoudao 2012-5-28 ------- 完善了项目主页,地址:http://74.117.59.126/,注册了推@openyoudao 2012-5-27 ------- 整理代码并提交到github 2012-5-26 ------- 实现了屏幕取词翻译,完善了程序的主框架 RULES ---- 1 界面上永远不许有按钮 2 主程序中既是测试程序,不许有功能模块 3 所有功能模块保持最大化的独立,尤其是界面和程序不许纠缠 4 取词模块(xclip)、查词模块(curl)、显示模块(webkit)、聚合模块(beautiful soup) Construction ---- -------------- | 主程序 | | def main() | --------------- ------------- | --------------- | -------------- | | | | | | | | | --------------- ------------ ------------- --------------- | 取词 | | 查字 | | 显示 | 配置文件 | | def gettext()| | def lookup() | | def webshow() | loadconfig() | --------------- ------------- -------------- ---------------- ================================================ FILE: cache/config.html ================================================ Openyoudao首页

欢迎使用有道字典 linux版

所有配置工作通过选词功能完成,找到您想要的选项,然后用鼠标选取右边对应指令即可.

汉英互译            %zh2en%          汉英例句               %zh2enlj%               返回配置页           %index%

汉日互译            %zh2jap%         汉日例句               %zh2japlj%               使用说明               %helps%

汉韩互译            %zh2ko%           汉韩例句               %zh2kolj%               退出程序               %exits%

  汉法互译            %zh2fr%           汉法例句               %zh2frlj%                 展开选项               %expand%

================================================ FILE: cache/construction/youdao/head.html ================================================ ================================================ FILE: cache/css/entry-min.css ================================================ @charset "utf-8";html,body,div,p,form,input{margin:0;padding:0}html,body{height:100%}body{font:12px/1.2 Arial}a{text-decoration:none}a:hover{text-decoration:underline}#w{min-height:100%;height:100%;position:relative}.sp{font-size:0;line-height:0}#t{padding:0 10px 0 0;height:27px;line-height:27px;text-align:right}.ac{position:relative}.ac .ai{font-size:9px}.dm{position:absolute;left:0;top:21px;width:138px;text-align:left;line-height:26px}.dm a{display:block;padding:0 0 0 8px}#l{margin:0 auto;width:399px;height:143px}#nv{width:590px;margin:0 auto;font-size:14px;padding:0 0 0 3px;line-height:16px}#nv strong,#nv a:hover{background:url(http://shared.ydstatic.com/oxo/p/nv_line.gif) bottom center no-repeat}#nv a,#nv strong{display:inline-block;margin:0 1px 0 0;padding:0 13px 9px;text-align:center;line-height:1.2em}#nv a:hover{text-decoration:none}#an{text-align:center}#ft{position:absolute;bottom:0;width:100%;line-height:27px}#cr,#fn{display:inline}#cr{position:absolute;top:0;right:0;margin:0 10px 0 0}#fn{float:left;margin:0 0 0 10px}.nl{padding:0 10px}@charset "utf-8";#t{background:url(../images/pic.gif) no-repeat;background-position:0 -38px;background-repeat:repeat-x;border-bottom:1px solid #ededed}#t a{color:#333}.dm{background-color:#fff;border:1px solid #bfbfc8}.dm a:hover{background:#f7f7f7;text-decoration:none}#l{background:url(../images/logo-entry.png) no-repeat center 0;_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../../images/logo-entry.png",sizingMethod="crop")}#nv a,#nv a:visited{color:#333}#an a{color:#999}#ft{border-top:1px solid #ededed;color:#999;background-color:#fff}#ft a{color:#999}.nl{color:#ddd}#fm{position:relative;width:592px;margin:3px auto 0;z-index:5}.s-inpt-w,.s-btn-w{background:url(http://shared.ydstatic.com/r/2.0/p/pic.gif) no-repeat}.s-inpt-w{display:inline-block;width:504px;height:37px;background-position:0 -67px;vertical-align:top}#fm .s-inpt{border:0;outline:0;background:transparent;width:461px;font:16px arial;height:25px;height:24px\9;padding:8px 3px 3px 5px;padding:9px 5px 2px\9 3px;position:relative}.s-btn-w{cursor:pointer;display:inline-block;height:36px;width:88px}.s-btn-w:hover{background-position:-176px 0}.s-btn-w:active{background-position:-88px 0}.s-btn{cursor:pointer;height:34px;width:88px;font-size:14px;font-weight:bold;text-align:center;border:0;background:0;position:relative;z-index:1}html{overflow-y:auto}div,ul,ol,li,p,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}img{border:0}.clear:after{content:'.';display:block;visibility:hidden;height:0;line-height:0;font-size:0;clear:both}.clear{zoom:1}.sg-wrap{position:absolute;top:35px;left:0;z-index:9999;border:1px solid #bfbfc8;width:501px;background-color:#fff;font-size:12px}.sg-wrap .sg-result-list{font-size:14px;color:#000}.sg-wrap .sg-result-list .default_menu_s,.sg-wrap .sg-result-list .default_menu_z{background-color:#f4f4f4}.sg-wrap .sg-result-list .default_menu_z .havesg{background:url(../images/bg_activehavesg.gif) no-repeat}.sg-wrap .sg-result-list li.default_menu_z.default_menu_s{background-color:#f7f7f7}.sg-wrap .sg-result-list .sg-hightlight{color:#c60a00;text-decoration:underline}.sg-wrap .sg-result-list .havesg{position:absolute;right:8px;top:50%;margin:-5px 0 0;width:7px;height:11px;background:url(../images/bg_havesg.gif) no-repeat}.sg-wrap .sg-result-list .sg-from{display:block;color:#007b43;line-height:1.5;font-style:normal}.sg-wrap .sg-result-list li{position:relative;padding:8px 0 8px 8px;cursor:default;_zoom:1}.sob-wrap{width:248px;border-left:1px solid #ededed;position:relative;vertical-align:top;padding:0 0 29px 0}.sob-wrap .sgob-title{font-size:14px;font-weight:bold}.sob-wrap .sgob-title a{color:#000;text-decoration:none}.sob-wrap .sob-close{position:absolute;top:8px;right:8px;width:15px;height:15px;text-indent:-999em;overflow:hidden;background:url(../images/sg_close.gif) no-repeat;cursor:pointer}.sob-wrap .sob{margin:9px 0 0 15px}.sob-wrap .sob .sob-hd{font-weight:bold;font-size:14px;margin:0 0 10px 0}.sob-wrap .sob .sob-hd a{color:#000}.sob-wrap .sob-info{position:absolute;top:50%;margin:-10px 0 0 0;height:20px;width:248px;text-align:center;color:#808080}.sob-ext{position:absolute;bottom:0;line-height:29px;width:248px;background-color:#fbfbfb;text-align:right;font-family:"\5B8B\4F53"}.sob-ext .more-link{color:#808080;text-decoration:none;margin-right:18px}.sob-ext .more-link:hover{text-decoration:underline}body{padding:0;margin:0;font-family:Arial,sans-serif;color:#434343;line-height:24px}#ao{margin-top:30px;margin-bottom:1em}#productList{margin-bottom:80px;font-size:1.2em}#yd{background:transparent url(http://shared.ydstatic.com/r/${StaticVersion}/p/dict-logo.png?${StaticTimeStamp}) repeat scroll 0;_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src = "http://shared.ydstatic.com/r/${StaticVersion}/p/dict-logo.png?${StaticTimeStamp}",sizingMethod = "crop");height:135px;margin:0 auto;text-indent:-9999em;width:360px}#ts .q{width:265px}.hand-write{background:url(../images/pic.gif) no-repeat -356px 0;display:inline-block;padding-top:16px;height:0;width:16px;overflow:hidden;position:absolute;top:10px;left:476px;cursor:pointer}.hnw_btn_hover{background-position:-375px 0}.hnw_btn_on{background-position:-394px 0}#handWrite{width:348px;height:216px;border:1px solid #bfbfc8}.pm{display:none;position:absolute;z-index:1000;width:70px;border:1px solid #8cbbdd;background:white}#imgAd{width:960px;margin:0 auto;position:relative}#imgAd iframe{position:absolute;bottom:0}.sw{font-size:17px;border:1px solid #bfbfc8}.sw table{background:#fff;border-collapse:collapse}.remindtt75,.jstxlan{padding:3px}.remindtt752{padding:.2em;color:#808080;font-size:.95em}.jstxlan{color:#656565;font-size:12px;cursor:pointer}.jstxhuitiaoyou{background:#f5f5f5;padding:3px;display:none}.aa_highlight{color:#000;background:#f5f5f5} ================================================ FILE: cache/css/pad.css ================================================ .ua-ios #topImgAd,.ua-ios #ads,.ua-ios #hnwBtn,.ua-ios #imgAd{display:none}.ua-ios .results-content,.ua-ios .rel-search{margin-left:170px}.ua-ios .result_navigator{width:150px}.ua-ios .sub-catalog h3,.ua-ios .sub-catalog li{font:14px/30px normal}.ua-ios .sub-catalog li a{height:30px}.ua-ios .nav-collins .collins-icon{left:100px}.ua-ios .c-subtopbar,.ua-ios .c-header,.ua-ios #container{width:775px}.ua-ios .results-content{width:601px}.ua-ios .c-header>a:last-child{display:none} ================================================ FILE: cache/css/result-min.css ================================================  body{padding:0;margin:0;font-size:14px;font-family:Arial,sans-serif;color:#434343;line-height:24px}h1,h2,h3,h4,h5,p,ul,form,li,ol,div,dl,dt,dd{margin:0;padding:0}ul,ol,li{list-style:none}img{border:0}a:link,a:visited{color:#35a1d4;outline:0}a.viaInner,.gray a{text-decoration:none}b{font-weight:normal;color:#638c0b}.additional{color:#959595}.sp,.result_navigator .go-top,.add_to_wordbook,.remove_from_wordbook,.desk-dict,.phone-dict,.wordbook,.yd-school,.sina,.netease,.tencent,.renren,.kaixin,.trans-wrapper h3 .toggleOpen,.trans-wrapper h3 .toggle,.more_sp,.more-collapse .more_sp,.video .close,.trans-container div .do-detail,.wt-collapse div .do-detail,.nav-collins .collins-icon,.sub-catalog .split,#editwordform #close-editwordform,.example_see_also .icon{background:url(new-sprite.png) no-repeat;vertical-align:middle;overflow:hidden;display:inline-block}#topImgAd{height:60px}#container{width:960px;margin:10px auto 0;overflow:hidden;zoom:1}#results{margin-top:15px;float:left;position:relative}.results-content{margin-top:7px;width:550px;float:left;_display:inline;margin-left:140px}.ads{float:right;width:250px;margin-top:22px}.result_navigator{margin-right:20px;width:120px;margin-top:10px;position:absolute;text-align:center;left:0}html{_background-image:url(null)}.rel-search{clear:both;margin-left:140px}.rel-search a{margin-right:40px}.sub-catalog{margin-bottom:20px}.sub-catalog h3{text-align:center;font:12px/27px normal;color:#aaa;margin-bottom:6px}.sub-catalog .split{display:block;background-position:-238px -8px;height:10px;width:120px;margin:0 auto;font-size:0}.example-group .split{margin:3px auto 0}#result_navigator .example-group h3{font-size:13px;margin-left:-18px}.sub-catalog li{font:12px/27px normal}.sub-catalog li a{color:#a0a0a0;display:inline-block;text-decoration:none;width:120px;height:27px}.sub-catalog li a:link,.sub-catalog li a:visited{color:#a0a0a0}.sub-catalog li a:hover,.example-group h3 a:hover{font-weight:bold;color:#434343}.result_navigator .go-top{background-position:-29px 0;display:inline-block;padding-top:24px;height:0;width:25px}.result_navigator .go-top:hover{background-position:-59px 0}.result_navigator .back-to-dict{display:block;margin:15px 0 0 30px;font-size:12px;color:#c9c9c9;text-decoration:none;width:56px;height:19px;line-height:19px;border:2px solid #ddd}.result_navigator .back-to-dict:hover{border:2px solid #a9c7d7;color:#a9c7d7}.nav-collins{position:relative}.nav-collins .collins-icon{position:absolute;top:-5px;left:78px;background-position:0 0;width:24px;height:9px}.example-group li a{text-align:left}.example-group h3 a{color:#000;text-decoration:none}.example-group .catalog-selected a{font-weight:bold;color:#434343}.example-group li{margin-left:16px;padding-left:19px}.example-group .sub-catalog-selected{border-left:2px solid #63bfeb;font-weight:bold}.example-group .sub-catalog-selected a{position:relative;left:-2px;color:#434343}.dict-inter,.follow{border:1px solid #e5e5e5;background:#fafafa;margin-bottom:15px;font-size:12px}#baidu-adv{margin-bottom:15px}.dict-inter a{text-decoration:none}.dict-inter a:hover{text-decoration:underline}.dict-inter li{float:left;width:114px;height:30px;line-height:30px;text-align:left;overflow:hidden;zoom:1}.pr-link{height:68px;padding:8px 4px 0 8px}.pr-link li{padding:0 4px 5px 0}.pr-link li a{display:inline-block;width:114px;height:30px;color:#a0a0a0;vertical-align:top;cursor:pointer}.pr-link li a:hover,.follow .bd a{text-decoration:none;zoom:1}.text-link{padding:10px 13px 10px 15px;line-height:26px}.desk-dict,.phone-dict,.wordbook,.yd-school{padding-left:46px}.desk-dict{background-position:-379px 4px}.pr-link li a:hover .desk-dict{background-position:-380px -31px}.phone-dict{background-position:-380px -137px}.pr-link li a:hover .phone-dict{background-position:-380px -171px}.wordbook{background-position:-379px -68px}.pr-link li a:hover .wordbook{background-position:-379px -102px}.yd-school{background-position:-380px -205px}.pr-link li a:hover .yd-school{background-position:-381px -244px}.follow .hd{margin:15px 0 0 15px;color:#a0a0a0}.follow .bd{margin:10px -14px 15px 10px}.follow .bd a{display:inline-block;width:60px;text-align:center;margin:0 24px 5px 0;color:#a0a0a0;text-decoration:none;cursor:pointer}.sina,.netease,.tencent,.renren,.kaixin{padding-top:40px}.sina{background-position:-319px -283px}.follow a:hover .sina{background-position:-377px -283px}.netease{background-position:-210px -285px}.follow a:hover .netease{background-position:-260px -285px}.tencent{background-position:10px -212px}.follow a:hover .tencent{background-position:-41px -213px}.renren{background-position:-92px -283px}.follow a:hover .renren{background-position:-152px -283px}.kaixin{background-position:10px -283px}.follow a:hover .kaixin{background-position:-35px -283px}#phrsListTab{margin-top:0}#phrsListTab .phonetic{font-size:18px}#phrsListTab .trans-container{margin:0 0 1.1em 0;color:#000}#phrsListTab h2{font-size:24px;margin-bottom:12px}.keyword{margin-right:1px}#phrsListTab .trans-container li{font-weight:bold;color:#434343}.img-list{float:right}.img-list img{height:80px;padding:2px;border:1px solid #e5e5e5}.add-fav{display:inline-block;width:23px;height:19px;background-position:-168px -132px;outline:0}.add-fav:hover{background-position:-168px -149px}.add-faved{outline:0;background-position:-209px -132px}.add-faved:hover{background-position:-209px -149px}#phrsListTab h2 .dictvoice{outline:0;display:inline-block;width:16px;height:26px;background-position:-92px 4px;vertical-align:top;margin-left:.5em}#phrsListTab h2 .dictvoice:hover{background-position:-121px 4px}.dictvoice{vertical-align:middle;width:10px;height:21px;background-position:-33px -35px}.dictvoice:hover{background-position:-47px -35px}.humanvoice{vertical-align:top;width:18px;height:18px;background-position:-149px 2px}.humanvoice:hover{background-position:-179px 2px}.add_to_wordbook{vertical-align:top;background-position:-205px 5px;width:24px;padding-top:26px;height:0;margin-left:.5em;*margin-left:.75em}.add_to_wordbook:hover{background-position:0 -32px}.remove_from_wordbook{vertical-align:top;background-position:-70px -32px;width:22px;padding-top:26px;height:0;margin-left:.5em;*margin-left:.75em}.remove_from_wordbook:hover{background-position:-100px -32px}.pos{margin-right:.1em}.def{margin-left:.1em}.trans-wrapper{position:relative;zoom:1}.trans-wrapper h3{font-size:14px;position:relative;margin:0 0 .7em 0;height:26px;line-height:26px;border-bottom:2px solid #ddd}.trans-wrapper h3 .toggle{position:absolute;top:12px;right:0;cursor:pointer;width:11px;height:20px;background-position:-181px -37px}.trans-wrapper h3 .toggle:hover{background-position:-202px -37px}.trans-wrapper h3 .toggleOpen{background-position:-138px -37px}.trans-wrapper h3 .toggleOpen:hover{background-position:-160px -37px}.tabs a,.tab-current{font-weight:normal;text-decoration:none;display:inline-block;border-bottom:2px solid #fff;height:26px;_position:relative;_top:2px}.tabs a span{cursor:pointer}.tabs a.tab-current{cursor:default}.tabs a.tab-current span{cursor:default;color:#434343;font-weight:bold}.tabs a span,.tab-current span{display:inline-block;padding:0 20px;height:26px;border-bottom:2px solid #bfbfbf;margin-right:2px;_position:relative;_top:2px}.results-content .tabs a:hover span{border-bottom:2px solid #5fc4f3}.results-content .tab-current span{border-bottom:2px solid #5fc4f3;color:#434343;font-weight:bold}.trans-container{margin:.9em 0 1.8em}.trans-container p,.trans-container li{line-height:24px}.trans-container .ol{margin:8px 15px 0 20px;margin-left:33px\9}.trans-container .ul{margin:8px 15px 18px 0}.trans-container .ol li{list-style:decimal;margin:0 0 .7em 0}.trans-container .ul li{margin:0 0 1em 0}.ar{color:#a0a0a0;font-size:12px}p.via,span.via{color:#959595}p.via{font-size:12px}p.via a{color:#35a1d4;font-size:12px}p.additional a{color:#35a1d4;text-decoration:none}.s1{margin:0 3px}.trans-container h4 sup{font-size:.77em;font-weight:normal}#examples_sentences .allExplanation{float:right;margin:0 15px 0 0;text-decoration:none;background:#63bfeb;color:#fff;padding:0 5px}#examples_sentences .allExplanation:hover{background:#a4d5ec}.search_result{margin:.83em 0 1.25em}.search_result .sresult_content{margin:.45em 0}.search_result .sresult_link{color:#54903f;text-decoration:none}.phonetic,.field,.origin,.complexfont{font-weight:normal;color:#666;margin:0 .1em}h4 .field,h4 .origin,h4 .def,h4 .collapsed-def{margin-left:10px;font-size:12px}.phonetic{color:#a0a0a0;font-family:"lucida sans unicode",arial,sans-serif}.dif{color:#808080}.wordGroup .contentTitle{font-weight:bold;color:#35a1d4;margin-right:.5em}.wordGroup .contentTitle a{text-decoration:none}.wordGroup .century21{cursor:pointer;width:16px;display:inline-block;height:16px;background:url("new-sprite.png") no-repeat -110px -150px;text-decoration:none}.wordGroup a.century21:hover{background:url("new-sprite.png") no-repeat -110px -132px}.ol .sense-ex{margin:0;padding:0;list-style:none;color:#808080}.ol .sense-ex li{list-style:none;margin-bottom:0}.sense-ex .exam-sen{padding-left:2.5em}.sense-ex ul,.sense-ex ul li{margin:0;padding:0}#tWebTrans .wt-container p{margin:0 15px}#webPhrase{margin-top:10px}.wt-container .collapsed-def{display:none}.wt-collapse .collapsed-def{display:inline;font-weight:normal}.wt-collapse .collapse-content{display:none}.phrase-collapse .wt-more{display:none}.pr-container .title,.wt-container .title{font-weight:bold;position:relative}.wt-container .title span{zoom:1;vertical-align:middle}#tWebTrans .wt-container p{margin:.45em 15px}#results-content .wt-container div a{color:#2b2b2b;text-decoration:none}#results-content #collinsResult .wt-container div a{color:#35a1d4}.trans-container div .do-detail{background-position:-194px -74px;width:12px;height:12px;margin-right:5px}.trans-container div .do-detail:hover{background-position:-219px -74px}.wt-collapse div .do-detail{background-position:0 -74px}.wt-collapse div .do-detail:hover{background-position:-17px -74px}.wt-container a{outline:0}.more{height:18px;width:200px;line-height:18px;_line-height:23px;margin:15px 0;color:#35a1d4}.more_sp{background-position:-39px -74px;width:12px;height:12px;text-decoration:none}.more_sp:hover{background-position:-58px -74px}.more-collapse .more_sp{background-position:-76px -74px}.more-collapse .more_sp:hover{background-position:-96px -74px}.unfold{display:none}.more-collapse .collapse{display:none}.more-collapse .unfold{display:inline}.show_more{display:none}.more-collapse .show_more{display:inline}.show_less{display:inline}.more-collapse .show_less{display:none}.gram{display:block;font-style:normal;font-weight:normal;color:#808080}.related-lan{padding:1em 22px}.related-lan a{margin-left:.5em}.hh-collapse .hh-more{display:none}.more-hh{width:103px;padding-top:20px;margin:.7em 0 0;background-position:-309px -90px}.hh-collapse .more-hh{background-position:-206px -90px}.more-example{text-decoration:none;color:#35a1d4}.eBaike .trans-container{margin:.5em 0 1em}.eBaike .eBaike-index{overflow:hidden;zoom:1;padding-bottom:15px;border-bottom:1px dotted #ddd;line-height:24px}.eBaike-index .content{line-height:24px}.eBaike-detail .eBaike-index{border:0}.eBaike h2{font-size:12px;font-weight:normal;overflow:hidden;zoom:1}.eBaike h2 .subject{font-size:24px;float:left;margin:0 .5em 0 .3em;font-weight:bold}.eBaike .title{text-decoration:none;line-height:24px;font-weight:bold}.eBaike .img_r{float:right;margin-left:1em}.eBaike .img{background:#f7f7f7;border:1px solid #e1e1e1;color:#666;padding:3px;text-align:center}.eBaike .img strong{clear:both;display:block;font-size:12px;font-weight:normal;line-height:18px;overflow:hidden}.eBaike .see_more{text-decoration:none}.eBaike .ar{float:right}#bk .ar{float:none;text-align:right}#baike h2{font-size:1em;overflow:auto;zoom:1}#baike h2 .subject{font-size:1.13em;float:left}#baike h2 .via{float:right;color:#959595;font-weight:normal}#baike .via img{vertical-align:middle}#baike .description{line-height:1.5em;overflow:hidden;zoom:1}#baike .sub-title{float:left}#baike h3{background:0;font-size:1em;height:1.9em;line-height:1.9em;margin:.83em 0 .83em;position:relative;padding-left:5px;border-top:1px dotted #e0e0e0}#baike .trans-container .content{overflow:hidden;zoom:1;line-height:1.5em;margin:.25em 0}#baike .trans-container .content .term{font-weight:bold}#baike .trans-container a{text-decoration:none}#baike .img{background:#f7f7f7;border:1px solid #e1e1e1;color:#666;padding:3px;text-align:center}#baike .img_r{float:right;margin-left:1em}#baike .img strong{clear:both;display:block;font-size:1em;font-weight:normal;line-height:1.5em;overflow:hidden}#baike .img_l{float:right;margin-left:1em}#baike .table{border-spacing:0;border-collapse:collapse;empty-cells:show;background:#f7f7f7;border:1px solid #e1e1e1}#baike .table td{background:#fafafa;border:1px solid #DDD;padding:10px;vertical-align:top}#baike .suggests .suggest{border-top:1px dotted #e0e0e0;margin:10px 0;padding-top:10px;overflow:hidden;zoom:1}.example_content .content_title .boldWord{font-weight:bold}.example_content .content_title .boldWord a,.example_content .content_title .boldWord a:link,.example_content .content_title a:visited{text-decoration:none}.example_content .content_title .tabLink a:hover{color:#313131}.example_content .content_title .tabLink a.selected_link{cursor:default;color:#313131}.example_content .allExplanation{float:right;margin:2px 15px 0 0;width:85px;height:24px;text-decoration:none;font-weight:bold;background:url("new-sprite.png") no-repeat 0 -168px}.example_content a.allExplanation:hover{background-position:-85px -168px}.example_content .error-wrapper{margin:20px 10px 20px 0}.video{position:relative}.video .play{display:inline-block;position:relative}.video .close{width:14px;height:14px;background-position:-117px -72px;position:absolute;top:-1px;left:330px}.video .close:hover{background-position:-141px -72px}.video .playicon{cursor:pointer;position:absolute;width:30px;height:30px;top:50%;left:50%;margin-left:-15px;margin-top:-15px}.remind{margin:1.1em 0 2.85em}.remind a{text-decoration:none}.example_see_also{overflow:hidden;zoom:1}.example_see_also .info{float:left;width:185px;height:110px;margin:5px 10px 0 0;display:inline;background:#f5f5f5;cursor:pointer;text-decoration:none;padding:0 10px}a.info:hover{background:#78c8e3}.example_see_also div{line-height:24px;margin:10px 20px 10px 0}.example_see_also .info .description{color:#a0a0a0;font-size:12px;margin:0}.example_see_also .info:hover .description,.example_see_also .info:hover .title{color:#fff}.example_see_also .icon{display:inline-block;height:33px;width:46px;vertical-align:middle}.example_see_also .title{margin-left:10px;font-size:14px}.example_see_also .bilingual .icon{background-position:-46px -107px;width:50px}.example_see_also .originalSound .icon{background-position:6px -107px}.example_see_also .authority .icon{background-position:-96px -107px;width:50px}.bottom{position:absolute;bottom:0}.def a{text-decoration:none}.highLight{background:#e8e5cb}.dont_show_nav #example_navigator{display:none}.dont_show_nav #example_content{margin-left:15px}#tPowerTrans p.additional{margin:5px 0;text-indent:20px}#tEETrans p.additional{margin:5px 0;text-indent:14px}#tEETrans .ol p em,.gray{color:#a0a0a0}.wordTrans{display:inline-block;width:13px;height:13px;background-position:-183px -237px;cursor:pointer}.wordTrans a{color:#2779b6}.errorTip{height:18px;line-height:18px;font-weight:normal}#transDevotion form p{margin:8px 0;line-height:1.5em}#transDevotion form label{margin:0 .83em 0 0}#transDevotion form .center{margin:0 6px 0 0}.trans-container textarea.trans-content,.trans-container input.trans-message{vertical-align:middle;font-size:12px;font-weight:normal;width:220px}.trans-container textarea.trans-content{height:70px;resize:none}#transDevotion form .submitTip{margin-left:70px}#transDevotion .error-message{margin:0 0 -5px 72px;display:block}.trans-container .ensure,.trans-container a.ensure:hover{display:inline-block;width:61px;height:24px;cursor:pointer}.trans-container .ensure{background-position:-61px -237px}.trans-container .ensure:hover{background-position:0 -237px}.trans-container .ensure:active{background-position:-122px -237px}.trans-container .cancel,.trans-container .cancel:hover{display:inline-block;width:61px;height:24px;margin-left:30px;cursor:pointer}.trans-container .cancel{background-position:-61px -261px}.trans-container .cancel:hover{background-position:0 -261px}.trans-container .cancel:active{background-position:-122px -261px}.trans-container .alignCenter span{display:none}.collins .wordGroup{color:#35a1d4;margin-bottom:6px}.collins .wordGroup .contentTitle{color:#a0a0a0;font-weight:normal}.collins .more{float:right;margin:-23px 0;width:auto}.wt-container .trans-tip{font-weight:normal;color:#9d9d9d}.wt-container .trans-content{font-weight:normal}.wt-container .collins-intro{border:1px solid #cdcdcd;padding:6px 0 6px 5px;color:#959595}.trans-content ol{padding-left:23px}.trans-content .pattern,.trans-content .spell{font-weight:normal;margin-left:5px;font-size:12px}.collins-phonetic{font-family:"lucida sans unicode",arial,sans-serif}.trans-content .pattern{margin-left:15px}.trans-content .title,.trans-content .rank{font-size:14px;color:#313131;font-weight:bold}.trans-content .rank{margin-left:20px}.trans-content .trans{margin-left:10px;color:#313131}#collins .additional span{display:inline-block;margin-left:-1.83em}#collins .additional p{padding-left:1.83em}.usage{margin-left:15px}.p-type{text-decoration:none}.p-type:hover{color:#313131}.type-list{line-height:24px}.type-list .boldWord{margin-right:10px}.type-list ins{text-decoration:none;margin:0 10px;color:#959595;cursor:default}.type-list a:hover{color:#434343}.type-list .selected_link{color:#434343}#tPETrans .additional{font-size:12px}#tPETrans .additional a{text-decoration:underline}#tPETrans .type-list .selected_link{cursor:default;color:#313131}#tPETrans .all-trans{margin:16px 0}.all-trans .types .items{margin-bottom:16px;list-style:none}.all-trans .types .items a:link,.all-trans .types .items a:visited{font-size:12px;color:#959595;text-decoration:none}.all-trans .types .items a:hover{text-decoration:underline}.all-trans .items .title{font-weight:bold}.all-trans .types{display:none;margin:0}.all-trans .types .source{margin-top:6px}.all-trans .types .trans{margin-bottom:6px}.clearfix:after{content:".";display:block;height:0;visibility:hidden;clear:both}.clearfix{zoom:1}#results .middot{font-size:20px;_font-size:12px;font-weight:bold;vertical-align:middle;margin:0}#simple_dict_trans ul .small-lang{zoom:1}.ead_line div{zoom:1}.need-help{display:inline-block;margin-left:2px;margin-top:2px;background-position:-166px -72px;width:20px;height:16px}.wt-container div.title span,#webPhrase .more,#hhTrans .more-hh,#word_phrs .more,#collinsResult .pr-container .more{cursor:pointer}#examples_sentences,#examples_sentences .trans-container{margin-top:0}#examples_sentences .ol{margin-top:25px}.example-via a{color:#959595;text-decoration:none;font-size:12px}.error-typo{margin:0 0 15px 0;padding:9px 5px 14px;border:1px solid #e1deb6;background-color:#f9f8eb}.error-typo h4{margin:0 0 13px}.error-typo .typo-rel{margin:8px 0 0}.error-typo .typo-rel .title{font-weight:bold}.error-typo .typo-rel .title a{text-decoration:none}#relatedLan .trans-container a{text-decoration:none;margin-left:10px}.pm{display:none;position:absolute;z-index:1000;width:70px;border:1px solid #8cbbdd;background:white}.pm a{display:block;padding:4px 3px;text-decoration:none;zoom:1}#langSelection{width:77px;border:1px solid #bfbfc8}#langSelection a{padding:1px 3px 1px 7px;color:#000;font-size:12px}#langSelection a:hover{color:#000;background:#f5f5f5}#langSelection .current{color:#000;background:#f5f5f5}#handWrite{width:346px;height:216px;border:1px solid #bfbfc8}#editwordform{position:absolute;top:222px;left:50%;padding:0 2px 2px;z-index:3;font-size:12px;background:#5db3dd;display:none;margin-left:-340px}#editwordform h3{line-height:26px;color:#fff;font-weight:bold;font-size:14px;padding-left:3px;margin:0}#editwordform form{background:#fff;border:#74abc6 solid 1px;padding:8px}#editwordform #wordbook-word{width:150px;display:inline;vertical-align:middle}#editwordform #delword{margin-left:5px;vertical-align:middle;line-height:20px}#editwordform label{display:block;line-height:24px}#editwordform input{width:260px;display:block;height:18px}#editwordform select{width:150px}#editwordform #wordbook-desc{width:260px;height:50px;font-size:12px;display:block}#editwordform #addword,#editwordform #openwordbook{width:82px;height:30px;display:inline-block;color:#fff;line-height:30px;font-weight:bold;text-decoration:none}#editwordform #addword{background:#a7c36c;margin:10px 0 5px 0}#editwordform #openwordbook{background:#95cbe5;margin:10px 30px 5px 0}#editwordform #close-editwordform{position:absolute;background-position:-235px -32px;right:3px;top:4px;width:20px;height:20px;display:inline-block}#editwordform #close-editwordform:hover{background-position:-267px -32px}#editwordform #tag-select-list{width:262px;border:1px solid #ccc;display:none;position:absolute;background:#e3eff8;_left:10px;#left:10px;padding:0}#editwordform #tag-select-list li{display:block;width:100%}.error-note strong{word-wrap:break-word;word-break:break-all}#fanyiToggle .additional{font-size:12px}#research,#research21{position:absolute;top:6px;right:35px;text-decoration:none;padding-left:18px;background:url(research.png) 3px 3px no-repeat;height:18px;line-height:18px;font-size:12px}#researchZoon,#researchZoon21{width:250px;height:261px;border:2px solid #5db3dd}#researchZoon .title,#researchZoon21 .title{height:26px;line-height:26px;background-color:#5db3dd;color:#fff;font-weight:bold;padding-left:3px}#researchZoon .zoo-content,#researchZoon21 .zoo-content{font-size:12px;padding:12px 0 0 7px}#researchZoon a,#researchZoon21 a{padding:0;margin:0}#researchZoon .zoo-content p,#researchZoon21 .zoo-content p{margin:0 0 12px 12px;height:18px;line-height:18px}#researchZoon .zoo-content p input,#researchZoon21 .zoo-content p input{margin-right:6px}#researchZoon .submitResult,#researchZoon21 .submitResult{margin:14px auto 0 auto;width:82px;height:30px;line-height:30px;text-align:center;color:#fff;font-weight:bold;background-color:#a7c36c;display:block}#researchZoon label,#researchZoon21 label{cursor:pointer}#researchZoon a,#researchZoon21 a{display:inline}.c-topbar{height:27px;line-height:27px;color:#333;font-size:12px}.c-subtopbar{width:960px;margin:0 auto;position:relative;zoom:1;z-index:3}.c-topbar a{color:#333!important;text-decoration:none}.c-snav{float:left;color:#ddd}.c-snav a,.c-snav b{width:36px;text-align:center;display:inline-block}.c-snav a:hover,.c-snav b{text-decoration:none;border-top:1px solid #d22e45}.c-snav b{color:#000;font-weight:bold}.c-snav .nav-more{*+line-height:25px}.c-snav .ne163:hover{border:0;text-decoration:underline}.c-sust{float:right;margin:0 10px 0 0;display:inline;position:relative}.c-sust a:hover{text-decoration:underline}.c-sust .c-sp{margin:0 10px;color:#ddd}.c-sust .ac{position:relative;z-index:99}.c-sust .ac .ai{font-size:9px}.c-sust .dm{position:absolute;left:0;top:21px;width:138px;text-align:left;line-height:26px;background-color:#fff;border:1px solid #bfbfc8}.c-sust .dm a{display:block;padding:0 0 0 8px}#uname{font-weight:bold;color:#626262;cursor:pointer;position:relative;padding:0 5px 0 5px}#uname u{height:21px;vertical-align:top}#unameop{border:1px solid #dcdddd;font-size:13px;background-color:#fff;position:absolute;top:27px;left:56px}#unameop a{color:#2a2a2a;display:block;line-height:24px;margin:0;padding:2px 0 0 9px;text-decoration:none;float:none;font-weight:normal}#unameop a:hover{background:#f5f5f5;color:#000;text-decoration:none}.c-header{position:relative;clear:both;height:64px;width:960px;margin:0 auto}.c-logo{display:inline-block;overflow:hidden;width:147px;height:0;padding-top:37px;vertical-align:top;background:url(../images/logo-result.png) no-repeat;margin:14px 19px 0 0;float:left;_display:inline}.s-inpt-w,.s-btn-w{background:url(../images/pic.gif) no-repeat}.c-fm-w{position:relative;display:inline-block;margin:14px 0 0 0;z-index:2}.s-inpt-w{display:inline-block;width:520px;height:37px;background-position:0 -67px;vertical-align:top}.s-inpt{border:0;background:transparent;width:400px;width:397px\9;overflow:hidden;font:17px arial;margin:0 37px 0 84px;padding:7px 0 0 1px;padding:8px 0 0 4px\9;height:29px;height:27px\9;_margin-right:0;vertical-align:top;outline:0}#bs .s-inpt{width:515px;margin:0;padding-left:5px}.s-btn-w{display:inline-block;height:37px;width:88px}.s-btn-w:hover{background-position:-176px 0}.s-btn-w:active{background-position:-88px 0}.s-btn{cursor:pointer;height:34px;width:88px;font-size:14px;font-weight:bold;text-align:center;border:0;background:0}.c-fm-ext{font-size:12px;padding:0 0 0 10px}.c-fm-ext a{font-size:12px;color:#999;text-decoration:none}.c-fm-ext a:hover{text-decoration:underline}.header-pic-tg{position:absolute;right:2px;top:0;z-index:0}.header-pic-tg img{border:1px solid #fff;font-size:0}.c-header-ext .header-pic-tg{right:0}.c-header-ext .header-pic-tg img{border:0}.c-bsearch{background-color:#f6f6f6;margin:35px 0 0;padding:19px 0 0 0;height:81px;color:#999}.c-bsearch-box,.c-bsearch .fblinks{width:794px;margin:0 auto;position:relative;padding-left:166px}.c-bsearch .c-fm-w{margin:0}.c-bsearch a{color:#999;text-decoration:none;font-size:12px}.c-bsearch .fblinks{margin:11px auto 0 auto}.c-bsearch .fblinks a{color:#666}.c-bsearch .fblinks a:hover{text-decoration:underline}#c_footer{margin:30px 0;font-size:12px;text-align:center;color:#999}#c_footer a{color:#999;text-decoration:none}#c_footer a:hover{text-decoration:underline}#c_footer .c_fnl{color:#ddd;margin:0 10px}#c_footer .c_fcopyright{margin:10px 0 0}.langSelector{position:absolute;top:7px;_top:12px;left:10px;font-size:12px;cursor:pointer;color:#656565}.aca{background:url(../images/pic.gif) no-repeat -313px 0;display:inline-block;padding-top:14px;height:0;width:14px;overflow:hidden;vertical-align:middle;margin-left:5px;cursor:pointer}.aca_btn_on{background-position:-341px 0}.aca_btn_hover{background-position:-327px 0}.hand-write{background:url(../images/pic.gif) no-repeat -356px 0;display:inline-block;padding-top:16px;height:0;width:16px;overflow:hidden;position:absolute;top:10px;left:494px;cursor:pointer}.hnw_btn_hover{background-position:-375px 0}.hnw_btn_on{background-position:-394px 0}.sw{font-size:1em;border:1px solid #bfbfc8}.sw table{background:#fff;border-collapse:collapse}.remindtt75,.jstxlan{padding:3px}.remindtt752{padding:.2em;color:#808080;font-size:.95em}.jstxlan{color:#656565;font-size:12px;cursor:pointer}.jstxhuitiaoyou{background:#f5f5f5;font-size:0;display:none}.aa_highlight{color:#000;background:#f5f5f5}#custheme{background:url(skin.png) no-repeat;height:93px;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1} ================================================ FILE: cache/css/style_result.css ================================================ @charset "utf-8"; /* CSS Document */ body,div,ul,li,h1,h2,h3,h4,h5,h6,p,form,input,label,table,thead,tbody,th,tr,td,dl,dt,dd{margin:0;padding:0;}input,button,textarea,select{font-family:Arial;font-size:inherit;font-style:inherit;font-weight:inherit;}input{vertical-align:middle;}body{font-family:Arial;font-size:14px;background:#fff;color:#666;} ul,li{list-style:none;}a{color:#666; text-decoration:none;}img{border:0;} a:hover,#footer .hp_footer a:hover,a.text_black:hover{color:#4372b6;text-decoration:underline;} .addbox{width:310px;height:167px;font-size:14px;display:none;z-index:99999;background:url(../images/bg_add.png) repeat;_background:none #ccc;padding:10px;position:absolute;top:10px;left:20px}.addWordContent{background:url(../images/t_body.png) repeat-x 0 bottom #fff;width:310px;height:167px}.addbox .cH{background:url(../images/t_bg.png) repeat-x;height:29px;line-height:29px;text-align:left;padding:0 11px;font-size:12px;color:#4372b6}.addbox .cF INPUT{padding:3px;font-size:14px;float:right}.addbox .cH .close{float:right;margin-top:9px;cursor:pointer}.addbox .CB div{color:#333;font-family:Arial,Helvetica,sans-serif,SimSun}.addbox .CB div a:link,.addbox .CB div a:visited{color:#4372b6;font-weight:bold}.addbox .CB div a:hover{color:#0067ce}.addbox .cF{height:25px;padding-top:3px}.addbox .cF a:link,.addbox .cF a:visited{width:86px;height:23px;display:block;float:right;line-height:23px;text-align:center;background:url(../images/t_bg.png) repeat-x 0 -30px;cursor:pointer;border:#c5d3dd 1px solid;color:#4372b6;text-decoration:none;font-size:12px;margin-right:10px}.addbox .cF a:hover{background:url(../images/t_bg.png) repeat-x 0 -54px} .bg_main{background:url(../images/bg_layout.jpg) repeat-x 0 29px #fff;} #login,.usually,.prons,#side_bar,.tab_list,.group_inf{font-size:12px;} #login{background-color:#F0F5FE;height:32px;line-height:32px;border-bottom:#E9EFF3 1px solid;padding:0 16px;overflow:hidden;} .fl,.nav_list li,.left_bg,.input_style,.search,.search_hover,.usually label,.usually span,.title,.tab_list li,.group_inf li,.eg,.us{float:left;} .register,.search_main,.right_bg,.up,.down{float:right} .register{padding-left:25px;} a.text_black,.nav_list strong{color:#333;} #layout{width:960px;margin:0 auto;} #header{padding:24px 0 7px;display:inline-block;width:960px;background:url(../images/logo_cd.gif) no-repeat 0 18px;} .handwrite,.handwrite_over,.drop_down,.drop_down:hover,.ico_sound,.new_word a,.ico,.part_main h3.close a,.part_main h3.open a,.up,.down,.ico_close,.ct_example li,.to_top,.to_top:hover,.suggest li,a.example,a.example_up,a.info,.online_fb,.online_cl{background-image:url(../images/img_page2.gif);background-repeat:no-repeat;} .logo{width:142px;height:64px;float:left;padding-top:1px;} .logo a{width:142px;height:64px;float:left;} .search_main{width:786px;} .nav_list{display:inline-block;padding-left:6px;} .nav_list li{padding-right:18px;} #main_box a{text-decoration:underline;color:#236fd4;} #main_box a:hover,.feedback a:hover{color:#0093FF;} .group_inf{padding-top:7px;display:inline-block;width:720px;} .group_inf li{white-space:nowrap;} .word_other{line-height:220%;font-size:12px;} .search_box{height:49px;margin-top:7px;background:url(../images/bg_more2.png) repeat-x;position:relative;z-index:3000;} #pull_down{position:absolute;left:10px;top:38px;width:655px;border:#c6c6c6 1px solid;background-color:#fff;line-height:170%;color:#333;z-index:1000;visibility:hidden} #pull_down ul{margin-top:0} #pull_down li{border:0;padding:0 5px} #pull_down .text_blue{color:#0766dc;font-weight:bold} #pull_down li.bg_blue{background-color:#4372b6;color:#fff} #pull_down p{background-color:#f0f0f0;height:22px;line-height:22px;text-align:right;padding-right:5px;font-size:12px;} #pull_down p a{color:#346699;} .left_bg,.right_bg,.search,.button_expan a,.button_expan a:hover{background-image:url(../images/bg_more2.png);background-repeat:no-repeat;} .left_bg,.right_bg{width:5px;height:49px;} .left_bg{background-position:0 -51px;} .right_bg{background-position:-6px -51px;} .input_style{width:585px;height:23px;border:0;line-height:25px;margin:9px 0 0 5px;padding:3px 10px 3px 8px;font-size:18px;} .handwrite,.handwrite_over,.drop_down{width:16px;height:16px;cursor: pointer;position:absolute;} .handwrite{background-position:0 -70px;top:14px;right:130px;} .handwrite_over{background-position:-18px -70px;top:14px;right:130px;} .drop_down{background-position:-36px -70px;top:15px;right:150px;} .drop_down:hover{background-position:-54px -70px} #main_box{width:755px;float:left;} #dict_main{padding:0 8px 18px;border:#D9E2E9 1px solid;} .search{background-position:-13px -51px;border:0;cursor:pointer;width:108px;height:31px;margin:8px 6px 0 0;padding:0; float:right;} .search_hover{background-position:-370px -51px;} #center{padding-top:11px;width:960px;display:inline-block;overflow:hidden;} .dictbar{width:729px;display:inline-block;padding:15px 0 20px 8px;position:relative;} .usually{float:right;width:137px;line-height:16px;padding-top:10px;} .usually .tips_content{padding:3px 9px 4px 11px;} .star{background-position:left top;background-repeat:repeat-x;position:relative;} .star_current{background-position:left center;background-repeat:repeat-x;left:0;top:0;position:absolute;} .title{line-height:32px;padding-right:17px;position:relative;} .prons{white-space:nowrap;word-break:break-all;font-weight:normal;float:left; padding-top:7px;} .dict_title{width:580px;font-size:28px;color:#333;font-family:arial,sans-serif;} .dict_title h1{font-size:28px;} .ico_sound{background-position:-74px -73px;display:inline-block;height:15px;margin:2px 0 -4px 4px;overflow:hidden;width:15px; } .ico_sound:hover{background-position:-98px -73px} .eg,.us,.group_pos strong,.group_inf li{padding-right:10px;} .eg,.us{font-family:"lucida sans unicode",arial;padding-top:2px;} .new_word{padding-top:2px;float:left;} .new_word a{padding:2px 10px 0 20px;height:17px;display:block;background-position:-125px -69px;font-family:"宋体"} .tab_list,.tab_list li,.tab_list li:hover,.tab_list li a,.tab_list li a:hover{background-image:url(../images/bg_more2.png);background-repeat:repeat-x;} .tab_list{background-position: 0 -164px;height:29px;padding:0 0 10px 8px;} .tab_list h2,.tab_list h3{font-size:12px;font-weight:normal;} .tab_list li{line-height:29px;border-right:#D9E2E9 1px solid;border-left:#D9E2E9 1px solid;margin-right:-1px;z-index:200;} #main_box .like{float:left;line-height:29px;padding-left:19px;} #main_box .like a{color:#0caa35;text-decoration:none;} #main_box .like a:hover{color:#0caa35;text-decoration:underline;} #main_box .tab_list li a{padding:0 16px;background-position:0 -102px;display:block;cursor:pointer;color:#666} #main_box .tab_list li a:hover{background-position: 0 -133px;color:#4372b6;} #main_box .tab_list li.current,#main_box .tab_list li.current a{background-position:0 -161px;color:#000;} #main_box .tab_list li.current a:hover{background:none;} #main_box .tab_list li.text_red a{padding:0 18px 0 21px;_width:158px;} #main_box .tab_list li.text_red a:hover{color:#4372B6;} .up,.down{width:18px;height:16px;margin:11px 1px 0 0;} .up{background-position:-33px -86px;} .down{background-position:-33px -102px;} #main_box .usually,#main_box .prons{color:#999;} .group_prons .second{float:none;height:24px;} .dict_content{padding:0 0 0 10px;} #center #bdshare{float:right;padding-top:5px;} .group_pos{color:#000;line-height:22px; clear:both;overflow:hidden;} .group_pos p{width:725px;clear:both;} .label_list{float:left;width:635px;} .cn .group_pos,#main_box .group_pos strong{color:#333;} .group_pos strong{float:left;} .group_prons{clear:both;padding-top:10px;} .margin_top{padding-top:6px;} .collins{margin-top:18px;} .ico{position:absolute;width:32px;height:32px;background-position:0 -94px;top:-14px;left:-11px;} #main_box .tab_list li.#main_box .tab_list li.text_red a{color:#666;} .part_list,.part_list a,.part_main h3,.part_main h3 a{color:#4372b6;font-weight:bold;font-size:14px;} .part_main h3{padding:15px 0 7px 0;} .part_main h3.close a{background-position:-125px -101px;padding-left:15px;display:block;} .cn_main h3.close a{background-position:-128px -230px;padding-left:22px;} .part_main h3.open a{background-position:-127px -130px;padding-left:15px;display:block;} .cn_main h3.open a{background-position:-128px -267px;padding-left:22px;} .part_main h3 a:hover,a.text_blue,.text_blue,.feedback a,.collins_en_cn b,.vEn_tip b{color:#236fd4;} .part_list{background-color:#F1F4FC;line-height:24px;padding:7px 12px;} .tab_content{display:none;} .collins_en_cn{line-height:20px;} .caption{background-color:#F5F7FC;color:#333;font-size:14px;font-weight:normal;padding:9px 9px 9px 32px;text-indent:-15px;margin-bottom:11px;position:relative;} .caption .text_blue{padding-right:8px;} .collins_en_cn ul{color:#666;padding:0 45px 1px 47px;} .collins_en_cn ul.vli{padding:10px 0 0;} .vli li{line-height:20px;color:#8b8b8b} .collins_en_cn li,.vExplain_r li{background:url(../images/img_page2.gif) no-repeat -139px -305px;padding-bottom:11px;clear:both;padding-left:10px;} .caption .st{font-size:12px;font-weight:bold;color:#666;padding-right:9px;z-index:700} .tab_list li.text_red,.caption .st{position:relative;} .tab_list li.text_red{z-index:2000;} .caption .num{text-indent:-15px;font-weight:bold;color:#666;} .tips_box{position:relative;display:inline-block;background-color:#F4F4F4;padding-left:10px; z-index:600} .tips_main{position:absolute;top:19px;left:-12px;font-weight:normal;display:none; z-index:500;} .caption .st .tips_main{position:absolute;*top:29px;left:-1px;*left:14px;} a.example,a.info,a.example_up{display:inline-block;overflow:hidden;padding-left:10px;vertical-align:middle;height:15px; } a.example{background-position:10px -162px;width:67px; } a.example:hover{background-position:10px -194px;} a.info{background-position:-69px -162px;width:57px; } a.info:hover{background-position:-69px -178px;} a.example_up{background-position:10px -178px;width:67px; } a.example_up:hover{background-position:10px -210px;} .title .tips_main{line-height:80%;font-weight:normal;left:15px;top:30px;} .tips_content{position:absolute;font-size:12px;color:#BF901F;border:#E3DFAF 1px solid;padding:2px 9px 1px 26px;background-color:#FEFFE5;margin-top:3px;white-space:nowrap;} .title .tips_content{padding:0 9px 1px 12px;} .bg_tips{position:absolute;width:55px;height:4px;background:url(../images/bg_tips.gif) no-repeat;z-index:200;} .caption .st .bg_tips{background:url(../images/bg_tips_cx.gif) no-repeat;} .usually .tips_main{top:28px;left:0;} .usually_tip{position:absolute;left:615px;top:43px;} .usually_tip .tips_content{padding:4px 9px 4px 11px} .tab_list li.text_red .tips_content{left:13px;width:418px; white-space:normal;padding:3px 9px 1px 12px;line-height:20px;top:8px;} .tab_list li.text_red .bg_tips{top:8px;left:13px;} .about{font-size:12px;color:#666;padding:9px 9px 9px 22px;text-indent:0;overflow:hidden;zoom:1;} .about dt{width:63px;float:left;padding-top:1px;} .about dd{width:640px;float:left;} .about a,.bold_blue a{font-size:14px;font-weight:bold;} .bold_blue{font-weight:bold;color:#236fd4;} .collins_en_cn .en_tip,.vEn_tip{background-color:#F9F9DC;border:#CBD7E0 1px solid;line-height:24px;padding:5px 9px 10px 15px;margin:10px 0;color:#333;} .collins_en_cn .en_tip .p_pl,.vEn_tip .p_pl{padding-left:17px;} .collins_en_cn .bg_doc,.vBg_doc{background:url(../images/doc.gif) no-repeat 10px -230px #F9F9DC;padding-left:25px;} .collins_en_cn li.explain_s,.collins_en_cn li.explain_c,.collins_en_cn li.explain_r,.vExplain_s{background-image:url(../images/doc.gif);background-repeat:no-repeat;color:#333;line-height:24px;background-color:#F9F9DC;padding:5px 25px 0 29px;border:#CBD7E0 1px solid;margin-bottom:10px;width:589px;text-indent:0;} .vExplain_s{width:auto;padding-left:40px;background:url(../images/bg_ok.gif) no-repeat 17px 11px #F9F9DC;} .collins_en_cn li.explain_s{background:url(../images/bg_ok.gif) no-repeat 10px 11px #F9F9DC;} .collins_en_cn li.explain_c{background-position:10px -72px;} .collins_en_cn li.explain_r,.vExplain_r{background:#F9F9DC url(../images/vdoc.gif) no-repeat 10px 0;} .vExplain_r{padding:5px 25px 5px 29px;border:#CBD7E0 1px solid;background-position:14px 2px;margin-bottom:10px;color:#333;line-height:24px;} .vExplain_r .caption{background:none;padding:5px 9px 0 15px;margin-bottom:5px;} .vExplain_r ul{padding:0 45px 1px 15px;line-height:20px;} .vExplain_r li{padding-bottom:5px;} .collins_en_cn img{ vertical-align:middle;} .text_gray{color:#666;} .annotation{color:#8B8B8B;} .question{padding:7px 17px;border:#E2E2C2 1px solid;color:#000;background-color:#F9F9DC;border-bottom:0;font-size:16px;} .history{width:730px;padding:9px 6px 6px 17px;border:#D9E2E9 1px solid;color:#010101;background-color:#F5F7FC;border-bottom:0;font-size:14px; line-height:145%;overflow:hidden;display:inline-block;} .history h4{font-weight:normal;} .history dt{width:82px;float:left;padding-top:1px;} .history dd{width:643px;float:left;max-height:42px;overflow:hidden;} .history a{padding-right:6px;} #main_box .history a{text-decoration:none;} #main_box .history a:hover{text-decoration:underline;} .unfound_tips{padding:10px 6px 10px;position:relative;background:url(../images/ico_tip.png) 20px 18px no-repeat #F9F9DC;padding-left:42px;} .ico_close{float:right;width:15px;height:11px;background-position:-51px -91px;overflow:hidden;margin:2px 0 0;} .unfound_tips .ico_close{position:absolute;right:2px;top:3px;} .hidden{display:none;} .button_expan{padding:10px 0 0 9px;} .cn_main .button_expan{padding:10px 0 0 19px;} .button_expan a{width:112px;height:30px;background-position:-130px -51px;display:block;} .button_expan a:hover{background-position:0 -205px;} .button_expan a.button_close{background-position:-250px -51px;} .button_expan a.button_close:hover{background-position:-120px -205px;} .word_group .button_expan a{width:88px;background-position:0 -237px;} .word_group .button_expan a:hover{background-position:-96px -237px;} .word_group .button_expan a.button_close{background-position:-240px -205px;} .word_group .button_expan a.button_close:hover{background-position:-334px -205px;} .word_group h5{font-size:14px;color:#333;font-weight:normal;} .word_group .def_list h4{color:#236fd4;} .word_group .def_list{padding:0 0 0 9px} .word_group .ct_example li{background:none;} .word_group .ct_example li{padding-left:20px;} .word_group .see_more,.word_group .up_more{padding-left:9px;} .cn .def_list{padding:10px 0 0 9px} .cn .ct_example p{padding:0 0 14px 15px;color:#333;line-height:100%} .cn h5{line-height:100%; padding:2px 0 6px;} #main_box .synon a,#main_box .cn_synon_box a{padding-right:6px} .see_more,.up_more{padding-top:10px;} .see_more_en{padding-top:15px;font-size:12px;} #main_box .see_more a,#main_box .up_more a{font-size:12px;text-decoration:none; padding-left:12px;} #main_box .see_more a{background:url(../images/bg_more.gif) no-repeat 0 4px; *background:url(../images/bg_more.gif) no-repeat 0 2px;} #main_box .up_more a{background:url(../images/bg_more.gif) no-repeat 0 -13px; *background:url(../images/bg_more.gif) no-repeat 0 -15px;} .def_list{padding:0 0 9px 9px;} .cn_main .def_list{padding:0 0 0 19px;} .def_list dt{color:#333;font-weight:bold;padding:17px 0 2px;} .def_list h4{background:url(../images/bg_up.gif) no-repeat 0 5px;padding-left:37px;text-indent:-17px;line-height:24px;font-size:14px;font-weight:normal;color:#333;cursor:pointer;} .def_list h4.bg_down{background:url(../images/bg_down.gif) no-repeat 0 5px;} .def_list h4 a{text-decoration:none!important;} .def_list h4 a:hover{text-decoration:underline!important;} .def_list h4.ico_not,.ct_example li.bg_not{background:none;} .ct_example{padding-left:20px;color:#666;line-height:30px;display:none;} .tab_content .ct_example{padding-left:36px;} .ct_example li{color:#666;line-height:20px;background:url(../images/img_page2.gif) no-repeat -138px -304px;padding-left:13px;} .ct_example .syn_snt{padding:5px 0;} .ct_example .syn_snt li{padding-left:0;background:none;} .def_list dd{padding:3px 0 5px;} .industry{display:inline-block;} /*.tongyi .industry{padding-bottom:14px;}*/ .tongyi .see_more_en{padding:0;} .tongyi{color:#333;} .tongyi dl{line-height:22px;padding:6px 0;} .tongyi .tf_eng dl{line-height:} .tongyi dd{padding-left:15px;} .tongyi dd a{padding-right:4px;} .tongyi dl.other{padding:14px 0 6px} .tongyi dl.other dd{padding:0;} .tongyi .industry h4{padding:1px 0 5px 0} .tongyi .pos_box{padding:6px 0 0 0;width:36px;} .industry_box{padding-top:8px;} .industry h4{font-size:14px;clear:both;padding:0 0 8px 9px;color:#333;} .pos_box{float:left;padding-left:21px;line-height:1.5em;clear:both;font-weight:bold;} .tab_content .pos_box{width:31px;} .cn_synon_box h4{padding:0 0 9px;} .cn_synon_box .pos_box{padding-left:0;color:#333;font-weight:bold;} .industry ul{padding:0 0 14px 5px;display:inline-block;width:660px;float:left;color:#333;} .industry ul.padding_left{padding-left:57px;} .industry ul.cn_synon{padding:0 0 0 5px;} .industry li{line-height:1.5em;padding-left:20px;text-indent:-15px;} .more_data{padding:0 0 0 10px} .more_data .industry ul{width:100%;padding:0 0 25px;} .more_data .industry li{text-indent:0; line-height:22px;} .pic_desc{text-align:center;} .synon{color:#333;line-height:28px;} .suggest{color:#333;padding:18px 0 0 35px;} .suggest ul{line-height:155%;padding:7px 0 4px;} .suggest li{background-position:-134px -304px;padding-left:14px;} .suggest p{line-height:250%;} .suggest .pr a{padding-right:3px;} #side_bar{width:189px;overflow:hidden;height:auto;float:right;}#ad_right_box{border:1px solid #d9e2e9;background-color:#fafafa;padding:1px;float:right;margin-top:0;width:185px}#ad_right_box .hide{display:none}#dict_right5{border:1px solid #d9e2e9;float:right;width:187px;margin-top:16px;}.tab_tt{background-position:0 0;height:22px;overflow:hidden;padding:6px 7px 0 0;text-align:right;position:relative}/*.tab_tt,.tab_tt li.ad_tab_hover{background-image:url("http://static.www.iciba.com/ad/02/13244550791.png");background-repeat:no-repeat}*/.tab_tt{background:#f5f7fc;border-bottom:1px solid #d9e2e9}.tab_tt li.ad_tab_hover{background-position:-198px -4px}.tab_tt li{float:right;height:22px;line-height:22px;text-align:center;width:39px}.tab_tt span{color:#689bce;float:left;font-weight:bold;margin-top:3px;position:absolute;left:0;top:3px;width:60px}.tab_tt a:link,.tab_tt a:visited,.tab_tt a:active{color:#689bce;}.tab_tt li.ad_tab_hover a:link,.tab_tt li.ad_tab_hover a:visited,.day_eng h5 a:link,.day_eng h5 a:visited,.ad_list a:link,.ad_list a:visited{color:#4372b6}.tab_main{height:88px;overflow:hidden;padding:8px 0 0 6px;width:181px}.tab_main dl{color:#666;float:left;font-weight:bold;width:66px}.tab_main img,.tab_main dt{border:0 none;height:60px;overflow:hidden;width:60px}.tab_main dd{height:15px;overflow:hidden;padding-top:6px}.tab_main p{height:15px;overflow:hidden;padding-bottom:7px}.day_eng{padding:6px 0 7px 6px}.day_eng h5{height:17px;overflow:hidden;text-align:left;width:172px}.tab_main a:link,.tab_main a:visited{color:#666;}.tab_main a:hover{color:#0067ce;text-decoration:underline}.day_eng h5 a:link,.day_eng h5 a:visited{font-size:12px;line-height:17px;padding:10px 0 2px;}.day_eng li{clear:both;float:left;height:23px;overflow:hidden;padding-bottom:7px;text-align:left;width:180px}.day_eng input{border:1px solid #9bc0dd;height:17px;line-height:17px;padding:2px;vertical-align:middle;width:99px}.day_eng img{vertical-align:middle}.ad_list{color:#333;padding:8px 5px 2px;width:177px;border:1px solid #d9e2e9;float:right;margin-top:16px}.ad_list dl{padding-bottom:13px}.ad_list dt,.ad_list dd{line-height:20px} #main_box .part_list a,#main_box .tab_list li a,#main_box .new_word a,#main_box .part_main h3 a{text-decoration:none;} /* 今日新词 */ .words{padding:0;width:100%;border:0;} .word_nav,.word_nav2{height:30px;border-left:#D9E2E9 1px solid;} .word_nav li,.word_nav2 li{float:left;line-height:32px;text-align:center;color:#4372B6;width:94px;height:32px;background:url(../images/bg_tab.png) no-repeat 0 -34px;} .word_nav li.current,.word_nav2 li.current{background:url(../images/bg_tab.png) no-repeat;} .word_nav li a:link,.word_nav li a:visited,.word_nav2 li a:link,.word_nav2 li a:visited{color:#333;} .word_nav li a:hover,.word_nav2 li a:hover{text-decoration:none;} .word_nav li.current a:link,.word_nav li.current a:visited,.word_nav2 li.current a:link,.word_nav2 li.current a:visited{color:#4372B6;font-weight:bold;display:block;} .words_main,.words_main2{border:#D9E2E9 1px solid;border-top:none;padding:6px 0;font-size:14px;} .words_main{height:131px;} .words_main ul{overflow:hidden;padding-right:6px;} .words_main li{width:82px; height:22px; float:left;overflow:hidden;padding-left:8px;line-height:22px;} .word_next{text-align:right;font-size:12px;padding:6px 10px 0 0;height:15px; clear:both} .search_bottom{margin-top:12px;} .search_bottom .search_box{width:960px;background:url(../images/bg_more2.png) no-repeat 0 bottom;} .search_bottom .search{float:left; margin:8px 6px 0 1px;} .search_bottom .input_style{width:731px;padding-right:3px;} .search_bottom .handwrite{right:218px;} .search_bottom .drop_down{right:238px;} .feedback{line-height:47px;padding-left:28px;font-size:12px;} /*.to_top{width:16px;height:79px;background-position:-3px -228px;display:block;position:fixed;margin-left: 276px;left: 50%;bottom:80px;_position:absolute;_bottom:auto;_margin-bottom:80px;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); z-index:4000}*/ #feed_back{width:115px;background:url(../images/logo_fb.gif) no-repeat 17px 25px #fff;bottom: 10px;padding: 70px 0 11px;position: fixed;right: 10px;text-align: center;_position:absolute;_bottom:auto;_margin-bottom:10px;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); z-index:4000} #feed_back p{padding:6px 0 8px;} #feed_back a{color:#236fd4;font-weight:bold;text-decoration:underline;} #feed_back p.pb{padding-top:6px;} .btn_close{background:url(../images/ico_close.gif) no-repeat center center;display:block;height:18px;position:absolute;right:1px;top:0;width:18px;} .to_top{width:41px;height:29px;background-position:0 -131px;display:block;position:fixed;margin-left: 225px;left: 50%;bottom:1%;_position:absolute;_bottom:auto;_margin-bottom:1%;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); z-index:4000} .to_top:hover{background-position:-44px -131px;} #footer{padding-top:10px;} .online_fb{width:22px;height:100px;background-position:-69px -195px;display: block;position:fixed;right: 1px;top:178px;_position:absolute;_bottom:auto;_margin-bottom:326px;_right:1px;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); z-index:4000} .online_cl{width:22px;height:120px;background-position:-93px -195px;display: block;position:fixed;right: 1px;top:289px;_position:absolute;_bottom:auto;_margin-bottom:202px;_right:1px;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); z-index:4000} .pic_content{float:left;text-align:center;} /*百度推广位*/ .vBaidu{border:1px solid #d9e2e9;margin-top:20px;padding:5px 15px;} #uptown{font-size:12px!important;} /*下载按钮*/ .search_main{width:581px;margin-right:15px;} .input_style{width:380px;} #pull_down{width:450px;} .nav_list li a{color:#236fd4;} .vDown{float:right;width:189px;height:45px;background:url(../images/vdown.gif) no-repeat;margin-top:24px;_margin-top:23px;position:relative;z-index:999;} .vDown1,.vDown2{display:inline-block;width:93px;height:43px;margin:1px 0 1px 1px;float:left;cursor:pointer;} a.vDown2:hover{background:url(../images/vdown2.gif) no-repeat 20px 12px;_background:url(../images/vdown2.gif) no-repeat 19px 12px;} .vDownH{background:url(../images/vdown1.gif) no-repeat 13px 10px;_background:url(../images/vdown1.gif) no-repeat 12px 10px;} .vDownL{position:absolute;border:1px solid #b2b8bc;background:#fff;top:44px;left:0;} .vDownL a{display:block;width:104px;height:28px;line-height:28px;text-align:center;color:#2e4757;font-size:12px;} .vDownL a:hover{background:#63abe1;color:#fff;text-decoration:none;} .vDownL span{ display:block;width:7px;height:5px; background:url(../images/vdown3.gif) no-repeat;position:absolute;top:-5px;left:45px;} /*04.26同义词辨析样式调整*/ .ct_example ul li{line-height:180%;} .vDef_list{padding:10px 0 5px 30px;line-height:150%;color:#333} .vDef_list a.ico_sound{display:inline-block;float:none;} .vDef_list dt{margin-bottom:4px;text-indent:-17px;} .vDef_list p{font-size:12px;color:#999;margin-top:8px;} /*05.16词典例句红色*/ .ct_example .syn_snt li span a{display:inline-block;} a.vtext_red{color:#f00!important;} /*05.23网络释义*/ .cn_main h3.open a{background-position: -128px -268px;} .vNet .button_expan_vNet{padding:5px 0 5px 19px;} .vNet .button_expan_vNet a{background:url(../images/vNet.gif) no-repeat;display:block;width:88px;height:30px;} .vNet .button_expan_vNet a:hover{background-position:-88px 0} .vNet .button_expan_vNet a.button_close{background-position:0 -30px} .vNet .button_expan_vNet a.button_close:hover{background-position:-88px -30px} .vNetH4{margin-top:20px;} .vNet .def_list h4{margin-bottom:6px;} /*05.24句库调用部分*/ a.vExplain{color:#236fd4;text-decoration:underline;} a.vExplain:hover{text-decoration:none;} /*06.13汉语词典*/ .vHanyu{width:733px;background:#f1f4fc;padding:3px 1px 3px 3px;height:78px;overflow:hidden;} .hanzi{background:url(../images/vhanyu.gif) no-repeat;float:left;font-family:"楷体_GB2312";font-size:67px;height:76px;padding-top:1px;width:77px;text-align:center;margin-right:1px;} .hanzi2{float:left;height:77px;} .hanzi02_line{height:37px;width:655px;text-align:center;margin-bottom:3px;} .hanzi021{background:#e8efff;color:#666;float:left;height:25px;padding-top:11px;width:63px;border:1px solid #fff;} .hanzi022,.hanzi023{background:#fff;color:#000;float:left;font-size:16px;font-weight:bold;height:27px;padding-top:11px;font-family:"楷体_GB2312";} .hanzi022{width:103px;margin-right:3px;} .hanzi023{width:246px;} .cn_main .vHanyu_list{padding-left:10px;} .vHanyu_list h4{background:none;padding-left:17px;cursor:auto;} .vHanyu_y{margin-left:10px;} .vHanyu_ci{padding-top:10px;} .vHanyu_ci .industry ul.padding_left{padding-left:15px;padding-bottom:20px;} .vHanyu_ci .industry h4{padding-bottom:5px;} /*06.15资讯推广位*/ .words_main2 img{width:178px;margin:0 5px;} .words_main2 p.vNews_s{text-align:center;font-size:12px;font-weight:700;padding-top:5px;} .words_main2 p.vNews_s a{text-decoration:underline;color:#236fd4;} .words_main2 p.vNews_s a:hover{text-decoration:none;} .words_main2 strong{font-weight:700;color:#333;font-size:12px;padding:0 7px 5px; display:block;} .vNews_s_c{padding-bottom:10px;} .vNews_s_c li{background: url(../images/img_page2.gif) no-repeat -139px -305px;padding-left:10px;margin-left:7px;height:20px; overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;} .vNews_s_c li a,.vNews_s_c li a:link,.vNews_s_c li a:visited{font-size:12px;color:#666;line-height:20px;height:20px;} .vNews_s_c li a:hover{color:#236fd4;text-decoration:underline;} .word_nav2{border-bottom:1px solid #D9E2E9;height:31px;} ================================================ FILE: cache/donate.html ================================================ Openyoudao首页

作者程序猿一枚,最缺的不是money,是大家的支持,撒花~

这是猿儿们的精神食粮

Openyoudao这道小菜大家还满意吧?

不妨扫个码,支持一下这道无名小菜

%index%

================================================ FILE: cache/expand.html ================================================ Openyoudao首页

欢迎使用有道字典 linux版

所有配置工作通过选词功能完成,找到您想要的选项,然后用鼠标选取右边对应指令即可.

汉英互译            %zh2en%          汉英例句               %zh2enlj%               返回配置页           %index%

汉日互译            %zh2jap%         汉日例句               %zh2japlj%               使用说明               %helps%

汉韩互译            %zh2ko%           汉韩例句               %zh2kolj%               退出程序               %exits%

  汉法互译            %zh2fr%           汉法例句               %zh2frlj%                 展开选项               %expand%

谷歌翻译            %goslate%          锁定取词               %lock%               取词历史                 %history%

================================================ FILE: cache/google.html ================================================ Untitled Document

Source Language: en

Target Language : zh

Selected Text: haha

Target Text: haha

%index%    %expand%

================================================ FILE: cache/goslate.html ================================================ Openyoudao首页

欢迎使用google翻译,google翻译作为免费的翻译服务,可提供 72 种语言之间的即时翻译.

它可以提供所支持的任意两种语言之间的字词、句子和网页翻译

2011年12月谷歌关闭了免费翻译服务,openyoudao在免费翻译项目Goslate的基础上

融入了便捷取词的特性,极大的方便了用户使用,弥补了有道字典在多语言翻译方面的缺憾

用户无需指定待翻译语言的种类,openyoudao可以自动识别语言类型,翻译成中文

还在犹豫什么?开始调戏吧~

%index%      %expand%

================================================ FILE: cache/help.html ================================================ Openyoudao首页

Openyoudao核心功能是取词,在整个使用过程中无需触碰键盘

程序的配置、功能切换以及退出都是通过取词完成的

听起来是不是很Geek?哈哈 这就是openyoudao

讲解完毕,返回主页,尽情品尝吧~

%index%

================================================ FILE: cache/js/autocomplete.r156903.js ================================================ var SC={create:function(){return function(){this.initialize.apply(this,arguments)}}};function $S(){var _=[],$;for(var A=0;A0)this.kf=$;else this.kf=$+this.KEYFROM_POST},getSearchUrl:function($){return encodeURI(this.searchServ+this.searchParamName+"="+$+"&keyfrom="+this.kf+this.searchMoreParams)},getSugQueryUrl:function(A,B,$){var _=screen.height+""+screen.width;return encodeURI(this.sugServ+this.S_QUERY_URL_POST+A+"&o="+this.oN+"&uid="+this.uid+"&keyfrom="+this.kf+"&r="+_+this.sugMoreParams+this.hour())},log:function(D,C,B,_,$){var A="";if(C)A+=C;if(B)A+=B;if(_)A+=_;if($)A+=$;var E=new Image();E.src=encodeURI(this.logServ+this.S_LOG_URL_POST+D+A+"&uid="+this.uid+this.time());return true},setSugIcon:function(B){var _=this.oN+"_icon";if(document.getElementById(_))document.body.removeChild(document.getElementById(_));this.icon=document.createElement("img");this.icon.id=_;this.icon.src=B;this.icon.style.position="absolute";this.icon.style.zIndex="99";this.icon.style.width="13px";this.icon.style.height="10px";this.icon.style.cursor="pointer";var A=this.box,$=SP.cumOffset(A);this.icon.style.left=($[0]+A.offsetWidth-13*1.5)+"px";this.icon.style.top=($[1]+(A.offsetHeight-10)/2)+"px";this.icon.style.display="";document.body.appendChild(this.icon);SEvent.observe(this.icon,"click",this.pressPoint.sbAEListener(this));SEvent.observe(this.icon,"mouseover",this.onmouseover2.sbAEListener(this));SEvent.observe(this.icon,"mouseout",this.onmouseout2.sbAEListener(this))},dblClick:function(){if(this.box.createTextRange){var $=this.box.createTextRange();$.moveStart("character",0);$.select()}else if(this.box.setSelectionRange)this.box.setSelectionRange(0,this.box.value.length);if(this.sugFlag){if(this.box.value!=""){if(this.lq==this.box.value){if(this.sdiv.childNodes.length>0)if(!this.vis)this.show();else this.hide();return}this.doReq()}}else if(this.box.value!="")this.insertSugHint()},winResize:function(){if(this.vis)this.show();if(!this.hI)this.setSugIcon(this.iconUrl)},storeOldValue:function(){if(this.oldValForCtrlZNum0){this.box.value=this.oldValForCtrlZ[--this.oldValForCtrlZNum];if(this.box.value!="")this.ctrlZFlag=true;else this.oldVal="";this.upDownTag=false}if(this.IE)_.returnValue=false;else _.preventDefault();return false}return true}switch(_.keyCode){case SK.PAGE_UP:case SK.PAGE_DOWN:case SK.END:case SK.HOME:case SK.INSERT:case SK.CTRL:case SK.ALT:case SK.LEFT:case SK.RIGHT:case SK.SHIFT:case SK.TAB:return true;case SK.ESC:this.hide();return false;case SK.UP:if(this.vis&&this.sugFlag){this.upDownTag=true;this.up()}else{if(this.sdiv.childNodes.length>1)if(this.lq==this.box.value)if(this.sugFlag){this.show();return false}if(this.box.value!="")this.doReq()}if(this.IE)_.returnValue=false;else _.preventDefault();return false;case SK.DOWN:if(this.vis&&this.sugFlag){this.upDownTag=true;this.down()}else{if(this.sdiv.childNodes.length>1)if(this.lq==this.box.value)if(this.sugFlag){this.show();return false}if(this.box.value!="")this.doReq()}if(this.IE)_.returnValue=false;else _.preventDefault();return false;case SK.RETURN:if(this.vis&&this.curNodeIdx>-1)if(!this.select()){if(this.IE)_.returnValue=false;else _.preventDefault();return false}return true;case SK.BACKSPACE:if(this.box.value.length==1){this.storeOldValue();this.oldVal=""}default:this.upDownTag=false;return true}},sugReq:function(){if(document.activeElement&&document.activeElement!=this.box);else if(this.box.value!=""&&this.box.value!=this.initVal){this.initVal="";if(this.lq!=this.box.value)if(!this.upDownTag)this.doReq()}else if(this.lq!=""){this.lq="";if(this.vis){this.hide();this.clean()}}if(this.timeoutId!=0)clearTimeout(this.timeoutId);this.timeoutId=setTimeout(this.sugReq.sbind(this),this.REQUEST_TIMEOUT)},getSiteResult:function(B){var D=new RegExp("<[s][p][a][n].*>.*");m=D.exec(B);if(m==null){D=new RegExp("<[aA].*>.*");m=D.exec(B)}if(m==null){var F=B.indexOf("HREF=\"");if(F!=-1){var E=B.indexOf("\"",F+6),_=B.substring(F+6,E);return _}return null}else{var $=new RegExp("[hH][rR][eE][fF]=.*><[fF][oO][nN][tT]"),C=$.exec(m);if(C[0].length<=13)return null;var A=C[0].split(" "),_;if(A.length>1)_=A[0].substr(6,A[0].length-7);else _=A[0].substr(6,A[0].length-13);return _}},getSelValue:function($){return $.replace(/this.txtBox.value=/,"").replace(/\'/g,"")},select:function($){if($){if(this.getCurNode()){var _=this.getCurNode().innerHTML,A=this.getSiteResult(_);if(A!=null){this.log(this.LOG_MOUSE_SELECT,"&q="+this.oldVal,"&index=0","&select="+A,"&direct=true");this.hide();document.location=A}else{try{var D=this.getCurNode().getAttribute(this.ITEM_SEL_ATTR_NAME),C=this.getSelValue(D);if(this.oldVal!=C)this.storeOldValue();this.log(this.LOG_MOUSE_SELECT,"&q="+this.oldVal,"&index="+this.curNodeIdx,"&select="+C);this.oldVal=C;this.hide();if(this.scb!=null)this.scb(C,this);else{this.box.value=C;this.clearOldValue();this.hide();var B=this.getSearchUrl(C);document.location=B}}catch($){}}}}else if(this.getCurNode()){_=this.getCurNode().innerHTML,A=this.getSiteResult(_);if(A!=null){this.log(this.LOG_KEY_SELECT,"&q="+this.oldVal,"&index=0","&select="+A,"&direct=true");this.hide();document.location=A}else{try{D=this.getCurNode().getAttribute(this.ITEM_SEL_ATTR_NAME),C=this.getSelValue(D);if(this.oldVal!=C)this.storeOldValue();if(this.box.value!=C)return true;else this.log(this.LOG_KEY_SELECT,"&q="+this.oldVal,"&index="+this.curNodeIdx,"&select="+C);this.oldVal=C;this.hide();if(this.scb!=null)this.scb(this.box.value,this);else{this.clearOldValue();this.hide();B=this.getSearchUrl(this.box.value);document.location=B}}catch($){}}}return false},doReq:function($){if(!this.sugFlag)return;if($=="undefined"||$==null){if(this.oldVal!=this.box.value&&!this.ctrlZFlag)this.storeOldValue();this.oldVal=this.box.value;this.ctrlZFlag=false;this.lq=this.box.value;var $=this.box.value}this.count++;var A=encodeURIComponent(document.URL),_=this.getSugQueryUrl($,A,this.count);this.excuteCall(_)},clean:function(){this.size=0;this.curNodeIdx=-1;this.sdiv.innerHTML="";this.bdiv.innerHTML=""},onComplete:function(){setTimeout(this.updateContent.sbind(this,arguments[0]),5)},cleanScript:function(){while(this.sptDiv.childNodes.length>0)this.sptDiv.removeChild(this.sptDiv.firstChild)},isValidNode:function($){return($.nodeType==1)&&($.getAttribute(this.ITEM_SEL_ATTR_NAME))},getReqStr:function($){if($&&$.getElementsByTagName("div").length>0)return $.getElementsByTagName("div")[0].getAttribute("id");return null},updateContent:function(){this.cleanScript();var C=this.box.value;if(this.bdiv.innerHTML=="")if(this.sdiv.innerHTML!=""&&this.getReqStr(this.sdiv)==C)return;else{this.hide();this.clean();return}if(this.getReqStr(this.bdiv)!=C)if(this.sdiv.innerHTML!=""&&this.getReqStr(this.sdiv)==C)return;else{this.hide();return}var A,_=false,B=(((this.bdiv.getElementsByTagName("table"))[1]).getElementsByTagName("tr"));for(var D=0;D=3)this.bindATagWithMouseEvent($[2],false);this.show();this.mouseTag=false}else{this.hide();this.clean()}},showContent:function(){var $=SP.cumOffset(this.box);this.sdiv.style.top=$[1]+(this.box.offsetHeight-1)+"px";this.sdiv.style.left=$[0]+"px";this.sdiv.style.cursor="default";this.sdiv.style.width=this.box.offsetWidth+"px";SElement.show(this.sdiv);this.vis=true;this.curNodeIdx=-1},show:function(){if(this.sdiv.childNodes.length<1)return;if(this.sugFlag)if(this.getReqStr(this.sdiv)!=this.box.value)return;this.showContent()},hide:function(){this.hlOff();SElement.hide(this.sdiv);this.curNodeIdx=-1;this.vis=false},hide2:function(){if(this.clickEnabled){this.hide();this.clickEnabled=false;setTimeout(this.enableClick.sbind(this),60)}},enableClick:function(){this.clickEnabled=true},onmousemove:function($){this.mouseTag=true;this.onmouseover($)},onmouseover:function(_){this.box.onblur=null;if(!this.mouseTag){this.mouseTag=true;return}var A=SEvent.element(_);while(A.parentNode&&(!A.tagName||(A.getAttribute(this.ITEM_INDEX_ATTR_NAME)==null)))A=A.parentNode;var $=(A.tagName)?A.getAttribute(this.ITEM_INDEX_ATTR_NAME):-1;if($==-1||$==this.curNodeIdx)return;this.hlOff();this.curNodeIdx=Number($);this.hlOn(false)},onmouseout:function(){this.hlOff();this.curNodeIdx=-1;this.box.onblur=this.hide.sbAEListener(this)},getNode:function($){if(this.childs&&($>=0&&$0){this.hlOff();this.curNodeIdx=$-1;this.hlOn(true)}else if(this.curNodeIdx==0){this.hlOff();this.curNodeIdx=$-1;this.box.value=this.oldVal}else{this.curNodeIdx=this.size-1;this.hlOn(true)}},down:function(){var $=this.curNodeIdx;if(this.curNodeIdx<0){this.curNodeIdx=$+1;this.hlOn(true)}else if(this.curNodeIdx<(this.size-1)){this.hlOff();this.curNodeIdx=$+1;this.hlOn(true)}else{this.hlOff();this.curNodeIdx=-1;this.box.value=this.oldVal}},excuteCall:function(_){var $=document.createElement("script");$.src=_;this.sptDiv.appendChild($)},updateCall:function($){$=unescape($);this.bdiv.innerHTML=$;if(this.bdiv.childNodes.length<2)this.bdiv.innerHTML="";this.onComplete()},closeSuggest:function($){this.sugFlag=false},focusBox:function(){this.box.focus();if(this.box.createTextRange){var $=this.box.createTextRange();$.moveStart("character",this.box.value.length);$.select()}else if(this.box.setSelectionRange)this.box.setSelectionRange(this.box.value.length,this.box.value.length)},pressPoint:function($){if(this.clickEnabled){this.clickEnabled=false;setTimeout(this.enableClick.sbind(this),20);this.log(this.LOG_ICON_PRESS,"&q="+this.box.value,"&visible="+this.vis);this.focusBox();if(!this.vis){if(this.sugFlag){if(this.box.value=="")this.insertInputHint();else if(this.lq!=this.box.value){this.doReq();setTimeout(this.showNoSug.sbind(this),200)}else if(this.sdiv.innerHTML==""){this.doReq();setTimeout(this.showNoSug.sbind(this),200)}else if(this.sdiv.childNodes.length<2)this.insertNoSugHint();else this.show()}else this.insertSugHint()}else this.hide()}},showNoSug:function(){if(this.sdiv.childNodes.length<1)this.insertNoSugHint()},showSugHint:function(){if(this.sdiv.childNodes.length<1)return;this.showContent()},onCompleteHint:function(){setTimeout(this.showSugHint.sbind(this,arguments[0]),5)},onmouseover2:function($){this.box.onblur=null},onmouseout2:function(){this.box.onblur=this.hide.sbAEListener(this)},bindATagWithMouseEvent:function(C,_){try{if(this.hC)if(C.parentNode){C.parentNode.removeChild(C);return}}catch(A){}var $=C.getElementsByTagName("A");if($.length==0)$=C.getElementsByTagName("a");var B=$[0];if(_)SEvent.observe(B,"click",this.turnOnSuggest.sbAEListener(this));else SEvent.observe(B,"click",this.turnOffSuggest.sbAEListener(this));SEvent.observe(B,"mouseover",this.onmouseover2.sbAEListener(this));SEvent.observe(B,"mouseout",this.onmouseout2.sbAEListener(this))},insertSugHint:function(){this.insertHint("\u63d0\u793a\u529f\u80fd\u5df2\u5173\u95ed","\u6253\u5f00\u63d0\u793a\u529f\u80fd",true)},insertInputHint:function(){this.insertHint("\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u5173\u952e\u5b57\uff0c\u5373\u4f1a\u5728\u8fd9\u91cc\u51fa\u73b0\u63d0\u793a","\u5173\u95ed\u63d0\u793a\u529f\u80fd",false)},insertNoSugHint:function(){this.insertHint("\u6ca1\u6709\u53ef\u7528\u7684\u63d0\u793a","\u5173\u95ed\u63d0\u793a\u529f\u80fd",false)},insertHint:function(_,A,$){this.sdiv.innerHTML=this.hintCode1+_+this.hintCode2+A+this.hintCode3;var B=this.sdiv.getElementsByTagName("table")[2];this.bindATagWithMouseEvent(B,$);this.onCompleteHint()},getSugStatus:function(){var $=this.getCookie(this.sugCookieName);if($=="")return true;else return false},turnOnSuggest:function(){this.setCookie(this.sugCookieName,"",-1);this.log(this.CHANGE_SUG_STATUS,"&s=open&q="+this.box.value);this.sugFlag=true;this.lq="";this.initVal=this.box.value;this.oldVal=this.initVal;this.upDownTag=false;if(this.vis)this.hide();this.clean();return false},turnOffSuggest:function(){this.setCookie(this.sugCookieName,"1",365);this.log(this.CHANGE_SUG_STATUS,"&s=close&q="+this.box.value);if(this.vis)this.hide();this.clean();this.sugFlag=false;return false},getCookieVal:function(_){var $=document.cookie.indexOf(";",_);if($==-1)$=document.cookie.length;return unescape(document.cookie.substring(_,$))},getCookie:function(A){var _=A+"=",$=_.length,B=document.cookie.length,D=0;while(D
",hintCode2:"
",hintCode3:"
",REQUEST_TIMEOUT:7,ITEM_INDEX_ATTR_NAME:"s_index",ITEM_HIGHLIGHT_STYLE:"aa_highlight",ITEM_SEL_ATTR_NAME:"onSelect",CZNUM:10,KEYFROM_POST:".suggest",S_QUERY_URL_POST:"/suggest/suggest.s?query=",S_LOG_URL_POST:"/suggest/clog.s?type=",defSugServ:"http://"+document.domain,defSearchServ:"http://"+document.domain+"/search?",defSearchParamName:"q",defKeyfrom:document.domain.replace(/.youdao.com/,""),defSugName:"aa",defSugIconUrl:"http://shared.youdao.com/images/downarrow.gif",sugCookieName:"SUG_STATUS"};function turnOffSuggest(){return true}function closeSuggest($){if($==null||$=="undefined")$=AutoComplete.defSugName;if(typeof $!="object")return;$.closeSuggest();return true} ================================================ FILE: cache/js/extra.js ================================================ var global = { fromVm:{ searchDomain:'youdao.com' } }; function rwt(a, newlink) { try { if (a === window) { a = window.event.srcElement; while (a) { if (a.href) break; a = a.parentNode } } a.href = newlink; a.onmousedown = "" } catch (p) { } return true } ================================================ FILE: cache/js/huaci.js ================================================ var iciba_huaci_url ="http://open.iciba.com/huaci/"; var ICIBA_HUAYI_Str = ''; var ICIBA_HUAYI_ALLOW = 1; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ''; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; ICIBA_HUAYI_Str += ' '; document.write(ICIBA_HUAYI_Str); ================================================ FILE: cache/js/jquery.sidebar.js ================================================ /* * jquery.sidebar v1.0.2 * http://sideroad.secret.jp/ * * Copyright (c) 2009 sideroad * * Dual licensed under the MIT or GPL Version 2 licenses. * Date: 2009-09-01 */ (function( $, _window ) { $.fn.sidebar = function(options){ return this.each(function(){ var elem = $(this), data = elem.data("sidebar")||{}, margin, width, height, duration = data.duration, injectWidth, injectHeight, injectCss, containerCss, bodyCss, position, enter, leave, opened, closed, isInnerElement, container = $("
"), inject = $("
"), body = $("
"), root, parent, open = function(){ var data = elem.data("sidebar") || {}, opened = data.callback.sidebar.open, container = data.container, inject = data.inject, body = data.body; if (data.isEnter) return; if (data.isProcessing) return; data.isEnter = true; data.isProcessing = true; container.animate(data.animate.container.enter, { duration: duration, complete: function(){ inject.fadeOut(duration, function(){ body.show("clip", duration,function(){ data.isProcessing = false; if(opened) opened(); }); }); } }); }, close = function(){ var data = elem.data("sidebar") || {}, closed = data.callback.sidebar.close, container = data.container, inject = data.inject, body = data.body; if(!data.isEnter) return; if(data.isProcessing) return; data.isProcessing = true; container.animate(data.animate.container.leave, { duration: duration, complete: function(){ body.hide("clip", duration, function(){ inject.fadeIn(duration, function(){ data.isEnter = false; data.isProcessing = false; if(closed) closed(); }); }); } }); }; if(typeof options == "string"){ switch(options){ case "open" : open(); break; case "close" : close(); break; } return; } //default setting options = $.extend(true, { root : $(document.body), position : "left", callback: { item : { enter : function(){ $(this).animate({marginLeft:"5px"},250); }, leave : function(){ $(this).animate({marginLeft:"0px"},250); } }, sidebar : { open : function(){ }, close : function(){ } } }, animate : { container : { enter : {}, leave : {} } }, duration : 200, open : "mouseenter.sidebar", close : "mouseleave.sidebar" }, options); root = options.root; isInnerElement = !root.is(document.body); parent = ( isInnerElement ) ? root.addClass("sidebar-root") : $(_window); position = options.position; duration = options.duration; container.attr("id", "jquerySideBar" + new Date().getTime()).addClass("sidebar-container").addClass(position); inject.addClass("sidebar-inject").addClass(position); body.addClass("sidebar-body"); //append to body body.append(this); container.append(body); container.append(inject); root.append(container); width = container.width(); height = container.height(); injectWidth = inject.width(); injectHeight = inject.height(); containerCss = { height: height, width: width }; bodyCss = { height: height, width: width }; if(position == "left" || position == "right") { margin = width - injectWidth; injectCss = { height : height, width : injectWidth }; containerCss.top = options.top || (parent.height()/2) - (height/2) + "px"; } else { margin = height - injectHeight; injectCss = { height : injectHeight, width : width }; containerCss.left = options.left || (parent.width()/2) - (width/2) + "px"; } containerCss[position] = "-" + margin + "px"; injectCss[position] = margin + "px"; options.animate.container.enter[position] = 0; options.animate.container.leave[position] = "-" + margin; //container container.css(containerCss); //inject inject.css(injectCss); //body body.css(bodyCss).hide(); //menu callback $(this).addClass("sidebar-menu").find("li") .bind("mouseenter.sidebar",options.callback.item.enter) .bind("mouseleave.sidebar",options.callback.item.leave); //container events if(options.open) container.bind(options.open,open); if(options.close) container.bind(options.close,close); //store data options.container = container; options.inject = inject; options.body = body; elem.data("sidebar", options); parent.resize(function(){ if(position == "left" || position == "right") { container.css({top:($(this).height()/2) - (height/2) + "px"}); } else { container.css({left:($(this).width()/2) - (width/2) + "px"}); } }); }); }; })(jQuery, this); ================================================ FILE: cache/js/jsScrollbar.js ================================================ //Written by Nathan Faubion: http://n-son.com //Use this or edit how you want, just give me //some credit! function jsScrollbar (o, s, a, ev) { var self = this; this.reset = function () { //Arguments that were passed this._parent = o; this._src = s; this.auto = a ? a : false; this.eventHandler = ev ? ev : function () {}; //Component Objects this._up = this._findComponent("Scrollbar-Up", this._parent); this._down = this._findComponent("Scrollbar-Down", this._parent); this._yTrack = this._findComponent("Scrollbar-Track", this._parent); this._yHandle = this._findComponent("Scrollbar-Handle", this._yTrack); //Height and position properties this._trackTop = findOffsetTop(this._yTrack); this._trackHeight = this._yTrack.offsetHeight; this._handleHeight = this._yHandle.offsetHeight; this._x = 0; this._y = 0; //Misc. variables this._scrollDist = 5; this._scrollTimer = null; this._selectFunc = null; this._grabPoint = null; this._tempTarget = null; this._tempDistX = 0; this._tempDistY = 0; this._disabled = false; this._ratio = (this._src.totalHeight - this._src.viewableHeight)/(this._trackHeight - this._handleHeight); this._yHandle.ondragstart = function () {return false;}; this._yHandle.onmousedown = function () {return false;}; this._addEvent(this._src.content, "mousewheel", this._scrollbarWheel); this._removeEvent(this._parent, "mousedown", this._scrollbarClick); this._addEvent(this._parent, "mousedown", this._scrollbarClick); this._src.reset(); with (this._yHandle.style) { top = "0px"; left = "0px"; } this._moveContent(); if (this._src.totalHeight < this._src.viewableHeight) { this._disabled = true; this._yHandle.style.visibility = "hidden"; if (this.auto) this._parent.style.visibility = "hidden"; } else { this._disabled = false; this._yHandle.style.visibility = "visible"; this._parent.style.visibility = "visible"; } }; this._addEvent = function (o, t, f) { if (o.addEventListener) o.addEventListener(t, f, false); else if (o.attachEvent) o.attachEvent('on'+ t, f); else o['on'+ t] = f; }; this._removeEvent = function (o, t, f) { if (o.removeEventListener) o.removeEventListener(t, f, false); else if (o.detachEvent) o.detachEvent('on'+ t, f); else o['on'+ t] = null; }; this._findComponent = function (c, o) { var kids = o.childNodes; for (var i = 0; i < kids.length; i++) { if (kids[i].className && kids[i].className == c) { return kids[i]; } } }; //Thank you, Quirksmode function findOffsetTop (o) { var t = 0; if (o.offsetParent) { while (o.offsetParent) { t += o.offsetTop; o = o.offsetParent; } } return t; }; this._scrollbarClick = function (e) { if (self._disabled) return false; e = e ? e : event; if (!e.target) e.target = e.srcElement; if (e.target.className.indexOf("Scrollbar-Up") > -1) self._scrollUp(e); else if (e.target.className.indexOf("Scrollbar-Down") > -1) self._scrollDown(e); else if (e.target.className.indexOf("Scrollbar-Track") > -1) self._scrollTrack(e); else if (e.target.className.indexOf("Scrollbar-Handle") > -1) self._scrollHandle(e); self._tempTarget = e.target; self._selectFunc = document.onselectstart; document.onselectstart = function () {return false;}; self.eventHandler(e.target, "mousedown"); self._addEvent(document, "mouseup", self._stopScroll, false); return false; }; this._scrollbarDrag = function (e) { e = e ? e : event; var t = parseInt(self._yHandle.style.top); var v = e.clientY + document.body.scrollTop - self._trackTop; with (self._yHandle.style) { if (v >= self._trackHeight - self._handleHeight + self._grabPoint) top = self._trackHeight - self._handleHeight +"px"; else if (v <= self._grabPoint) top = "0px"; else top = v - self._grabPoint +"px"; self._y = parseInt(top); } self._moveContent(); }; this._scrollbarWheel = function (e) { e = e ? e : event; var dir = 0; if (e.wheelDelta >= 120) dir = -1; if (e.wheelDelta <= -120) dir = 1; self.scrollBy(0, dir * 20); e.returnValue = false; }; this._startScroll = function (x, y) { this._tempDistX = x; this._tempDistY = y; this._scrollTimer = window.setInterval(function () { self.scrollBy(self._tempDistX, self._tempDistY); }, 40); }; this._stopScroll = function () { self._removeEvent(document, "mousemove", self._scrollbarDrag, false); self._removeEvent(document, "mouseup", self._stopScroll, false); if (self._selectFunc) document.onselectstart = self._selectFunc; else document.onselectstart = function () { return true; }; if (self._scrollTimer) window.clearInterval(self._scrollTimer); self.eventHandler (self._tempTarget, "mouseup"); }; this._scrollUp = function (e) {this._startScroll(0, -this._scrollDist);}; this._scrollDown = function (e) {this._startScroll(0, this._scrollDist);}; this._scrollTrack = function (e) { var curY = e.clientY + document.body.scrollTop; this._scroll(0, curY - this._trackTop - this._handleHeight/2); }; this._scrollHandle = function (e) { var curY = e.clientY + document.body.scrollTop; this._grabPoint = curY - findOffsetTop(this._yHandle); this._addEvent(document, "mousemove", this._scrollbarDrag, false); }; this._scroll = function (x, y) { if (y > this._trackHeight - this._handleHeight) y = this._trackHeight - this._handleHeight; if (y < 0) y = 0; this._yHandle.style.top = y +"px"; this._y = y; this._moveContent(); }; this._moveContent = function () { this._src.scrollTo(0, Math.round(this._y * this._ratio)); }; this.scrollBy = function (x, y) { this._scroll(0, (-this._src._y + y)/this._ratio); }; this.scrollTo = function (x, y) { this._scroll(0, y/this._ratio); }; this.swapContent = function (o, w, h) { this._removeEvent(this._src.content, "mousewheel", this._scrollbarWheel, false); this._src.swapContent(o, w, h); this.reset(); }; this.reset(); }; ================================================ FILE: cache/js/jsScroller.js ================================================ //Written by Nathan Faubion: http://n-son.com //Use this or edit how you want, just give me //some credit! function jsScroller (o, w, h) { var self = this; var list = o.getElementsByTagName("div"); for (var i = 0; i < list.length; i++) { if (list[i].className.indexOf("Scroller-Container") > -1) { o = list[i]; } } //Private methods this._setPos = function (x, y) { if (x < this.viewableWidth - this.totalWidth) x = this.viewableWidth - this.totalWidth; if (x > 0) x = 0; if (y < this.viewableHeight - this.totalHeight) y = this.viewableHeight - this.totalHeight; if (y > 0) y = 0; this._x = x; this._y = y; with (o.style) { left = this._x +"px"; top = this._y +"px"; } }; //Public Methods this.reset = function () { this.content = o; this.totalHeight = o.offsetHeight; this.totalWidth = o.offsetWidth; this._x = 0; this._y = 0; with (o.style) { left = "0px"; top = "0px"; } }; this.scrollBy = function (x, y) { this._setPos(this._x + x, this._y + y); }; this.scrollTo = function (x, y) { this._setPos(-x, -y); }; this.stopScroll = function () { if (this.scrollTimer) window.clearInterval(this.scrollTimer); }; this.startScroll = function (x, y) { this.stopScroll(); this.scrollTimer = window.setInterval( function(){ self.scrollBy(x, y); }, 40 ); }; this.swapContent = function (c, w, h) { o = c; var list = o.getElementsByTagName("div"); for (var i = 0; i < list.length; i++) { if (list[i].className.indexOf("Scroller-Container") > -1) { o = list[i]; } } if (w) this.viewableWidth = w; if (h) this.viewableHeight = h; this.reset(); }; //variables this.content = o; this.viewableWidth = w; this.viewableHeight = h; this.totalWidth = o.offsetWidth; this.totalHeight = o.offsetHeight; this.scrollTimer = null; this.reset(); }; ================================================ FILE: cache/js/jsScrollerTween.js ================================================ //Written by Nathan Faubion: http://n-son.com //Use this or edit how you want, just give me //some credit! function jsScrollerTween (o, t, s) { var self = this; this._tweenTo = function (y) { if (self._idle) { var tHeight = self._parent._src ? self._parent._src.totalHeight : self._parent.totalHeight; var vHeight = self._parent._src ? self._parent._src.viewableHeight : self._parent.viewableHeight; var scrollY = self._parent._src ? self._parent._src._y : self._parent._y; if (y < 0) y = 0; if (y > tHeight - vHeight) y = tHeight - vHeight; var dist = y - (-scrollY); self._inc = 0; self._timer = null; self._values = []; self._idle = false; for (var i = 0; i < self.steps.length; i++) { self._values[i] = Math.round((-scrollY) + dist * (self.steps[i] / 100)); } self._timer = window.setInterval(function () { self._parent.scrollTo(0, self._values[self._inc]); if (self._inc == self.steps.length-1) { window.clearTimeout(self._timer); self._idle = true; } else self._inc++; }, self.stepDelay); } }; this._tweenBy = function (y) { var scrollY = self._parent._src ? self._parent._src._y : self._parent._y; self._tweenTo(-scrollY + y); }; this._trackTween = function (e) { e = e ? e : event; self._parent.canScroll = false; var curY = e.clientY + document.body.scrollTop; self._tweenTo((curY - self._parent._trackTop - self._parent._handleHeight/2) * self._parent._ratio); }; this.stepDelay = 40; this.steps = s?s:[0,25,50,70,85,95,97,99,100]; this._values = []; this._parent = o; this._timer = []; this._idle = true; o.tweenTo = this._tweenTo; o.tweenBy = this._tweenBy; o.trackTween = this._trackTween; if (t) o._scrollTrack = function (e) { this.trackTween(e); }; }; ================================================ FILE: cache/js/result-min.js ================================================ /*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Mon Nov 21 21:11:03 2011 -0500 */ (function(bc,L){var aw=bc.document,bv=bc.navigator,bm=bc.location;var b=(function(){var bG=function(b1,b2){return new bG.fn.init(b1,b2,bE)},bV=bc.jQuery,bI=bc.$,bE,bZ=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bN=/\S/,bJ=/^\s+/,bF=/\s+$/,bB=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bO=/^[\],:{}\s]*$/,bX=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bQ=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bK=/(?:^|:|,)(?:\s*\[)+/g,bz=/(webkit)[ \/]([\w.]+)/,bS=/(opera)(?:.*version)?[ \/]([\w.]+)/,bR=/(msie) ([\w.]+)/,bT=/(mozilla)(?:.*? rv:([\w.]+))?/,bC=/-([a-z]|[0-9])/ig,b0=/^-ms-/,bU=function(b1,b2){return(b2+"").toUpperCase()},bY=bv.userAgent,bW,bD,e,bM=Object.prototype.toString,bH=Object.prototype.hasOwnProperty,bA=Array.prototype.push,bL=Array.prototype.slice,bP=String.prototype.trim,bw=Array.prototype.indexOf,by={};bG.fn=bG.prototype={constructor:bG,init:function(b1,b5,b4){var b3,b6,b2,b7;if(!b1){return this}if(b1.nodeType){this.context=this[0]=b1;this.length=1;return this}if(b1==="body"&&!b5&&aw.body){this.context=aw;this[0]=aw.body;this.selector=b1;this.length=1;return this}if(typeof b1==="string"){if(b1.charAt(0)==="<"&&b1.charAt(b1.length-1)===">"&&b1.length>=3){b3=[null,b1,null]}else{b3=bZ.exec(b1)}if(b3&&(b3[1]||!b5)){if(b3[1]){b5=b5 instanceof bG?b5[0]:b5;b7=(b5?b5.ownerDocument||b5:aw);b2=bB.exec(b1);if(b2){if(bG.isPlainObject(b5)){b1=[aw.createElement(b2[1])];bG.fn.attr.call(b1,b5,true)}else{b1=[b7.createElement(b2[1])]}}else{b2=bG.buildFragment([b3[1]],[b7]);b1=(b2.cacheable?bG.clone(b2.fragment):b2.fragment).childNodes}return bG.merge(this,b1)}else{b6=aw.getElementById(b3[2]);if(b6&&b6.parentNode){if(b6.id!==b3[2]){return b4.find(b1)}this.length=1;this[0]=b6}this.context=aw;this.selector=b1;return this}}else{if(!b5||b5.jquery){return(b5||b4).find(b1)}else{return this.constructor(b5).find(b1)}}}else{if(bG.isFunction(b1)){return b4.ready(b1)}}if(b1.selector!==L){this.selector=b1.selector;this.context=b1.context}return bG.makeArray(b1,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bL.call(this,0)},get:function(b1){return b1==null?this.toArray():(b1<0?this[this.length+b1]:this[b1])},pushStack:function(b2,b4,b1){var b3=this.constructor();if(bG.isArray(b2)){bA.apply(b3,b2)}else{bG.merge(b3,b2)}b3.prevObject=this;b3.context=this.context;if(b4==="find"){b3.selector=this.selector+(this.selector?" ":"")+b1}else{if(b4){b3.selector=this.selector+"."+b4+"("+b1+")"}}return b3},each:function(b2,b1){return bG.each(this,b2,b1)},ready:function(b1){bG.bindReady();bD.add(b1);return this},eq:function(b1){b1=+b1;return b1===-1?this.slice(b1):this.slice(b1,b1+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bL.apply(this,arguments),"slice",bL.call(arguments).join(","))},map:function(b1){return this.pushStack(bG.map(this,function(b3,b2){return b1.call(b3,b2,b3)}))},end:function(){return this.prevObject||this.constructor(null)},push:bA,sort:[].sort,splice:[].splice};bG.fn.init.prototype=bG.fn;bG.extend=bG.fn.extend=function(){var ca,b3,b1,b2,b7,b8,b6=arguments[0]||{},b5=1,b4=arguments.length,b9=false;if(typeof b6==="boolean"){b9=b6;b6=arguments[1]||{};b5=2}if(typeof b6!=="object"&&!bG.isFunction(b6)){b6={}}if(b4===b5){b6=this;--b5}for(;b50){return}bD.fireWith(aw,[bG]);if(bG.fn.trigger){bG(aw).trigger("ready").off("ready")}}},bindReady:function(){if(bD){return}bD=bG.Callbacks("once memory");if(aw.readyState==="complete"){return setTimeout(bG.ready,1)}if(aw.addEventListener){aw.addEventListener("DOMContentLoaded",e,false);bc.addEventListener("load",bG.ready,false)}else{if(aw.attachEvent){aw.attachEvent("onreadystatechange",e);bc.attachEvent("onload",bG.ready);var b1=false;try{b1=bc.frameElement==null}catch(b2){}if(aw.documentElement.doScroll&&b1){bx()}}}},isFunction:function(b1){return bG.type(b1)==="function"},isArray:Array.isArray||function(b1){return bG.type(b1)==="array"},isWindow:function(b1){return b1&&typeof b1==="object"&&"setInterval" in b1},isNumeric:function(b1){return !isNaN(parseFloat(b1))&&isFinite(b1)},type:function(b1){return b1==null?String(b1):by[bM.call(b1)]||"object"},isPlainObject:function(b3){if(!b3||bG.type(b3)!=="object"||b3.nodeType||bG.isWindow(b3)){return false}try{if(b3.constructor&&!bH.call(b3,"constructor")&&!bH.call(b3.constructor.prototype,"isPrototypeOf")){return false}}catch(b2){return false}var b1;for(b1 in b3){}return b1===L||bH.call(b3,b1)},isEmptyObject:function(b2){for(var b1 in b2){return false}return true},error:function(b1){throw new Error(b1)},parseJSON:function(b1){if(typeof b1!=="string"||!b1){return null}b1=bG.trim(b1);if(bc.JSON&&bc.JSON.parse){return bc.JSON.parse(b1)}if(bO.test(b1.replace(bX,"@").replace(bQ,"]").replace(bK,""))){return(new Function("return "+b1))()}bG.error("Invalid JSON: "+b1)},parseXML:function(b3){var b1,b2;try{if(bc.DOMParser){b2=new DOMParser();b1=b2.parseFromString(b3,"text/xml")}else{b1=new ActiveXObject("Microsoft.XMLDOM");b1.async="false";b1.loadXML(b3)}}catch(b4){b1=L}if(!b1||!b1.documentElement||b1.getElementsByTagName("parsererror").length){bG.error("Invalid XML: "+b3)}return b1},noop:function(){},globalEval:function(b1){if(b1&&bN.test(b1)){(bc.execScript||function(b2){bc["eval"].call(bc,b2)})(b1)}},camelCase:function(b1){return b1.replace(b0,"ms-").replace(bC,bU)},nodeName:function(b2,b1){return b2.nodeName&&b2.nodeName.toUpperCase()===b1.toUpperCase()},each:function(b4,b7,b3){var b2,b5=0,b6=b4.length,b1=b6===L||bG.isFunction(b4);if(b3){if(b1){for(b2 in b4){if(b7.apply(b4[b2],b3)===false){break}}}else{for(;b50&&b1[0]&&b1[b2-1])||b2===0||bG.isArray(b1));if(b4){for(;b31?aK.call(arguments,0):bH;if(!(--bx)){bD.resolveWith(bD,by)}}}function bA(bG){return function(bH){bC[bG]=arguments.length>1?aK.call(arguments,0):bH;bD.notifyWith(bF,bC)}}if(e>1){for(;bw
a";bJ=bw.getElementsByTagName("*");bG=bw.getElementsByTagName("a")[0];if(!bJ||!bJ.length||!bG){return{}}bH=aw.createElement("select");by=bH.appendChild(aw.createElement("option"));bF=bw.getElementsByTagName("input")[0];bK={leadingWhitespace:(bw.firstChild.nodeType===3),tbody:!bw.getElementsByTagName("tbody").length,htmlSerialize:!!bw.getElementsByTagName("link").length,style:/top/.test(bG.getAttribute("style")),hrefNormalized:(bG.getAttribute("href")==="/a"),opacity:/^0.55/.test(bG.style.opacity),cssFloat:!!bG.style.cssFloat,checkOn:(bF.value==="on"),optSelected:by.selected,getSetAttribute:bw.className!=="t",enctype:!!aw.createElement("form").enctype,html5Clone:aw.createElement("nav").cloneNode(true).outerHTML!=="<:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bF.checked=true;bK.noCloneChecked=bF.cloneNode(true).checked;bH.disabled=true;bK.optDisabled=!by.disabled;try{delete bw.test}catch(bD){bK.deleteExpando=false}if(!bw.addEventListener&&bw.attachEvent&&bw.fireEvent){bw.attachEvent("onclick",function(){bK.noCloneEvent=false});bw.cloneNode(true).fireEvent("onclick")}bF=aw.createElement("input");bF.value="t";bF.setAttribute("type","radio");bK.radioValue=bF.value==="t";bF.setAttribute("checked","checked");bw.appendChild(bF);bE=aw.createDocumentFragment();bE.appendChild(bw.lastChild);bK.checkClone=bE.cloneNode(true).cloneNode(true).lastChild.checked;bK.appendChecked=bF.checked;bE.removeChild(bF);bE.appendChild(bw);bw.innerHTML="";if(bc.getComputedStyle){bB=aw.createElement("div");bB.style.width="0";bB.style.marginRight="0";bw.style.width="2px";bw.appendChild(bB);bK.reliableMarginRight=(parseInt((bc.getComputedStyle(bB,null)||{marginRight:0}).marginRight,10)||0)===0}if(bw.attachEvent){for(bz in {submit:1,change:1,focusin:1}){bC="on"+bz;bx=(bC in bw);if(!bx){bw.setAttribute(bC,"return;");bx=(typeof bw[bC]==="function")}bK[bz+"Bubbles"]=bx}}bE.removeChild(bw);bE=bH=by=bB=bw=bF=null;b(function(){var bN,bV,bW,bU,bO,bP,bM,bT,bS,e,bQ,bR=aw.getElementsByTagName("body")[0];if(!bR){return}bM=1;bT="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bS="visibility:hidden;border:0;";e="style='"+bT+"border:5px solid #000;padding:0;'";bQ="
";bN=aw.createElement("div");bN.style.cssText=bS+"width:0;height:0;position:static;top:0;margin-top:"+bM+"px";bR.insertBefore(bN,bR.firstChild);bw=aw.createElement("div");bN.appendChild(bw);bw.innerHTML="
t
";bA=bw.getElementsByTagName("td");bx=(bA[0].offsetHeight===0);bA[0].style.display="";bA[1].style.display="none";bK.reliableHiddenOffsets=bx&&(bA[0].offsetHeight===0);bw.innerHTML="";bw.style.width=bw.style.paddingLeft="1px";b.boxModel=bK.boxModel=bw.offsetWidth===2;if(typeof bw.style.zoom!=="undefined"){bw.style.display="inline";bw.style.zoom=1;bK.inlineBlockNeedsLayout=(bw.offsetWidth===2);bw.style.display="";bw.innerHTML="
";bK.shrinkWrapBlocks=(bw.offsetWidth!==2)}bw.style.cssText=bT+bS;bw.innerHTML=bQ;bV=bw.firstChild;bW=bV.firstChild;bO=bV.nextSibling.firstChild.firstChild;bP={doesNotAddBorder:(bW.offsetTop!==5),doesAddBorderForTableAndCells:(bO.offsetTop===5)};bW.style.position="fixed";bW.style.top="20px";bP.fixedPosition=(bW.offsetTop===20||bW.offsetTop===15);bW.style.position=bW.style.top="";bV.style.overflow="hidden";bV.style.position="relative";bP.subtractsBorderForOverflowNotVisible=(bW.offsetTop===-5);bP.doesNotIncludeMarginInBodyOffset=(bR.offsetTop!==bM);bR.removeChild(bN);bw=bN=null;b.extend(bK,bP)});return bK})();var aT=/^(?:\{.*\}|\[.*\])$/,aB=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(by,bw,bA,bz){if(!b.acceptData(by)){return}var bH,bB,bE,bF=b.expando,bD=typeof bw==="string",bG=by.nodeType,e=bG?b.cache:by,bx=bG?by[bF]:by[bF]&&bF,bC=bw==="events";if((!bx||!e[bx]||(!bC&&!bz&&!e[bx].data))&&bD&&bA===L){return}if(!bx){if(bG){by[bF]=bx=++b.uuid}else{bx=bF}}if(!e[bx]){e[bx]={};if(!bG){e[bx].toJSON=b.noop}}if(typeof bw==="object"||typeof bw==="function"){if(bz){e[bx]=b.extend(e[bx],bw)}else{e[bx].data=b.extend(e[bx].data,bw)}}bH=bB=e[bx];if(!bz){if(!bB.data){bB.data={}}bB=bB.data}if(bA!==L){bB[b.camelCase(bw)]=bA}if(bC&&!bB[bw]){return bH.events}if(bD){bE=bB[bw];if(bE==null){bE=bB[b.camelCase(bw)]}}else{bE=bB}return bE},removeData:function(by,bw,bz){if(!b.acceptData(by)){return}var bC,bB,bA,bD=b.expando,bE=by.nodeType,e=bE?b.cache:by,bx=bE?by[bD]:bD;if(!e[bx]){return}if(bw){bC=bz?e[bx]:e[bx].data;if(bC){if(!b.isArray(bw)){if(bw in bC){bw=[bw]}else{bw=b.camelCase(bw);if(bw in bC){bw=[bw]}else{bw=bw.split(" ")}}}for(bB=0,bA=bw.length;bB-1){return true}}return false},val:function(by){var e,bw,bz,bx=this[0];if(!arguments.length){if(bx){e=b.valHooks[bx.nodeName.toLowerCase()]||b.valHooks[bx.type];if(e&&"get" in e&&(bw=e.get(bx,"value"))!==L){return bw}bw=bx.value;return typeof bw==="string"?bw.replace(aV,""):bw==null?"":bw}return}bz=b.isFunction(by);return this.each(function(bB){var bA=b(this),bC;if(this.nodeType!==1){return}if(bz){bC=by.call(this,bB,bA.val())}else{bC=by}if(bC==null){bC=""}else{if(typeof bC==="number"){bC+=""}else{if(b.isArray(bC)){bC=b.map(bC,function(bD){return bD==null?"":bD+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bC,"value")===L){this.value=bC}})}});b.extend({valHooks:{option:{get:function(e){var bw=e.attributes.value;return !bw||bw.specified?e.value:e.text}},select:{get:function(e){var bB,bw,bA,by,bz=e.selectedIndex,bC=[],bD=e.options,bx=e.type==="select-one";if(bz<0){return null}bw=bx?bz:0;bA=bx?bz+1:bD.length;for(;bw=0});if(!e.length){bw.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bB,by,bC,bA){var bx,e,bz,bw=bB.nodeType;if(!bB||bw===3||bw===8||bw===2){return}if(bA&&by in b.attrFn){return b(bB)[by](bC)}if(typeof bB.getAttribute==="undefined"){return b.prop(bB,by,bC)}bz=bw!==1||!b.isXMLDoc(bB);if(bz){by=by.toLowerCase();e=b.attrHooks[by]||(ap.test(by)?aZ:bf)}if(bC!==L){if(bC===null){b.removeAttr(bB,by);return}else{if(e&&"set" in e&&bz&&(bx=e.set(bB,bC,by))!==L){return bx}else{bB.setAttribute(by,""+bC);return bC}}}else{if(e&&"get" in e&&bz&&(bx=e.get(bB,by))!==null){return bx}else{bx=bB.getAttribute(by);return bx===null?L:bx}}},removeAttr:function(by,bA){var bz,bB,bw,e,bx=0;if(bA&&by.nodeType===1){bB=bA.toLowerCase().split(ag);e=bB.length;for(;bx=0)}}})});var be=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aP=/^key/,bg=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bw=U.exec(e);if(bw){bw[1]=(bw[1]||"").toLowerCase();bw[3]=bw[3]&&new RegExp("(?:^|\\s)"+bw[3]+"(?:\\s|$)")}return bw},j=function(bx,e){var bw=bx.attributes||{};return((!e[1]||bx.nodeName.toLowerCase()===e[1])&&(!e[2]||(bw.id||{}).value===e[2])&&(!e[3]||e[3].test((bw["class"]||{}).value)))},bu=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(by,bD,bK,bB,bz){var bE,bC,bL,bJ,bI,bG,e,bH,bw,bA,bx,bF;if(by.nodeType===3||by.nodeType===8||!bD||!bK||!(bE=b._data(by))){return}if(bK.handler){bw=bK;bK=bw.handler}if(!bK.guid){bK.guid=b.guid++}bL=bE.events;if(!bL){bE.events=bL={}}bC=bE.handle;if(!bC){bE.handle=bC=function(bM){return typeof b!=="undefined"&&(!bM||b.event.triggered!==bM.type)?b.event.dispatch.apply(bC.elem,arguments):L};bC.elem=by}bD=b.trim(bu(bD)).split(" ");for(bJ=0;bJ=0){bH=bH.slice(0,-1);bx=true}if(bH.indexOf(".")>=0){by=bH.split(".");bH=by.shift();by.sort()}if((!bB||b.event.customEvent[bH])&&!b.event.global[bH]){return}bw=typeof bw==="object"?bw[b.expando]?bw:new b.Event(bH,bw):new b.Event(bH);bw.type=bH;bw.isTrigger=true;bw.exclusive=bx;bw.namespace=by.join(".");bw.namespace_re=bw.namespace?new RegExp("(^|\\.)"+by.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;bz=bH.indexOf(":")<0?"on"+bH:"";if(!bB){e=b.cache;for(bD in e){if(e[bD].events&&e[bD].events[bH]){b.event.trigger(bw,bE,e[bD].handle.elem,true)}}return}bw.result=L;if(!bw.target){bw.target=bB}bE=bE!=null?b.makeArray(bE):[];bE.unshift(bw);bG=b.event.special[bH]||{};if(bG.trigger&&bG.trigger.apply(bB,bE)===false){return}bC=[[bB,bG.bindType||bH]];if(!bK&&!bG.noBubble&&!b.isWindow(bB)){bJ=bG.delegateType||bH;bI=T.test(bJ+bH)?bB:bB.parentNode;bA=null;for(;bI;bI=bI.parentNode){bC.push([bI,bJ]);bA=bI}if(bA&&bA===bB.ownerDocument){bC.push([bA.defaultView||bA.parentWindow||bc,bJ])}}for(bD=0;bDbB){bI.push({elem:this,matches:bA.slice(bB)})}for(bD=0;bD0?this.on(e,null,by,bx):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aP.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bg.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}}); /*! * Sizzle CSS Selector Engine * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){var bI=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bD="sizcache"+(Math.random()+"").replace(".",""),bJ=0,bM=Object.prototype.toString,bC=false,bB=true,bL=/\\/g,bP=/\r\n/g,bR=/\W/;[0,0].sort(function(){bB=false;return 0});var bz=function(bW,e,bZ,b0){bZ=bZ||[];e=e||aw;var b2=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bW||typeof bW!=="string"){return bZ}var bT,b4,b7,bS,b3,b6,b5,bY,bV=true,bU=bz.isXML(e),bX=[],b1=bW;do{bI.exec("");bT=bI.exec(b1);if(bT){b1=bT[3];bX.push(bT[1]);if(bT[2]){bS=bT[3];break}}}while(bT);if(bX.length>1&&bE.exec(bW)){if(bX.length===2&&bF.relative[bX[0]]){b4=bN(bX[0]+bX[1],e,b0)}else{b4=bF.relative[bX[0]]?[e]:bz(bX.shift(),e);while(bX.length){bW=bX.shift();if(bF.relative[bW]){bW+=bX.shift()}b4=bN(bW,b4,b0)}}}else{if(!b0&&bX.length>1&&e.nodeType===9&&!bU&&bF.match.ID.test(bX[0])&&!bF.match.ID.test(bX[bX.length-1])){b3=bz.find(bX.shift(),e,bU);e=b3.expr?bz.filter(b3.expr,b3.set)[0]:b3.set[0]}if(e){b3=b0?{expr:bX.pop(),set:bG(b0)}:bz.find(bX.pop(),bX.length===1&&(bX[0]==="~"||bX[0]==="+")&&e.parentNode?e.parentNode:e,bU);b4=b3.expr?bz.filter(b3.expr,b3.set):b3.set;if(bX.length>0){b7=bG(b4)}else{bV=false}while(bX.length){b6=bX.pop();b5=b6;if(!bF.relative[b6]){b6=""}else{b5=bX.pop()}if(b5==null){b5=e}bF.relative[b6](b7,b5,bU)}}else{b7=bX=[]}}if(!b7){b7=b4}if(!b7){bz.error(b6||bW)}if(bM.call(b7)==="[object Array]"){if(!bV){bZ.push.apply(bZ,b7)}else{if(e&&e.nodeType===1){for(bY=0;b7[bY]!=null;bY++){if(b7[bY]&&(b7[bY]===true||b7[bY].nodeType===1&&bz.contains(e,b7[bY]))){bZ.push(b4[bY])}}}else{for(bY=0;b7[bY]!=null;bY++){if(b7[bY]&&b7[bY].nodeType===1){bZ.push(b4[bY])}}}}}else{bG(b7,bZ)}if(bS){bz(bS,b2,bZ,b0);bz.uniqueSort(bZ)}return bZ};bz.uniqueSort=function(bS){if(bK){bC=bB;bS.sort(bK);if(bC){for(var e=1;e0};bz.find=function(bY,e,bZ){var bX,bT,bV,bU,bW,bS;if(!bY){return[]}for(bT=0,bV=bF.order.length;bT":function(bX,bS){var bW,bV=typeof bS==="string",bT=0,e=bX.length;if(bV&&!bR.test(bS)){bS=bS.toLowerCase();for(;bT=0)){if(!bT){e.push(bW)}}else{if(bT){bS[bV]=false}}}}return false},ID:function(e){return e[1].replace(bL,"")},TAG:function(bS,e){return bS[1].replace(bL,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bz.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bS=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bS[1]+(bS[2]||1))-0;e[3]=bS[3]-0}else{if(e[2]){bz.error(e[0])}}e[0]=bJ++;return e},ATTR:function(bV,bS,bT,e,bW,bX){var bU=bV[1]=bV[1].replace(bL,"");if(!bX&&bF.attrMap[bU]){bV[1]=bF.attrMap[bU]}bV[4]=(bV[4]||bV[5]||"").replace(bL,"");if(bV[2]==="~="){bV[4]=" "+bV[4]+" "}return bV},PSEUDO:function(bV,bS,bT,e,bW){if(bV[1]==="not"){if((bI.exec(bV[3])||"").length>1||/^\w/.test(bV[3])){bV[3]=bz(bV[3],null,null,bS)}else{var bU=bz.filter(bV[3],bS,bT,true^bW);if(!bT){e.push.apply(e,bU)}return false}}else{if(bF.match.POS.test(bV[0])||bF.match.CHILD.test(bV[0])){return true}}return bV},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bT,bS,e){return !!bz(e[3],bT).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bT){var e=bT.getAttribute("type"),bS=bT.type;return bT.nodeName.toLowerCase()==="input"&&"text"===bS&&(e===bS||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bS){var e=bS.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bS.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bS){var e=bS.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bS.type},button:function(bS){var e=bS.nodeName.toLowerCase();return e==="input"&&"button"===bS.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bS,e){return e===0},last:function(bT,bS,e,bU){return bS===bU.length-1},even:function(bS,e){return e%2===0},odd:function(bS,e){return e%2===1},lt:function(bT,bS,e){return bSe[3]-0},nth:function(bT,bS,e){return e[3]-0===bS},eq:function(bT,bS,e){return e[3]-0===bS}},filter:{PSEUDO:function(bT,bY,bX,bZ){var e=bY[1],bS=bF.filters[e];if(bS){return bS(bT,bX,bY,bZ)}else{if(e==="contains"){return(bT.textContent||bT.innerText||bx([bT])||"").indexOf(bY[3])>=0}else{if(e==="not"){var bU=bY[3];for(var bW=0,bV=bU.length;bW=0)}}},ID:function(bS,e){return bS.nodeType===1&&bS.getAttribute("id")===e},TAG:function(bS,e){return(e==="*"&&bS.nodeType===1)||!!bS.nodeName&&bS.nodeName.toLowerCase()===e},CLASS:function(bS,e){return(" "+(bS.className||bS.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bW,bU){var bT=bU[1],e=bz.attr?bz.attr(bW,bT):bF.attrHandle[bT]?bF.attrHandle[bT](bW):bW[bT]!=null?bW[bT]:bW.getAttribute(bT),bX=e+"",bV=bU[2],bS=bU[4];return e==null?bV==="!=":!bV&&bz.attr?e!=null:bV==="="?bX===bS:bV==="*="?bX.indexOf(bS)>=0:bV==="~="?(" "+bX+" ").indexOf(bS)>=0:!bS?bX&&e!==false:bV==="!="?bX!==bS:bV==="^="?bX.indexOf(bS)===0:bV==="$="?bX.substr(bX.length-bS.length)===bS:bV==="|="?bX===bS||bX.substr(0,bS.length+1)===bS+"-":false},POS:function(bV,bS,bT,bW){var e=bS[2],bU=bF.setFilters[e];if(bU){return bU(bV,bT,bS,bW)}}}};var bE=bF.match.POS,by=function(bS,e){return"\\"+(e-0+1)};for(var bA in bF.match){bF.match[bA]=new RegExp(bF.match[bA].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bF.leftMatch[bA]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bF.match[bA].source.replace(/\\(\d+)/g,by))}var bG=function(bS,e){bS=Array.prototype.slice.call(bS,0);if(e){e.push.apply(e,bS);return e}return bS};try{Array.prototype.slice.call(aw.documentElement.childNodes,0)[0].nodeType}catch(bQ){bG=function(bV,bU){var bT=0,bS=bU||[];if(bM.call(bV)==="[object Array]"){Array.prototype.push.apply(bS,bV)}else{if(typeof bV.length==="number"){for(var e=bV.length;bT";e.insertBefore(bS,e.firstChild);if(aw.getElementById(bT)){bF.find.ID=function(bV,bW,bX){if(typeof bW.getElementById!=="undefined"&&!bX){var bU=bW.getElementById(bV[1]);return bU?bU.id===bV[1]||typeof bU.getAttributeNode!=="undefined"&&bU.getAttributeNode("id").nodeValue===bV[1]?[bU]:L:[]}};bF.filter.ID=function(bW,bU){var bV=typeof bW.getAttributeNode!=="undefined"&&bW.getAttributeNode("id");return bW.nodeType===1&&bV&&bV.nodeValue===bU}}e.removeChild(bS);e=bS=null})();(function(){var e=aw.createElement("div");e.appendChild(aw.createComment(""));if(e.getElementsByTagName("*").length>0){bF.find.TAG=function(bS,bW){var bV=bW.getElementsByTagName(bS[1]);if(bS[1]==="*"){var bU=[];for(var bT=0;bV[bT];bT++){if(bV[bT].nodeType===1){bU.push(bV[bT])}}bV=bU}return bV}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bF.attrHandle.href=function(bS){return bS.getAttribute("href",2)}}e=null})();if(aw.querySelectorAll){(function(){var e=bz,bU=aw.createElement("div"),bT="__sizzle__";bU.innerHTML="

";if(bU.querySelectorAll&&bU.querySelectorAll(".TEST").length===0){return}bz=function(b5,bW,b0,b4){bW=bW||aw;if(!b4&&!bz.isXML(bW)){var b3=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b5);if(b3&&(bW.nodeType===1||bW.nodeType===9)){if(b3[1]){return bG(bW.getElementsByTagName(b5),b0)}else{if(b3[2]&&bF.find.CLASS&&bW.getElementsByClassName){return bG(bW.getElementsByClassName(b3[2]),b0)}}}if(bW.nodeType===9){if(b5==="body"&&bW.body){return bG([bW.body],b0)}else{if(b3&&b3[3]){var bZ=bW.getElementById(b3[3]);if(bZ&&bZ.parentNode){if(bZ.id===b3[3]){return bG([bZ],b0)}}else{return bG([],b0)}}}try{return bG(bW.querySelectorAll(b5),b0)}catch(b1){}}else{if(bW.nodeType===1&&bW.nodeName.toLowerCase()!=="object"){var bX=bW,bY=bW.getAttribute("id"),bV=bY||bT,b7=bW.parentNode,b6=/^\s*[+~]/.test(b5);if(!bY){bW.setAttribute("id",bV)}else{bV=bV.replace(/'/g,"\\$&")}if(b6&&b7){bW=bW.parentNode}try{if(!b6||b7){return bG(bW.querySelectorAll("[id='"+bV+"'] "+b5),b0)}}catch(b2){}finally{if(!bY){bX.removeAttribute("id")}}}}}return e(b5,bW,b0,b4)};for(var bS in e){bz[bS]=e[bS]}bU=null})()}(function(){var e=aw.documentElement,bT=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bT){var bV=!bT.call(aw.createElement("div"),"div"),bS=false;try{bT.call(aw.documentElement,"[test!='']:sizzle")}catch(bU){bS=true}bz.matchesSelector=function(bX,bZ){bZ=bZ.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bz.isXML(bX)){try{if(bS||!bF.match.PSEUDO.test(bZ)&&!/!=/.test(bZ)){var bW=bT.call(bX,bZ);if(bW||!bV||bX.document&&bX.document.nodeType!==11){return bW}}}catch(bY){}}return bz(bZ,null,null,[bX]).length>0}}})();(function(){var e=aw.createElement("div");e.innerHTML="
";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bF.order.splice(1,0,"CLASS");bF.find.CLASS=function(bS,bT,bU){if(typeof bT.getElementsByClassName!=="undefined"&&!bU){return bT.getElementsByClassName(bS[1])}};e=null})();function bw(bS,bX,bW,b0,bY,bZ){for(var bU=0,bT=b0.length;bU0){bV=e;break}}}e=e[bS]}b0[bU]=bV}}}if(aw.documentElement.contains){bz.contains=function(bS,e){return bS!==e&&(bS.contains?bS.contains(e):true)}}else{if(aw.documentElement.compareDocumentPosition){bz.contains=function(bS,e){return !!(bS.compareDocumentPosition(e)&16)}}else{bz.contains=function(){return false}}}bz.isXML=function(e){var bS=(e?e.ownerDocument||e:0).documentElement;return bS?bS.nodeName!=="HTML":false};var bN=function(bT,e,bX){var bW,bY=[],bV="",bZ=e.nodeType?[e]:e;while((bW=bF.match.PSEUDO.exec(bT))){bV+=bW[0];bT=bT.replace(bF.match.PSEUDO,"")}bT=bF.relative[bT]?bT+"*":bT;for(var bU=0,bS=bZ.length;bU0){for(bC=bB;bC=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bz,by){var bw=[],bx,e,bA=this[0];if(b.isArray(bz)){var bC=1;while(bA&&bA.ownerDocument&&bA!==by){for(bx=0;bx-1:b.find.matchesSelector(bA,bz)){bw.push(bA);break}else{bA=bA.parentNode;if(!bA||!bA.ownerDocument||bA===by||bA.nodeType===11){break}}}}bw=bw.length>1?b.unique(bw):bw;return this.pushStack(bw,"closest",bz)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bw){var by=typeof e==="string"?b(e,bw):b.makeArray(e&&e.nodeType?[e]:e),bx=b.merge(this.get(),by);return this.pushStack(C(by[0])||C(bx[0])?bx:b.unique(bx))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bw){var e=bw.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bw,e,bx){return b.dir(bw,"parentNode",bx)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bw,e,bx){return b.dir(bw,"nextSibling",bx)},prevUntil:function(bw,e,bx){return b.dir(bw,"previousSibling",bx)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bw){b.fn[e]=function(bz,bx){var by=b.map(this,bw,bz);if(!ac.test(e)){bx=bz}if(bx&&typeof bx==="string"){by=b.filter(bx,by)}by=this.length>1&&!az[e]?b.unique(by):by;if((this.length>1||ba.test(bx))&&ar.test(e)){by=by.reverse()}return this.pushStack(by,e,P.call(arguments).join(","))}});b.extend({filter:function(bx,e,bw){if(bw){bx=":not("+bx+")"}return e.length===1?b.find.matchesSelector(e[0],bx)?[e[0]]:[]:b.find.matches(bx,e)},dir:function(bx,bw,bz){var e=[],by=bx[bw];while(by&&by.nodeType!==9&&(bz===L||by.nodeType!==1||!b(by).is(bz))){if(by.nodeType===1){e.push(by)}by=by[bw]}return e},nth:function(bz,e,bx,by){e=e||1;var bw=0;for(;bz;bz=bz[bx]){if(bz.nodeType===1&&++bw===e){break}}return bz},sibling:function(bx,bw){var e=[];for(;bx;bx=bx.nextSibling){if(bx.nodeType===1&&bx!==bw){e.push(bx)}}return e}});function aH(by,bx,e){bx=bx||0;if(b.isFunction(bx)){return b.grep(by,function(bA,bz){var bB=!!bx.call(bA,bz,bA);return bB===e})}else{if(bx.nodeType){return b.grep(by,function(bA,bz){return(bA===bx)===e})}else{if(typeof bx==="string"){var bw=b.grep(by,function(bz){return bz.nodeType===1});if(bq.test(bx)){return b.filter(bx,bw,!e)}else{bx=b.filter(bx,bw)}}}}return b.grep(by,function(bA,bz){return(b.inArray(bA,bx)>=0)===e})}function a(e){var bx=aS.split("|"),bw=e.createDocumentFragment();if(bw.createElement){while(bx.length){bw.createElement(bx.pop())}}return bw}var aS="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ah=/ jQuery\d+="(?:\d+|null)"/g,at=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},ad=a(aw);ay.optgroup=ay.option;ay.tbody=ay.tfoot=ay.colgroup=ay.caption=ay.thead;ay.th=ay.td;if(!b.support.htmlSerialize){ay._default=[1,"div
","
"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bx){var bw=b(this);bw.text(e.call(this,bx,bw.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||aw).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bx){b(this).wrapAll(e.call(this,bx))})}if(this[0]){var bw=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bw.insertBefore(this[0])}bw.map(function(){var bx=this;while(bx.firstChild&&bx.firstChild.nodeType===1){bx=bx.firstChild}return bx}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapInner(e.call(this,bw))})}return this.each(function(){var bw=b(this),bx=bw.contents();if(bx.length){bx.wrapAll(e)}else{bw.append(e)}})},wrap:function(e){var bw=b.isFunction(e);return this.each(function(bx){b(this).wrapAll(bw?e.call(this,bx):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,by){for(var bw=0,bx;(bx=this[bw])!=null;bw++){if(!e||b.filter(e,[bx]).length){if(!by&&bx.nodeType===1){b.cleanData(bx.getElementsByTagName("*"));b.cleanData([bx])}if(bx.parentNode){bx.parentNode.removeChild(bx)}}}return this},empty:function(){for(var e=0,bw;(bw=this[e])!=null;e++){if(bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"))}while(bw.firstChild){bw.removeChild(bw.firstChild)}}return this},clone:function(bw,e){bw=bw==null?false:bw;e=e==null?bw:e;return this.map(function(){return b.clone(this,bw,e)})},html:function(by){if(by===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ah,""):null}else{if(typeof by==="string"&&!af.test(by)&&(b.support.leadingWhitespace||!at.test(by))&&!ay[(d.exec(by)||["",""])[1].toLowerCase()]){by=by.replace(R,"<$1>");try{for(var bx=0,bw=this.length;bx1&&bx0?this.clone(true):this).get();b(bD[bB])[bw](bz);bA=bA.concat(bz)}return this.pushStack(bA,e,bD.selector)}}});function bh(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function aA(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bw=(e.nodeName||"").toLowerCase();if(bw==="input"){aA(e)}else{if(bw!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),aA)}}}function am(e){var bw=aw.createElement("div");ad.appendChild(bw);bw.innerHTML=e.outerHTML;return bw.firstChild}b.extend({clone:function(bz,bB,bx){var e,bw,by,bA=b.support.html5Clone||!ai.test("<"+bz.nodeName)?bz.cloneNode(true):am(bz);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bz.nodeType===1||bz.nodeType===11)&&!b.isXMLDoc(bz)){aj(bz,bA);e=bh(bz);bw=bh(bA);for(by=0;e[by];++by){if(bw[by]){aj(e[by],bw[by])}}}if(bB){t(bz,bA);if(bx){e=bh(bz);bw=bh(bA);for(by=0;e[by];++by){t(e[by],bw[by])}}}e=bw=null;return bA},clean:function(bx,bz,bI,bB){var bG;bz=bz||aw;if(typeof bz.createElement==="undefined"){bz=bz.ownerDocument||bz[0]&&bz[0].ownerDocument||aw}var bJ=[],bC;for(var bF=0,bA;(bA=bx[bF])!=null;bF++){if(typeof bA==="number"){bA+=""}if(!bA){continue}if(typeof bA==="string"){if(!W.test(bA)){bA=bz.createTextNode(bA)}else{bA=bA.replace(R,"<$1>");var bL=(d.exec(bA)||["",""])[1].toLowerCase(),by=ay[bL]||ay._default,bE=by[0],bw=bz.createElement("div");if(bz===aw){ad.appendChild(bw)}else{a(bz).appendChild(bw)}bw.innerHTML=by[1]+bA+by[2];while(bE--){bw=bw.lastChild}if(!b.support.tbody){var e=w.test(bA),bD=bL==="table"&&!e?bw.firstChild&&bw.firstChild.childNodes:by[1]===""&&!e?bw.childNodes:[];for(bC=bD.length-1;bC>=0;--bC){if(b.nodeName(bD[bC],"tbody")&&!bD[bC].childNodes.length){bD[bC].parentNode.removeChild(bD[bC])}}}if(!b.support.leadingWhitespace&&at.test(bA)){bw.insertBefore(bz.createTextNode(at.exec(bA)[0]),bw.firstChild)}bA=bw.childNodes}}var bH;if(!b.support.appendChecked){if(bA[0]&&typeof(bH=bA.length)==="number"){for(bC=0;bC=0){return by+"px"}}else{return by}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bw,e){return av.test((e&&bw.currentStyle?bw.currentStyle.filter:bw.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bz,bA){var by=bz.style,bw=bz.currentStyle,e=b.isNumeric(bA)?"alpha(opacity="+bA*100+")":"",bx=bw&&bw.filter||by.filter||"";by.zoom=1;if(bA>=1&&b.trim(bx.replace(al,""))===""){by.removeAttribute("filter");if(bw&&!bw.filter){return}}by.filter=al.test(bx)?bx.replace(al,e):bx+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bx,bw){var e;b.swap(bx,{display:"inline-block"},function(){if(bw){e=Z(bx,"margin-right","marginRight")}else{e=bx.style.marginRight}});return e}}}});if(aw.defaultView&&aw.defaultView.getComputedStyle){aJ=function(bz,bx){var bw,by,e;bx=bx.replace(z,"-$1").toLowerCase();if((by=bz.ownerDocument.defaultView)&&(e=by.getComputedStyle(bz,null))){bw=e.getPropertyValue(bx);if(bw===""&&!b.contains(bz.ownerDocument.documentElement,bz)){bw=b.style(bz,bx)}}return bw}}if(aw.documentElement.currentStyle){aY=function(bA,bx){var bB,e,bz,bw=bA.currentStyle&&bA.currentStyle[bx],by=bA.style;if(bw===null&&by&&(bz=by[bx])){bw=bz}if(!bd.test(bw)&&bo.test(bw)){bB=by.left;e=bA.runtimeStyle&&bA.runtimeStyle.left;if(e){bA.runtimeStyle.left=bA.currentStyle.left}by.left=bx==="fontSize"?"1em":(bw||0);bw=by.pixelLeft+"px";by.left=bB;if(e){bA.runtimeStyle.left=e}}return bw===""?"auto":bw}}Z=aJ||aY;function p(bz,bx,bw){var bB=bx==="width"?bz.offsetWidth:bz.offsetHeight,bA=bx==="width"?ao:a2,by=0,e=bA.length;if(bB>0){if(bw!=="border"){for(;by)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,bs=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,ab={},r={},aF,s,aW=["*/"]+["*"];try{aF=bm.href}catch(ax){aF=aw.createElement("a");aF.href="";aF=aF.href}s=K.exec(aF.toLowerCase())||[];function f(e){return function(bz,bB){if(typeof bz!=="string"){bB=bz;bz="*"}if(b.isFunction(bB)){var by=bz.toLowerCase().split(h),bx=0,bA=by.length,bw,bC,bD;for(;bx=0){var e=bx.slice(bz,bx.length);bx=bx.slice(0,bz)}var by="GET";if(bA){if(b.isFunction(bA)){bB=bA;bA=L}else{if(typeof bA==="object"){bA=b.param(bA,b.ajaxSettings.traditional);by="POST"}}}var bw=this;b.ajax({url:bx,type:by,dataType:"html",data:bA,complete:function(bD,bC,bE){bE=bD.responseText;if(bD.isResolved()){bD.done(function(bF){bE=bF});bw.html(e?b("
").append(bE.replace(a7,"")).find(e):bE)}if(bB){bw.each(bB,[bE,bC,bD])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||a0.test(this.type))}).map(function(e,bw){var bx=b(this).val();return bx==null?null:b.isArray(bx)?b.map(bx,function(bz,by){return{name:bw.name,value:bz.replace(bt,"\r\n")}}):{name:bw.name,value:bx.replace(bt,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bw){b.fn[bw]=function(bx){return this.on(bw,bx)}});b.each(["get","post"],function(e,bw){b[bw]=function(bx,bz,bA,by){if(b.isFunction(bz)){by=by||bA;bA=bz;bz=L}return b.ajax({type:bw,url:bx,data:bz,success:bA,dataType:by})}});b.extend({getScript:function(e,bw){return b.get(e,L,bw,"script")},getJSON:function(e,bw,bx){return b.get(e,bw,bx,"json")},ajaxSetup:function(bw,e){if(e){an(bw,b.ajaxSettings)}else{e=bw;bw=b.ajaxSettings}an(bw,e);return bw},ajaxSettings:{url:aF,isLocal:aN.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bc.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(ab),ajaxTransport:f(r),ajax:function(bA,by){if(typeof bA==="object"){by=bA;bA=L}by=by||{};var bE=b.ajaxSetup({},by),bT=bE.context||bE,bH=bT!==bE&&(bT.nodeType||bT instanceof b)?b(bT):b.event,bS=b.Deferred(),bO=b.Callbacks("once memory"),bC=bE.statusCode||{},bD,bI={},bP={},bR,bz,bM,bF,bJ,bB=0,bx,bL,bK={readyState:0,setRequestHeader:function(bU,bV){if(!bB){var e=bU.toLowerCase();bU=bP[e]=bP[e]||bU;bI[bU]=bV}return this},getAllResponseHeaders:function(){return bB===2?bR:null},getResponseHeader:function(bU){var e;if(bB===2){if(!bz){bz={};while((e=aE.exec(bR))){bz[e[1].toLowerCase()]=e[2]}}e=bz[bU.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bB){bE.mimeType=e}return this},abort:function(e){e=e||"abort";if(bM){bM.abort(e)}bG(0,e);return this}};function bG(b0,bV,b1,bX){if(bB===2){return}bB=2;if(bF){clearTimeout(bF)}bM=L;bR=bX||"";bK.readyState=b0>0?4:0;var bU,b5,b4,bY=bV,bZ=b1?bk(bE,bK,b1):L,bW,b3;if(b0>=200&&b0<300||b0===304){if(bE.ifModified){if((bW=bK.getResponseHeader("Last-Modified"))){b.lastModified[bD]=bW}if((b3=bK.getResponseHeader("Etag"))){b.etag[bD]=b3}}if(b0===304){bY="notmodified";bU=true}else{try{b5=G(bE,bZ);bY="success";bU=true}catch(b2){bY="parsererror";b4=b2}}}else{b4=bY;if(!bY||b0){bY="error";if(b0<0){b0=0}}}bK.status=b0;bK.statusText=""+(bV||bY);if(bU){bS.resolveWith(bT,[b5,bY,bK])}else{bS.rejectWith(bT,[bK,bY,b4])}bK.statusCode(bC);bC=L;if(bx){bH.trigger("ajax"+(bU?"Success":"Error"),[bK,bE,bU?b5:b4])}bO.fireWith(bT,[bK,bY]);if(bx){bH.trigger("ajaxComplete",[bK,bE]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bS.promise(bK);bK.success=bK.done;bK.error=bK.fail;bK.complete=bO.add;bK.statusCode=function(bU){if(bU){var e;if(bB<2){for(e in bU){bC[e]=[bC[e],bU[e]]}}else{e=bU[bK.status];bK.then(e,e)}}return this};bE.url=((bA||bE.url)+"").replace(br,"").replace(c,s[1]+"//");bE.dataTypes=b.trim(bE.dataType||"*").toLowerCase().split(h);if(bE.crossDomain==null){bJ=K.exec(bE.url.toLowerCase());bE.crossDomain=!!(bJ&&(bJ[1]!=s[1]||bJ[2]!=s[2]||(bJ[3]||(bJ[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bE.data&&bE.processData&&typeof bE.data!=="string"){bE.data=b.param(bE.data,bE.traditional)}aX(ab,bE,by,bK);if(bB===2){return false}bx=bE.global;bE.type=bE.type.toUpperCase();bE.hasContent=!aR.test(bE.type);if(bx&&b.active++===0){b.event.trigger("ajaxStart")}if(!bE.hasContent){if(bE.data){bE.url+=(M.test(bE.url)?"&":"?")+bE.data;delete bE.data}bD=bE.url;if(bE.cache===false){var bw=b.now(),bQ=bE.url.replace(bs,"$1_="+bw);bE.url=bQ+((bQ===bE.url)?(M.test(bE.url)?"&":"?")+"_="+bw:"")}}if(bE.data&&bE.hasContent&&bE.contentType!==false||by.contentType){bK.setRequestHeader("Content-Type",bE.contentType)}if(bE.ifModified){bD=bD||bE.url;if(b.lastModified[bD]){bK.setRequestHeader("If-Modified-Since",b.lastModified[bD])}if(b.etag[bD]){bK.setRequestHeader("If-None-Match",b.etag[bD])}}bK.setRequestHeader("Accept",bE.dataTypes[0]&&bE.accepts[bE.dataTypes[0]]?bE.accepts[bE.dataTypes[0]]+(bE.dataTypes[0]!=="*"?", "+aW+"; q=0.01":""):bE.accepts["*"]);for(bL in bE.headers){bK.setRequestHeader(bL,bE.headers[bL])}if(bE.beforeSend&&(bE.beforeSend.call(bT,bK,bE)===false||bB===2)){bK.abort();return false}for(bL in {success:1,error:1,complete:1}){bK[bL](bE[bL])}bM=aX(r,bE,by,bK);if(!bM){bG(-1,"No Transport")}else{bK.readyState=1;if(bx){bH.trigger("ajaxSend",[bK,bE])}if(bE.async&&bE.timeout>0){bF=setTimeout(function(){bK.abort("timeout")},bE.timeout)}try{bB=1;bM.send(bI,bG)}catch(bN){if(bB<2){bG(-1,bN)}else{throw bN}}}return bK},param:function(e,bx){var bw=[],bz=function(bA,bB){bB=b.isFunction(bB)?bB():bB;bw[bw.length]=encodeURIComponent(bA)+"="+encodeURIComponent(bB)};if(bx===L){bx=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bz(this.name,this.value)})}else{for(var by in e){v(by,e[by],bx,bz)}}return bw.join("&").replace(k,"+")}});function v(bx,bz,bw,by){if(b.isArray(bz)){b.each(bz,function(bB,bA){if(bw||aq.test(bx)){by(bx,bA)}else{v(bx+"["+(typeof bA==="object"||b.isArray(bA)?bB:"")+"]",bA,bw,by)}})}else{if(!bw&&bz!=null&&typeof bz==="object"){for(var e in bz){v(bx+"["+e+"]",bz[e],bw,by)}}else{by(bx,bz)}}}b.extend({active:0,lastModified:{},etag:{}});function bk(bE,bD,bA){var bw=bE.contents,bC=bE.dataTypes,bx=bE.responseFields,bz,bB,by,e;for(bB in bx){if(bB in bA){bD[bx[bB]]=bA[bB]}}while(bC[0]==="*"){bC.shift();if(bz===L){bz=bE.mimeType||bD.getResponseHeader("content-type")}}if(bz){for(bB in bw){if(bw[bB]&&bw[bB].test(bz)){bC.unshift(bB);break}}}if(bC[0] in bA){by=bC[0]}else{for(bB in bA){if(!bC[0]||bE.converters[bB+" "+bC[0]]){by=bB;break}if(!e){e=bB}}by=by||e}if(by){if(by!==bC[0]){bC.unshift(by)}return bA[by]}}function G(bI,bA){if(bI.dataFilter){bA=bI.dataFilter(bA,bI.dataType)}var bE=bI.dataTypes,bH={},bB,bF,bx=bE.length,bC,bD=bE[0],by,bz,bG,bw,e;for(bB=1;bB=bx.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bx.animatedProperties[this.prop]=true;for(bB in bx.animatedProperties){if(bx.animatedProperties[bB]!==true){e=false}}if(e){if(bx.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bD,bE){bA.style["overflow"+bE]=bx.overflow[bD]})}if(bx.hide){b(bA).hide()}if(bx.hide||bx.show){for(bB in bx.animatedProperties){b.style(bA,bB,bx.orig[bB]);b.removeData(bA,"fxshow"+bB,true);b.removeData(bA,"toggle"+bB,true)}}bw=bx.complete;if(bw){bx.complete=false;bw.call(bA)}}return false}else{if(bx.duration==Infinity){this.now=by}else{bC=by-this.startTime;this.state=bC/bx.duration;this.pos=b.easing[bx.animatedProperties[this.prop]](this.state,bC,0,1,bx.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bx,bw=b.timers,e=0;for(;e").appendTo(e),bx=bw.css("display");bw.remove();if(bx==="none"||bx===""){if(!a9){a9=aw.createElement("iframe");a9.frameBorder=a9.width=a9.height=0}e.appendChild(a9);if(!m||!a9.createElement){m=(a9.contentWindow||a9.contentDocument).document;m.write((aw.compatMode==="CSS1Compat"?"":"")+"");m.close()}bw=m.createElement(by);m.body.appendChild(bw);bx=b.css(bw,"display");e.removeChild(a9)}Q[by]=bx}return Q[by]}var V=/^t(?:able|d|h)$/i,ae=/^(?:body|html)$/i;if("getBoundingClientRect" in aw.documentElement){b.fn.offset=function(bJ){var bz=this[0],bC;if(bJ){return this.each(function(e){b.offset.setOffset(this,bJ,e)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}try{bC=bz.getBoundingClientRect()}catch(bG){}var bI=bz.ownerDocument,bx=bI.documentElement;if(!bC||!b.contains(bx,bz)){return bC?{top:bC.top,left:bC.left}:{top:0,left:0}}var bD=bI.body,bE=aL(bI),bB=bx.clientTop||bD.clientTop||0,bF=bx.clientLeft||bD.clientLeft||0,bw=bE.pageYOffset||b.support.boxModel&&bx.scrollTop||bD.scrollTop,bA=bE.pageXOffset||b.support.boxModel&&bx.scrollLeft||bD.scrollLeft,bH=bC.top+bw-bB,by=bC.left+bA-bF;return{top:bH,left:by}}}else{b.fn.offset=function(bG){var bA=this[0];if(bG){return this.each(function(bH){b.offset.setOffset(this,bG,bH)})}if(!bA||!bA.ownerDocument){return null}if(bA===bA.ownerDocument.body){return b.offset.bodyOffset(bA)}var bD,bx=bA.offsetParent,bw=bA,bF=bA.ownerDocument,by=bF.documentElement,bB=bF.body,bC=bF.defaultView,e=bC?bC.getComputedStyle(bA,null):bA.currentStyle,bE=bA.offsetTop,bz=bA.offsetLeft;while((bA=bA.parentNode)&&bA!==bB&&bA!==by){if(b.support.fixedPosition&&e.position==="fixed"){break}bD=bC?bC.getComputedStyle(bA,null):bA.currentStyle;bE-=bA.scrollTop;bz-=bA.scrollLeft;if(bA===bx){bE+=bA.offsetTop;bz+=bA.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bA.nodeName))){bE+=parseFloat(bD.borderTopWidth)||0;bz+=parseFloat(bD.borderLeftWidth)||0}bw=bx;bx=bA.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bD.overflow!=="visible"){bE+=parseFloat(bD.borderTopWidth)||0;bz+=parseFloat(bD.borderLeftWidth)||0}e=bD}if(e.position==="relative"||e.position==="static"){bE+=bB.offsetTop;bz+=bB.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bE+=Math.max(by.scrollTop,bB.scrollTop);bz+=Math.max(by.scrollLeft,bB.scrollLeft)}return{top:bE,left:bz}}}b.offset={bodyOffset:function(e){var bx=e.offsetTop,bw=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bx+=parseFloat(b.css(e,"marginTop"))||0;bw+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bx,left:bw}},setOffset:function(by,bH,bB){var bC=b.css(by,"position");if(bC==="static"){by.style.position="relative"}var bA=b(by),bw=bA.offset(),e=b.css(by,"top"),bF=b.css(by,"left"),bG=(bC==="absolute"||bC==="fixed")&&b.inArray("auto",[e,bF])>-1,bE={},bD={},bx,bz;if(bG){bD=bA.position();bx=bD.top;bz=bD.left}else{bx=parseFloat(e)||0;bz=parseFloat(bF)||0}if(b.isFunction(bH)){bH=bH.call(by,bB,bw)}if(bH.top!=null){bE.top=(bH.top-bw.top)+bx}if(bH.left!=null){bE.left=(bH.left-bw.left)+bz}if("using" in bH){bH.using.call(by,bE)}else{bA.css(bE)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bx=this[0],bw=this.offsetParent(),by=this.offset(),e=ae.test(bw[0].nodeName)?{top:0,left:0}:bw.offset();by.top-=parseFloat(b.css(bx,"marginTop"))||0;by.left-=parseFloat(b.css(bx,"marginLeft"))||0;e.top+=parseFloat(b.css(bw[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bw[0],"borderLeftWidth"))||0;return{top:by.top-e.top,left:by.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||aw.body;while(e&&(!ae.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bw,e){var bx="scroll"+e;b.fn[bx]=function(bA){var by,bz;if(bA===L){by=this[0];if(!by){return null}bz=aL(by);return bz?("pageXOffset" in bz)?bz[bw?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bz.document.documentElement[bx]||bz.document.body[bx]:by[bx]}return this.each(function(){bz=aL(this);if(bz){bz.scrollTo(!bw?bA:b(bz).scrollLeft(),bw?bA:b(bz).scrollTop())}else{this[bx]=bA}})}});function aL(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bw,e){var bx=e.toLowerCase();b.fn["inner"+e]=function(){var by=this[0];return by?by.style?parseFloat(b.css(by,bx,"padding")):this[bx]():null};b.fn["outer"+e]=function(bz){var by=this[0];return by?by.style?parseFloat(b.css(by,bx,bz?"margin":"border")):this[bx]():null};b.fn[bx]=function(bA){var bB=this[0];if(!bB){return bA==null?null:this}if(b.isFunction(bA)){return this.each(function(bF){var bE=b(this);bE[bx](bA.call(this,bF,bE[bx]()))})}if(b.isWindow(bB)){var bC=bB.document.documentElement["client"+e],by=bB.document.body;return bB.document.compatMode==="CSS1Compat"&&bC||by&&by["client"+e]||bC}else{if(bB.nodeType===9){return Math.max(bB.documentElement["client"+e],bB.body["scroll"+e],bB.documentElement["scroll"+e],bB.body["offset"+e],bB.documentElement["offset"+e])}else{if(bA===L){var bD=b.css(bB,bx),bz=parseFloat(bD);return b.isNumeric(bz)?bz:bD}else{return this.css(bx,typeof bA==="string"?bA:bA+"px")}}}}});bc.jQuery=bc.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);(function(a){a.fn.extend({hasMenu:function(h,g,f,e){var d=a(h);var c=a(g);var b=this;a("body").click(function(){c.hide()});this.click(function(){var i=a(this).offset();c.each(function(){if("#"+a(this).attr("id")!=h){a(this).hide()}});a(this).blur();d.css({left:i.left+f,top:i.top+e}).toggle();return false});(function(i){a(window).unbind("resize.resetPos"+h);a(window).on("resize.resetPos"+h,function(){if(a(h).size()>0&&!!i){var j=i.offset();if(!!j){a(h).css({left:j.left+f})}}})})(b);return this},hasMenu2:function(c,h,g,f){var e=a(h);var d=a(g);var b=a(c);if(e==null||d==null||b==null){return this}a("body").click(function(){b.removeClass("un_box_on");d.hide()});this.click(function(){var j=a(this);if(j.hasClass("un_box_on")){j.removeClass("un_box_on")}else{j.addClass("un_box_on")}var i=j.width();if(a.isFunction(f)){f()}d.each(function(){if("#"+a(this).attr("id")!=h){a(this).hide()}});a(this).blur();e.css({width:i-4}).toggle();return false});return this},hasSubMenu:function(b,e,d){d=d||function(){};this.each(function(){var f=a(this);var c=a(this).find(b);c.css("cursor","pointer").click(function(g){f.toggleClass(e);c.blur();d();g.preventDefault()})});return this},hasTab:function(d,e,c,f,b){this.each(function(){var k=a(this).find(d);var g=a(this).find("a[class=tab-current]");var j=0;if(g.length>0){j=k.index(g)}else{if(typeof f==="string"){var l=a(this).find("a[rel="+f+"]");if(l.length>0){j=k.index(l)}}else{j=f}}var i=k.eq(j).addClass(c);k.eq(j).attr("rel");var h=a(this).find(e).hide();a(k.eq(j).attr("rel")).show();k.click(function(){i.removeClass(c);h.hide();var m=a(this).addClass(c);i=m;a(m.attr("rel")).show();a(this).parent().siblings(".toggleClose").click();m.blur();if(a.isFunction(b)){b(this)}})});return this},isVideo:function(){var b=function(f){var e='
';return a(e)};var c=a(this).find(".play");var d=a(this).find(".close");c.click(function(e){a("#simplayer").siblings(".close").click();stopVoice();a(this).hide();var f=document.title;a(this).parent().append(b(a(this).attr("href")));a.fixIETitleBug(f);a(this).siblings(".close").show();e.preventDefault()});d.click(function(e){var f=document.title;a("#simplayer").remove();a.fixIETitleBug(f);a(this).siblings(".play").show();a(this).hide();e.preventDefault()})}});a.extend({toggle:function(){a(".toggle").click(function(){if(a(this).attr("class").indexOf("toggleOpen")<0){a(this).removeClass("toggleClose").addClass("toggleOpen");a(a(this).attr("rel")).show()}else{a(this).removeClass("toggleOpen").addClass("toggleClose");a(a(this).attr("rel")).hide()}return false})},tabLink:function(b,d){var c=a(b);c.click(function(){if(a.isFunction(d)){d(this)}return false})},stringFormat:function(){var d='{"'+arguments[0].replace(/&/g,'","').replace(/\=/g,'":"')+'"}';var f=a.parseJSON(d);var e=decodeURIComponent(f.q.replace(/\+/g," "));if(f.le===undefined||f.le===""){f.le="eng"}var c=f.le;var b=f.keyfrom;return{le:c,keyfrom:b,query:e}},fixIETitleBug:function(c){if(!a.browser.msie){return}var b=window.setInterval(function(){if(document.title.indexOf("#")<0){window.clearInterval(b)}else{document.title=c}},10)}})})(jQuery);(function(b,a){b(function(){setTimeout(function(){a.setJSReady()},200);var d=!!document.createElement("audio").canPlayType&&document.createElement("audio").canPlayType("audio/mpeg")&&!b("html").hasClass("ua-linux")&&navigator.userAgent.indexOf("Maxthon")<0;var f="dictVoice.swf?onload=swfLoad&time="+b.now();var c=d?b(''):b('');c.appendTo("body");var e=c.get(0);c.play=(function(){var h=function(k){var j=k;if(k.indexOf("http://dict.youdao.com/")<0){j="http://dict.youdao.com/dictvoice?audio="+k}return j};var i=function(){var j=arguments[0];c.attr("src",h(j));e.play()};var g=function(){var j=arguments[0];stopVoice();if(swfReady){b("#simplayer").siblings(".close").click();e.playVoice(h(j))}};return(d)?i:g})();b("#results-contents h2 a.voice-js").live("mouseenter",function(g){c.play(b(this).data("rel"));g.preventDefault()});b("a.voice-js,a.humanvoice-js").live("click",function(g){c.play(b(this).data("rel"));g.preventDefault()});window.stopVoice=function(){if(b.isFunction(e.stopVoice)){e.stopVoice()}if(b.isFunction(e.pause)){e.pause();if(e.currentTime>0){e.currentTime=0}}}});a.swfReady=false;a.jsReady=false;a.isContainerReady=function(){return jsReady};a.setSWFIsReady=function(){swfReady=true};a.setJSReady=function(){jsReady=true}})(jQuery,window);(function(b){function a(h,g){var f=(g==null)?window:g;var d=h.split(".");for(var e=0;e
'},timerProxy:(function(){var d=function(){if(!!window.timerProxyTimeout){window.clearTimeout(window.timerProxyTimeout)}};return function e(f,g){c.timerProxy.clearProxy=e.clearProxy=d;d();window.timerProxyTimeout=window.setTimeout(function(){if(b.isFunction(f)){f()}},g)}})(),getScrollTop:function(){return document.documentElement.scrollTop+document.body.scrollTop},resetPosAndTextSelect:function(){document.documentElement.scrollTop=0;document.selection.empty()},loadJs:function(h,f){var g=document.head||document.getElementsByTagName("head")[0]||document.documentElement;var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",h);e.setAttribute("charset","utf-8");var d=false;e.onload=e.onreadystatechange=function(){if(d){return}if((!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){if(b.isFunction(f.successFunc)){f.successFunc()}e.onload=e.onreadystatechange=null;if(g&&e.parentNode){g.removeChild(e)}e=null;d=true}};e.onerror=function(){if(b.isFunction(f.errorFunc)){f.errorFunc()}};g.insertBefore(e,g.firstChild)},check:function(){var f={mobile:/^0*(13|15|18)(\d{9}|\d-\d{3}-\d{5}|\d-\d{4}-\d{4}|\d{2}-\d{3}-\d{4}|\d{2}-\d{4}-\d{3})$/,phone:/^((0*\d{1,4}|\+\d{1,4}|\(\d{1,4}\))[ -]?)?(\d{2,4}[ -]?)?\d{3,4}[ -]?\d{3,4}([ -]\d{1,5})?$/,email:/^([a-z0-9_][a-z0-9_.-]*)?[a-z0-9_]@([a-z0-9-]+\.){0,4}([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]\.[a-z]{2,6}$/i,qq:/^[1-9]\d{4,14}$/,empty:/^$/,"null":/.+/};var g=[];var i={or:function(q,o,r){for(var p in o){if(o.hasOwnProperty(p)){var n=(!!o[p].exec)?o[p]:f[o[p]];n.exec("");if(n.exec(r)){return true}else{g.push(p)}}}return g},and:function(q,o,r){for(var p in o){if(o.hasOwnProperty(p)){var n=(!!o[p].exec)?o[p]:f[o[p]];n.exec("");if(!n.exec(r)){g.push(p);return g}}}return true}};var h=function(o,n){if(b.isFunction(n.error)){n.error(o)}else{n.elem.addClass("data-error");n.elem.after(m(o,n.tagName,n.className,n.msgNum))}};var j=function(n){g=[];if(b.isFunction(n.errorReset)){n.errorReset()}else{n.elem.removeClass("data-error");b(n.elem.parent()).find(".error-message").remove()}};var m=function(q,o,p,r){r=r||0;for(var n=0;n'+q[n]+""}}return""};var l=function(n){if(n.elem.size()===0||(!!n.additional&&n.additional())){return true}j(n);var o=i[n.concat||"or"](n.elem,n.types,b.trim(n.elem.val()));if(b.isArray(o)){h(o,n);return false}else{return true}};var e=function(p){var o=p.configs;for(var n=0;n0){b(b("#"+this.id+" .main-catalog")[d-1]).addClass("main-catalog-selected");b("#"+this.id+" .group_"+d).show()}else{b(b("#"+this.id+" .main-catalog")[d-1]).addClass("main-catalog-selected")}},setSubCatalogSelectedStatus:function(){b("#"+this.id+" .sub-catalog").each(function(e){b(b(this).find("li")).removeClass("sub-catalog-selected")});for(var d=0;d0){b(this).find(".lable").addClass("nav-tip")}b(this).click(function(){f.removeClass("main-catalog-selected");b(this).addClass("main-catalog-selected");d.setMainCatalogSelectedStatus(g+1);e(this)})});b("#example_navigator a").click(function(g){g.preventDefault()}).attr("hidefocus",true)},initSubSelected:function(d){b("#"+this.id+" .sub-catalog").each(function(f){var e=this;var g=b(this).find("li");g.click(function(){g.each(function(){b(this).removeClass("sub-catalog-selected")});b(this).addClass("sub-catalog-selected");d(this)})})},init:function(f){this.toggleCatalog("hide");var d=b.isFunction(f.mainFn)?f.mainFn:function(){};var e=b.isFunction(f.subFn)?f.subFn:function(){};this.initMain(d);this.initSubSelected(e);if(!!f.main&&!!f.main>0){this.setMainCatalogSelectedStatus(f.main)}if(!!f.sub){this.setSubCatalogSelectedStatus(f.sub)}if(b(".dont_show_nav").length==0){b("#"+this.id).show()}}};jQuery.fn.extend({placeHolder:function(){var d=("placeholder" in document.createElement("input"));var e=function(h,g){var f=h.css("color");var i=function(){h.css("color",(g.color||"#999999"));h.val(g.info||"例如")};i();h.bind("focus.clearIt",function(){if(h.val()===g.info){h.val("")}});h.bind("blur.restoreIt",function(){if(h.val()===""){i()}});h.bind("keydown",function(){h.css("color",f)});h.bind("check",function(){h.css("color",f)})};return function(g){var f=b(this);if(d){f.attr("placeholder",g.info||"例如")}else{e(f,g)}}}()});(function(){var e=function(){this.mudules={};this.listeners={}};var f=function(g){var i=g.split(".");var h={};h.etype=i[0];if(i.length===2){h.ns=i[1]}return h};var d=0;e.prototype={constructor:e,on:function(i,k){var g=f(i);var j=g.etype,h=g.ns;if(typeof this.listeners[j]==="undefined"){this.listeners[j]={}}this.listeners[j]["__eidx_"+d]=k;k.eidx="__eidx_"+d;if(h!==undefined){if(typeof this.mudules[h]==="undefined"){this.mudules[h]=[]}this.mudules[h].push("__eidx_"+d)}d++},un:function(l,g){if(typeof l==="undefined"){this.listeners={};this.mudules={};return}var p=f(l);var o=p.etype,n=p.ns;if(this.listeners[o]!==undefined){var m=this.listeners[o];var h=this.mudules[n];for(var j=0,k=h.length;j').appendTo("body")}var n=function(){k.css({height:i().page.height,width:i().page.width})};n();var m={open:function(){k.show();e(l);l.show()},close:function(){k.hide();l.fadeOut()}};e(l);b(window).resize(function(){e(l);n()});b(window).scroll(function(){n();e(l)});l.click(function(o){o.stopPropagation()});return m};var j;var d;var h=false;c.msg.msgContainer=function(k){if(b(k).size()>0){j=b(k)}};var g=function(k){if(k===undefined){return}b(document).unbind("click.lboxClose");if(!k){b(document).bind("click.lboxClose",function(l){d.close();l.stopPropagation()})}};c.msg.open=function(m,k,l){if(!d){d=f(j)}if(!j){j=b('
').appendTo("body")}window.msg.updateMsg(m,k,l);d.open()};c.msg.updateMsg=function(m,k,l){if(typeof m!=="undefined"&&!!m.size){j.empty();j.append(m)}else{if(typeof m==="string"){j.empty();j.html(m)}}if(b.isFunction(m)){k=m}if(typeof m==="boolean"){l=m}if(typeof k==="boolean"){l=k}if(b.isFunction(k)){k(j)}if(typeof l==="boolean"){g(l)}};c.msg.closeMsg=function(){d.close()}})();dict.dU=c})(jQuery);(function(){$(function(){a()});var a=function(){$("body").click(function(){$("#hnwBtn").removeClass("hnw_btn_on")});$(".mn").click(function(){$("#hnwBtn").removeClass("hnw_btn_on")});$("#hnwBtn").hover(function(){$(this).addClass("hnw_btn_hover")},function(){$(this).removeClass("hnw_btn_hover")});$("#hnwBtn").click(function(){$(this).toggleClass("hnw_btn_on")});$("#hnwBtn").hasMenu("#handWrite",".pm",-8,31);$(window).resize(function(){$("#handWrite").css("left",$("#hnwBtn").offset().left+(-8))})}})();function closeHandWrite(){document.getElementById("handWrite").style.display="none";document.getElementById("hnwBtn").className="hand-write"}function insertQuery(a){document.getElementById("query").value+=a}(function(a){a(function(){a("#query").focus();c();b()});var c=function(){a("#uname").hasMenu2("#uname",".dm",".dm")};var b=function(){a("#nav .product-js,#nv .product-js").click(function(){this.href="http://"+a(this).data("product")+"."+global.fromVm.searchDomain+"/";var d=a("#query").val();var e=(a(this).data("trans")===undefined)?"search?q=":a(this).data("trans");if(d!=""){d=d.replace(/(^link:)|(^inlink:)|(^related:)|(^lj:)/,"");this.href+=e+encodeURIComponent(d)+"&keyfrom=dict.top"}})}})(jQuery);jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h';d("body").prepend(g);return this},_document:function(){return d("#"+this.id)[0].contentWindow.document},put:function(h){var g=this._document();g.open();g.close();f.put(h,g)},get:function(){return f.get(this._document())}};function e(h){h=d.extend({unescape:false},h||{});f.encoder=i(h.unescape);function i(j){if(j===true){return function(k){return k}}if(typeof j=="string"&&(j=g(j.split("")))||typeof j=="function"){return function(k){return j(encodeURIComponent(k))}}return encodeURIComponent}function g(k){var j=new RegExp(d.map(k,encodeURIComponent).join("|"),"ig");return function(l){return l.replace(j,decodeURIComponent)}}}var b={};b.base={callback:undefined,type:undefined,check:function(){},load:function(g){},init:function(h,g){e(g);a.callback=h;a._options=g;a._init()},_init:function(){},_options:{}};b.timer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;a.callback(g);setInterval(a.check,100)},check:function(){var g=f.get();if(g!=a._appState){a._appState=g;a.callback(g)}},load:function(g){if(g!=a._appState){f.put(g);a._appState=g;a.callback(g)}}};b.iframeTimer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;c.init().put(g);a.callback(g);setInterval(a.check,100)},check:function(){var h=c.get(),g=f.get();if(g!=h){if(g==a._appState){a._appState=h;f.put(h);a.callback(h)}else{a._appState=g;c.put(g);a.callback(g)}}},load:function(g){if(g!=a._appState){f.put(g);c.put(g);a._appState=g;a.callback(g)}}};b.hashchangeEvent={_init:function(){a.callback(f.get());d(window).bind("hashchange",a.check)},check:function(){a.callback(f.get())},load:function(g){f.put(g)}};var a=d.extend({},b.base);if(d.browser.msie&&(d.browser.version<8||document.documentMode<8)){a.type="iframeTimer"}else{if("onhashchange" in window){a.type="hashchangeEvent"}else{a.type="timer"}}d.extend(a,b[a.type]);d.history=a})(jQuery);(function(a){a.fn.pngfix=function(b){var e=this;var c=a.extend({imageFixSrc:false,sizingMethod:false},b);if(!a.browser.msie||(a.browser.msie&&a.browser.version>=7)){return(e)}function d(h,j,k){var g=h.prop("filters");var i="DXImageTransform.Microsoft.AlphaImageLoader";if(g[i]){g[i].enabled=true;g[i].src=j;g[i].sizingMethod=k}else{h.css("filter","progid:"+i+'(enabled="true", sizingMethod="'+k+'", src="'+j+'")')}}function f(g){if(g.css("width")=="auto"&g.css("height")=="auto"){g.css("width",g.attr("offsetWidth")+"px")}}return(e.each(function(){var i=a(this);if(i.prop("tagName").toUpperCase()=="IMG"&&(/\.png/i).test(i.attr("src"))){if(!c.imageFixSrc){i.wrap("");var h=i.parent();h.css({height:i.height(),width:i.width(),display:"inline-block"});d(h,i.attr("src"),"image");i.remove()}else{if((/\.gif/i).test(c.imageFixSrc)){f(i);d(i,i.attr("src"),"image");i.attr("src",c.imageFixSrc)}}}else{var g=new String(i.css("backgroundImage"));var j=g.match(/^url\("(.*)"\)$/);if(j&&j.length){f(i);i.css("backgroundImage","none");var k="crop";if(c.sizingMethod){k=c.sizingMethod}d(i,j[1],k);i.find("a").each(function(){a(this).css("position","relative")})}}}))}})(jQuery);(function(){$(function(){a();b()});var b=function(){$("body").click(function(){$("#langSelector .aca").removeClass("aca_btn_on")});$("#langSelector .aca").hover(function(){$(this).addClass("aca_btn_hover")},function(){$(this).removeClass("aca_btn_hover")});$("#langSelector .aca").click(function(){$(this).toggleClass("aca_btn_on")});$("#langSelector").hasMenu("#langSelection",".pm",-10,28);$("#langSelection a").each(function(){var c=$(this);if(c.attr("rel")==$("#le").attr("value")){c.addClass("current")}c.click(function(){$("#langSelection .current").removeClass("current");c.addClass("current");$("#le").attr("value",c.attr("rel"));$("#langText").text(c.text());$("#query").val()!=""?$("#f").submit():(function(){})();$("#langSelection").hide();$("#langSelector .aca").removeClass("aca_btn_on");return false})})};window.aa={};var a=function(){AutoComplete.prototype.showContent=function(){var d=document.getElementById("query");var c=SP.cumOffset(d);this.sdiv.className="sw";this.sdiv.style.top=c[1]+(d.offsetHeight)+"px";this.sdiv.style.left=c[0]+"px";this.sdiv.style.cursor="default";this.sdiv.style.width=(d.offsetWidth+34)+"px";SElement.show(this.sdiv);this.vis=true;this.curNodeIdx=-1};if(typeof(SEvent)!="undefined"){if(SEvent.observe){SEvent.observe(window,"load",function(){aa=new AutoComplete("query","aa",true);aa.setSugServer("http://dsuggest.ydstatic.com");aa.setLogServer("http://www.youdao.com");aa.setSearchServer("http://www.youdao.com/search?");aa.setKeyFrom("dict");aa.setSelectCallBack(function(d){$("#query").val(d);$("#f").submit()});var c=document.getElementById("aca");if(c!=undefined){SEvent.observe(c,"click",aa.pressPoint.sbAEListener(aa));SEvent.observe(c,"mouseover",aa.onmouseover2.sbAEListener(aa));SEvent.observe(c,"mouseout",aa.onmouseout2.sbAEListener(aa))}})}}$("#langSelection li a").bind("click",function(){var c="&le="+$(this).attr("rel");aa.setSugMoreParams(c);aa.setSearchMoreParams(c)})}})();(function(h){var i=function(){var v=h("#result_navigator");var u=v.offset().top;h(window).scroll(function(){var w=dict.dU.getScrollTop();if(u<=w&&(w-u<=h("#results").height()-v.height())){v.stop().animate({top:w-u},100)}else{if(u===0||u>w){v.stop().animate({top:0},100)}}})};h("#tPETrans-type-list .p-type").live("click",function(u){h("#tPETrans-all-trans>li").hide();h("#tPETrans-type-list a.selected_link").removeClass("selected_link");h(this).addClass("selected_link");h("#tPETrans-all-trans ."+h(this).attr("rel")).show();u.preventDefault()});h(function(){g();n();e();a()});var a=function(){var u=navigator.userAgent;if(u.toLowerCase().match(/chrome\/([\d.]+)/)!==null){h("#hnw").attr("wmode","opaque")}};var t={eTransform:0,webTrans:0,examples:"#originalSound",authTrans:0};var j=function(){h("#simplayer").siblings(".close").click();stopVoice()};var g=function(){var w=function(){h("#result_navigator .go-top").click(function(B){window.scrollTo(0,0);B.preventDefault()})};var z=function(){h("#wordGroup").hasSubMenu(".more","more-collapse");h("#webPhrase").hasSubMenu(".more","more-collapse");h("#authDictTrans").hasSubMenu(".more","more-collapse",function(){if(!h(this).hasClass("more-collapse")){window.scrollTo(0,h("#authTrans").offset().top)}});h(".wt-container").hasSubMenu("div>a:not(.add-fav)","wt-collapse");h(".wt-container").hasSubMenu("div.title span","wt-collapse");h("#collinsResult .pr-container").hasSubMenu(".more","more-collapse")};var A=function(){var C=window.location.hostname;var B={expires:7,path:"/",domain:C};h("#eTransform").hasTab(".tabs a",".tab-content","tab-current",h.cookie("tabRecord.eTransform"),function(D){h.cookie("tabRecord.eTransform",D.rel,B)});h("#webTrans").hasTab(".tabs a",".tab-content","tab-current",h.cookie("tabRecord.webTrans"),function(D){h.cookie("tabRecord.webTrans",D.rel,B)});h("#examples").hasTab(".tabs a",".tab-content","tab-current",h.cookie("tabRecord.examples"),function(D){h.cookie("tabRecord.examples",D.rel,B);j()});h("#authTrans").hasTab(".tabs a",".tab-content","tab-current",h.cookie("tabRecord.authTrans"),function(D){h.cookie("tabRecord.authTrans",D.rel,B)})};var x=function(){var B=function(){var E=window.location;return E.protocol+"//"+E.host+E.pathname+E.search};var D=function(F){var E=h("a[name="+F.substring(1)+"]");var G=h(F);var H=0;if(E.length>0){H=E.offset().top}else{if(G.length>0){H=G.offset().top}}window.scrollTo(0,H)};var C=function(E){h.history.load(E)};return function(){h("a.nav-js").click(function(F){var E=h(this).attr("href");if(!!E){E=E.replace(B(),"");if(E.length>=2&&E.substring(0,1)==="#"){D(E)}else{if(E==="#"){window.scrollTo(0,0)}}}F.preventDefault()});h("a.search-js").click(function(G){var F=h(this).attr("href");var E=/^\/search\?(.*)/.exec(F);if(!!F&&!!E){var H=E[1];if(history.pushState&&history.replaceState&&history){s({urlParam:H,before:k,after:f,stateText:h.stringFormat(H),pushUrl:"/search?"+H})}else{C(H)}G.preventDefault()}})}}();var v=function(){h(".trans-js").click(function(){var B=h("#query").val();var C=(h(this).data("trans")===undefined)?"search?q=":h(this).data("trans");if(B!==""){B=B.replace(/(^link:)|(^inlink:)|(^related:)|(^lj:)/,"");this.href+=C+encodeURIComponent(B)+"&keyfrom=dict.top"}})};var u=function(F,C,E,B){var D="";switch(F){case"logo":D="http://impservice.dictapp.youdao.com/imp/request.s?req=http%3A%2F%2Fdict.youdao.com&doctype=dw&memberid=110636&tn=text_250_250&width=250&height=250&posid=203&ref2=http://dict.youdao.com&syndid=57&time="+(+new Date());'"dictVoice.swf?onload=swfLoad&time=" + (+new date())';break;case"text":D="http://impservice.dictapp.youdao.com/imp/request.s?req=http%3A%2F%2Fdict.youdao.com&doctype=dws&syndid=57&posid=0&memberid=110636&tn=text_250_320&width=250&height=320&ref2=http://dict.youdao.com/&time="+(+new Date());break;case"banner":D="http://impservice.dictapp.youdao.com/imp/request.s?req=http%3A%2F%2Fdict.youdao.com&doctype=dw&memberid=110636&tn=text_960_60&width=960&height=60&posid=202&ref2=http://dict.youdao.com&syndid=57&time="+(+new Date())}h("#"+C).html('')};var y=function(){u("logo","baidu-adv",250,250);u("banner","topImgAd",960,60);u("text","dict-adv",250,320)};return function(){window.scrollTo(0,0);i();w();j();d();z();A();x();q();v();p();h.toggle();y()}}();var p=function(){var w=encodeURIComponent(h.trim(h("#results h2 .keyword").text()));var x=function(){var y=history.pushState?decodeURIComponent(window.location.search).replace(/^.*\?/,""):decodeURIComponent(window.location.hash).replace(/^.*#/,"");var z='{"'+y.replace(/&/g,'","').replace(/=/g,'":"')+'"}';var B=h.parseJSON(z);var A=decodeURIComponent(B.q.replace(/\+/g," "));if(B.le===undefined||B.le===""){B.le="eng"}return B};var u=function(){var y=h('
登录后,生词与PC版、手机版词典同步,随时随地背单词 登录
');var z=h("#wordbook").offset();if(h("#login_notice_box").size()){h("#login_notice_box").css({left:(25+z.left)+"px",top:(-6+z.top)+"px"});h("#login_notice_box").show();setTimeout(function(){h("#login_notice_box").hide()},2000)}else{h("body").append(y);h("#login_notice_box").css({left:(25+z.left)+"px",top:(-6+z.top)+"px"});h("#login_notice_box").show();setTimeout(function(){h("#login_notice_box").hide()},2000)}};var v=function(){var y=x();if(h("#wordbook").hasClass("add_to_wordbook")){h.get("/wordbook/ajax?action=addword&q="+w+"&date="+(new Date()).toString(),{le:y.le},function(z){if(z.message==="adddone"){h("#wordbook").attr("title","已添加,点击编辑单词本");h("#wordbook").removeClass("add_to_wordbook");h("#wordbook").addClass("remove_from_wordbook")}else{if(z.message==="nouser"){u()}}})}else{h.get("/wordbook/ajax?action=getoneword&q="+w+"&date="+(new Date()).toString(),function(A){if(h(A).find("result").text()==="hasword"){var z=h("#wordbook").offset();h("#editwordform").css({display:"block",top:(z.top+30)+"px"});h("#wordbook-word").attr("readonly","true").val(h(A).find("word").text()).css({background:"#ccc",border:"1px solid #7F9DB9"});h("#wordbook-phonetic").val(h(A).find("phonetic").text());h("#wordbook-desc").val(h(A).find("trans").text());h("#wordbook-tags").val(h(A).find("tags").text());h("#tag-select-list").empty();h(A).find("tagitem").each(function(){h("#tag-select-list").append("
  • "+h(this).text()+"
  • ")})}else{if(A.message==="nouser"){u()}}})}};if(h("#wordbook").size()==0){h("#results h2.wordbook-js .keyword").after(h("",{href:"javascript:void(0);",id:"wordbook",click:v}))}if(document.getElementById("uname")){h.get("/wordbook/ajax?action=getoneword&q="+w+"&date="+(new Date()).toString(),function(y){if(h(y).find("result").text()==="hasword"){h("#wordbook").attr({"class":"remove_from_wordbook",title:"已添加,点击编辑单词本"})}else{h("#wordbook").attr({"class":"add_to_wordbook",title:"未添加,点击添加到单词本"})}})}else{h("#wordbook").attr({"class":"add_to_wordbook",title:"未添加,点击添加到单词本"})}};var e=function(){h("#delword").click(function(){var v=encodeURIComponent(h.trim(h("#results h2 .keyword").text()));h.get("/wordbook/ajax?action=delword&q="+v+"&date="+(new Date()).toString(),function(w){if(w.success==="1"){h("#editwordform").css("display","none");h("#wordbook").attr("title","未添加,点击添加到单词本");h("#wordbook").removeClass("remove_from_wordbook");h("#wordbook").addClass("add_to_wordbook")}})});h("#addword").click(function(z){z.preventDefault();var y=encodeURIComponent(h.trim(h("#results h2 .keyword").text()));var w=h("#wordbook-phonetic").val();var x=h("#wordbook-desc").val();var v=h("#wordbook-tags").val();h.get("/wordbook/ajax?action=addword&q="+y+"&date="+(new Date()).toString(),{phonetic:w,trans:x,tags:v},function(A){if(A.message==="editdone"){h("#editwordform").css("display","none");h("#wordbook").attr("title","已添加,点击编辑单词本");h("#wordbook").addClass("remove_from_wordbook")}})});var u=h("ul#tag-select-list");h("#close-editwordform").click(function(){h("#editwordform").css("display","none")});h("#wordbook-tags").focus(function(){u.css("display","block")});u.on("click","li",function(){h("#wordbook-tags").val(h(this).text());u.hide()});u.on("mouseover","li",function(){h(this).css("background","#cccccc")}).on("mouseout","li",function(){h(this).css("background","none")});h(document).bind("click",function(x){var w=x.target;var v=u.get(0);w===v||h(w).is("#wordbook-tags")||h.contains(v,w)||u.hide()})};var q=function(){h.tabLink("#examples tabs a",function(u){if(h(u).attr("rel")==="#originalSound"){h(".playicon img").pngfix()}})};var d=function(){h(".playicon img").pngfix();h(".video").isVideo()};var b=(function(){var w={};var u=20;var x=[];var y=0;var v=function(z,A){w[z]=A;if(y");h("#scontainer").replaceWith(w[1]);if(v.stateText!==undefined&&history.pushState){history.pushState(v.stateText,"",v.pushUrl)}if(w.length===1){location.href="http://"+location.host;return}g();b(v.urlParam,w[1]);(v.after||function(){})(v.urlParam)},error:function(){h("#results").html("未获得有效数据!");(v.after||function(){})(v.urlParam)}})}};if(!!history.pushState){h(window).on("popstate",function(v){var w=v.originalEvent.state;if(!!w){var u="le="+w.le+"&q="+decodeURIComponent(w.query)+"&keyfrom="+w.keyfrom;s({urlParam:u,before:k,after:f})}})}var c=function(){var w={query:h("#query").val(),le:h("#le").val()};var v=false;if(!v){history.replaceState(w,"","");v=true}if(location.href.indexOf("#")>0){var u=decodeURIComponent(location.hash.replace(/^.*#/,""));history.replaceState(null,"","/search?"+u);s({urlParam:u,before:k,after:f})}h("#f").submit(function(){var x="le="+h("#le").val()+"&q="+decodeURIComponent(h("#query").val())+"&keyfrom=dict.top";s({urlParam:x,before:k,after:f,stateText:{query:h("#query").val(),le:h("#le").val(),keyfrom:"dict.top"},pushUrl:"/search?"+x});return false})};var o=function(){var u=function(){if(location.pathname.indexOf("/w/")===0&&location.hash===""){var v=location.pathname.match(/\/w\/(.*)\//);if(v!==null&&!!v[1]){location.hash=encodeURIComponent("q="+v[1])}}else{if(location.hash===""){location.hash=encodeURIComponent(location.search.substr(1))}}};u();h("#f").submit(function(){var v=h(this).serialize();h.history.load(v);return false});h("#bs").live("submit",function(){var v=h(this).serialize();h.history.load(v);return false});h.history.init(function(w){var v=w.replace(/^.*#/,"");if(v!==""){s({urlParam:v,before:k,after:f})}})};var n=function(){if(!!window.history.pushState){c()}else{o()}}})(jQuery);function hlgt(a){$(a).addClass("highLight")}function unhlgt(a){$(a).removeClass("highLight")}(function(){$(function(){$(".tabs a").live("click",function(){var d=$(this.rel);var c=b(d)+"."+d.attr("id");a(this,c)});$("#results .more").live("click",function(){var c=b($(this))+".more";a(this,c)});$(".wt-container .do-detail").live("click",function(){var c=b($(this))+".detail";a(this,c)});$(".log-js").live("click",function(){a(this,$(this).data("4log"))})});var b=function(){var c=function(d){if(d!==""&&d.indexOf("Toggle")<0){return d}};return function(d){return d.parentsUntil("#results").map(function(){return c(this.id)}).get().reverse().join(".")}}();var a=function(d,c){new Image().src="/ctlog?q="+$("#query").val()+"&url="+encodeURIComponent(d.href)+"&pos=1&cfd=1&spt=1&action=CLICK&ctype="+c}})(); ================================================ FILE: cache/lock.html ================================================ Openyoudao首页

    取词功能已锁定,解锁请抹黑:%lock%

    ================================================ FILE: cache/origin.html ================================================ ================================================ FILE: cache/result.html ================================================ ================================================ FILE: cache/unlock.html ================================================ Openyoudao首页

    取词功能已解锁,请选择待翻译的词语,或返回首页

    %index%

    ================================================ FILE: cache/zh2en.html ================================================ Openyoudao首页

    欢迎使用有道字典汉英互译功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的译文

    %index%

    ================================================ FILE: cache/zh2enlj.html ================================================ Openyoudao首页

    欢迎使用有道字典汉英例句子功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的例句

    %index%

    ================================================ FILE: cache/zh2fr.html ================================================ Openyoudao首页

    欢迎使用有道字典汉法互译功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的译文

    %index%

    ================================================ FILE: cache/zh2frlj.html ================================================ Openyoudao首页

    欢迎使用有道字典汉法例句子功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的例句

    %index%

    ================================================ FILE: cache/zh2jap.html ================================================ Openyoudao首页

    欢迎使用有道字典汉日互译功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的译文

    %index%

    ================================================ FILE: cache/zh2japlj.html ================================================ Openyoudao首页

    欢迎使用有道字典汉日例句子功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的例句

    %index%

    ================================================ FILE: cache/zh2ko.html ================================================ Openyoudao首页

    欢迎使用有道字典汉韩互译功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的译文

    %index%

    ================================================ FILE: cache/zh2kolj.html ================================================ Openyoudao首页

    欢迎使用有道字典汉韩例句子功能

    点击鼠标左键,选中要翻译的词汇,即可显示你想要的例句

    %index%

    ================================================ FILE: desktop/openyoudao.desktop ================================================ [Desktop Entry] Name=Openyoudao Name[ca]=Openyoudao Name[de_DE]=Openyoudao Name[es_ES]=Openyoudao Name[es_MX]=Openyoudao Name[fr_FR]=Openyoudao Name[it_IT]=Openyoudao Name[pt_BR]=Openyoudao Name[pt_PT]=Openyoudao Name[tr_TR]=Openyoudao Name[zh_CN]=有道 Name[zh_TW]=Openyoudao GenericName=Openyoudao YouDao Client GenericName[ca]=Client de YouDao Openyoudao GenericName[de_DE]=Openyoudao YouDao Client GenericName[es_ES]=Cliente de YouDao Openyoudao GenericName[es_MX]=Openyoudao Cliente YouDao GenericName[fr_FR]=Openyoudao YouDao Client GenericName[it_IT]=Openyoudao YouDao Client GenericName[pt_BR]=Cliente de YouDao Openyoudao GenericName[pt_PT]=Openyoudao Cliente YouDao GenericName[tr_TR]=Openyoudao YouDao İstemcisi GenericName[zh_CN]=有道客户端 GenericName[zh_TW]=Openyoudao YouDao 用戶端 X-GNOME-FullName=Openyoudao YouDao Client X-GNOME-FullName[ca]=Client de YouDao Openyoudao X-GNOME-FullName[de_DE]=Openyoudao YouDao Client X-GNOME-FullName[es_ES]=Cliente de YouDao Openyoudao X-GNOME-FullName[es_MX]=Openyoudao Cliente YouDao X-GNOME-FullName[fr_FR]=Openyoudao YouDao Client X-GNOME-FullName[it_IT]=Openyoudao YouDao Client X-GNOME-FullName[pt_BR]=Cliente de YouDao Openyoudao X-GNOME-FullName[pt_PT]=Openyoudao Cliente YouDao X-GNOME-FullName[tr_TR]=Openyoudao YouDao İstemcisi X-GNOME-FullName[zh_CN]=有道客户端 X-GNOME-FullName[zh_TW]=Openyoudao YouDao 用戶端 Type=Application Comment=Lightweight YouDao Client base on Gtk2 and Webkit Comment[de_DE]=Ein schlanker YouDao Client basierend auf Gtk2 und Webkit Comment[es_ES]=Cliente de YouDao basado en Gtk2 y Webkit Comment[es_MX]=Cliente YouDao liviano basado en Gtk2 y Webkit Comment[fr_FR]=Un client léger pour youdao basé sur Gtk2 et Webkit Comment[it_IT]=YouDao Client leggero basato su Gtk2 e Webkit Comment[pt_BR]=Cliente YouDao baseado em Gtk2 e Webkit Comment[pt_PT]=Cliente Leve de YouDao baseado em Gtk2 e Webkit Comment[tr_TR]=Gtk2 ve Webkit Tabanlı Hafif YouDao İstemcisi Comment[zh_CN]=基于 Gtk2 Webkit 的轻巧有道客户端 Comment[zh_TW]=基於 Gtk2 Webkit 的輕巧 YouDao 用戶端 Exec=openyoudao Icon=/usr/share/openyoudao/images/icon/icon.jpg Categories=GTK;GNOME;Network;Office;Dictionary; X-GNOME-Gettext-Domain=openyoudao ================================================ FILE: fusionyoudao.py ================================================ #!/usr/bin/env python # -*- coding: utf-8 -*- try: from BeautifulSoup import BeautifulSoup except ImportError: from bs4 import BeautifulSoup import os import gl import re import popen2 def reconstruct(func): print "start fusionyoudao" soup = BeautifulSoup(open(gl.origindir)) head=open(gl.headyoudao,'r') result = soup.find('div',{"id":"results"}) #sousuo = soup.find('form',{"id":"f"}) #sousuo = str(sousuo).replace("action=\"/search\"","action=\"http://dict.youdao.com/search\"") #result = str(result).replace("href=\"/example/","href=\"http://dict.youdao.com/example/") #os.system("echo "" > cache/result.html") f_tar=open(gl.resultdir,'w+') print >> f_tar,"" print >> f_tar,head.read() print >> f_tar,"" #print >> f_tar,"\n" #print >> f_tar,"
    " #print >> f_tar,sousuo #print >> f_tar,"
    " print >> f_tar,result print >> f_tar,"" f_tar.close() head.close() os.system("sed -i -e 's/action=\"\/search/action=\"http:\/\/dict.youdao.com\/search/g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/href=\"\/example/href=\"http:\/\/dict.youdao.com\/example/g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/href=\"\/simplayer.swf/href=\"http:\/\/dict.youdao.com\/simplayer.swf/g' \'"+ gl.resultdir + "\'") #os.system("sed -i -e 's/href=\"\/simplayer.swf/href=\"http:\/\/dict.youdao.com\/simplayer.swf/g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/

    目录<\/h3>/

    %index%<\/h3>/g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/bilingual\">双语例句/bilingual\">%index%/g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/详细内容//g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/更多双语例句//g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/更多原声例句//g' \'"+ gl.resultdir + "\'") os.system("sed -i -e 's/更多权威例句//g' \'"+ gl.resultdir + "\'") os.system("sed -i -e '/onmousedown/'d \'"+ gl.resultdir + "\'") os.system("sed -i -e '/百度百科/'d \'"+ gl.resultdir + "\'") if func=="lj": os.system("sed -i -e '/
  • /'d \'"+ gl.resultdir + "\'") os.system("sed -i -e '/口语英文写作助手<\/a><\/span><\/li>//g' \'"+ gl.resultdir + "\'") #os.system("sed -i -e 's/http:\/\/dict.youdao.com\/writing\/?keyfrom=dictweb/file:\/\/\/usr\/share\/openyoudao\/config.html/g' \'"+ gl.resultdir + "\'") print "fusionyoudao completed" #os.system("sed -i -e 's/<\/div><\/div><\/div>/ /g' cache/result.html") ================================================ FILE: gl.py ================================================ #encoding=utf-8 import os import sys global pre_text global cachedir global homedir global origindir global resultdir global homeurl global headyoudao global bodystartyoudao import locale #[config] lock="0" title="有道首页" #[youdao config] pre_text="" locale=locale.getdefaultlocale() userdir=os.path.expanduser('~') workdir = os.getcwd() homedir = sys.path[0] userdir=os.path.expanduser('~') cachedir = userdir + "/.openyoudao" origindir = userdir + "/.openyoudao/origin.html" resultdir = userdir + "/.openyoudao/result.html" headyoudao = "/usr/share/openyoudao/construction/youdao/head.html" bodystartyoudao = "/usr/share/openyoudao/construction/youdao/body-start.txt" homeurl = "file://" + "/usr/share/openyoudao/config.html" expandurl = "file://" + "/usr/share/openyoudao/expand.html" helpurl = "file://" + "/usr/share/openyoudao/help.html" baseurlyoudao="http://dict.youdao.com/search?q=" #[youdao lj] searchurl="http://dict.youdao.com/search?le=eng&q=" zh2en=searchurl zh2jap="http://dict.youdao.com/search?le=jap&q=" zh2ko="http://dict.youdao.com/search?le=ko&q=" zh2fr="http://dict.youdao.com/search?le=fr&q=" zh2enlj="http://dict.youdao.com/search?le=eng&q=lj%3A" zh2japlj="http://dict.youdao.com/search?le=jap&q=lj%3A" zh2kolj="http://dict.youdao.com/search?le=ko&q=lj%3A" zh2frlj="http://dict.youdao.com/search?le=fr&q=lj%3A" func="default" Dict="youdao" lang="en" #[google config] googledir = userdir + "/.openyoudao/google.html" #[common config] keyworddir = userdir + "/.openyoudao/keyword.html" historydir = userdir + "/.openyoudao/history.html" ================================================ FILE: goslate.py ================================================ #! /usr/bin/env python # -*- coding: utf-8 -*- '''Goslate: Free Google Translate API ''' from __future__ import print_function from __future__ import unicode_literals import sys import os import json import itertools import functools import time import socket import random try: # python 3 from urllib.request import build_opener, Request, HTTPHandler, HTTPSHandler from urllib.parse import quote_plus, urlencode, unquote_plus, urljoin izip = zip except ImportError: # python 2 from urllib2 import build_opener, Request, HTTPHandler, HTTPSHandler from urllib import urlencode, unquote_plus, quote_plus from urlparse import urljoin from itertools import izip try: import concurrent.futures _g_executor = concurrent.futures.ThreadPoolExecutor(max_workers=120) except ImportError: _g_executor = None __author__ = 'ZHUO Qiang' __email__ = 'zhuo.qiang@gmail.com' __copyright__ = "2013, http://zhuoqiang.me" __license__ = "MIT" __date__ = '2013-05-11' __version_info__ = (1, 3, 0) __version__ = '.'.join(str(i) for i in __version_info__) __home__ = 'https://bitbucket.org/zhuoqiang/goslate' __download__ = 'https://pypi.python.org/pypi/goslate' try: unicode except NameError: unicode = str def _is_sequence(arg): return (not isinstance(arg, unicode)) and ( not isinstance(arg, bytes)) and ( hasattr(arg, "__getitem__") or hasattr(arg, "__iter__")) def _is_bytes(arg): return isinstance(arg, bytes) def _unwrapper_single_element(elements): if len(elements) == 1: return elements[0] return elements class Error(Exception): '''Error type ''' pass WRITING_NATIVE = ('trans',) '''native target language writing system''' WRITING_ROMAN = ('translit',) '''romanlized writing system. only valid for some langauges, otherwise it outputs empty string''' WRITING_NATIVE_AND_ROMAN = WRITING_NATIVE + WRITING_ROMAN '''both native and roman writing. The output will be a tuple''' class Goslate(object): '''All goslate API lives in this class You have to first create an instance of Goslate to use this API :param writing: The translation writing system. Currently 3 values are valid - :const:`WRITING_NATIVE` for native writing system - :const:`WRITING_ROMAN` for roman writing system - :const:`WRITING_NATIVE_AND_ROMAN` for both native and roman writing system. output will be a tuple in this case :param opener: The url opener to be used for HTTP/HTTPS query. If not provide, a default opener will be used. For proxy support you should provide an ``opener`` with ``ProxyHandler`` :type opener: `urllib2.OpenerDirector `_ :param retry_times: how many times to retry when connection reset error occured. Default to 4 :type retry_times: int :type max_workers: int :param timeout: HTTP request timeout in seconds :type timeout: int/float :param debug: Turn on/off the debug output :type debug: bool :param service_urls: google translate url list. URLs will be used randomly for better concurrent performance. For example ``['http://translate.google.com', 'http://translate.google.de']`` :type service_urls: single string or a sequence of strings :param executor: the multi thread executor for handling batch input, default to a global ``futures.ThreadPoolExecutor`` instance with 120 max thead workers if ``futures`` is avalible. Set to None to disable multi thread support :type executor: ``futures.ThreadPoolExecutor`` .. note:: multi thread worker relys on `futures `_, if it is not avalible, ``goslate`` will work under single thread mode :Example: >>> import goslate >>> >>> # Create a Goslate instance first >>> gs = goslate.Goslate() >>> >>> # You could get all supported language list through get_languages >>> languages = gs.get_languages() >>> print(languages['en']) English >>> >>> # Tranlate English into German >>> print(gs.translate('hello', 'de')) Hallo >>> # Detect the language of the text >>> print(gs.detect('some English words')) en >>> # Get goslate object dedicated for romanlized translation (romanlization) >>> gs_roman = goslate.Goslate(WRITING_ROMAN) >>> print(gs_roman.translate('hello', 'zh')) Nǐ hǎo ''' _MAX_LENGTH_PER_QUERY = 1800 def __init__(self, writing=WRITING_NATIVE, opener=None, retry_times=4, executor=_g_executor, timeout=4, service_urls=('http://translate.google.com',), debug=False): self._DEBUG = debug self._MIN_TASKS_FOR_CONCURRENT = 2 self._opener = opener self._languages = None self._TIMEOUT = timeout if not self._opener: debuglevel = self._DEBUG and 1 or 0 self._opener = build_opener( HTTPHandler(debuglevel=debuglevel), HTTPSHandler(debuglevel=debuglevel)) self._RETRY_TIMES = retry_times self._executor = executor self._writing = writing if _is_sequence(service_urls): self._service_urls = service_urls else: self._service_urls = (service_urls,) def _open_url(self, url): if len(url) > self._MAX_LENGTH_PER_QUERY+100: raise Error('input too large') # Google forbits urllib2 User-Agent: Python-urllib/2.7 request = Request(url, headers={'User-Agent':'Mozilla/4.0'}) exception = None # retry when get (, error(54, 'Connection reset by peer') for i in range(self._RETRY_TIMES): try: response = self._opener.open(request, timeout=self._TIMEOUT) response_content = response.read().decode('utf-8') if self._DEBUG: print(response_content) return response_content except socket.error as e: if self._DEBUG: import threading print(threading.currentThread(), e) if 'Connection reset by peer' not in str(e): raise e exception = e time.sleep(0.0001) raise exception def _execute(self, tasks): first_tasks = [next(tasks, None) for i in range(self._MIN_TASKS_FOR_CONCURRENT)] tasks = (task for task in itertools.chain(first_tasks, tasks) if task) if not first_tasks[-1] or not self._executor: for each in tasks: yield each() else: exception = None for each in [self._executor.submit(t) for t in tasks]: if exception: each.cancel() else: exception = each.exception() if not exception: yield each.result() if exception: raise exception def _basic_translate(self, text, target_language, source_language): # assert _is_bytes(text) if not target_language: raise Error('invalid target language') if not text.strip(): return tuple(u'' for i in range(len(self._writing))) , unicode(target_language) # Browser request for 'hello world' is: # http://translate.google.com/translate_a/t?client=t&hl=en&sl=en&tl=zh-CN&ie=UTF-8&oe=UTF-8&multires=1&prev=conf&psl=en&ptl=en&otf=1&it=sel.2016&ssel=0&tsel=0&prev=enter&oc=3&ssel=0&tsel=0&sc=1&text=hello%20world # TODO: we could randomly choose one of the google domain URLs for concurrent support GOOGLE_TRASLATE_URL = urljoin(random.choice(self._service_urls), '/translate_a/t') GOOGLE_TRASLATE_PARAMETERS = { # 't' client will receiver non-standard json format # change client to something other than 't' to get standard json response 'client': 'z', 'sl': source_language, 'tl': target_language, 'ie': 'UTF-8', 'oe': 'UTF-8', 'text': text } url = '?'.join((GOOGLE_TRASLATE_URL, urlencode(GOOGLE_TRASLATE_PARAMETERS))) response_content = self._open_url(url) data = json.loads(response_content) # google may change space to no-break space, we may need to change it back translation = tuple(u''.join(i[part] for i in data['sentences']).replace(u'\xA0', u' ') for part in self._writing) detected_source_language = data['src'] return translation, detected_source_language def get_languages(self): '''Discover supported languages It returns iso639-1 language codes for `supported languages `_ for translation. Some language codes also include a country code, like zh-CN or zh-TW. .. note:: It only queries Google once for the first time and use cached result afterwards :returns: a dict of all supported language code and language name mapping ``{'language-code', 'Language name'}`` :Example: >>> languages = Goslate().get_languages() >>> assert 'zh' in languages >>> print(languages['zh']) Chinese ''' if self._languages: return self._languages GOOGLE_TRASLATOR_URL = 'http://translate.google.com/translate_a/l' GOOGLE_TRASLATOR_PARAMETERS = { 'client': 't', } url = '?'.join((GOOGLE_TRASLATOR_URL, urlencode(GOOGLE_TRASLATOR_PARAMETERS))) response_content = self._open_url(url) data = json.loads(response_content[1:-1]) languages = data['sl'] languages.update(data['tl']) if 'auto' in languages: del languages['auto'] if 'zh' not in languages: languages['zh'] = 'Chinese' self._languages = languages return self._languages _SEPERATORS = [quote_plus(i.encode('utf-8')) for i in u'.!?,;。,?!::"“”’‘#$%&()()*×+/<=>@#¥[\]…[]^`{|}{}~~\n\r\t '] def _translate_single_text(self, text, target_language, source_lauguage): assert _is_bytes(text) def split_text(text): start = 0 text = quote_plus(text) length = len(text) while (length - start) > self._MAX_LENGTH_PER_QUERY: for seperator in self._SEPERATORS: index = text.rfind(seperator, start, start+self._MAX_LENGTH_PER_QUERY) if index != -1: break else: raise Error('input too large') end = index + len(seperator) yield unquote_plus(text[start:end]) start = end yield unquote_plus(text[start:]) def make_task(text): return lambda: self._basic_translate(text, target_language, source_lauguage)[0] results = list(self._execute(make_task(i) for i in split_text(text))) return tuple(''.join(i[n] for i in results) for n in range(len(self._writing))) def translate(self, text, target_language, source_language=''): '''Translate text from source language to target language .. note:: - Input all source strings at once. Goslate will batch and fetch concurrently for maximize speed. - `futures `_ is required for best performance. - It returns generator on batch input in order to better fit pipeline architecture :param text: The source text(s) to be translated. Batch translation is supported via sequence input :type text: UTF-8 str; unicode; string sequence (list, tuple, iterator, generator) :param target_language: The language to translate the source text into. The value should be one of the language codes listed in :func:`get_languages` :type target_language: str; unicode :param source_language: The language of the source text. The value should be one of the language codes listed in :func:`get_languages`. If a language is not specified, the system will attempt to identify the source language automatically. :type source_language: str; unicode :returns: the translated text(s) - unicode: on single string input - generator of unicode: on batch input of string sequence - tuple: if WRITING_NATIVE_AND_ROMAN is specified, it will return tuple/generator for tuple (u"native", u"roman format") :raises: - :class:`Error` ('invalid target language') if target language is not set - :class:`Error` ('input too large') if input a single large word without any punctuation or space in between :Example: >>> gs = Goslate() >>> print(gs.translate('Hello World', 'de')) Hallo Welt >>> >>> for i in gs.translate(['good', u'morning'], 'de'): ... print(i) ... gut Morgen To output romanlized translation :Example: >>> gs_roman = Goslate(WRITING_ROMAN) >>> print(gs_roman.translate('Hello', 'zh')) Nǐ hǎo ''' if not target_language: raise Error('invalid target language') if target_language.lower() == 'zh': target_language = 'zh-CN' if source_language.lower() == 'zh': source_language = 'zh-CN' if not _is_sequence(text): if isinstance(text, unicode): text = text.encode('utf-8') return _unwrapper_single_element(self._translate_single_text(text, target_language, source_language)) JOINT = u'\u26ff' UTF8_JOINT = (u'\n%s\n' % JOINT).encode('utf-8') def join_texts(texts): def convert_to_utf8(texts): for i in texts: if isinstance(i, unicode): i = i.encode('utf-8') yield i.strip() texts = convert_to_utf8(texts) text = next(texts) for i in texts: new_text = UTF8_JOINT.join((text, i)) if len(quote_plus(new_text)) < self._MAX_LENGTH_PER_QUERY: text = new_text else: yield text text = i yield text def make_task(text): def task(): r = self._translate_single_text(text, target_language, source_language) r = tuple([i.strip('\n') for i in n.split(JOINT)] for n in r) return izip(*r) # return r[0] return task return (_unwrapper_single_element(i) for i in itertools.chain.from_iterable(self._execute(make_task(i) for i in join_texts(text)))) def _detect_language(self, text): if _is_bytes(text): text = text.decode('utf-8') return self._basic_translate(text[:50].encode('utf-8'), 'en', '')[1] def detect(self, text): '''Detect language of the input text .. note:: - Input all source strings at once. Goslate will detect concurrently for maximize speed. - `futures `_ is required for best performance. - It returns generator on batch input in order to better fit pipeline architecture. :param text: The source text(s) whose language you want to identify. Batch detection is supported via sequence input :type text: UTF-8 str; unicode; sequence of string :returns: the language code(s) - unicode: on single string input - generator of unicode: on batch input of string sequence :raises: :class:`Error` if parameter type or value is not valid Example:: >>> gs = Goslate() >>> print(gs.detect('hello world')) en >>> for i in gs.detect([u'hello', 'Hallo']): ... print(i) ... en de ''' if _is_sequence(text): return self._execute(functools.partial(self._detect_language, i) for i in text) return self._detect_language(text) def _main(argv): import optparse usage = "usage: %prog [options] \n will be used as input source if no file specified." parser = optparse.OptionParser(usage=usage, version="%%prog %s @ Copyright %s" % (__version__, __copyright__)) parser.add_option('-t', '--target-language', metavar='zh-CN', help='specify target language to translate the source text into') parser.add_option('-s', '--source-language', default='', metavar='en', help='specify source language, if not provide it will identify the source language automatically') parser.add_option('-i', '--input-encoding', default=sys.getfilesystemencoding(), metavar='utf-8', help='specify input encoding, default to current console system encoding') parser.add_option('-o', '--output-encoding', default=sys.getfilesystemencoding(), metavar='utf-8', help='specify output encoding, default to current console system encoding') parser.add_option('-r', '--roman', action="store_true", help='change translation writing to roman (e.g.: output pinyin instead of Chinese charactors for Chinese. It only valid for some of the target languages)') options, args = parser.parse_args(argv[1:]) if not options.target_language: print('Error: missing target language!') parser.print_help() return writing = WRITING_NATIVE if options.roman: writing = WRITING_ROMAN gs = Goslate(writing=writing) import fileinput # inputs = fileinput.input(args, mode='rU', openhook=fileinput.hook_encoded(options.input_encoding)) inputs = fileinput.input(args, mode='rb') inputs = (i.decode(options.input_encoding) for i in inputs) outputs = gs.translate(inputs, options.target_language, options.source_language) for i in outputs: sys.stdout.write((i+u'\n').encode(options.output_encoding)) sys.stdout.flush() if __name__ == '__main__': try: _main(sys.argv) except: error = sys.exc_info()[1] if len(str(error)) > 2: print(error) ================================================ FILE: install-openyoudao.sh ================================================ #!/bin/bash #small script to install openyoudao install -g users -o root -m 755 -d debian/openyoudao/usr/bin install -g users -o root -m 755 -d debian/openyoudao/usr/lib/openyoudao install -g users -o root -m 777 -d debian/openyoudao/usr/share/openyoudao install -g users -o root -m 755 -d debian/openyoudao/usr/share/applications install -g users -o root -v -m 755 -t debian/openyoudao/usr/bin scripts/openyoudao install -g users -o root -v -m 755 -t debian/openyoudao/usr/bin install-openyoudao.sh install -g users -o root -v -m 755 -t debian/openyoudao/usr/bin uninstall-openyoudao.sh install -g users -o root -v -m 644 -t debian/openyoudao/usr/lib/openyoudao ./*.py install -g users -o root -v -m 644 -t debian/openyoudao/usr/share/applications desktop/openyoudao.desktop cp -rf cache/* debian/openyoudao/usr/share/openyoudao chmod -R 777 debian/openyoudao/usr/share/openyoudao ================================================ FILE: openyoudao.py ================================================ #!/usr/bin/python #-*- coding: utf-8 -*- # RECORD extension # Not very much unlike the xmacrorec2 program in the xmacro package. import popen2 import goslate from time import sleep import thread import webshot import sys import fusionyoudao import gl import os import webkit, gtk # Change path so we find Xlib sys.path.insert(1, os.path.join(sys.path[0], '..')) from Xlib import X, XK, display from Xlib.ext import record from Xlib.protocol import rq record_dpy = display.Display() def record_callback(reply): if reply.category != record.FromServer: return if reply.client_swapped: print "* received swapped protocol data, cowardly ignored" return if not len(reply.data) or ord(reply.data[0]) < 2: # not an event return data = reply.data while len(data): event, data = rq.EventField(None).parse_binary_value(data, record_dpy.display, None, None) # deal with the event type if event.type == X.ButtonRelease: # get text global Alive pipe = os.popen("xclip -o") text = pipe.readline().strip('\r\n\x00 ').lower() #如果首行以连字符'-'结尾,则去掉'-'和空格接次行,否则加空格接次行 if text.endswith('-'): text = text.strip(' -') + pipe.readline().strip('\r\n\x00 ').lower() else: text = text + ' ' + pipe.readline().strip('\r\n\x00 ').lower() text = text.strip() pipe.readlines() #清空管道剩余部分 pipe.close() print "您选取的是: ", text if(gl.pre_text != text and text!=""and gl.lock=="0" or text=="%lock%"): url = "" gl.pre_text = text if(False==os.path.exists(gl.cachedir)): os.system("mkdir \'" + gl.cachedir + "\'") for dir in (gl.origindir,gl.resultdir,gl.historydir,gl.keyworddir): if(False==os.path.exists(dir)): os.system("touch \'" + dir + "\'") #youdao if "%zh2enlj%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2enlj.html" gl.searchurl=gl.zh2enlj url = "" gl.func="lj" gl.Dict="youdao" gl.title="汉英例句" elif "%zh2japlj%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2japlj.html" gl.searchurl=gl.zh2japlj url = "" gl.func="lj" gl.Dict="youdao" gl.title="汉日例句" elif "%zh2kolj%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2kolj.html" gl.searchurl=gl.zh2kolj url = "" gl.func="lj" gl.Dict="youdao" gl.title="汉韩例句" elif "%zh2frlj%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2frlj.html" gl.searchurl=gl.zh2frlj url = "" gl.func="lj" gl.Dict="youdao" gl.title="汉法例句" elif "%zh2en%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2en.html" gl.searchurl=gl.zh2en url = "" gl.Dict="youdao" gl.title="汉英互译" elif "%zh2jap%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2jap.html" gl.searchurl=gl.zh2jap url = "" gl.Dict="youdao" gl.title="汉日互译" elif "%zh2ko%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2ko.html" gl.searchurl=gl.zh2ko url = "" gl.Dict="youdao" gl.title="汉韩互译" elif "%zh2fr%" in text: gl.homeurl="file:///usr/share/openyoudao/zh2fr.html" gl.searchurl=gl.zh2fr url = "" gl.Dict="youdao" gl.title="汉法互译" #config elif "%index%" in text: gl.homeurl="file:///usr/share/openyoudao/config.html" url = "" gl.title="有道首页" elif "%helps%" in text: gl.homeurl="file:///usr/share/openyoudao/help.html" url = "" gl.title="使用说明" elif "%goslate%" in text: gl.homeurl="file:///usr/share/openyoudao/goslate.html" url = "" gl.Dict="google" gl.title="谷歌翻译" elif "%donate%" in text: gl.homeurl="file:///usr/share/openyoudao/donate.html" url = "" gl.title="捐赠页面" elif "%expand%" in text: gl.homeurl="file:///usr/share/openyoudao/expand.html" url = "" gl.title="展开选项" elif "%history%" in text: gl.homeurl= "file://" + gl.historydir if Alive==1: his_tar=open(gl.historydir,'w') print >> his_tar,"History

    %s    %s

    "%("%index%","%expand%") keyword=open(gl.keyworddir,'r') print >> his_tar,''.join(keyword.readlines()[::-1]) print >> his_tar,"" his_tar.close() keyword.close() url = "" gl.title="取词历史" elif "%lock%" in text: if gl.lock=="0": gl.lock="1" gl.homeurl="file:///usr/share/openyoudao/lock.html" gl.title="锁定取词" else: gl.lock="0" gl.homeurl="file:///usr/share/openyoudao/unlock.html" gl.title="取词解锁" url = "" elif "%exits%" in text: Alive=0 else: url= gl.searchurl + text if url !="": if Alive==1: k_tar=open(gl.keyworddir,'a') print >> k_tar,"

    %s

    " % text k_tar.close() #fp = file(gl.keyworddir) #lines = [] #for line in fp: # 内置的迭代器, 效率很高 # lines.append(line) #fp.close() #lines.insert(0, "

    %s

    " % text) # 在第二行插入 #s = '\n'.join(lines) #fp = file(gl.keyworddir, 'w') #fp.write(s) #fp.close() #[google youdao] if gl.Dict=="google": gs = goslate.Goslate() gl.lang=gs.detect(text) g_tar=open(gl.googledir,'w+') if gl.lang=='zh-CN': basehtml="Google Translate

    Source Language:  %s

    Target Language :   %s

    Selected   Text :      %s

    Target     Text :       %s

    %s    %s

    "%(gl.lang,'en',text,gs.translate(text, 'en'),"%index%","%expand%") else: basehtml="Google Translate

    Source Language:  %s

    Target Language :   %s

    Selected   Text :      %s

    Target     Text :       %s

    %s    %s

    "%(gl.lang,'zh-CN',text,gs.translate(text, 'zh-CN'),"%index%","%expand%") print >> g_tar,basehtml g_tar.close() gl.homeurl= "file://" + gl.googledir if gl.Dict=="youdao": #os.system("curl -m 5 -A \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36\" -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} -o \'" + gl.origindir +"\' \'" + url+ "\'") #获得网页(非代理) os.system("curl -m 5 -s -w %{http_code}:%{time_connect}:%{time_starttransfer}:%{time_total}:%{speed_download} -o \'" + gl.origindir +"\' \'" + url+ "\'") #获得网页(非代理) fusionyoudao.reconstruct(gl.func) gl.homeurl="file://" + gl.resultdir #合成最终缓冲访问地址 if Alive==1: window.settitle(gl.title) window.load(gl.homeurl) window.show() if not record_dpy.has_extension("RECORD"): print "RECORD extension not found" sys.exit(1) r = record_dpy.record_get_version(0, 0) print "RECORD extension version %d.%d" % (r.major_version, r.minor_version) # Create a recording context; we only want key and mouse events ctx = record_dpy.record_create_context( 0, [record.AllClients], [{ 'core_requests': (0, 0), 'core_replies': (0, 0), 'ext_requests': (0, 0, 0, 0), 'ext_replies': (0, 0, 0, 0), 'delivered_events': (0, 0), 'device_events': (X.KeyPress, X.MotionNotify), 'errors': (0, 0), 'client_started': False, 'client_died': False, }]) def webshow(): global window global Alive window = webshot.Window() window.load(gl.homeurl) window.show() gtk.main() record_dpy.record_free_context(ctx) os.system("ps aux | grep openyoudao.py |awk '{print $2}' |xargs kill -9 >/dev/null") Alive=0 def gettext(): os.system("xclip -f /dev/null") #清空剪切板 record_dpy.record_enable_context(ctx,record_callback) record_dpy.record_free_context(ctx) def main(): global Alive Alive=1 thread.start_new_thread(webshow,()) sleep(0.5) thread.start_new_thread(gettext,()) while Alive: sleep(0.2) clip_id=os.popen("ps aux | grep xclip | grep -v grep |awk '{print $2}'| grep -v ^$ |wc -l") pid = clip_id.readline().strip('\r\n\x00') if int(pid)>=1: os.system("ps aux | grep xclip |awk '{print $2}' |xargs kill -9 >/dev/null") if __name__ == '__main__': main() ================================================ FILE: scripts/openyoudao ================================================ python2.7 /usr/lib/openyoudao/openyoudao.py ================================================ FILE: setup.py ================================================ import os import glob from setuptools import setup f = open(os.path.join(os.path.dirname(__file__), 'README.md')) readme = f.read() f.close() setup( name='openyoudao', version=0.3, description='A Youdao client for Linux', long_description=readme, author='justzx', author_email='justzx2011@gmail.com', url='http://github.com/justzx2011/openyoudao/', py_modules=['fusionyoudao', 'gl', 'openyoudao', 'webshot'], data_files = [("/usr/share/applications/", ['desktop/openyoudao.desktop']), ("/usr/share/doc/openyoudao",['LICENSE','README.md']), ("/usr/share/icons/hicolor/scalable/apps",['openyoudao.svg']), ("/usr/share/openyoudao",glob.glob("cache/*.html")), ("/usr/lib/openyoudao",glob.glob("*.py")), ("/usr/share/openyoudao/construction/youdao",['cache/construction/youdao/head.html']), ("/usr/share/openyoudao/css",glob.glob("cache/css/*.css")), ("/usr/share/openyoudao/images/icon/",['cache/images/icon/icon.jpg']), ("/usr/share/openyoudao/images/donate/",['cache/images/donate/alipay.png']), ("/usr/share/openyoudao/js", glob.glob("cache/js/*.js")), ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: X11 Applications :: GTK', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Utilities' ], scripts = ['scripts/openyoudao'], ) ================================================ FILE: uninstall-openyoudao.sh ================================================ #!/bin/bash rm -vf /usr/bin/openyoudao rm -vf /usr/bin/install-openyoudao.sh rm -rvf /usr/lib/openyoudao rm -vf /usr/share/applications/openyoudao rm -rvf /usr/share/openyoudao rm -vf /usr/bin/uninstall-openyoudao.sh ================================================ FILE: webshot.py ================================================ #!/usr/bin/python #-*- coding: utf-8 -*- import sys import gl import os import gtk import time import webkit class OutputView(webkit.WebView): '''a class that represents the output widget of a conversation ''' def __init__(self): webkit.WebView.__init__(self) self.load_finish_flag = False self.set_property('can-focus', True) self.set_property('can-default', True) self.set_full_content_zoom(1) # self.clipbord = gtk.Clipboard() settings = self.get_settings() #try: # settings.set_property('enable-universal-access-from-file-uris', True) # settings.set_property('javascript-can-access-clipboard', False) settings.set_property('enable-default-context-menu', False) # settings.set_property('enable-page-cache', True) # settings.set_property('tab-key-cycles-through-elements', True) # settings.set_property('enable-file-access-from-file-uris', True) # settings.set_property('enable-spell-checking', False) # settings.set_property('enable-caret-browsing', False) # try: # # Since 1.7.5 # settings.set_property('enable-accelerated-compositing', True) # except TypeError: # pass #except: # print 'Error: settings property was not set.' class Window(gtk.Window): def __init__(self): gtk.Window.__init__(self) self.set_resizable(True) self.set_title("有道首页") self.set_default_size(800, 280) self.set_icon_from_file("/usr/share/openyoudao/images/icon/icon.jpg") self.scroll = gtk.ScrolledWindow() self.scroll.props.hscrollbar_policy = gtk.POLICY_NEVER self.scroll.props.vscrollbar_policy = gtk.POLICY_NEVER self.output = OutputView() self.scroll.add(self.output) self.add(self.scroll) self.scroll.show_all() self.connect('delete-event', gtk.main_quit) #self.is_fullscreen = False def load(self, url): print url self.output.load_uri(url) def reload(self): self.output.reload() def settitle(self,title): self.set_title(title) #window = Window() #window.load(sys.argv[1]) #window.load("http://dict.youdao.com/") #window.show() #gtk.main()