// JavaScript Document
function writeHead(rootPath){
document.writeln("<div class=\"topbg_sy\">");
document.writeln("	<div class=\"main_div\">");
document.writeln("		<!-- 头部 -->");    
document.writeln("    	<div class=\"top floatleft\">");
document.writeln("    	<a href=\"http://v3.sh.ct10000.com/\" target=_blank><img src=\""+rootPath+"\/image\/common\/linktoldv.gif\" style=\"vertical-align:bottom;float:right\"></a>");
document.writeln("        	<ul class=\"logo floatleft\"><a href=\"/\"><img src=\""+rootPath+"\/image\/common\/logo1.jpg\" \/><\/a><\/ul>");
document.writeln("            <ul class=\"city_change floatleft\">");
document.writeln("            	<h5>上海<\/h5>");
document.writeln("                <h6>shanghai<\/h6>");
document.writeln("                <div style=\"color: #666666\" class=\"city_changep\" id=\"city_btn\"  onmouseover=\"this.style.color='#ff6600';\" onmouseout=\"this.style.color='#666666';\">");
document.writeln("                [切换城市]");
                
document.writeln("                    <div id=\"city\" >");
document.writeln("                        <ul><h3>请选择您想要切换到的城市/省份：<\/h3>");
document.writeln ("    <li><a href=\"http://www.189.cn/\" target=_blank>总站</a><a href=\"http://ah.ct10000.com/\" target=_blank>安徽</a><a href=\"http://bj.ct10000.com/\" target=_blank>北京</a><a href=\"http://cq.ct10000.com/\"  target=_blank>重庆</a><a href=\"http://fj.189.cn/\" target=_blank>福建</a><a href=\"http://gz.ct10000.com/\" target=_blank>贵州</a><a href=\"http://gd.189.cn/\" target=_blank>广东</a></li> ");
document.writeln ("    <li><a href=\"http://gx.ct10000.com/\" target=_blank>广西</a><a href=\"http://gs.ct10000.com/\" target=_blank>甘肃</a><a href=\"http://he.ct10000.com/\" target=_blank>河北</a><a href=\"http://ha.ct10000.com/\" target=_blank>河南</a><a href=\"http://hb.ct10000.com/\" target=_blank>湖北</a><a href=\"http://hn.ct10000.com/\" target=_blank>湖南</a><a href=\"http://hi.ct10000.com/\" target=_blank>海南</a><\/li> ");
document.writeln ("    <li><a href=\"http://jl.ct10000.com/\" target=_blank>吉林</a><a href=\"http://js.189.cn/\" target=_blank>江苏</a><a href=\"http://jx.ct10000.com/\" target=_blank>江西</a><a href=\"http://ln.ct10000.com/\" target=_blank>辽宁</a><a href=\"http://nx.ct10000.com/\" target=_blank>宁夏</a><a href=\"http://qh.ct10000.com/\" target=_blank>青海</a><a href=\"http://sh.189.cn/\" target=_blank>上海</a><\/li> ");
document.writeln ("    <li><a href=\"http://sd.ct10000.com/\" target=_blank>山东</a><a href=\"http://sx.ct10000.com/\" target=_blank>山西</a><a href=\"http://sn.ct10000.com/\" target=_blank>陕西</a><a href=\"http://sc.189.cn/\" target=_blank>四川</a><a href=\"http://tj.ct10000.com/\" target=_blank>天津</a><a href=\"http://xz.ct10000.com/\" target=_blank>西藏</a><a href=\"http://xj.ct10000.com/\" target=_blank>新疆</a><\/li> ");
document.writeln ("    <li><a href=\"http://yn.ct10000.com/\" target=_blank>云南</a><a href=\"http://zj.189.cn/\" target=_blank>浙江</a><a href=\"http://hl.ct10000.com/\" target=_blank>黑龙江</a><a href=\"http://nm.ct10000.com/\" target=_blank>内蒙古</a><\/li> ");

document.writeln("                        <\/ul>");
document.writeln("                    <\/div>");               
document.writeln("                <\/div>");
document.writeln("             <\/ul>");
document.writeln("      <iframe src=\""+rootPath+"\/login_head.jsp\" width=\"692\" height=\"75\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\"><\/iframe>");

document.writeln("        <\/div>");
document.writeln("        <div class=\"clear\"><\/div>");
        
document.writeln("        <div class=\"nav\">");
document.writeln("        	<div class=\"nav_content\">");
document.writeln("            	<ul>");
document.writeln("                	<li id=\"home\"><span><a href=\"\/\">首页<\/a><\/span><\/li>");
document.writeln("                  <li id=\"mall\"><span><a href=\"\/mall\/\">天翼卖场<\/a><div class=\"nav_sale\"><\/div><\/span><\/li>");
document.writeln("                  <li id=\"business\"><span><a href=\"\/business\/\">业务介绍<\/a><\/span><\/li>");
document.writeln("                  <li id=\"service\"><span><a href=\"\/service\/\">自助服务<\/a><\/span><\/li>");
document.writeln("                  <li id=\"club\"><span><a href=\"\/club\/\">积分俱乐部<\/a><\/span><\/li>");
document.writeln("                  <li id=\"support\"><span class=\"nav_contentspan\"><a href=\"\/support\/\">帮助与支持<\/a><\/span><\/li>");
document.writeln("                <\/ul>");
document.writeln("            <\/div>");
            
document.writeln("            <div class=\"nav_quick\">");
document.writeln("            	<ul class=\"common_quick floatleft\">");
document.writeln("                	<div class=\"common_quickpo\">");
document.writeln("						<ul>");
document.writeln("                        	<li>");
document.writeln("                           	 	<b class=\"common_leftnavb1\">购买<\/b>业务套餐");
document.writeln("            	<div class=\"index_leftnav_po\">");
document.writeln("                <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6><a href=\"\/business\/brand\/wdEj\/Ejtc\/\" target=\"_blank\">业务套餐<\/a><\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/cnetShoppingQueryItem.do?method=search&productTypeId=83&productParentTypeId=3\">套餐<\/a>|<a href=\"\/business\/brand\/vas\/\">增值业务<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6><a href=\"\/business\/brand\/ty\/tytc\/\">天翼终端<\/a><\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/cnetShoppingQueryItem.do?method=search&productTypeId=6&productParentTypeId=2\">手机<\/a>|<a href=\""+rootPath+"\/cnetShoppingQueryItem.do?method=search&productTypeId=41&productParentTypeId=4\">上网卡<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>个人中心<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/shoppingBazaarAction.do?method=search\">我的商城<\/a>|<a href=\""+rootPath+"\/shoppingOrderFormAction.do?method=search\">我的订单<\/a>|<a href=\""+rootPath+"\/favoritesShopping.do?method=query\">收藏夹<\/a>|<a href=\""+rootPath+"\/cNetShoppingProduct.do?method=productCartList\">购物车<\/a><\/p>");
document.writeln("                    <!--<\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>卡号套餐礼包<\/h6>");
document.writeln("                        <p><a href=\"#\">天翼 180 号卡<\/a>|<a href=\"#\">易通卡卡号<\/a>|<a href=\"#\">校园套餐好卡<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>乐享3G礼包<\/h6>");
document.writeln("                        <p><a href=\"#\">3G无线上网卡时长型<\/a>|<a href=\"#\">3G无线上网卡流量型<\/a><\/p>-->");
document.writeln("                    <\/ul>");
document.writeln("                    <\/div>                                                                                ");
document.writeln("                <\/div>");
document.writeln("            <\/li>");
document.writeln("            <li><b class=\"common_leftnavb2\">交费<\/b>充值 支付");
document.writeln("                        	<div class=\"index_leftnav_po\">");
document.writeln("                            <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6><a href=\"#\">充值<\/a><\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_pay.do?functionName=voucher\">充值<\/a>|<a href=\""+rootPath+"\/account_manage_pay.do?functionName=batchVoucher\">批量充值<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>支付<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_pay.do?functionName=billQuery\">账单支付<\/a>|<a href=\""+rootPath+"\/account_manage_pay.do?functionName=barcodepay\">账单条码支付<\/a>|<a href=\""+rootPath+"\/account_manage_pay.do?functionName=orderPay\">订单支付<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>账户余额转移<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_pay.do?functionName=cardTransfer\">充值卡余额转移<\/a>|<a href=\""+rootPath+"\/account_manage_pay.do?functionName=jxCardTransfer\">百事通卡余额转移<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>交易记录查询<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_pay.do?functionName=voucherRecord\">11888卡充值记录查询<\/a>|<a href=\""+rootPath+"\/account_manage_pay.do?functionName=payLogQuery\">网厅充值交费记录<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("                    <\/div>");
document.writeln("                <\/div>");
document.writeln("            <\/li>");
document.writeln("            <li><b class=\"common_leftnavb3\">查询<\/b>账单 余额...");
document.writeln("                        	<div class=\"index_leftnav_po\">");
document.writeln("                            <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6>账单<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_query.do?functionName=billQuery\">账单查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=queryShortBill\">欠费查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>余额<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_query.do?functionName=queryLeft\">余额查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=cardLeft\">卡内余额查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=tvsellbalance\">订必返赠款余额查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>详单<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_query.do?functionName=queryDetail\">详单查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=consumeAnalysis3\">IPTV使用查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=queryPayDetail\">电话支付详单查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>实时话费<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_query.do?functionName=queryCharge\">实时话费查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>套餐使用<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/account_manage_query.do?functionName=queryPackage\">套餐使用查询<\/a>|<a href=\""+rootPath+"\/account_manage_query.do?functionName=wlanDetail\">无线上网详单查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("                    <\/div>                                                                                ");
document.writeln("                <\/div>");
document.writeln("            <\/li>");
document.writeln("            <li><b class=\"common_leftnavb4\">办理<\/b>业务...");
document.writeln("                        	<div class=\"index_leftnav_po\">");
document.writeln("                            <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6>套餐业务<\/h6>");
document.writeln("                        <p><a href=\"\/business\/brand\/wdEj\/Ejtc\/\">《我的e家》套餐订购<\/a>|<a href=\"\/v3\/login_wb.jsp\">《我的e家》简打账单订购<\/a>|<a href=\"\/business\/brand\/wdEj\/Ejkxb\/\">《我的e家》可选包<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>手机业务<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/chooseNum.do?operFlag=init\">网上选号<\/a>|<a href=\""+rootPath+"\/eSurfingByCust.do?type=init&urlInfo=getProdunctList\">新业务办理<\/a>|<\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>电话与小灵通业务<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/EhomeAcceptedAction.do?method=init&combId=1\">普通直线电话申请<\/a>|<a href=\""+rootPath+"\/sta_dev_pay_ini.do\">电话支付<\/a>|<a href=\""+rootPath+"\/workbench\/workbench_lingyin.jsp\">七彩铃音<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>宽带IPTV业务<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/wl_bb_init.do\">宽带用户免费开通公众区无线上网功能<\/a>|<a href=\""+rootPath+"\/EhomeAcceptedAction.do?method=init&combId=4\">IPTV新装<\/a><\/p>");
document.writeln("                    <\/ul> ");
document.writeln("                    <\/div>                                                                  ");
document.writeln("                <\/div>");
document.writeln("            <\/li>");
document.writeln("            <li><b class=\"common_leftnavb5\">积分<\/b>查询");
document.writeln("                        	<div class=\"index_leftnav_po\">");
document.writeln("                            <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6>查询<\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/cNetpointQuery.do?actionCode=init\">积分查询<\/a>|<a href=\""+rootPath+"\/cNetPointsExchangOrderQuery.do?actionCode=query\">兑换记录<\/a>|<a href=\""+rootPath+"\/pointsAttendLotteryAction.do?method=searchWinning\">中奖查询<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6><a href=\"#\">兑换<\/a><\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/cNetPointsItemShow.do?itemId=H09407#\">账户充值（优惠）<\/a>|<a href=\""+rootPath+"\/cNetPointsItemShow.do?itemId=1-4YEQHGO\">手机上网5元包<\/a>|<a href=\""+rootPath+"\/cNetPointsItemShow.do?itemId=1-4BGSC0O\">短信包1<\/a>|<a href=\""+rootPath+"\/cNetPointsItemShow.do?itemId=H11203\">IPTV看大片包<\/a>|<a href=\""+rootPath+"\/cNetPointsItemShow.do?itemId=1-4XHZLF9\">七彩铃音铃音盒<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6><a href=\"#\">积分商城<\/a><\/h6>");
document.writeln("                        <p><a href=\""+rootPath+"\/cnetPointsQueryTitleItem.do?menuItemType=100\">新品上架<\/a>|<a href=\""+rootPath+"\/cnetPointsQueryTitleItem.do?menuItemType=101\">热门商品<\/a>|<a href=\""+rootPath+"\/cnetPointsQueryTitleItem.do?menuItemType=1\">首页推荐<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("                    <\/div>                                                                 ");
document.writeln("                <\/div>");
document.writeln("            <\/li>");
document.writeln("            <li><b class=\"common_leftnavb6\">积分俱乐部<\/b>服务");
document.writeln("                        	<div class=\"index_leftnav_po\">");
document.writeln("                            <div>");
document.writeln("					<ul>");
document.writeln("                    	<h6>俱乐部介绍<\/h6>");
document.writeln("                        <p><a href=\"\/club\/intro\/\">俱乐部介绍<\/a>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>会员服务<\/h6>");
document.writeln("                        <p><a href=\"\/club\/activity\/\">俱乐部活动<\/a>|<a href=\"\/club\/lounge\/9483.html\/\">机场贵宾服务<\/a>|<a href=\"\/club\/lounge\/9484.html\/\">商家联盟<\/a><\/p>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>主题俱乐部<\/h6>");
document.writeln("                        <p><a href=\"\/club\/theme\/\">主题俱乐部<\/a>");
document.writeln("                    <\/ul>");
document.writeln("					<ul>");
document.writeln("                    	<h6>电子会刊<\/h6>");
document.writeln("                        <p><a href=\"\/club\/magazine\/\">电子会刊<\/a>");
document.writeln("                                    <\/ul>");                                 
document.writeln("                                    <\/div>                                 ");
document.writeln("                                <\/div>");
document.writeln("                            <\/li>"); 
document.writeln("                        <\/ul>");
document.writeln("                    <\/div>");              	
document.writeln("                <\/ul>");
document.writeln("              <form method=\"GET\" action=\"http:\/\/search.sh.ct10000.com\/189Search\/s\" target=\"_blank\">");
document.writeln("              	<ul class=\"nav_search floatleft\">");
document.writeln("              		<li>");
document.writeln("                  		<input type=\"text\" class=\"nav_search_inp\" value=\"您可以搜索产品\/活动\/问题等\" onclick=\"this.value=''\" onfocus=\"cls()\" onblur=\"res()\" name=\"wd\" id=\"wd\"\/>");
document.writeln("                      	<input type=\"submit\" class=\"nav_search_btn\" value=\"\"\/>");
document.writeln("                  	<\/li>");
document.writeln("					<\/ul>");
document.writeln("              <\/form>");
                
document.writeln("                <ul class=\"nav_hot floatleft\">");
document.writeln("                	<span>热门搜索：<\/span><a target=\"_blank\" href=\"http://search.sh.ct10000.com/189Search/s?wd="+encodeURI("乐享3G")+"\" >乐享3G<\/a><a target=\"_blank\" href=\"http://search.sh.ct10000.com/189Search/s?wd="+encodeURI("e9自主版")+"\">e9自主版<\/a>");
document.writeln("                <\/ul>");
                
 
                
                
document.writeln("      <iframe id='shoppingCatIframe' src=\""+rootPath+"\/shoppingCatHeadAction.do?method=init\" width=\"0\" height=\"0\" scrolling=\"no\" frameborder=\"0\" allowtransparency=\"true\"><\/iframe>");
document.writeln("                <ul class=\"nav_car floatright\">");
document.writeln("                	<li>");
document.writeln("                    	<!--购物车<span id='shoppingCatNum'><\/span>件-->");
document.writeln("                        <div class=\"nav_car_sanjiao\" id=\"car\"><\/div>");
document.writeln("                         <input type=\"button\" class=\"nav_car_btn\"  onclick='javascript:document.location.href=\""+rootPath+"\/cNetShoppingChangeShow.do?method=entityInit\"' \/> ");
document.writeln("                    <\/li>");
document.writeln("                    <div class=\"nav_car_po\"  id='shoppingCatList'>");
document.writeln("                    <\/div> ");                      
document.writeln("                <\/ul>");
document.writeln("            <\/div>");

 
            
            
document.writeln("        <\/div>");
document.writeln("    <\/div>");
document.writeln("<\/div>");
}

function cls(){ 
	//捕获触发事件的对象，并设置为以下语句的默认对象 
	with(event.srcElement) 
	//如果当前值为默认值，则清空 

	if(value==defaultValue) 
	{
		value="";
		$("#wd").removeClass("nav_search_inp");
		$("#wd").addClass("nav_search_inp_new");
		}
	} 

	function res(){ 

	//捕获触发事件的对象，并设置为以下语句的默认对象 

	with(event.srcElement) 

	//如果当前值为空，则重置为默认值 

	if(value=="") {
		value=defaultValue;
		$("#wd").removeClass("nav_search_inp_new");
		$("#wd").addClass("nav_search_inp");
		}
	} 
