Date.prototype.format=function(a){var c={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};if(/(y+)/.test(a))a=a.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length));for(var b in c)if((new RegExp("("+b+")")).test(a))a=a.replace(RegExp.$1,RegExp.$1.length==1?c[b]:("00"+c[b]).substr((""+c[b]).length));return a};
$("#jp_today,#jd_fromDate,#jd_toDate").each(function(a){a.value=(new Date((new Date).getTime()+864E5)).format("yyyy-MM-dd")});$("#skinlist a").on("click",function(a){a=parseInt(a.innerHTML)-1;Cookie.set("style",a);skinSelector.set("style",a)});
var MailLogin={mailCache:[],sendMail:function(){var a=$("#mail_user_114la").el.value,c=$("#mail_passwd_114la").el.value,b=$("#mail_server_114la").el,e=document.mail;b=b.selectedIndex;var f=Config.Mail[b];a={u:a,p:c};if(f.val==0)alert("\u60a8\u6ca1\u6709\u9009\u62e9\u90ae\u7bb1\uff01");else if(Yl.trim(a.u)==""){alert("\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a\uff01");$("#mail_user_114la").el.focus()}else if(Yl.trim(a.p)==""){alert("\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a\uff01");$("#mail_passwd_114la").el.focus()}else{if(this.mailCache.index!=
b){this.mailCache.forEach(function(g){e.removeChild(g)});this.mailCache=[]}e.action=f.action;for(I in f.params)$(e).create("input",{type:"hidden",name:I,value:format(f.params[I],a)},function(g){MailLogin.mailCache.push(g);this.append(g)});e.submit();$("#mail_passwd_114la").el.value=""}},change:function(a){var c=Config.Mail[a.selectedIndex];if(c.type=="link"){window.open(c.action);a.selectedIndex=17}else cache.set("SE_ONFOCUS",true)}},SE=function(){function a(b){function e(g){for(var h=0,j=g.length;h<
j;h++)$("#searchForm").remove(g[h]);return[]}$("#searchForm").el.action=b.action;$("#sf_label img").el.src=b.img[0];$("#sf_label img").el.setAttribute("alt",b.img[1]);$("#sf .int").el.name=b.name;$("#sf .searchint").el.value=b.btn;$("#sf_label").el.href=b.url;if(c.length>0)c=e(c);for(var f in b.params)$("#searchForm").create("input",{name:f,value:b.params[f],type:"hidden"},function(g){c.push(g);this.append(g)})}var c=[$("#searchForm").el.tn,$("#searchForm").el.ch];$("#sf .int").el.focus();$("#sf .int").on("mouseover",
function(b){if(!cache.get("SE_ONFOCUS")){b.value=b.value;b.focus()}});$("#mail_passwd_114la,#sf .int").on("blur",function(){cache.remove("SE_ONFOCUS")});$("#sf .int").on("focus",function(b){cache.set("SE_ONFOCUS",true);Browser.isIE?Yl.getFocus(b):b.focus()});return{set:a}}();
document.onclick=function(a){a=a||window.event;a=a.srcElement||a.target;var c=a.id;c!=="showSetting"&&$("#settingBox").el&&$("#settingBox").hide();if(a.tagName&&a.tagName.toUpperCase()=="A"||a.parentNode.tagName&&a.parentNode.tagName.toUpperCase()=="A"||a.parentNode.parentNode.tagName&&a.parentNode.parentNode.tagName.toUpperCase()=="A"){if(a.rel&&a.rel=="nr")return;var b,e;if(a.parentNode.tagName.toUpperCase()=="A"&&a.tagName.toUpperCase()=="IMG"){b=a.parentNode.href;e=a.alt}else if(a.parentNode.parentNode.tagName.toUpperCase()==
"A"){b=a.parentNode.parentNode.href;e=a.innerHTML}else{b=a.href;e=a.innerHTML;if(Yl.trim(b)=="javascript:void(0);"||Yl.trim(b)=="javascript:void(0)")b=e;if(a.getAttribute("rel"))b=e=a.innerHTML}KeywordCount({u:b,n:e,q:0});UserTrack.add(a)}Config.Track.forEach(function(f){c==f[0]&&KeywordCount(f[1])})};
$("#showSetting").on("click",function(a){a.blur();$("#settingBox").el?$("#settingBox").show():$("#wrap").create("div",{id:"settingBox"},function(c){var b=Yl.createFrame({src:"/public/widget/setting/index.html",width:"260",height:"230"});c.innerHTML='<span class="h2">\u4e2a\u6027\u8bbe\u7f6e</span><div id="LSIMG" class="loading"></div><div id="loadSettingBox" style="display:none;">'+b+"</div>";this.append(c);var e=c.getElementsByTagName("iframe")[0];Yl.loadFrame(e,function(){$("#LSIMG").hide();c.innerHTML=
'<span class="h2">\u4e2a\u6027\u8bbe\u7f6e</span>'+b;$("#settingBox .h2").on("click",function(){$("#settingBox").hide()})})})});
(function(){if($("#topsite em").el){var a,c=true,b,e=function(){if(c&&a)a.style.display="none"};$("#topsite em").each(function(f){f.onmouseover=function(){e();var g=f.parentNode.getElementsByTagName("div")[0];b=window.setTimeout(function(){$(g).show()},200);a=g;c=false;if(!g.onmouseover){g.onmouseover=function(){c=false};g.onmouseout=function(){c=true;window.setTimeout(e,200)}}};f.onmouseout=function(){c=true;window.setTimeout(e,200);b!=undefined&&window.clearTimeout(b)}})}})();
$("#sm_tab li").on("click",function(a){$("#sf .int").el.focus();$("#sm_tab li").removeClass("active");$(a).addClass("active");a=a.getAttribute("rel");KeywordCount({u:a,n:a,q:0});cache.set("CURRENT_SE_TAB",a);SE.set(Config.Search[a]);if(Browser.isIE)$("#sf .int").el.value=$("#sf .int").el.value;$("#sw div").hide();$("div#sw_"+a).show();return false});
var HoverTab=function(a,c){var b,e=a.getAttribute("rel");["click","mouseover"].forEach(function(f){switch(f){case "click":b&&window.clearTimeout(b);a["on"+f]=function(){c();e&&KeywordCount({u:e,n:e,q:0})};break;case "mouseover":a["on"+f]=function(){b&&window.clearTimeout(b);b=window.setTimeout(function(){c();e&&KeywordCount({u:e,n:e,q:0})},300)};a.onmouseout=function(){b!=undefined&&window.clearTimeout(b)};break}})};
$("#bm_tab li").each(function(a){function c(){if(cache.get("HAS_SHOW_QS")){qucikSearch.close(true);$("#q_int input").el.blur()}$("#bm_tab li").removeClass("active");a.className="active";b(a)}function b(f){function g(){var m=document.createElement("div");m.id=h;m.innerHTML='<iframe width="100%" height="272" frameborder="0" scrolling="no" allowtransparency="true" src="'+j+'"></iframe>';$("#bb .box").el.insertBefore(m,$("#bb .box").el.firstChild);if(p)m.className="nocache";cache.set("BOARD_BOX_TAB",
h,1)}var h=f.getAttribute("rel"),j=f.getAttribute("url"),p=f.getAttribute("nocache");if(h){f=cache.get("BOARD_BOX_TAB");if("#"+h!=cache.get("LAST_BOXTAB")){if(cache.is("LAST_BOXTAB")){var l=$(cache.get("LAST_BOXTAB"));if(l.el.className=="nocache")l.el.getElementsByTagName("iframe")[0].src="";l.hide()}else $("#fm").hide();if(j){if(cache.is("BOARD_BOX_TAB")==false)g();else f.indexOf(h)==-1&&g();cache.set("LAST_BOXTAB","#"+h);if(p){$("#"+h).show();$("#"+h).el.getElementsByTagName("iframe")[0].src=j}else $("#"+
h).show()}else{$("#"+h).show();cache.set("LAST_BOXTAB","#"+h)}}}}var e=a.getAttribute("rel");a.onclick=function(){c();e&&KeywordCount({u:e,n:e,q:0})}});
var Suggest=function(){function a(){if(n){var d=n.length;s=true;if(l<0)l=d-1;else if(l>=d)l=0;var i=0;for(d=n.length;i<d;i++)n[i].className="";n[l].className="hover";h.el.value=n[l].innerHTML}}function c(){if(!(typeof r!="object"||typeof r=="undefined")){var d="<ul>";r.forEach(function(i,k){d+=cache.get("CURRENT_SE_TAB")=="taobao"?'<li key="'+k+'">'+i[0]+"</li>":'<li key="'+k+'">'+i+"</li>"});d+='</ul><div class="close"><a id="closeSugBtn">\u5173\u95ed</a></div>';n=j.el.getElementsByTagName("li");
j.el.innerHTML=d;j.show();l=-1;q=false;f()}}function b(){j.hide();q=true}function e(){h.el.setAttribute("autocomplete","on");h.el.focus();j.hide();t=true}function f(){j.el.onmouseover=function(d){d=d||window.event;d=d.target||d.srcElement;if(d.tagName.toUpperCase()=="LI"){for(var i=0,k=n.length;i<k;i++)n[i].className="";d.className="hover";l=parseInt(d.getAttribute("key"));$(d).on("mouseout",function(o){o.className=""})}u=true};j.el.onmouseout=function(){u=false};j.el.onclick=function(d){d=d||window.event;
d=d.target||d.srcElement;if(d.tagName.toUpperCase()=="LI"){h.el.value=d.innerHTML;h.el.focus();b();var i=document.getElementById("searchForm");cache.set("Handdle_Key","S");i.onsubmit();i.submit()}d.id=="closeSugBtn"&&e()}}function g(){var d=$("head").el,i=cache.get("CURRENT_SE_TAB");if(m)m.charset=i=="taobao"?"utf-8":"gb2312";if(!Browser.isIE){m&&d.removeChild(m);m=null}if(!m){var k=document.createElement("script");k.type="text/javascript";k.charset=i=="taobao"?"utf-8":"gb2312";d.insertBefore(k,d.firstChild);
m=k}d=(new Date).getTime();k=encodeURIComponent(h.el.value);var o="http://suggestion.baidu.com/su?wd="+k+"&sc=114la&rd="+d;switch(i){case "mp3":o="http://nssug.baidu.com/su?wd="+k+"&prod=mp3&sc=114la&rd="+d;break;case "image":o="http://nssug.baidu.com/su?wd="+k+"&prod=image&fm=114la&rd="+d;break;case "v115":o="http://nssug.baidu.com/su?wd="+k+"&prod=video&sc=114la&rd="+d;break;case "zhidao":o="http://nssug.baidu.com/su?wd="+k+"&prod=zhidao&sc=114la&rd="+d;break;case "web":o="http://suggestion.baidu.com/su?wd="+
k+"&sc=114la&rd="+d;break;case "taobao":o="http://suggest.taobao.com/sug?code=utf-8&callback=TB.Suggest.callback&q="+k+"&rd="+d;break}m.src=o}var h=$("#sf .int"),j=$("#suggest"),p,l=-1,m=null,r,n,u=false,s=false,q=false,t=false;h.el.onkeydown=function(d){d=d||window.event;if(!t)switch(d.keyCode){case 38:if(q){if(this.value=="")return;j.show();q=false}else l--;a();break;case 40:if(q){if(this.value=="")return;j.show();q=false}else l++;a();break;case 27:this.value=p;b();break;case 13:cache.set("Handdle_Key",
"13");b();break;default:break}};h.el.onkeyup=function(d){d=d||window.event;if(!t){p=this.value;switch(d.keyCode){case 38:s=true;break;case 40:s=true;break;case 8:this.value==""?b():g();break;case 27:this.value=p;b();case 13:cache.set("Handdle_Key","13");b();break;default:p!=""&&g();break}}};h.el.onblur=function(){u||b()};$("#searchForm").el.onsubmit=function(){KeywordCount({type:cache.get("CURRENT_SE_TAB")?cache.get("CURRENT_SE_TAB"):"web",word:h.el.value,url:window.location.href,key:cache.get("Handdle_Key")},
"http://www.tjj.com/click.php");var d=false;Config.Keywords.forEach(function(i){if(h.el.value==i[0]){window.open(i[1]);d=true}});if(d)return false};$("#search_btn").on("click",function(){cache.set("Handdle_Key","B")});window.baidu={};window.baidu.sug=function(d){if(typeof d=="object"&&typeof d.s!="undefined"&&typeof d.s[0]!="undefined"){r=d.s;c()}else b()};window.TB={};window.TB.Suggest={};window.TB.Suggest.callback=function(d){if(typeof d=="object"&&typeof d.result!="undefined"&&typeof d.result[0][0]!=
"undefined"){r=d.result;c()}else b()}}(),UserTrack=function(){function a(c){try{if(c.tagName.toUpperCase()=="A"&&c.href.indexOf("http://")==0&&c.href.indexOf("http://"+Yl.getHost())!=0)if(!(c.rel&&c.rel=="nr")){var b={url:c.href,content:c.innerHTML},e=b.url+"_[TEXT]_"+b.content+"_[YLMF]_",f=Cookie.get("history");if(f){if(f.indexOf(e)>-1)f=f.replace(e,"");e+=f}Cookie.set("history",e,null,null,"114la.com");var g;if(document.getElementById("bb1"))g=document.getElementById("bb1").getElementsByTagName("iframe");
g&&g.length&&g[0].contentWindow.History.show()}}catch(h){}}return{add:a}}(),miniSearch=function(){function a(){KeywordCount({type:b,word:e.value,url:window.location.href,key:cache.is("CLICK_BS_BTN")?"B":13},"http://www.tjj.com/click.php");cache.remove("CLICK_BS_BTN")}function c(f){if(b=="s0"){a();f.submit()}else{var g;switch(b){case "s2":g="www.google.com.hk/search?q=";break;case "s3":$("#taobao-q").el.value=e.value;if(!cache.get("TAOBAO_PARM")){g=Config.Search.taobao.params;for(var h in g)$("#taobao-form").create("input",
{type:"hidden",name:h,value:g[h]},function(j){this.append(j)});cache.set("TAOBAO_PARM",true)}a();$("#taobao-form").el.submit();return;case "s4":window.open("http://www.caimincun.com");return;case "s5":window.open("http://www.soso.com/q?w="+e.value+"&unc=s200000_8&cid=union.s.wh&ie=gb2312");a();return;default:break}window.open("http://"+g+encodeURIComponent(e.value));a()}}var b="s0",e=$("#f_int input").el;$("#f_radio input.radio").each(function(f){if(f.checked==true)b=f.id;f.onclick=function(){b=this.id}});
$("#f_btn input").on("click",function(){cache.set("CLICK_BS_BTN",1)});return{gosearch:c}}();$("#tool-tab li").each(function(a){HoverTab(a,function(){$("#tool-tab li").removeClass("active");a.className="active";c(a.getAttribute("rel"))});var c=function(b){$(".tbox").hide();$("#"+b).show()}});
function KeywordCount(a,c){if(!(!a||a=="")){c=c||"http://www.tjj.com/index";var b=(new Date).getTime(),e=new Image,f="";for(var g in a)f+=g=="u"?"?"+g+"="+encodeURIComponent(a[g]):"&"+g+"="+encodeURIComponent(a[g]);e.src=c=="http://www.tjj.com/index"?c+f+"&i="+b:c+"?i="+b+f}}
DOMReady(function(){if(Browser.isIE)$("#sf .int").el.value="";$("#mail_user_114la,#mail_passwd_114la,#f_int input,#q_int input").on("mouseover",function(a){cache.get(a.id+"GETFOCUS")&&a.parentNode.id=="q_int"||(document.all?Yl.getFocus(a):a.focus())});$("#mail_user_114la,#mail_passwd_114la,#f_int input,#q_int input").on("blur",function(a){cache.remove(a.id+"GETFOCUS")});$("#mail_user_114la,#mail_passwd_114la").on("focus",function(a){cache.set(a.id+"GETFOCUS",true)})});
var daodao=function(){return{searchTravel:function(){var a=document.getElementById("daodao_travel_q").value,c=document.getElementById("daodao_travel_k").value,b="http://www.daodao.com/Search?m=13078";if(a&&!c)b+="&q="+encodeURIComponent(a);else if(!a&&c)b+="&q="+encodeURIComponent(c);else if(a&&c)b+="&q="+encodeURIComponent(a+"+"+c);window.open(b)}}}();
function goTop(a,c){a=a||0.1;c=c||15;var b=0,e=0;if(document.documentElement){b=document.documentElement.scrollLeft||0;e=document.documentElement.scrollTop||0}var f=1+a;window.scrollTo(Math.floor(b/f),Math.floor(e/f));if(b>0||e>0)window.setTimeout("goTop("+a+", "+c+")",c)}function ResumeError(){return true};
