(function(n){function t(){var n=$e.getSearchTask().split(/\|\|/g);n=_.chain(n).sortBy(function(n){return $e.pinyin($e.getextension(n,"title")).substr(0,1).charCodeAt()}).map(function(n){var t=$e.getextension(n,"title"),i=$e.getextension(n,"domain").split(/;/ig)[0],r=$e.getextension(n,"url");return{name:n,title:t,pinyin:$e.pinyin(t).substr(0,1).toLowerCase(),domain:i,url:r?r:"http://"+i+"/?mozhua"}}).value(),$("#nav_list").html(mzTpl("tpl_nav",{site:n,mySite:[]}))}$(document).bind("keydown",function(n){(function(n){var t=n.target;t.tagName.toLowerCase()!="input"&&(n.shiftKey||n.ctrlKey||n.altKey||(n.keyCode>64&&n.keyCode<91||n.keyCode>96&&n.keyCode<122?location.href="#"+String.fromCharCode(n.keyCode).toUpperCase():n.keyCode>47&&n.keyCode<58&&(location.href="#0")))})(n)}),n.siteopen=function(n){__log("nav",$(n).data("url"),$(n).data("name")?$(n).data("name"):""),tabopen(n)},n.openShelf=function(){external.tabopen("mz://shelf/",{checkExists:!0})},n.openTop=function(){external.tabopen("mz://top/",{checkExists:!0})},t()})(window)