window.WWWURL="http:\/\/www.egou.com";
window.FXURL="http:\/\/fanxian.egou.com";
window.TAOBAOEGOUURI = "http:\/\/taobao.egou.com";
window.BBSURI="http:\/\/bbs.egou.com";
window.TUANGOU="http:\/\/tg.egou.com";
function writeinMenuCityList(){
	var zxfxtc='<div id="body_back"> ';
	zxfxtc=zxfxtc+'	<div onmouseover="document.getElementById(\'MenuCityList\').style.display=\'block\';" onmouseout="document.getElementById(\'MenuCityList\').style.display=\'none\';" id="hid_menu_box">';
	zxfxtc=zxfxtc+'	    <div class="gxl_110601_new_nav_top"></div>';
	zxfxtc=zxfxtc+'	    <div class="gxl_110601_main">';
	zxfxtc=zxfxtc+'	    	<div style="background-color: white; margin-right: 2px; border-right: 3px solid rgb(102, 102, 102); border-left: 3px solid rgb(102, 102, 102);" id="hot_shop"><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'" class=""><a style="text-decoration: none; font-family:verdana;" title="京东商城" href="'+window.FXURL+'/492767/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1306294743349.png" style="margin: 5px 8px;">返45元</a></dl><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'"><a style="text-decoration: none; font-family:verdana;" title="银泰网" href="'+window.FXURL+'/1060918/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1306208844578.png" style="margin: 5px 8px;">返8%</a></dl><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'"><a style="text-decoration: none; font-family:verdana;" title="欧莱诺" href="'+window.FXURL+'/492790/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1306287504460.png" style="margin: 5px 8px;">返20%</a></dl><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'"><a style="text-decoration: none; font-family:verdana;" title="淘宝网" href="'+window.FXURL+'/719111/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1306233662665.png" style="margin: 5px 8px;">返50%</a></dl><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'"><a style="text-decoration: none; font-family:verdana;" title="卓越网" href="'+window.FXURL+'/492764/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1319764348718.png" style="margin: 5px 8px;">返7倍易币</a></dl><dl onmouseout="this.className=\'\'" onmouseover="this.className=\'gxl_110601_mouse_hover\'"><a style="text-decoration: none; font-family:verdana;" title="当当网" href="'+window.FXURL+'/492765/"><img height="30" width="74" src="'+window.FXURL+'/attachment/shop/1306207832128.png" style="margin: 5px 8px;">返3.5倍易币</a></dl></div>';
	zxfxtc=zxfxtc+'	        <div id="shop_wrap">';
	zxfxtc=zxfxtc+'	        	<div class="gxl_110601_left_btn">';
	zxfxtc=zxfxtc+'					<img height="95" width="14" class="gxl_110601_hand" src="/header/images/left_btn.png" onclick="menubtn(\'prev\')" id="menu_prev">';
	zxfxtc=zxfxtc+'	            </div>';
	zxfxtc=zxfxtc+'	            <div class="gxl_110601_right_btn">';
	zxfxtc=zxfxtc+'	 				<img height="95" width="14" class="gxl_110601_hand" src="/header/images/right_btn.png" onclick="menubtn(\'next\')" id="menu_next">';                                    
	zxfxtc=zxfxtc+'	 			</div>';
	zxfxtc=zxfxtc+'	            <div style="overflow: hidden; position: relative; z-index: 2; left: 0px; width: 560px; float: left; visibility: visible;" class="gxl_110601_shop_items" id="shop_items">';
	zxfxtc=zxfxtc+'					<ul style="width: 2800px; margin: 0pt; padding: 0pt; position: relative; list-style-type: none; z-index: 1; left: -560px;" id="_cate_shops"><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">图书音像</a><span style="color: rgb(102, 102, 102); cursor: default;">(9家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492832/">99网上书城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492832/">返11%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492835/">新华书店 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492835/">返6%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/962426/">博库书城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/962426/">返13%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492823/">中国图书网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492823/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492831/">蔚蓝网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492831/">返14%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">美妆配饰</a><span style="color: rgb(102, 102, 102); cursor: default;">(36家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/580357/">乐蜂网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/580357/">返15%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/845935/">天天网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/845935/">返14%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492785/">可得眼镜 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492785/">返21%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/2173774/">牛尔官网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/2173774/">返14%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492770/">NO5 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492770/">返8%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">食品&amp;家居</a><span style="color: rgb(102, 102, 102); cursor: default;">(23家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/751721/">中粮我买网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/751721/">返10.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/919278/">碧生源  <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/919278/">返21%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/993351/">中国零食网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/993351/">返4.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/946804/">酒仙网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/946804/">返7.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1262624/">嘀嗒猫 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1262624/">返3.5%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">鞋帽箱包</a><span style="color: rgb(102, 102, 102); cursor: default;">(18家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/558881/">乐淘 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/558881/">返10%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492806/">麦包包 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492806/">返12%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/892928/">酷运动 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/892928/">返7%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1318564/">优购网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1189740/">返20%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/778937/">名鞋库 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/778937/">返14%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">团购返现</a><span style="color: rgb(102, 102, 102); cursor: default;">(31家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/973153/">聚美优品 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/973153/">返9%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1187432/">嘀嗒团 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1187432/">返8.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1097428/">58团购 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1097428/">无返现</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/902180/">猛买网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/902180/">返6%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1573885/">秀团网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1573885/">返3.5%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">服装</a><span style="color: rgb(102, 102, 102); cursor: default;">(54家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492799/">凡客诚品 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492799/">返10倍易币</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/709259/">玛萨玛索 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/709259/">返13%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/824791/">西街网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/824791/">返13%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/791915/">太平鸟 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/791915/">返16.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/858684/">聚尚网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/858684/">返9%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">数码手机</a><span style="color: rgb(102, 102, 102); cursor: default;">(21家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492767/">京东商城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492767/">返45元</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/811816/">易迅网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/811816/">返60元</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/852223/">苏宁易购 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/852223/">返63元</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1441058/">国美电器 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1441058/">返120元</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/703900/">库巴商城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/703900/">返63元</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">综合&amp;特卖</a><span style="color: rgb(102, 102, 102); cursor: default;">(29家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492764/">亚马逊(卓越网)<span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492764/">返易币</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492765/">当当网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492765/">返3.5倍易币</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/550364/">一号店 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/550364/">返9%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492788/">红孩子 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492788/">返40元</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1060918/">银泰网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1060918/">返16%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">母婴&amp;健康</a><span style="color: rgb(102, 102, 102); cursor: default;">(26家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492781/">金象大药房 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492781/">返20%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492783/">乐友 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492783/">返2.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/924899/">开心人 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/924899/">返10%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/861731/">母婴之家 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/861731/">返8%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1917147/">818医药网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1917147/">返11%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">其它网店</a><span style="color: rgb(102, 102, 102); cursor: default;">(25家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492825/">携程网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492825/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/882352/">快乐E行 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/882352/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/659689/">趣玩网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/659689/">返7.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492828/">艺龙旅游网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492828/">返8%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/939817/">途牛旅游网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/939817/">返2倍易币</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt>		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102);" href="#"></a><span style="color: rgb(102, 102, 102);"></span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="#"><span style="color: rgb(102, 102, 102);"></span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="#"></a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt>		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102);" href="#"></a><span style="color: rgb(102, 102, 102);"></span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="#"><span style="color: rgb(102, 102, 102);"></span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="#"></a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">图书音像</a><span style="color: rgb(102, 102, 102); cursor: default;">(9家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492832/">99网上书城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492832/">返11%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492835/">新华书店 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492835/">返6%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/962426/">博库书城 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/962426/">返13%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492823/">中国图书网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492823/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492831/">蔚蓝网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492831/">返14%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">美妆配饰</a><span style="color: rgb(102, 102, 102); cursor: default;">(36家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/580357/">乐蜂网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/580357/">返15%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/845935/">天天网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/845935/">返14%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492785/">可得眼镜 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492785/">返21%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/2173774/">牛尔官网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/2173774/">返14%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492770/">NO5 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492770/">返8%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">食品&amp;家居</a><span style="color: rgb(102, 102, 102); cursor: default;">(23家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/751721/">中粮我买网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/751721/">返10.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/919278/">碧生源 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/919278/">返21%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/993351/">中国零食网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/993351/">返4.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/946804/">酒仙网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/946804/">返7.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1262624/">嘀嗒猫 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1262624/">返3.5%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">鞋帽箱包</a><span style="color: rgb(102, 102, 102); cursor: default;">(18家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/558881/">乐淘 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/558881/">返10%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492806/">麦包包 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492806/">返12%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/892928/">酷运动 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/892928/">返7%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1189740/">好鞋网购 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1189740/">返15%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/778937/">名鞋库 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/778937/">返14%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">母婴&amp;健康</a><span style="color: rgb(102, 102, 102); cursor: default;">(26家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492781/">金象大药房 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492781/">返20%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492783/">乐友 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492783/">返2.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/924899/">开心人 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/924899/">返10%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/861731/">母婴之家 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/861731/">返8%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/1917147/">818医药网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/1917147/">返11%</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt style="cursor: default;">		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102); text-decoration: none; font-family:verdana; cursor: default;" href="#">其它网店</a><span style="color: rgb(102, 102, 102); cursor: default;">(25家)</span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492825/">携程网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492825/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/882352/">快乐E行 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/882352/">返4%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/659689/">趣玩网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/659689/">返7.5%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/492828/">艺龙旅游网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/492828/">返8%</a>	</dd>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="'+window.FXURL+'/939817/">途牛旅游网 <span style="color: rgb(102, 102, 102);">|</span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="'+window.FXURL+'/939817">返2倍易币</a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt>		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102);" href="#"></a><span style="color: rgb(102, 102, 102);"></span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="#"><span style="color: rgb(102, 102, 102);"></span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="#"></a>	</dd></dl><dl style="overflow: hidden; float: left;">	<dt>		<a style="font-size: 14px; font-weight: bold; color: rgb(102, 102, 102);" href="#"></a><span style="color: rgb(102, 102, 102);"></span>	</dt>	<dd>		<a class="gxl_110601_egoutbfx_color49" style="font-family:verdana;" href="#"><span style="color: rgb(102, 102, 102);"></span></a> <a class="gxl_110601_egoutbfx_color50" style="font-family:verdana;" href="#"></a>	</dd></dl></ul>';
	zxfxtc=zxfxtc+'				<div class="clear"></div></div>';
	zxfxtc=zxfxtc+'	            <div style="clear: both;" id="_page_no" class="gxl_110601_trigger"><a href="javascript:void(0);" onclick="go(4)" id="menupoint1" class="gxl_110601_cur"></a><a href="javascript:void(0);" onclick="go(8)" id="menupoint2"></a><a href="javascript:void(0);" onclick="go(12)" id="menupoint3"></a></div>';
	zxfxtc=zxfxtc+'            </div>';
	zxfxtc=zxfxtc+'            <div id="bot_line"></div>';
	zxfxtc=zxfxtc+'            <div id="peo_mes">';
	zxfxtc=zxfxtc+'				<p class="gxl_110601_text" id="_new_shops"><b>最新上线：</b><a href="'+window.FXURL+'/1204847/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">九洲网上药店 <span class="gxl_110601_col_hui">|</span> 返12%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/1204752/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">修正健康品<span class="gxl_110601_col_hui">|</span> 返21%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/1202872/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">给力团<span class="gxl_110601_col_hui">|</span> 返15%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/1201183/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">手礼网<span class="gxl_110601_col_hui">|</span> 返3.5%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/1194024/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">开心淘开心<span class="gxl_110601_col_hui">|</span> 返7%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/1189740/" class="gxl_110601_egoutbfx_color49" style="font-family:verdana;">好鞋网购<span class="gxl_110601_col_hui">|</span> 返15%</a>&nbsp;&nbsp;<a href="'+window.FXURL+'/" class="gxl_110601_egoutbfx_color50" style="font-family:verdana;">全部346家返现商城<span class="gxl_110601_songti">&gt;&gt;</span></a></p>';
	zxfxtc=zxfxtc+'			</div>';
	zxfxtc=zxfxtc+'        </div>  ';
	zxfxtc=zxfxtc+'        <div class="gxl_110601_bot"></div>';
	zxfxtc=zxfxtc+'    </div>';
	zxfxtc=zxfxtc+'</div>';
//	jQuery("#MenuCityList").html(zxfxtc);
	document.write(zxfxtc);
}

function writeinNew_help_zhanghu3(){
	var personal = '<div id="new_nav_r_list" class="gxl_110601_new_nav_r_list" style="display:none; z-index:1000;">';
	personal=personal+'   <div class="gxl_110601_new_nav_r_m">';
	personal=personal+'       <table border="0" cellpadding="0" cellspacing="0">';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myaccount.do" class="gxl_110601_egoutbfx_color45">个人中心</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myegouorder.do" class="gxl_110601_egoutbfx_color45">我的订单</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myegouwealth.do" class="gxl_110601_egoutbfx_color45">我的财富</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myegoutraceorder.do" class="gxl_110601_egoutbfx_color45">即时查询</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myegoupay.do" class="gxl_110601_egoutbfx_color45">提现申请</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'           <tr>';
	personal=personal+'               <td height="28" style="padding-left:5px; background:url(/header/images/new_top_12.png) repeat-x left top; width:71px;"><a style="font-family:verdana;" href="'+window.FXURL+'/myegoufavorite.do" class="gxl_110601_egoutbfx_color45">我的收藏</a></td>';
	personal=personal+'           </tr>';
	personal=personal+'       </table>';
	personal=personal+'   </div>';
	personal=personal+'   <div class="gxl_110601_new_nav_r_b"></div>';
	personal=personal+'</div>';
//	jQuery("#new_help_zhanghu3").html(personal);
	document.write(personal);
}

function writeinHeader_top1(){
	var header="";
	header+='<div class="gxl_110601_new_top">';
	header+='<div class="gxl_110601_top_1">';
	header+='    <div class="gxl_110601_new_toolbarRight">';
	header+='    	<div class="gxl_110601_new_toolbarRight_r">';
	header+='        	<div id="new_help_zhanghu1" class="gxl_110601_new_help_space">&nbsp;</div>';
	if(("" == EgouCookie.username) || ("" == EgouCookie.userid)){
		header+='        	<div id="new_help_zhanghu" style="display:none;" onclick="location.href=\''+window.FXURL+'/myaccount.do\'" class="gxl_110601_new_help_zhanghu" onMouseOver="MM_showHideLayers(\'menu1\',\'\',\'show\'); this.className=\'gxl_110601_new_help_zhanghu_hover\'" onMouseOut="MM_showHideLayers(\'menu1\',\'\',\'hide\'); this.className=\'gxl_110601_new_help_zhanghu\'"><br />';
	}else{
		header+='        	<div id="new_help_zhanghu" style="display:block;" onclick="location.href=\''+window.FXURL+'/myaccount.do\'" class="gxl_110601_new_help_zhanghu" onMouseOver="MM_showHideLayers(\'menu1\',\'\',\'show\'); this.className=\'gxl_110601_new_help_zhanghu_hover\'" onMouseOut="MM_showHideLayers(\'menu1\',\'\',\'hide\'); this.className=\'gxl_110601_new_help_zhanghu\'"><br />';
	}
	header+='            	<div id="menu1" style="position:absolute; width:70px; margin-left:-9px; margin-top:10px; z-index:2; background:url(/header/images/new_top_22.png) no-repeat top left; background-color: #FFFFFF; layer-background-color: #999966; border: 1px solid #d2d2d2; border-top:none; padding:0px 3px 8px; visibility: hidden" onMouseOver="MM_showHideLayers(\'menu1\',\'\',\'show\');document.getElementById(\'new_help_zhanghu\').className=\'gxl_110601_new_help_zhanghu_hover\'" onMouseOut="MM_showHideLayers(\'menu1\',\'\',\'hide\'); document.getElementById(\'new_help_zhanghu\').className=\'gxl_110601_new_help_zhanghu\'">';
	header+='                	<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myaccount.do" class="gxl_110601_egoutbfx_color1">个人中心</a></div>';
	header+='					<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myegouorder.do" class="gxl_110601_egoutbfx_color1">我的订单</a></div>';
	header+='					<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myegouwealth.do" class="gxl_110601_egoutbfx_color1">我的财富</a></div>';
	header+='					<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myegoutraceorder.do" class="gxl_110601_egoutbfx_color1">即时查询</a></div>';
	header+='					<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myegoupay.do" class="gxl_110601_egoutbfx_color1">提现申请</a></div>';
	header+='					<div class="gxl_110601_top_1_r_1"><a style="font-family:verdana; font-size:12px;line-height:140%;" href="'+window.FXURL+'/myegoufavorite.do" class="gxl_110601_egoutbfx_color1">我的收藏</a></div>';
	header+='                </div>';
	header+='            </div>';
	header+='            <div class="gxl_110601_new_help"><a href="'+window.FXURL+'/help/" class="gxl_110601_egoutbfx_color1">玩转易购</a>&nbsp;</div>';
	header+='            <div class="gxl_110601_new_kf"><div class="gxl_110601_new_kf_pic"><img src="/header/images/new_top_kf.png" /></div><a href="'+window.FXURL+'/kefu.htm" class="gxl_110601_egoutbfx_color1" target="_blank">在线客服</a>&nbsp;</div>';
	header+='        	<div id="new_help_zhanghu1" class="gxl_110601_new_help_space">&nbsp;</div>';
	
	
	
	document.write(header);
}
function writeinHeader_top2(){
	var header="    	</div>";
	var login="";
	if(("" != EgouCookie.username) && ("" != EgouCookie.userid)){
		header+='    	<div class="gxl_110601_userInfor" style="margin-top: 3px; display: none;" id="_alipay_userinfo">';
		header+='    		<span><a href="javascript:void(0);" onclick="return sinalogin();" class="sina">微博登录</a></span><span><a href="javascript:void(0);" onclick="return qqlogin();"  class="qq">QQ登录</a></span><span><a href="javascript:void(0);" onclick="return taobaologin();"  class="taobao">淘宝登录</a></span><span><a href="javascript:void(0);" onclick="return landinglogin();"  class="tzhifubao">支付宝登录</a></span>';
		header+='   	</div>';
		header+='<div class="gxl_110601_userInfor" id="_user_login_message_div">';
		header+="<div style='float:left; margin-top:6px;'><span>您好，<a href='"+window.FXURL+"/myaccount.do' style='font-family:Verdana,宋体;'>"+EgouCookie.username+"</a>！</span></div>"+
		"<div style='float:left;'>您有<a href='"+window.FXURL+"/myegoucoin.do' class='gxl_110601_egoutbfx_color41' id='_ucoins'>0易币</a></div>"+
		"<div class='gxl_110601_userInforPop_p' "+
		"			onmouseover=\"document.getElementById('userInforPop1').style.display='block';\" "+
		"			onmouseout=\"document.getElementById('userInforPop1').style.display='none';\" style='float:left;'>"+
		"	<div style='display:none;' class='gxl_110601_userInforPop' id='userInforPop1'>"+
		"		<div class='gxl_110601_userInforPop_t'></div>"+
		"		<div class='gxl_110601_userInforPop_m'>易购的积分名称,可兑换优惠券。</div>"+
		"	</div>&nbsp;"+
		"</div>"+
		"<div style='float:left; margin-left:10px;'><a href='"+window.FXURL+"/myegouwealth.do' class='gxl_110601_egoutbfx_color41' id='_ucents'>0财富</a></div>"+
		"<div class='gxl_110601_userInforPop_p' "+
		"			onmouseover=\"document.getElementById('userInforPop2').style.display='block';\" "+
		"			onmouseout=\"document.getElementById('userInforPop2').style.display='none';\" style='float:left;'>"+
		"	<div style='display:none;' class='gxl_110601_userInforPop' id='userInforPop2'>"+
		"		<div class='gxl_110601_userInforPop_t'></div>"+
		"		<div class='gxl_110601_userInforPop_m'>易购的货币名称,1财富=1分钱。</div>"+
		"	</div>&nbsp;"+
		"</div>"+
		"<div style='float:left; margin-top:6px; margin-left:10px;'><a href='javascript:logoutEgou();' id='egoutbfx_color42'>[退出]</a>&nbsp;</div>"+
		"<div class='clear'></div>";
	}else{
		var loginstyle = "common";
		if(window.LOGIN_POPLAYER_STYLE){
			loginstyle = window.LOGIN_POPLAYER_STYLE;
		}
		header+='    	<div class="gxl_110601_userInfor" style="margin-top: 3px" id="_alipay_userinfo">';
		header+='    		<span><a href="javascript:void(0);" onclick="return sinalogin();" class="sina">微博登录</a></span><span><a href="javascript:void(0);" onclick="return qqlogin();"  class="qq">QQ登录</a></span><span><a href="javascript:void(0);" onclick="return taobaologin();"  class="taobao">淘宝登录</a></span><span><a href="javascript:void(0);" onclick="return landinglogin();"  class="tzhifubao">支付宝登录</a></span>';
		header+='   	</div>';
		header+='<div class="gxl_110601_userInfor" id="_user_login_message_div">';
		header+="<span>欢迎来易购！</span>请<a href='javascript:popLayerToLogin();' class='gxl_110601_egoutbfx_color41'>登录</a>/<a href='"+window.FXURL+"/memberRegister.do?source=" + encodeURIComponent(window.location.href) +"' class='gxl_110601_egoutbfx_color41' target='_self'>有奖注册</a>&nbsp;";
	}
	
//	header+='   	<div class="gxl_110601_userInfor" id="_user_login_message_div"><span>欢迎来易购！</span>请<a href="#" class="gxl_110601_egoutbfx_color41">登录</a>/<a href="#" class="gxl_110601_egoutbfx_color41">有奖注册</a>&nbsp;</div>';
	header+='</div>';
	header+='       <div class="clear"></div>';
	header+='	</div>';
	header+='    <div class="clear"></div>';
	header+='</div>';
	header+='</div>';
	header+='<div id="_egou_top_ad"></div>';
//	header+='<script type="text/javascript" src="${wwwuri }/adinterface.do?view=array&id=TOP_ADS&begin=1&cnt=3&callback=tlAdCallbackForJsonArray"></script>';
	
	var header1="";
	header1+='<div id="_header_nav_container" class="gxl_110601_new_top_d">';
	header1+='<div class="gxl_110601_head">';
	header1+='    <div class="gxl_110601_new_logo"><a href="'+window.WWWURL+'"><img src="/header/images/logo.gif" /></a><a href="#" id="_item_logo"><img src="/header/images/taobao_logo.gif" /></a></div>';
	header1+='    <div class="gxl_110601_new_search">';
	header1+='        <div class="gxl_110601_search_1">';
	header1+='            <ul>';
	header1+='                <li id="top_search_1"><a style="font-family:verdana;" href="#">比较价格</a></li>';
	header1+='                <li id="top_search_3"><a style="font-family:verdana;" href="#">返现商家</a></li>';
	header1+='                <li id="top_search_2" class="gxl_110601_selected"><a style="font-family:verdana;" href="#">淘宝返现</a></li>';
	header1+='                <li id="top_search_4"><a style="font-family:verdana;" href="#">活动特卖</a></li>';
	header1+='                <li id="top_search_5"><a style="font-family:verdana;" href="#">团购返现</a></li>';
	header1+='            </ul>';
	header1+='        </div>';
	header1+='        <div class="clear"></div>';
	header1+='        <!-- 以下是比价tab所使用的搜索框 -->';
	header1+='        <div class="gxl_110601_search_2" id="top_search_1_div" style="display:none;">';
	header1+='    		<form action="'+window.WWWURL+'/search.do" method="get" onsubmit="return wwwSearchAll(this);">';
	header1+='                <div class="gxl_110601_search_2_l"></div>';
	header1+='                <div class="gxl_110601_search_2_c">';
	header1+='                    <div class="gxl_110601_search_2_c_3"><input type="text" id="wwwSearchKeyword" value="'+window.SEARCH_KEYWORDS+'" class="gxl_110601_input_1_1" /></div>';
	header1+='                </div>';
	header1+='                <div class="gxl_110601_b_search">';
	header1+='	                    <input type="submit" name="search" class="gxl_110601_button1" value="" />';
	header1+='	                </div>';
	header1+='                <div class="gxl_110601_search_2_r"></div>';
	header1+='            	<div class="clear"></div>';
	header1+='	        	<input type="hidden" name="charset" value="GBK" />';
	header1+='	        	<input type="hidden" name="seo" value="" />';
	header1+='	        	<input type="hidden" name="source" id="source" value="" />';
	header1+='    		</form>';
	header1+='        </div>';
	header1+='        <!-- 以上是比价tab所使用的搜索框 -->';
	
	header1+='		  <!-- 以下是返现商家tab所使用的搜索框 -->';
	header1+='        <div class="gxl_110601_search_2" id="top_search_3_div" style="display:none;">';
	header1+='    		<form action="'+window.FXURL+'/search.do" method="get" onsubmit="return fxSearchAll(this);">';
	header1+='                <div class="gxl_110601_search_2_l"></div>';
	header1+='                <div class="gxl_110601_search_2_c">';
	header1+='                    <div class="gxl_110601_search_2_c_3"><input type="text" id="fxSearchKeyword" value="'+window.FX_SEARCH_KEYWORDS+'" class="gxl_110601_input_1_1" /></div>';
	header1+='                </div>';
	header1+='                <div class="gxl_110601_b_search">';
	header1+='	                    <input type="submit" name="search" class="gxl_110601_button1" value="" />';
	header1+='	                </div>';
	header1+='                <div class="gxl_110601_search_2_r"></div>';
	header1+='            	<div class="clear"></div>';
	header1+='	        	<input type="hidden" name="charset" value="GBK" />';
	header1+='	        	<input type="hidden" name="seo" value="" />';
	header1+='	        	<input type="hidden" name="source" id="source" value="" />';
	header1+='    		</form>';
	header1+='        </div>';
	header1+='        <!-- 以上是返现商家tab所使用的搜索框 -->';
	
	header1+='		  <!-- 以下是活动特卖tab所使用的搜索框 -->';
	header1+='        <div class="gxl_110601_search_2" id="top_search_4_div" style="display:none;">';
	header1+='    		<form action="'+window.FXURL+'/search.do" method="get" onsubmit="return activeSearchAll(this);">';
	header1+='                <div class="gxl_110601_search_2_l"></div>';
	header1+='                <div class="gxl_110601_search_2_c">';
	header1+='                    <div class="gxl_110601_search_2_c_3"><input type="text" id="activeSearchKeyword" value="'+window.ACTIVE_SEARCH_KEYWORDS+'" class="gxl_110601_input_1_1" /></div>';
	header1+='                </div>';
	header1+='                <div class="gxl_110601_b_search">';
	header1+='	                    <input type="submit" name="search" class="gxl_110601_button1" value="" />';
	header1+='	                </div>';
	header1+='                <div class="gxl_110601_search_2_r"></div>';
	header1+='            	<div class="clear"></div>';
	header1+='	        	<input type="hidden" name="charset" value="GBK" />';
	header1+='	        	<input type="hidden" name="seo" value="" />';
	header1+='	        	<input type="hidden" name="source" id="source" value="" />';
	header1+='    		</form>';
	header1+='        </div>';
	header1+='        <!-- 以上是活动特卖tab所使用的搜索框 -->';
	
	header1+='		  <!-- 以下是团购返现tab所使用的搜索框 -->';
	header1+='        <div class="gxl_110601_search_2" id="top_search_5_div" style="display:none;">';
	header1+='    		<form action="'+window.TUANGOU+'/search.do" method="get" onsubmit="return tgSearchAll(this);">';
	header1+='                <div class="gxl_110601_search_2_l"></div>';
	header1+='                <div class="gxl_110601_search_2_c">';
	header1+='                    <div class="gxl_110601_search_2_c_3"><input type="text" id="tgSearchKeyword" value="'+window.TG_SEARCH_KEYWORDS+'" class="gxl_110601_input_1_1" /></div>';
	header1+='                </div>';
	header1+='                <div class="gxl_110601_b_search">';
	header1+='	                    <input type="submit" name="search" class="gxl_110601_button1" value="" />';
	header1+='	                </div>';
	header1+='                <div class="gxl_110601_search_2_r"></div>';
	header1+='            	<div class="clear"></div>';
	header1+='	        	<input type="hidden" name="charset" value="GBK" />';
	header1+='	        	<input type="hidden" name="seo" value="" />';
	header1+='	        	<input type="hidden" name="source" id="source" value="" />';
	header1+='    		</form>';
	header1+='        </div>';
	header1+='        <!-- 以上是团购返现tab所使用的搜索框 -->';
	
	header1+='        <div class="gxl_110601_search_2" id="top_search_2_div">';
	header1+='            <div class="gxl_110601_search_2_l"></div>';
	header1+='            <div class="gxl_110601_search_2_c">';
	header1+='                <div class="gxl_110601_search_2_c_1"><input type="text" name="valueKeyword" id="header_valueKeyword" value="'+window.SEARCH_KEYWORDS+'" class="gxl_110601_input_1" style="padding-bottom:0px; padding-right:0px;"/></div>';
	header1+='                <div class="gxl_110601_search_2_c_2">';
	header1+='                    <div id="uboxstyle">';
	header1+='                      <select name="language" id="language" title="搜索内容">';
	header1+='                        <option value="0">淘宝宝贝</option>';
	header1+='                        <option value="1">淘宝店铺</option>';
	header1+='                      </select>';
	header1+='                  </div>';
	header1+='                </div>';
	header1+='            </div>';
	header1+='            <div class="gxl_110601_b_search">';
	header1+='                <input type="button" name="search" class="gxl_110601_button1" value="" onclick="window.tbsearchAll(jQuery(\'#header_valueKeyword\'));"/>';
	header1+='            </div>';
	header1+='            <div class="gxl_110601_search_2_r"></div>';
	header1+='            <div class="clear"></div>';
	header1+='        </div>';
	header1+='    </div>';
	header1+='    <div class="clear"></div>';
	header1+='</div>';
	document.write(header);
	document.write("<div id='__top_ad'></div>");
	document.write(header1);
	if(window.loginConfigureCallback){
		window.loginConfigureCallback(EgouCookie.username, EgouCookie.userid);
	}
	document.implementation;
//	jQuery("#header-top").html(header+header1);
}

function sinalogin(){
	var url=window.FXURL+"/authorize.do?from=sinawb&bind=1&source="+encodeURI(window.location.href);
	   window.open(url,'_self');
	   return false;
}
function taobaologin(){
	   window.open(window.FXURL+"/authorize.do?from=taobao&bind=1&source="+encodeURI(window.location.href),'_self');
	   return false;
}
function landinglogin(){
	   window.open(window.FXURL+"/authorize.do?from=alipay&bind=1&source="+encodeURI(window.location.href),'_self');
	   return false;
}
function qqlogin(){
	window.open(window.FXURL+"/authorize.do?from=qq&bind=1&source="+encodeURI(window.location.href),'_self');
//	   window.open("http://bbs.egou.com/connect.php?mod=login&op=init&referer="+encodeURI(window.location.href)+"&statfrom=login_simple",'_self');
	   return false;
}

function mOmover(mIndex, isSpecial){
	if(isSpecial){
		document.getElementById('li_nav_0_1').className='gxl_110601_new_nav_l_qjd1'; 
		document.getElementById('li_nav_0_1_a').className='gxl_110601_egoutbfx_color43'; 
		document.getElementById('MenuCityList').style.display='block';
	}else{
		document.getElementById('li_nav_1_'+mIndex).className='gxl_110601_new_nav_l_shouye1'; 
		document.getElementById('nav_'+mIndex).className='gxl_110601_egoutbfx_color43';
	}
}
function mOmout(mIndex, isSpecial){
	if(isSpecial){
		document.getElementById('li_nav_0_1').className='gxl_110601_new_nav_l_qjd'; 
		document.getElementById('li_nav_0_1_a').className='gxl_110601_egoutbfx_color44'; 
		document.getElementById('MenuCityList').style.display='none';
	}else{
		document.getElementById('li_nav_1_'+mIndex).className='gxl_110601_new_nav_l_shouye'; 
		document.getElementById('nav_'+mIndex).className='gxl_110601_egoutbfx_color44';
	}
}
function pOmover(){
	document.getElementById('new_help_zhanghu3').className='gxl_110601_new_nav_r1'; 
	document.getElementById('new_nav_r_list').style.display='block';
}
function pOmout(){
	document.getElementById('new_help_zhanghu3').className='gxl_110601_new_nav_r'; 
	document.getElementById('new_nav_r_list').style.display='none';
}
//JavaScript Document
//headwww.js
//<!-- 
function MM_reloadPage(init) { //reloads the window if Nav4 resized 
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { 
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} 
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); 
} 
MM_reloadPage(true); 
//--> 

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	    obj.visibility=v; }
	}
function MM_showHideLayers1() { //v6.0
var i,p,v,obj,args=MM_showHideLayers1.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
  if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
  obj.display=v; }
}
//-->
//wwwsearch.js
var wwwDefaultKey = "请输入您要搜索的商品，如：明朝那些事儿";
function searchinput(){

	// illegalChars in keyword
	var ILLEGALCHARS = ['-', '%', '\'', '\"', '?', '/', '\\', '#', '&', '+'];
	var REPLACECHARS = new Array(ILLEGALCHARS.length);// replace illegalChar to chars
	REPLACECHARS[0] = "";
	for(var i = 1; i < ILLEGALCHARS.length; ++i) {
		REPLACECHARS[i] = encodeURIComponent(ILLEGALCHARS[i]);
	}
	REPLACECHARS[0] = "~";
function encodeKeyWord(word) {
		for (var i = 0; i < ILLEGALCHARS.length; ++i) {
			if (word.indexOf(ILLEGALCHARS[i]) != -1) {
				word = word.replace(new RegExp('[' + ILLEGALCHARS[i] + ']', 'g'), REPLACECHARS[i]);
			}
		}
		return word;
	}
	var eValueKeyword = jQuery("#wwwSearchKeyword");
	function searchAll(form){
		var evk = eValueKeyword;
		var keyword = jQuery.trim(evk.val());
		if(keyword.length>60){
			alert("输入的搜索关键字不能长于60个字符！");
			return false;
		}
		if(keyword.length == 0 || wwwDefaultKey==keyword){
			form.action = window.WWWURL;
			form.method = "post";
		} else {
			window.location = window.WWWURL+"/searchcoder.jsp?charset=utf-8&v="+encodeURIComponent(evk.val());
			/*form.action = window.wwwPath + "/search.do";
			form.method = "get";
			form.seo.value = "00-keyword_" + encodeKeyWord(keyword);*/
		}
		return false;
	};
	window.wwwSearchAll = searchAll;

	var getTarget = function(event) {
		return jQuery(event.target);
	};
	function doFocus(evk) {
		evk.css("color", "#666666");
		var keyword = jQuery.trim(evk.val());
		if (wwwDefaultKey==keyword) {
			evk.val("");
			return false;
		}
	}
	function doBlur(evk){
		if(jQuery.trim(evk.val()) == "") {
			evk.val(wwwDefaultKey);
			evk.css("color", "#CCCCCC");
		} else if(evk.val() == wwwDefaultKey) {
			evk.css("color", "#CCCCCC");
		}
	}

	eValueKeyword.focus(function(event){
		doFocus(getTarget(event));
	});
	eValueKeyword.blur(function(event){
		doBlur(getTarget(event));
	});
	//eValueKeyword.focus().blur();
	window.initWWWSearchKeyword = function(evk) {
		doFocus(evk);doBlur(evk);
	};
	initWWWSearchKeyword(eValueKeyword);
}

var fxDefaultKey = "请输入您要找的商城名称";
function searchinput_fx(){

	// illegalChars in keyword
	var ILLEGALCHARS = ['-', '%', '\'', '\"', '?', '/', '\\', '#', '&', '+'];
	var REPLACECHARS = new Array(ILLEGALCHARS.length);// replace illegalChar to chars
	REPLACECHARS[0] = "";
	for(var i = 1; i < ILLEGALCHARS.length; ++i) {
		REPLACECHARS[i] = encodeURIComponent(ILLEGALCHARS[i]);
	}
	REPLACECHARS[0] = "~";
	function encodeKeyWord(word) {
		for (var i = 0; i < ILLEGALCHARS.length; ++i) {
			if (word.indexOf(ILLEGALCHARS[i]) != -1) {
				word = word.replace(new RegExp('[' + ILLEGALCHARS[i] + ']', 'g'), REPLACECHARS[i]);
			}
		}
		return word;
	}
	var eValueKeyword = jQuery("#fxSearchKeyword");
	function searchAll(form){
		var evk = eValueKeyword;
		var keyword = jQuery.trim(evk.val());
		if(keyword.length>=60){
			alert("输入的搜索关键字不能长于60个字符！");
			return false;
		}
		if(keyword.length == 0 || fxDefaultKey==keyword){
			form.action = window.wwwPath;
			form.method = "post";
		} else {
			window.location = window.FXURL+"/searchcoder.jsp?charset=utf-8&v="+encodeURIComponent(evk.val());
		}
		return false;
	};
	window.fxSearchAll = searchAll;

	var getTarget = function(event) {
		return jQuery(event.target);
	};
	function doFocus(evk) {
		evk.css("color", "#666666");
		var keyword = jQuery.trim(evk.val());
		if (fxDefaultKey==keyword) {
			evk.val("");
			return false;
		}
	}
	function doBlur(evk){
		if(jQuery.trim(evk.val()) == "") {
			evk.val(fxDefaultKey);
			evk.css("color", "#CCCCCC");
		} else if(evk.val() == fxDefaultKey) {
			evk.css("color", "#CCCCCC");
		}
	}

	eValueKeyword.focus(function(event){
		doFocus(getTarget(event));
	});
	eValueKeyword.blur(function(event){
		doBlur(getTarget(event));
	});
	//eValueKeyword.focus().blur();
	window.initFxSearchKeyword = function(evk) {
		doFocus(evk);doBlur(evk);
	};
	initFxSearchKeyword(eValueKeyword);
}

var tgDefaultKey = "请输入团购商品名称";
function searchinput_tg(){

	// illegalChars in keyword
	var ILLEGALCHARS = ['-', '%', '\'', '\"', '?', '/', '\\', '#', '&', '+'];
	var REPLACECHARS = new Array(ILLEGALCHARS.length);// replace illegalChar to chars
	REPLACECHARS[0] = "";
	for(var i = 1; i < ILLEGALCHARS.length; ++i) {
		REPLACECHARS[i] = encodeURIComponent(ILLEGALCHARS[i]);
	}
	REPLACECHARS[0] = "~";
	function encodeKeyWord(word) {
		for (var i = 0; i < ILLEGALCHARS.length; ++i) {
			if (word.indexOf(ILLEGALCHARS[i]) != -1) {
				word = word.replace(new RegExp('[' + ILLEGALCHARS[i] + ']', 'g'), REPLACECHARS[i]);
			}
		}
		return word;
	}
	var eValueKeyword = jQuery("#tgSearchKeyword");
	function searchAll(form){
		var evk = eValueKeyword;
		var keyword = jQuery.trim(evk.val());
		if(keyword.length>=60){
			alert("输入的搜索关键字不能长于60个字符！");
			return false;
		}
		if(keyword.length == 0 || tgDefaultKey==keyword){
			form.action = window.wwwPath;
			form.method = "post";
		} else {
			window.location = window.TUANGOU+"/searchcoder.jsp?charset=utf-8&v="+encodeURIComponent(evk.val());
		}
		return false;
	};
	window.tgSearchAll = searchAll;

	var getTarget = function(event) {
		return jQuery(event.target);
	};
	function doFocus(evk) {
		evk.css("color", "#666666");
		var keyword = jQuery.trim(evk.val());
		if (tgDefaultKey==keyword) {
			evk.val("");
			return false;
		}
	}
	function doBlur(evk){
		if(jQuery.trim(evk.val()) == "") {
			evk.val(tgDefaultKey);
			evk.css("color", "#CCCCCC");
		} else if(evk.val() == tgDefaultKey) {
			evk.css("color", "#CCCCCC");
		}
	}

	eValueKeyword.focus(function(event){
		doFocus(getTarget(event));
	});
	eValueKeyword.blur(function(event){
		doBlur(getTarget(event));
	});
	//eValueKeyword.focus().blur();
	window.initTgSearchKeyword = function(evk) {
		doFocus(evk);doBlur(evk);
	};
	initTgSearchKeyword(eValueKeyword);
}

var activeDefaultKey = "请输入活动特卖搜索关键字";
function searchinput_active(){

	// illegalChars in keyword
	var ILLEGALCHARS = ['-', '%', '\'', '\"', '?', '/', '\\', '#', '&', '+'];
	var REPLACECHARS = new Array(ILLEGALCHARS.length);// replace illegalChar to chars
	REPLACECHARS[0] = "";
	for(var i = 1; i < ILLEGALCHARS.length; ++i) {
		REPLACECHARS[i] = encodeURIComponent(ILLEGALCHARS[i]);
	}
	REPLACECHARS[0] = "~";
	function encodeKeyWord(word) {
		for (var i = 0; i < ILLEGALCHARS.length; ++i) {
			if (word.indexOf(ILLEGALCHARS[i]) != -1) {
				word = word.replace(new RegExp('[' + ILLEGALCHARS[i] + ']', 'g'), REPLACECHARS[i]);
			}
		}
		return word;
	}
	var eValueKeyword = jQuery("#activeSearchKeyword");
	function searchAll(form){
		var evk = eValueKeyword;
		var keyword = jQuery.trim(evk.val());
		if(keyword.length>=60){
			alert("输入的搜索关键字不能长于60个字符！");
			return false;
		}
		if(keyword.length == 0 || activeDefaultKey==keyword){
			form.action = window.wwwPath;
			form.method = "post";
		} else {
			window.location = window.FXURL+"/actarea/actencodekw.jsp?charset=utf-8&actKw="+encodeURIComponent(evk.val());
			/*form.action = window.wwwPath + "/search.do";
			form.method = "get";
			form.seo.value = "00-keyword_" + encodeKeyWord(keyword);*/
		}
		return false;
	};
	window.activeSearchAll = searchAll;

	var getTarget = function(event) {
		return jQuery(event.target);
	};
	function doFocus(evk) {
		evk.css("color", "#666666");
		var keyword = jQuery.trim(evk.val());
		if (activeDefaultKey==keyword) {
			evk.val("");
			return false;
		}
	}
	function doBlur(evk){
		if(jQuery.trim(evk.val()) == "") {
			evk.val(activeDefaultKey);
			evk.css("color", "#CCCCCC");
		} else if(evk.val() == activeDefaultKey) {
			evk.css("color", "#CCCCCC");
		}
	}

	eValueKeyword.focus(function(event){
		doFocus(getTarget(event));
	});
	eValueKeyword.blur(function(event){
		doBlur(getTarget(event));
	});
	//eValueKeyword.focus().blur();
	window.initActiveSearchKeyword = function(evk) {
		doFocus(evk);doBlur(evk);
	};
	initActiveSearchKeyword(eValueKeyword);
}

//taobaosearch.js
window.taobaoItemSearchKey = "请输入宝贝名或链接";
window.taobaoShopSearchKey = "请输入要搜索的店铺";
function searchinput_tb(){
	// illegalChars in keyword
	var ILLEGALCHARS = ['-', '%', '\'', '\"', '?', '\\', '#', '&', '+'];
	var REPLACECHARS = new Array(ILLEGALCHARS.length);// replace illegalChar to chars
	REPLACECHARS[0] = "";
	for(var i = 1; i < ILLEGALCHARS.length; ++i) {
		REPLACECHARS[i] = encodeURIComponent(ILLEGALCHARS[i]);
	}
	REPLACECHARS[0] = "~";
	window.encodeKeyWord=function(word) {
		for (var i = 0; i < ILLEGALCHARS.length; ++i) {
			if (word.indexOf(ILLEGALCHARS[i]) != -1) {
				word = word.replace(new RegExp('[' + ILLEGALCHARS[i] + ']', 'g'), REPLACECHARS[i]);
			}
		}
		return word;
	}
	window.taobaoDefaultKey = jQuery("#language").val() == "0" ? taobaoItemSearchKey : taobaoShopSearchKey;
	
	jQuery("#language").change(function(){
		var vk = jQuery("#header_valueKeyword");
		var oldKey = taobaoDefaultKey;
		var index = jQuery(this).val();
		if(0 == index) {
			taobaoDefaultKey = taobaoItemSearchKey;
		} else if(1 == index) {
			taobaoDefaultKey = taobaoShopSearchKey;
		}
		if(vk.val() == oldKey) {
			vk.val(taobaoDefaultKey);
			vk.css("color", "#CCCCCC");
		}
	});
	
	function tb_searchAll(evk, type){
		var keyword = jQuery.trim(evk.val());
		if(arguments.length < 2 && jQuery("#language").val() == "1") {
			type = 1;
		}
		if(keyword.length>60){
			alert("输入的搜索关键字不能长于60个字符！");
			return false;
		}
		if(keyword.length == 0 || taobaoDefaultKey==keyword) {
			if(type == 1) {
				location = window.TAOBAOEGOUURI + "/shop/0----1-.html";
			} else {
				location = window.TAOBAOEGOUURI + "/search/0-16-------1-.html";
			}
		} else {
			if(type == 1) {
				var cid = "0";
				if(evk.attr("id") == "shopValueKeyword") cid = jQuery("#__shopcats_").val();
				location = window.TAOBAOEGOUURI + "/shop/" + ((window.req && req.tabIndex) || "0") + "-"+cid+"---1-" + encodeKeyWord(keyword) + ".html";
			} else {
				location = window.TAOBAOEGOUURI + "/search/" + ((window.req && req.tabIndex) || "0") + "--------1-" + encodeKeyWord(keyword) + ".html";
			}
		}
	};
	window.tbsearchAll = tb_searchAll;

	var getTarget = function(event) {
		return jQuery(event.target);
	};

	var eValueKeyword = jQuery("input[name=valueKeyword]");

	eValueKeyword.keydown(function(event) {
		var t = getTarget(event);
		if (event.keyCode == 13) {
			tb_searchAll(t);
			return false;
		}
	});
	function doFocus(evk) {
		evk.css("color", "#666666");
		var keyword = jQuery.trim(evk.val());
		if (taobaoDefaultKey==keyword) {
			evk.val("");
			return false;
		}
	}
	function doBlur(evk){
		if(jQuery.trim(evk.val()) == "") {
			evk.val(taobaoDefaultKey);
			evk.css("color", "#CCCCCC");
		} else if(evk.val() == taobaoDefaultKey) {
			evk.css("color", "#CCCCCC");
		}
	}

	eValueKeyword.focus(function(event){
		doFocus(getTarget(event));
	});
	eValueKeyword.blur(function(event){
		doBlur(getTarget(event));
	});

	//eValueKeyword.focus().blur();
	window.initTaobaoSearchKeyword = function(evk) {
		doFocus(evk);doBlur(evk);
	};
	initTaobaoSearchKeyword(eValueKeyword);

	/**
	 * combian header tab input values
	 */
	

}

function changetabkeyword(){
	function initallkeyword(){
		initWWWSearchKeyword(jQuery("#wwwSearchKeyword"));
		initFxSearchKeyword(jQuery("#fxSearchKeyword"));
		initTgSearchKeyword(jQuery("#tgSearchKeyword"));
		initActiveSearchKeyword(jQuery("#activeSearchKeyword"));
		initTaobaoSearchKeyword(jQuery("#header_valueKeyword"));
		
	}
	function clearkeywordfortab(){
		jQuery("#header_valueKeyword").val("");
		jQuery("#wwwSearchKeyword").val("");
		jQuery("#fxSearchKeyword").val("");
		jQuery("#tgSearchKeyword").val("");
		jQuery("#activeSearchKeyword").val("");
		initallkeyword();
	}
	function updatekeywordforalltab(keyword){
		jQuery("#header_valueKeyword").val(keyword);
		jQuery("#wwwSearchKeyword").val(keyword);
		jQuery("#fxSearchKeyword").val(keyword);
		jQuery("#tgSearchKeyword").val(keyword);
		jQuery("#activeSearchKeyword").val(keyword);
		initallkeyword();
	}
	
	
	var header_valueKeyword = jQuery("#header_valueKeyword");
	var header_wwwSearchKeyword = jQuery("#wwwSearchKeyword");
	var header_fxSearchKeyword = jQuery("#fxSearchKeyword");
	var header_tgSearchKeyword = jQuery("#tgSearchKeyword");
	var header_activeSearchKeyword = jQuery("#activeSearchKeyword");
	header_valueKeyword.blur(function(){
		var v = header_valueKeyword.val();
		if(v == window.taobaoDefaultKey) {
			//header_wwwSearchKeyword.val("");
			clearkeywordfortab();
		} else {
			updatekeywordforalltab(v);
		}
	});
	header_wwwSearchKeyword.blur(function(){
		var v = header_wwwSearchKeyword.val();
		if(v == window.wwwDefaultKey) {
//			header_valueKeyword.val("");
			clearkeywordfortab();
		} else {
			updatekeywordforalltab(v);
		}
	});
	header_fxSearchKeyword.blur(function(){
		var v = header_fxSearchKeyword.val();
		if(v == window.fxDefaultKey) {
//			header_valueKeyword.val("");
			clearkeywordfortab();
		} else {
			updatekeywordforalltab(v);
		}
	});
	header_tgSearchKeyword.blur(function(){
		var v = header_tgSearchKeyword.val();
		if(v == window.tgDefaultKey) {
//			header_valueKeyword.val("");
			clearkeywordfortab();
		} else {
			updatekeywordforalltab(v);
		}
	});
	header_activeSearchKeyword.blur(function(){
		var v = header_activeSearchKeyword.val();
		if(v == window.activeDefaultKey) {
//			header_valueKeyword.val("");
			clearkeywordfortab();
		} else {
			updatekeywordforalltab(v);
		}
	});
}
function addNeededJS(jsSrc){
	var oHead = document.getElementsByTagName('head').item(0);
	var oScript = document.createElement("script");
	
	oScript.type = "text/javascript";
	oScript.src = jsSrc;
	oHead.appendChild(oScript);
}

var HOST_ADDRESS = HOST_ADDRESS || window.WWWURL;
function popLayerToLogin(){
	window.location.href=window.FXURL+"/login.do?source="+encodeURIComponent(window.location.href);
}
function removeLoginPopLayer(){
	//jQuery("#_login_poplayer_container").hide("normal", removeLoginBackground);
	jQuery("#_login_poplayer_container").hide();
	removeLoginBackground();
}
function closeLoginPoplayer(){
	removeLoginPopLayer();
}
function clearLoginPoplayerField(obj, oriText){
	if(jQuery.trim(obj.val()) == oriText){
		obj.val("");
	}
	obj.css("color", "#000000");
}
function rebackLoginPoplayerField(obj, oriText){
	var curText = jQuery.trim(obj.val());
	if((curText == "") || (curText == oriText)){
		obj.val(oriText);
		obj.css("color", "#999999");
	}
}
function handleNormalLogin(){
	var lun = jQuery('#_poplayer_username');
	var lup = jQuery('#_poplayer_password');
	if(lun.val()==''){
		alert('用户名不能为空');
		lun.focus();
		return;
	}
	if(lup.val()==''){
		alert('密码不能为空');
		lup.focus();
		return;
	}
	
	//var href = window.location.href;
	var href=HOST_ADDRESS;
	jQuery('#_poplayer_source').val(href);
	
	submitPoplayerLoginForm(lun.val(), lup.val());
}
function fillLoginErrorMsg(errorMsg){
	jQuery('#_poplayer_login_error').html(errorMsg);
}
function submitPoplayerLoginForm(un,up){
	var form = jQuery("#_poplayer_login_form");
//	var eHead = jQuery("head");
//	var script = document.createElement("script");
//	script.type = "text/javascript";
//	script.onload = function(){
//		jQuery(script).remove();
//		if(1 == UserLoginResult.backcode){
//			configureUserLoginMessage(UserLoginResult.loginUserName, UserLoginResult.loginUserId);
//			sendRequestToBbs(UserLoginResult.msg);
//		} else if(0 == UserLoginResult.backcode){
//			fillLoginErrorMsg(UserLoginResult.msg);
//		} else {
//			fillLoginErrorMsg("登录失败!");
//		}
//	};
//	script.src = form.attr("action")+"?username="+un+"&password="+up+"&reqType=login&layerStyle="+jQuery("#_poplayer_layerStyle").val()+"&source="+encodeURIComponent(location);
//	eHead.append(script);
	jQuery.getScript(form.attr("action")+"?username="+encodeURIComponent(un)+"&password="+up+"&reqType=login&layerStyle="+jQuery("#_poplayer_layerStyle").val()+"&source="+encodeURIComponent(location), function(){
		if(1 == UserLoginResult.backcode){
			configureUserLoginMessage(UserLoginResult.loginUserName, UserLoginResult.loginUserId);
			window.EgouCookie.username = UserLoginResult.loginUserName;
			window.EgouCookie.userid = UserLoginResult.loginUserId;
			doCallback(window.egouLoginCallback, [true, UserLoginResult]);
			if(window.REFRESH_AFTER_LOGIN){
				window.location.reload();
			}
			sendRequestToBbs(UserLoginResult.msg);
		} else if(0 == UserLoginResult.backcode){
			fillLoginErrorMsg(UserLoginResult.msg);
		} else {
			fillLoginErrorMsg("登录失败!");
		}
	});
}

function doCallback (cb, args) {
	if(cb && cb instanceof Function) {
		try {
			cb.apply(window, args);
		} catch (e) {
		}
	}
}
function sendRequestToBbs(bbsUrl){
	var bbsback = document.createElement("img");
	bbsback.onerror = function(){
		removeLoginPopLayer();
	}
	bbsback.src = bbsUrl;
}
function listenWindowChanged(){
	jQuery(window).resize(function() {
		changePoplayerPositionToCenter();
	});
	
	var containerObj = jQuery("#_login_poplayer_container");
	jQuery(window).scroll(function(){
		containerObj.css("top", (jQuery(window).height()/2 - containerObj.height()/2 + parseInt(document.documentElement.scrollTop || document.body.scrollTop)));
		containerObj.css("left", (jQuery(window).width()/2 - containerObj.width()/2 + parseInt(document.documentElement.scrollLeft || document.body.scrollLeft)));
	});
	
	var bgObj = jQuery("#_login_background");
	var changePoplayerPositionToCenter = function(){
		containerObj.css("top", (jQuery(window).height()/2 - containerObj.height()/2)+"px");
		containerObj.css("left", (jQuery(window).width()/2 - containerObj.width()/2)+"px");
		
		bgObj.css("width", jQuery(document).width()+"px");
		bgObj.css("height", jQuery(document).height()+"px");
	};
}
function logoutEgou(callback){
	var form = jQuery("#_poplayer_login_form");
	jQuery.getScript(window.FXURL + "/ajaxLogout.do?" + form.serialize()+"&reqType=logout", function(){
		if(1 == UserLogoutResult.backcode){
			window.EgouCookie = {};
			doCallback(callback, [true, UserLogoutResult]);
			if(window.REFRESH_AFTER_LOGOUT){
				window.location.reload();
			}
			configureUserLoginMessage("", "");
		} else {
			alert("退出失败，请稍后重试！");
			doCallback(callback, [false, UserLogoutResult]);
		}
	});
}
/********************************************************************************************************/
/*jQuery(document).ready(function(){
	getEgouCookieUserMessage();
	//configureUserLoginMessage(window.EgouCookie.username, window.EgouCookie.userid);
});*/
function getEgouCookieUserMessage(){
	jQuery.ajax({
		   type: "POST",
		   url: window.FXURL + "/ajaxLogout.do",
		   data: "reqType=cookie",
		   dataType: "json",
		   contentType: "application/x-www-form-urlencoded; charset=utf-8", 
		   success: function(data){
			   if(1 == data.backcode){
				   var _username = data.username;
				   var _userid = data.userid;
				   configureUserLoginMessage(_username, _userid);
			   }else{
//				   alert("获取EGOU用户COOKIE信息失败！");
			   }
		   },
		   error: function(XMLHttpRequest, textStatus, errorThrown){
//			   alert("获取EGOU用户COOKIE信息 失败！");
		   }
	});
}
function configureUserLoginMessage(egouCookieUserName, egouCookieUserID){
	window.loginUserId = egouCookieUserID;
	/*if(!window.jQuery){
		addNeededJS(HOST_ADDRESS + "/js/j.js");
	}
	addNeededJS(HOST_ADDRESS + "/js/emar.Encrypt.js");
	addNeededJS(HOST_ADDRESS + "/js/emar.jQuery.cookie.js");*/
	
	var dlClass = "float:right; margin:2px 10px 0 0; padding:0;";
	var tColorClass = "color:#333333; text-decoration:none;";
	var blueClass = "color: rgb(247, 46, 6); font-size: 12px; font-weight: normal; text-decoration: underline;";
	
	var userInfoDiv = "";//"<span>您好，欢迎来易购！</span>";
	var login_table="";
	//var egouCookieUserName = getEgouCookieUserName();
	//var egouCookieUserID = getEgouCookieUserID();
	if(("" != egouCookieUserName) && ("" != egouCookieUserID)){
		jQuery("#_alipay_userinfo").hide();
		jQuery("#new_help_zhanghu").show();
		userInfoDiv += "<div style='float:left; margin-top:6px;'><span>您好，<a href='"+window.FXURL+"/myaccount.do' style='font-family:Verdana,宋体;'>"+egouCookieUserName+"</a>！</span></div>"+
					"<div style='float:left;'>您有<a href='"+window.FXURL+"/myegoucoin.do' class='gxl_110601_egoutbfx_color41' id='_ucoins'>0易币</a></div>"+
					"<div class='gxl_110601_userInforPop_p' "+
					"			onmouseover=\"document.getElementById('userInforPop1').style.display='block';\" "+
					"			onmouseout=\"document.getElementById('userInforPop1').style.display='none';\" style='float:left;'>"+
					"	<div style='display:none;' class='gxl_110601_userInforPop' id='userInforPop1'>"+
					"		<div class='gxl_110601_userInforPop_t'></div>"+
					"		<div class='gxl_110601_userInforPop_m'>易购的积分名称,可兑换优惠券。</div>"+
					"	</div>&nbsp;"+
					"</div>"+
					"<div style='float:left; margin-left:10px;'><a href='"+window.FXURL+"/myegouwealth.do' class='gxl_110601_egoutbfx_color41' id='_ucents'>0财富</a></div>"+
					"<div class='gxl_110601_userInforPop_p' "+
					"			onmouseover=\"document.getElementById('userInforPop2').style.display='block';\" "+
					"			onmouseout=\"document.getElementById('userInforPop2').style.display='none';\" style='float:left;'>"+
					"	<div style='display:none;' class='gxl_110601_userInforPop' id='userInforPop2'>"+
					"		<div class='gxl_110601_userInforPop_t'></div>"+
					"		<div class='gxl_110601_userInforPop_m'>易购的货币名称,1财富=1分钱。</div>"+
					"	</div>&nbsp;"+
					"</div>"+
					"<div style='float:left; margin-top:6px; margin-left:10px;'><a href='javascript:logoutEgou();' id='egoutbfx_color42'>[退出]</a>&nbsp;</div>"+
					"<div class='clear'></div>";
		//userInfoDiv += 	"		<a href='http:\/\/www.egou.com/zhuye.do?uid="+egouCookieUserID+"' style='" + blueClass + "' target='_blank'>"+egouCookieUserName+"</a>&nbsp;" +
		//				"		<a href='javascript:logoutEgou();' style='"+blueClass+"'>退出</a>";
		login_table += "<tr><td>&nbsp;</td></tr><tr>"+
              "<td width=\"179\" height=\"18\" align=\"left\" valign=\"bottom\" style=\"padding-left:10px;\">欢迎您，<a href=\""+window.WWWURL+"/zhuye.do?uid="+egouCookieUserID+"\" target=\"_blank\" class=\"killcolor\" style=\"text-decoration:none;\">"+egouCookieUserName+"</a></td>"+
              "<td width=\"47\" align=\"left\" valign=\"bottom\"><a href=\"javascript:logoutEgou();\"  class=\"color_header\">退出</a></td>"+
            "</tr>";/*+
            "<tr>"+
              "<td height=\"15\" colspan=\"2\" align=\"left\" valign=\"bottom\" style=\"padding-left:10px;\"><a href=\"http:\/\/www.egou.com/zhuye.do?uid="+egouCookieUserID+"\" target=\"_blank\" class=\"killcolor\" style=\"text-decoration:none;\">"+egouCookieUserName+"</a></td>"+
            "</tr>"*/
	}else{
		jQuery("#_alipay_userinfo").show();
		jQuery("#new_help_zhanghu").hide();
		var loginstyle = "common";
		if(window.LOGIN_POPLAYER_STYLE){
			loginstyle = window.LOGIN_POPLAYER_STYLE;
		}
		
		userInfoDiv += "<span>欢迎来易购！</span>请<a href='javascript:popLayerToLogin();' class='gxl_110601_egoutbfx_color41'>登录</a>/<a href='"+window.FXURL+"/memberRegister.do?source=" + encodeURIComponent(window.location.href) +"' class='gxl_110601_egoutbfx_color41' target='_self'>有奖注册</a>&nbsp;";
		//userInfoDiv += 	"		<a href='javascript:popLayerToLogin(\""+loginstyle+"\");' style='" + blueClass + "'>请登录</a>&nbsp;" +
	 	//				"		<a href='http:\/\/fanxian.egou.com/memberRegister.do?source=" + encodeURIComponent(window.location.href) +"' style='font-size: 12px; font-weight: normal; color: rgb(102, 102, 102); text-decoration: none;' target='_self'>免费注册</a>";
		login_table += "<tr><td width=\"110\" align=\"right\"><a href=\"#\" onclick=\"register();return false;\" target=\"_blank\"><img src=\"/images/index5/b_reg.png\" /></a></td>"+
              				"<td width=\"116\" align=\"center\"><a href=\"#\" onclick=\"javascript:popLayerToLogin(); return false;\" target=\"_blank\"><img src=\"/images/index5/b_login.png\" /></a></td>"+
                      "</tr>";
	}
		
		//userInfoDiv += 	"&nbsp;&nbsp;&nbsp;&nbsp;";
	jQuery("#_user_login_message_div").html(userInfoDiv);
	jQuery("#login_table").html(login_table);
	if(window.loginConfigureCallback){
		window.loginConfigureCallback(egouCookieUserName, egouCookieUserID);
	}
}
/****************************************************遮罩****************************************************/
function removeLoginBackground(){
	jQuery('#_login_background').remove();
}
/****************************************************遮罩****************************************************/
//dropdownlistbox
var selects = [];
var isIE = (document.all && window.ActiveXObject && !window.opera) ? true
		: false;
function gbid(id) {
	return document.getElementById(id);
}

function stopBubbling(ev) {
	ev.stopPropagation();
}

function rSelects() {
	for (i = 0; i < selects.length; i++) {
		selects[i].style.display = 'none';
		select_tag = document.createElement('div');
		select_tag.id = 'select_' + selects[i].name;
		select_tag.className = 'gxl_110601_select_box';
		selects[i].parentNode.insertBefore(select_tag, selects[i]);

		select_info = document.createElement('div');
		select_info.id = 'select_info_' + selects[i].name;
		select_info.className = 'gxl_110601_tag_select';
		select_info.style.cursor = 'pointer';
		select_tag.appendChild(select_info);

		select_ul = document.createElement('ul');
		select_ul.id = 'options_' + selects[i].name;
		select_ul.className = 'gxl_110601_tag_options';
		select_ul.style.position = 'absolute';
		select_ul.style.display = 'none';
		select_ul.style.zIndex = '999';
		select_tag.appendChild(select_ul);

		rOptions(i, selects[i].name);

		mouseSelects(selects[i].name);

		if (isIE) {
			selects[i].onclick = new Function("clickLabels3('"
					+ selects[i].name + "');window.event.cancelBubble = true;");
		} else if (!isIE) {
			selects[i].onclick = new Function("clickLabels3('"
					+ selects[i].name + "')");
			selects[i].addEventListener("click", stopBubbling, false);
		}
	}
}

function rOptions(i, name) {
	var options = selects[i].getElementsByTagName('option');
	var options_ul = 'options_' + name;
	for (n = 0; n < selects[i].options.length; n++) {
		option_li = document.createElement('li');
		option_li.style.cursor = 'pointer';
		option_li.className = 'gxl_110601_open';
		gbid(options_ul).appendChild(option_li);

		option_text = document.createTextNode(selects[i].options[n].text);
		option_li.appendChild(option_text);

		option_selected = selects[i].options[n].selected;

		if (option_selected) {
			option_li.className = 'gxl_110601_open_selected';
			option_li.id = 'selected_' + name;
			gbid('select_info_' + name).appendChild(
					document.createTextNode(option_li.innerHTML));
		}

		option_li.onmouseover = function() {
			this.className = 'gxl_110601_open_hover';
		};
		option_li.onmouseout = function() {
			if (this.id == 'selected_' + name) {
				this.className = 'gxl_110601_open_selected';
			} else {
				this.className = 'gxl_110601_open';
			}
		};

		option_li.onclick = new Function("clickOptions(" + i + "," + n + ",'"
				+ selects[i].name + "')");
	}
}

function mouseSelects(name) {
	var sincn = 'select_info_' + name;

	gbid(sincn).onmouseover = function() {
		if (this.className == 'gxl_110601_tag_select')
			this.className = 'gxl_110601_tag_select_hover';
	};

	gbid(sincn).onmouseout = function() {
		if (this.className == 'gxl_110601_tag_select_hover')
			this.className = 'gxl_110601_tag_select';
	};

	if (isIE) {
		gbid(sincn).onclick = new Function("clickSelects('" + name
				+ "');window.event.cancelBubble = true;");
	} else if (!isIE) {
		gbid(sincn).onclick = new Function("clickSelects('" + name + "');");
		gbid('select_info_' + name).addEventListener("click", stopBubbling,
				false);
	}

}

function clickSelects(name) {
	var sincn = 'select_info_' + name;
	var sinul = 'options_' + name;

	for (i = 0; i < selects.length; i++) {
		if (selects[i].name == name) {
			if (gbid(sincn).className == 'gxl_110601_tag_select_hover') {
				gbid(sincn).className = 'gxl_110601_tag_select_open';
				gbid(sinul).style.display = '';
			} else if (gbid(sincn).className == 'gxl_110601_tag_select_open') {
				gbid(sincn).className = 'gxl_110601_tag_select_hover';
				gbid(sinul).style.display = 'none';
			}
		} else {
			gbid('select_info_' + selects[i].name).className = 'gxl_110601_tag_select';
			gbid('options_' + selects[i].name).style.display = 'none';
		}
	}

}

function clickOptions(i, n, name) {
	var li = gbid('options_' + name).getElementsByTagName('li');

	gbid('selected_' + name).className = 'gxl_110601_open';
	gbid('selected_' + name).id = '';
	li[n].id = 'selected_' + name;
	li[n].className = 'gxl_110601_open_hover';
	gbid('select_' + name).removeChild(gbid('select_info_' + name));

	select_info = document.createElement('div');
	select_info.id = 'select_info_' + name;
	select_info.className = 'gxl_110601_tag_select';
	select_info.style.cursor = 'pointer';
	gbid('options_' + name).parentNode.insertBefore(select_info,
			gbid('options_' + name));

	mouseSelects(name);

	gbid('select_info_' + name).appendChild(
			document.createTextNode(li[n].innerHTML));
	gbid('options_' + name).style.display = 'none';
	gbid('select_info_' + name).className = 'gxl_110601_tag_select';
	selects[i].options[n].selected = 'selected';
	jQuery(selects[i]).trigger("change");

}



//
//商城下拉menu滚动效果
var speed=800;
var easing=null;
var start=0;
var scroll=4;
var visible=4;
var curr = start+visible;
var menup = 3;
var vertical = false;
var circular = true;
var beforeStart = null;
var afterEnd = null;
var liw = "140";
var lih = "169";
var running = false, animCss=vertical?"top":"left", sizeCss=vertical?"height":"width";
//var div = jQuery('.shop_items'), ul = jQuery("ul", div), tLi = jQuery("dl", ul), tl = tLi.size(), v = visible;;

var li, liSize, ulSize, divSize;
var div, ul, tLi, tl, v;
function initScrollDiv(){
	div = jQuery('.gxl_110601_shop_items');
	ul = jQuery("ul", div);
	tLi = jQuery("dl", ul);
	tl = tLi.size();
	v = visible;
	
	if(circular){
		ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());
		start += v;
	}
	//var li = jQuery("dl", ul), itemLength = li.size();
	li = jQuery("dl", ul), itemLength = li.size();
	div.css("visibility", "visible");
	
	li.css({overflow: "hidden", float: vertical ? "none" : "left"});
	ul.css({margin: "0", padding: "0", position: "relative", "list-style-type": "none", "z-index": "1"});
	div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"});
	
	//var liSize = vertical ? lih : liw;
	liSize = vertical ? lih : liw;
	//var ulSize = liSize * itemLength;
	ulSize = liSize * itemLength;
	//var divSize = liSize * v;
	divSize = liSize * v;
	
	li.css({width: liw, height: lih});
	ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize));
	div.css(sizeCss, divSize+"px");                     // Width of the DIV. length of visible images
}

function menubtn(t){
	if(t=="prev"){
		return go(curr-scroll);
	}else if(t=="next"){
		return go(curr+scroll);
	}
}

function go(to){
	var n;
	if(!running){
		if(circular){
			if(to<=start-v-1){
				ul.css(animCss, -((itemLength-(v*2))*liSize)+"px");
				curr = to==start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-scroll;
			}else if(to>=itemLength-v+1){ 
				ul.css(animCss, -( (v) * liSize ) + "px" );
				curr = to==itemLength-v+1 ? v+1 : v+scroll;
			}else{
				curr = to;
			}
		}else{                   
			if(to<0 || to>itemLength-v){
				return;
			}else{
				curr = to;
			}
		}                    

		running = true;
		var __left={ left: -(curr*liSize) };
		var __top = { top: -(curr*liSize) };
		ul.animate(
			animCss == "left" ? __left : __top , speed, easing,
			function(){
				running = false;
			}
		);
	}
	n=curr/v;
	if(n>menup){
		n=n-menup;
	}
	if(n==0){
		n=menup;
	}
	for(var i=1; i<=menup; i++){
		jQuery('#menupoint'+i).removeClass("gxl_110601_cur");
	}
	jQuery('#menupoint'+n).addClass("gxl_110601_cur");
	//alert(n);
	return false;
};

function css(el, prop){
	return parseInt(jQuery.css(el[0], prop)) || 0;
};
function width(el){
    return  el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');
};
function height(el){
    return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');
};


function handleUserCoinsAndCents(jsondata){
	//alert("ucoins: "+jsondata.ucoins+", ucents: "+jsondata.ucents);
	jQuery("#_ucoins").text(jsondata.ucoins+"易币");
	jQuery("#_ucents").text(jsondata.ucents+"财富");
}
function loginConfigureCallback(_uname, _uid){
	if(jQuery.trim(_uid) == ""){//未登录或者已经退出
		//未登录状态下“我的帐户”隐藏
		//jQuery("div[id^='new_help_zhanghu']").each(function(){
		//	jQuery(this).hide();
		//});
	}else{//已登录
		//登录状态下“我的帐户”显示
		//jQuery("div[id^='new_help_zhanghu']").each(function(){
		//	jQuery(this).show();
		//});
		jQuery.getScript(window.WWWURL+"/adinterface.do?view=usercoinsandcents&uid="+_uid+"&callback=handleUserCoinsAndCents"); 
	}
}


function tlAdCallbackForJsonArray(data){
	jQuery.each(data, function(i, n){
		var tlAdDiv = "<div class='gxl_110601_new_top_ad' id='top_ads_div_"+i+"'>";
		tlAdDiv += "<div class='gxl_110601_new_top_adscript' style='position:relative; width:960px; margin:0 auto; margin-bottom: 5px;'>";
		tlAdDiv += "<a target='_blank' href='"+n.link+"' ><img width='960' src='"+n.imgViewPath+"/"+n.image+"' alt='"+n.content+"'/></a>";
		tlAdDiv += "<div style='position:absolute; top:5px; left:917px; width:38px; height:20px; cursor:pointer;' onclick='jQuery(this).parent().parent().slideUp(500);upcat(40);sethastlAdDivs();'>关闭</div>";
		tlAdDiv += "</div>";
		tlAdDiv += "</div>";
//		document.write(tlAdDiv);
		jQuery("#__top_ad").html(tlAdDiv);
	});
}

function tlAdCallbackForJsonArray_index(data){
	jQuery.each(data, function(i, n){
		var tlAdDiv = "<div class='gxl_110601_new_top_ad' style='height:450px;' id='top_ads_div_"+i+"'>";
		tlAdDiv += "<div class='gxl_110601_new_top_adscript' style='position:relative; width:960px; margin:0 auto; margin-bottom: 5px;'>";
		tlAdDiv += "<a target='_blank' href='"+n.link+"' ><img width='960' src='"+n.imgViewPath+"/"+n.image+"' alt='"+n.content+"'/></a>";
		tlAdDiv += "<div style='position:absolute; top:5px; left:917px; width:38px; height:20px; cursor:pointer;' onclick='jQuery(this).parent().parent().slideUp(500);upcat(40);sethastlAdDivs();'>关闭</div>";
		tlAdDiv += "</div>";
		tlAdDiv += "</div>";
//		document.write(tlAdDiv);
		jQuery("#__top_ad").html(tlAdDiv);
	});
}

function _loginalipay(){
	window.location.href = window.FXURL+"/authorize.do?from=alipay&source="+encodeURIComponent("/alipaylanding.html");
}

function changetab(thiss,iditem){
	for(var i=1;i<6;i++){
		jQuery("#top_search_"+i).removeAttr("class");
		jQuery("#top_search_"+i+"_div").hide();
	}
	jQuery(thiss).attr("class", "gxl_110601_selected");
	jQuery("#top_search_"+iditem+"_div").show();
}

function searchChange(){
	if(window.SEARCH_KEYWORDS && ("" != jQuery.trim(window.SEARCH_KEYWORDS))){
		jQuery("#wwwSearchKeyword").val(window.SEARCH_KEYWORDS);//.focus().blur();
		jQuery("#header_valueKeyword").val(window.SEARCH_KEYWORDS);//.focus().blur();
	}
	jQuery("#_source").val(window.SEARCH_SOURCE);
	
	
		jQuery("#top_search_1").click(function(){
			changetab(this,1);
		});
		jQuery("#top_search_2").click(function(){
			changetab(this,2);
		});
		jQuery("#top_search_3").click(function(){
			changetab(this,3);
		});
		jQuery("#top_search_4").click(function(){
			changetab(this,4);
		});
		
		jQuery("#top_search_5").click(function(){
			changetab(this,5);
		});
	
	
		var tlAdDivs = jQuery("div[id^=top_ads_div_]");
		if(tlAdDivs.size() > 0) {
			var timeoutid = window.setTimeout(function() {
				tlAdDivs.slideUp(500, function(){
					jQuery(this).remove();
				});
				window.clearTimeout(timeoutid);
			}, 10000);
		}
	
}
var _selects = [];
var isIE = (document.all && window.ActiveXObject && !window.opera) ? true
		: false;
function _gbid(id) {
	return document.getElementById(id);
}

function _stopBubbling(ev) {
	ev.stopPropagation();
}

function _rSelects() {
	for (i = 0; i < _selects.length; i++) {
		_selects[i].style.display = 'none';
		select_tag = document.createElement('div');
		select_tag.id = 'select_' + _selects[i].name;
		select_tag.className = 'gxl_110601_select_box';
		_selects[i].parentNode.insertBefore(select_tag, _selects[i]);

		select_info = document.createElement('div');
		select_info.id = 'select_info_' + _selects[i].name;
		select_info.className = 'gxl_110601_tag_select';
		select_info.style.cursor = 'pointer';
		select_tag.appendChild(select_info);

		select_ul = document.createElement('ul');
		select_ul.id = 'options_' + _selects[i].name;
		select_ul.className = 'gxl_110601_tag_options';
		select_ul.style.position = 'absolute';
		select_ul.style.display = 'none';
		select_ul.style.zIndex = '999';
		select_tag.appendChild(select_ul);

		_rOptions(i, _selects[i].name);

		_mouseSelects(_selects[i].name);

		if (isIE) {
			_selects[i].onclick = new Function("clickLabels3('"
					+ _selects[i].name + "');window.event.cancelBubble = true;");
		} else if (!isIE) {
			_selects[i].onclick = new Function("clickLabels3('"
					+ _selects[i].name + "')");
			_selects[i].addEventListener("click", _stopBubbling, false);
		}
	}
}

function _rOptions(i, name) {
	var options = _selects[i].getElementsByTagName('option');
	var options_ul = 'options_' + name;
	for (n = 0; n < _selects[i].options.length; n++) {
		option_li = document.createElement('li');
		option_li.style.cursor = 'pointer';
		option_li.className = 'gxl_110601_open';
		_gbid(options_ul).appendChild(option_li);

		option_text = document.createTextNode(_selects[i].options[n].text);
		option_li.appendChild(option_text);

		option_selected = _selects[i].options[n].selected;

		if (option_selected) {
			option_li.className = 'gxl_110601_open_selected';
			option_li.id = 'selected_' + name;
			_gbid('select_info_' + name).appendChild(
					document.createTextNode(option_li.innerHTML));
		}

		option_li.onmouseover = function() {
			this.className = 'gxl_110601_open_hover';
		};
		option_li.onmouseout = function() {
			if (this.id == 'selected_' + name) {
				this.className = 'gxl_110601_open_selected';
			} else {
				this.className = 'gxl_110601_open';
			}
		};

		option_li.onclick = new Function("_clickOptions(" + i + "," + n + ",'"
				+ _selects[i].name + "')");
	}
}

function _mouseSelects(name) {
	var sincn = 'select_info_' + name;

	_gbid(sincn).onmouseover = function() {
		if (this.className == 'gxl_110601_tag_select')
			this.className = 'gxl_110601_tag_select_hover';
	};

	_gbid(sincn).onmouseout = function() {
		if (this.className == 'gxl_110601_tag_select_hover')
			this.className = 'gxl_110601_tag_select';
	};

	if (isIE) {
		_gbid(sincn).onclick = new Function("_clickSelects('" + name
				+ "');window.event.cancelBubble = true;");
	} else if (!isIE) {
		_gbid(sincn).onclick = new Function("_clickSelects('" + name + "');");
		_gbid('select_info_' + name).addEventListener("click", _stopBubbling,
				false);
	}

}

function _clickSelects(name) {
	var sincn = 'select_info_' + name;
	var sinul = 'options_' + name;

	for (i = 0; i < _selects.length; i++) {
		if (_selects[i].name == name) {
			if (_gbid(sincn).className == 'gxl_110601_tag_select_hover') {
				_gbid(sincn).className = 'gxl_110601_tag_select_open';
				_gbid(sinul).style.display = '';
			} else if (_gbid(sincn).className == 'gxl_110601_tag_select_open') {
				_gbid(sincn).className = 'gxl_110601_tag_select_hover';
				_gbid(sinul).style.display = 'none';
			}
		} else {
			_gbid('select_info_' + _selects[i].name).className = 'gxl_110601_tag_select';
			_gbid('options_' + _selects[i].name).style.display = 'none';
		}
	}

}

function _clickOptions(i, n, name) {
	var li = _gbid('options_' + name).getElementsByTagName('li');

	_gbid('selected_' + name).className = 'gxl_110601_open';
	_gbid('selected_' + name).id = '';
	li[n].id = 'selected_' + name;
	li[n].className = 'gxl_110601_open_hover';
	_gbid('select_' + name).removeChild(_gbid('select_info_' + name));

	select_info = document.createElement('div');
	select_info.id = 'select_info_' + name;
	select_info.className = 'gxl_110601_tag_select';
	select_info.style.cursor = 'pointer';
	_gbid('options_' + name).parentNode.insertBefore(select_info,
			_gbid('options_' + name));

	_mouseSelects(name);

	_gbid('select_info_' + name).appendChild(
			document.createTextNode(li[n].innerHTML));
	_gbid('options_' + name).style.display = 'none';
	_gbid('select_info_' + name).className = 'gxl_110601_tag_select';
	_selects[i].options[n].selected = 'selected';
	jQuery(_selects[i]).trigger("change");

}

function search_tb_change(){
	_bodyclick = document.getElementsByTagName('body').item(0);
	_selects = [document.getElementById("language")];
	_rSelects();
	_bodyclick.onclick = function() {
		for (var i = 0; i < _selects.length; i++) {
			_gbid('select_info_' + _selects[i].name).className = 'gxl_110601_tag_select';
			_gbid('options_' + _selects[i].name).style.display = 'none';
		}
	};
}

function mcOmover(mIndex, isSpecial){
	if(isSpecial){
		document.getElementById('taobao_nav_4').className='gxl_110601_new_fxhelp1';
		document.getElementById('new_common4').className='gxl_110601_egoutbfx_color47';
	}else{
		document.getElementById('taobao_nav_'+mIndex).className='gxl_110601_new_common1';
		document.getElementById('new_common'+mIndex).className='gxl_110601_egoutbfx_color47';
	}
}
function mcOmout(mIndex, isSpecial){
	if(isSpecial){
		document.getElementById('taobao_nav_4').className='gxl_110601_new_fxhelp';
		document.getElementById('new_common4').className='gxl_110601_egoutbfx_color46';
	}else{
		document.getElementById('taobao_nav_'+mIndex).className='gxl_110601_new_common';
		document.getElementById('new_common'+mIndex).className='gxl_110601_egoutbfx_color46';
	}
} 
jQuery(document).ready(function(){
	if(4 == window.NAV_FOOTER_INDEX){//淘宝返现“帮助”小导航
		var taobaoSpecialObj = jQuery("#taobao_nav_4");
		taobaoSpecialObj.attr("class", "gxl_110601_new_fxhelp1")
						.removeAttr("onmouseover")
						.removeAttr("onmouseout")
						.children("a").attr("class", "gxl_110601_egoutbfx_color47");
	}else{
		if(!window.NAV_FOOTER_INDEX){
			window.NAV_FOOTER_INDEX = 0;
		}
		var taobaoSpecialObj = jQuery("#taobao_nav_4");
		taobaoSpecialObj.attr("class", "gxl_110601_new_fxhelp").children("a").attr("class", "gxl_110601_egoutbfx_color46");
		
		jQuery("#taobao_nav_"+window.NAV_FOOTER_INDEX).attr("class", "gxl_110601_new_common1")
													.removeAttr("onmouseover")
													.removeAttr("onmouseout")
													.children("a").attr("class", "gxl_110601_egoutbfx_color47");
	}
});

