/*V.08110603/D.homepage*/
function letterindex(){var a=document.getElementById("letterindex").getElementsByTagName("h4");for(var i=0;i<a.length;i++){JEND.UI.pull(a[i],a[i].parentNode,'mouseover')}}function hpConfig(){var a='http://www.eachnet.com';$(JEND.DOM.a('#classical')).on('click',function(e){JEND.EVENT.preventDefault(e);if(window.location.href.split('m/')[1].match((a+'/index_o.html'))){JEND.cookie.set('eachnethp','1',1440*30,null,'www.eachnet.com');window.location.href=a}else{JEND.cookie.set('eachnethp','0',1440*30,null,'www.eachnet.com');window.location.href=a+'/index_o.html'}});$(JEND.DOM.a('#sethomepage')).on('click',function(e){JEND.EVENT.preventDefault(e);if(JEND.lang.browser.ie){$(JEND.DOM.a('#sethomepage'))[0].style.behavior='url(#default#homepage)';$(JEND.DOM.a('#sethomepage'))[0].setHomePage(a+'/?_fromid=homepage_01')}else if(JEND.lang.browser.moz){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch).setCharPref('browser.startup.homepage',a+'/?_fromid=homepage_01')}catch(er){alert("您的浏览器默认禁用了此操作！\n请在浏览器地址栏输入“about:config”并回车，然后找到[signed.applets.codebase_principal_support]项目，将其值设置为'true'，之后在重复此操作。")}}});if(JEND.cookie.get('hppwad')!='1'&&$('hppwad').length){JEND.cookie.set('hppwad','1',1440,'/','.eachnet.com');var b=window.open($('hppwad').getA('href'),"nw","height=480,width=760,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no");if(b){b.focus()}}}document.onReady(function(){JEND.UI.tab(JEND.DOM.a('#quickbuy'),$($('qbuy').getTags('ul')[0]).getChildren(),'mouseover');JEND.UI.tab(JEND.DOM.a('#mobile'),$('phonecard').getChildren(),'click');JEND.UI.tab(JEND.DOM.a('rel.promo'),$('toppic').getTags('li'),'mouseover',5*1000);JEND.UI.tab(JEND.DOM.a('#women'),$('zone1').getTags('li'),'mouseover');JEND.UI.tab(JEND.DOM.a('#emobile'),$('zone2').getTags('li'),'mouseover');JEND.UI.tab(JEND.DOM.a('#digital'),$('zone3').getTags('li'),'mouseover');JEND.UI.tab(JEND.DOM.a('#home'),$('zone4').getTags('li'),'mouseover');JEND.UI.tab(JEND.DOM.a('#sidepic'),$('sidepic1').getTags('li'),'mouseover',5*1000);JEND.UI.tab(JEND.DOM.a('rel.zone5'),$('zone5').getChildren(),'mouseover',5*1000);JEND.UI.tab(JEND.DOM.a('rel.zone6'),$('zone6').getChildren(),'mouseover',5*1000);JEND.UI.tab(JEND.DOM.a('rel.hottest'),$($('hots').getTags('ul')[0]).getChildren(),'mouseover');hpConfig();letterindex();var a=function(p){for(var i=0;i<$(p).getChildren().length;i++){for(var k=0;k<$($(p).getChildren()[i]).getTags('a').length&&k<5;k++){$($(p).getChildren()[i]).getTags('a')[k].href=$($(p).getChildren()[i]).getTags('a')[0].href}}};a('zone5');a('zone6')});