﻿/*
V.08061205
A.Zed Gu
D.Header/Footer
Copyright (c) 2008, Eachnet All rights reserved.
*/
var _helpServer='http://help.eachnet.com/help';
var _wwwServer='http://www.eachnet.com';
var _loginServer='http://login.eachnet.com';
var _regServer='http://login.eachnet.com';
var _isWR = true;
document.write('<script language="JavaScript" type="text/javascript" src="http://i3.eachimg.cn/js/v2007.js"></script>');
function _onload(e,p,a){if (document.attachEvent){e.attachEvent('on'+a,p);}else{e.addEventListener(a,p,false);}}
function cartHeaderAction() {
	var cartHeaderActionScript = document.createElement('script');
	cartHeaderActionScript.src = 'http://cart.eachnet.com/ShopingCartHeaderAction.do?r='+Math.random();
	document.body.appendChild(cartHeaderActionScript);
	var _event = document.all ? 'readystatechange':'load';
	_onload(cartHeaderActionScript,cartHeaderActionDone,_event);
}
function cartHeaderActionDone() {if (typeof(navCartSum) != 'undefined') {var navCartSum_s = document.createElement('a');navCartSum_s.id = 'navCartSum';if (navCartSum==0) {navCartSum_s.className = 'n';}navCartSum_s.href = 'http://cart.eachnet.com/MyShopingCart.do';navCartSum_s.target = '_blank';navCartSum_s.innerHTML = '购物车('+navCartSum+')';_get('userinfo').appendChild(navCartSum_s);}}
var _get = function(p) {return document.getElementById(p);};
function _getc(p) {var s=p+"=";o=document.cookie.indexOf(s);if (o!=-1) {o+=s.length;e=document.cookie.indexOf(";", o);if (e==-1)e=document.cookie.length;return decodeURI(document.cookie.substring(o, e));}else{return "";}}
function tl(p) {_get(p).className="c";var t=_get(p).parentNode;_get(p).onmouseover=_get(p+"l").onmouseover=function(){t.className = "c";};_get(p).onmouseout=_get(p+"l").onmouseout=function(){t.className="";}};
function logstate() {var l=_loginServer+'/usr/login.do';var r=_regServer+'/usr/toRegister.do';var o=_loginServer+'/usr/logout.do';if(_getc("loginname")==null||_getc("loginname")==""){_get('userinfo').innerHTML='您好<span>☺</span> 请<a href="'+l+'">登录</a> 或 <a href="'+r+'">注册</a>　'}else{if(_getc("eachnetcookie")==null || _getc("eachnetcookie")==""){_get('userinfo').innerHTML='您好<span>☺</span> '+_getc("loginname")+' （请 <a href="'+l+'">登录</a> ） '}else{_get('userinfo').innerHTML='您好<span>☺</span> '+_getc("loginname")+'<a href="'+o+'">退出</a>';}}}
function eachnetHeader(p){var w = (p==null)?'':' style="width:'+p+'px;"';document.write('<div id="header"'+w+'><div id="logo"><a href="'+_wwwServer+'"><img src="http://i0.eachimg.cn/sys/img/logo.gif" /></a></div><div id="topnav"><div id="topnavbar"><ul><li><a href="'+_regServer+'/usr/toRegister.do?_fromid=nav_register">注册</a></li><li><a href="http://search.eachnet.com/prd/classlist.do?_fromid=nav_buy">买东西</a></li><li><a href="http://syi.eachnet.com/prd/sellPrd.do?_fromid=nav_sell">卖东西</a></li><li><a id="navmyeachnet" href="http://my.eachnet.com/my/myeachnet.do?_fromid=nav_myeachnet">我的易趣</a><ul id="navmyeachnetl"><li><a href="http://esc.eachnet.com/escrow/buyerload.do?_fromid=nav_buyerload">购买记录</a></li><li><a href="http://esc.eachnet.com/escrow/sellerload.do?_fromid=nav_sellerload">出售记录</a></li><li><a href="http://message.eachnet.com/message/viewMsgInbox.do?_fromid=nav_inbox">站内邮箱</a></li></ul></li><li><a href="http://store.eachnet.com/shop/index.do?_fromid=nav_store">逛商店</a></li><li><a href="http://bbs.eachnet.com/?_fromid=nav_bbs">社区</a></li><li><a href="'+_helpServer+'/?_fromid=nav_help">客服中心</a></li><li id="topsearch"><form id="topsform" method="post" action="http://search.eachnet.com/Search" target="_blank"><input type="text" name="keyword" id="topkw" value="开始全新搜索" />&nbsp;<input type="submit" class="btn" value="搜索" /></form></li></ul></div></div><div id="topsubnav"><ul><li id="userinfo">您好<span>☺</span> （请 <a href="'+_loginServer+'/usr/login.do">登录</a> 或 <a href="'+_regServer+'/usr/toRegister.do">注册</a>） </li><li><a href="'+_helpServer+'/tns/securitycenter.htm?_fromid=nav_tns" target="_blank">诚信安全</a></li><li id="live800"><a href="http://livechat.eachnet.com/live800/chatClient/chatbox.jsp?needPhone=1&companyID=10001" target="live800_ebay" onclick="javascript:window.open(this.href+\'&info=\'+_get(\'infoValue\'),\'live800_ebay\',\'width=541,height=401\');return false;">实时答疑</a></li><li><a href="http://search.eachnet.com/advanced_search.html?_fromid=nav_advsearch">高级搜索</a></li></ul></div></div>');}
function eachnetFooter(p){var w = (p==null)?'':' style="width:'+p+'px;"'; document.write('<div id="footer"'+w+'><div><a href="'+_wwwServer+'/abouteachnet.html" target="_blank">关于易趣</a> | <a href="http://i0.eachimg.cn/live800/product/eachnetchatsetup.exe" target="_blank">易趣通下载</a> | <a href="http://i2.eachimg.cn/download/TurboLister.exe" target="_blank">易趣助理下载</a>	| <a href="'+_helpServer+'/tns/securitycenter.htm" target="_blank">诚信与安全</a> | <a href="http://www.ebay.cn/" target="_blank">eBay全球网站</a> | <a href="'+_wwwServer+'/sitemap.html">网站地图</a> | <a href="'+_wwwServer+'/hot-brands.html" target="_blank">热门品牌</a> | <a href="'+_wwwServer+'/hot-items.html" target="_blank">热门商品</a> | <a href="'+_wwwServer+'/hotkeywords/0-a.html" target="_blank">热门关键字</a> | <a href="'+_helpServer+'" target="_blank">帮助</a></div><p>Copyright &copy; 2008 eachnet.com 本公司保留所有权利。</p><p>所有商标与品牌均为其各自拥有者的财产。使用本网站即表示接受<a href="'+_helpServer+'/policies/agreement-privacy/user-agreement.html" target="_blank">易趣网用户协议。</a></p></div><script type="text/javascript">tl("navmyeachnet");logstate();_get("topkw").onfocus=function(){if (_get("topkw").value==_get("topkw").defaultValue){_get("topkw").value="";_get("topkw").className="o";}};_get("topsform").onsubmit=function(){if (_get("topkw").value==_get("topkw").defaultValue||_get("topkw").value==""){return false;}else{return true;}};</script>');
if(_isWR){document.write('<noscript><img src="http://http.eachnet.com/?noscript&id=1" width="1" height="1"></noscript><script language="JavaScript" type="text/javascript">_ebay.id = 1;_ebay.send = "http://http.eachnet.com/";_count(_ebay);</script>');}}
_onload(window,cartHeaderAction,'load');