<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{$vd['web']['title']} - 直销商系统</title> 
<meta name="keywords" content="{$vd['web']['keywords']}" />
<meta name="description" content="{$vd['web']['description']}" />
<link rel="stylesheet" type="text/css" href="{$vd['content']}css/{$vd['css']}.css" />
<link rel="shortcut icon" href="{$vd['content']}images/favicon.ico" type="image/x-icon"/>
<script type="text/javascript" src="{$vd['content']}js/utils.js"></script>
</head>

<!--$in=0;if($g_controller=='Article'||$g_controller=='Bd'||($g_controller=='Home'&&$g_action=='Index'&& !isset($vd['agent']) )||(!isset($vd['agent'])&&$g_action=='Reg')||($g_action=='Aggrement')){-->
<!--$in=1;-->
<!--}-->

<!--if($in == 1){-->

<body class="mainbg">
<div class="main">

<div class="logoad">
	<div class="logo"><img src="{$vd['content']}images/mylogo.gif" width="160" height="60" /></div>
	<div class="icons"><a href=#><img src={$vd['content']}images/icon_dx.gif class=dxz border=0></a><a href=#><img src={$vd['content']}images/icon_lt.gif border=0></a></div>
	<div class="quickmenu"><a href="#" Onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{$vd['web']['website']}');">设为首页</a> <a href=javascript:window.external.AddFavorite('{$vd['web']['website']}','{$vd['web']['webname']}')>加入收藏</a></div>
</div>
<div class="banners">
	<div id="MainPromotionBanner">
	<div class="slider" style="height:120px; overflow:hidden">
  <ul class="num" id="homePushName">
  	        <li id="homeAd0"  class="current">1</li>
            <li id="homeAd1" >2</li>
          <li id="homeAd2" >3</li>
          <li id="homeAd3" >4</li>
          <li id="homeAd4" >5</li>
                                  </ul>
  <ul class="bg" id="homePushBg">
  	        <li>&nbsp;</li>
            <li>&nbsp;</li>
            <li>&nbsp;</li>
            <li>&nbsp;</li>
            <li>&nbsp;</li>
                                  </ul>
  
  <ul class="pic" id="homePushShow">
  	      	<li id="homePushShow0" style="height:120px; overflow:hidden;">
  		<a href=""><img src="/content/mod_shared/skins/upload/xy1.gif" width="480" height="120" /></a>
  	</li>
  	      	<li id="homePushShow1" style="height:120px; overflow:hidden;">
  		<a href="#"><img src="/content/mod_shared/skins/upload/xy2.gif" width="480" height="120" /></a>
  	</li>
  	      	<li id="homePushShow2" style="height:120px; overflow:hidden;">
  		<a href="#"><img src="/content/mod_shared/skins/upload/xy3.gif" width="480" height="120" /></a>
  	</li>
  	      	<li id="homePushShow3" style="height:120px; overflow:hidden;">
  		<a href="#"><img src="/content/mod_shared/skins/upload/xy4.gif" width="480" height="120" /></a>
  	</li>
  	      	<li id="homePushShow4" style="height:120px; overflow:hidden;">
  		<a href="#"><img src="/content/mod_shared/skins/upload/xy5.gif" width="480" height="120" /></a>
  	</li>
  	                              </ul>
	</div>
  </div>
<script type="text/javascript">
	var listItem=document.getElementById("homePushShow");
	var tList=document.getElementById("homePushName").childNodes;
	var controlItem=[];
	for(var i=0;i<tList.length;i++){
		if(tList[i].nodeName.toLowerCase()=="li"){
			controlItem.push(tList[i]);
		}
	}
	var picCount=controlItem.length;
	var cid=0;
	var tid=Math.floor(Math.random()*picCount);
	window.cTop=0
	window.gTop=0;
	window.speed=0;
	window.controlAction="";
	window.timeCount=0;
	setInterval(function(){
		if(cid!=tid){
			gTop=tid*120;
			speed=(gTop-cTop)/10;
			cid=tid;
			for(var i=0;i<picCount;i++){
				controlItem[i].className=((i==cid)?"current":"");
			}
		}
		if(window.cTop!=window.gTop){
			window.cTop+= parseInt(speed);
			listItem.style.marginTop="-"+ parseInt(window.cTop)+"px"; 
		}
		document.getElementById("homePushBg").style.display="block";
		document.getElementById("homePushName").style.display="block";
	},20);
	
	for(var i=0;i<picCount;i++){
		controlItem[i].onmouseover=function(){
			var goId=parseInt(this.innerHTML)-1;
			clearTimeout(window.controlAction);
			window.controlAction=setTimeout(function(){
				tid=goId;
				timeCount=0;
			},300);
		}
		controlItem[i].onmouseout=function(){
			clearTimeout(window.controlAction);
		}
	}
	 
	setInterval(function(){
		timeCount+=1
		if(timeCount>=2){
			window.controlAction=setTimeout(function(){
				tid=tid+1;
				if(tid>=picCount){tid=0;}
			},20);
			timeCount=0;
		}
	},1000);
</script>	
</div>

<div class="nav">
		<ul>
    <li><a href="<!--if(isset($vd['agent'][7])){-->{$vd['root']}index.php?m=mod_b2b&a=home<!--}else{-->{$vd['root']}<!--if(UB_DEFAULT!='b2b'){--><!--if($vd['vip'] > 0){-->index.php?m=mod_<!--}-->b2b<!--}--><!--}-->"><span>首 页</span></a></li>
    <li><a href="{$vd['root']}index.php?m=mod_b2b&a=reg"><span>免费注册</span></a></li>
    <li><a href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=Home&name=<!--echo urlencode('批发系统公告');-->"><span>平台公告</span></a></li>
    <li><a href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=Home&name=<!--echo urlencode('批发系统常见问题');-->"><span>常见问题</span></a></li>
    <li><a href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=more"><span>官方网址</span></a></li>
    <li><a href="/index.php?m=mod_b2b&c=bd"><span>业务补单</span></a></li>
    <!--//mhead-->
<!--//endmhead-->
    </ul>
</div>
<input type="hidden" id="webdir" name="webdir" value="{$vd['root']}"/><div><div>
<!--}else{-->
<body>
<div id="shop">
<div id="top" style="MARGIN-TOP:0px;">
<div id="logobg">
<div style="width:230px;float:left;"><img src="{$vd['content']}images/mylogo.gif"/></div>  
<div style="float:right;">
  
</div>
</div>

</div>
</div>
<!--if(isset($vd['agent'])){-->
<div class="dkf1" id="dkfdiv" onmouseover="setkf(1,event,this)" onmouseout="setkf(0,event,this)"></div>
<!--}-->
<div class="headTab">
  <div class="tabLeft"></div>
  <ul>
    <li><a <!--if($g_controller=='Home'&&($g_action=='Home'||$g_action=='Index')){-->class="on"<!--}--> href="<!--if(isset($vd['agent'][7])){-->{$vd['root']}index.php?m=mod_b2b&a=home<!--}else{-->{$vd['root']}<!--if(UB_DEFAULT!='b2b'){--><!--if($vd['vip'] > 0){-->index.php?m=mod_<!--}-->b2b<!--}--><!--}-->">首页</a></li>
    <!--if($in == 1){-->
    <li class="bian"><a <!--if($g_controller=='Home'&&$g_action=='Reg'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_b2b&a=reg">用户注册</a></li>
    <li class="bian"><a <!--if($g_action=='More'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=more">网址导航</a></li>
    <li class="bian"><a <!--if($g_action=='Index'&&request('name')=='批发系统公告'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=Home&name=<!--echo urlencode('批发系统公告');-->">系统公告</a></li>
    <li class="bian"><a <!--if($g_action=='Index'&&request('name')=='批发系统常见问题'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_b2b&c=Article&a=Home&name=<!--echo urlencode('批发系统常见问题');-->">常见问题</a></li>
    <!--}else{-->
    <li class="bian"><a <!--if($g_controller=='Funds'&&$g_action=='AddFunds'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_agent&c=funds&a=AddFunds">帐户充值</a></li>
    <li class="bian"><a <!--if($g_controller=='Category'&&$g_action=='Index'){-->class="on"<!--}-->     href="{$vd['root']}index.php?m=mod_b2b&c=category">购买点卡</a></li>
    <li class="bian"><a <!--if($g_controller=='Order'&&$g_action=='Index'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_agent&c=order">购卡记录</a></li>
    <li class="bian"><a <!--if($g_controller=='VOrder'&&$g_action=='Index'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_agent&c=VOrder&ordstate=2">取卡记录</a></li>
    <li class="bian"><a <!--if($g_controller=='Trade'&&$g_action=='History'){-->class="on"<!--}--> href="{$vd['root']}index.php?m=mod_agent&c=trade&tpl=history">帐务记录</a></li>
    <!--}-->
    <!--//mhead-->
<!--//endmhead-->
  </ul>
  <div class="tabRight"></div>
</div>
<div id="ubtop">
<input type="hidden" id="webdir" name="webdir" value="{$vd['root']}"/>
<div id="ubmain">
<script type="text/javascript" src="{$vd['content']}js/dkf.js"></script>
<!--}-->
<!--if($g_action == 'Index' && $g_controller == 'Home'){}else{-->
<script type="text/javascript">
  docWidOrg = document.documentElement.clientWidth;    
  if(docWidOrg < 1003)
  {
    document.body.style.width = 1003 + "px";
  }
  else
  {
    document.body.style.width = "100%";
  }
</script>
<!--}-->