<!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=UTF-8">

<title>

<?php

 if(isset($title)){

	echo $title;

}else{

	echo _cfg("web_name");

}

?>

</title>

<meta name="keywords" content="

<?php

 if(isset($keywords)) {

	echo $keywords;

}else{

	echo _cfg("web_name");

}

?>

" />

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/index.css"/>

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/comm.css"/>

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/register.css"/>

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/color.css"/>

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/css.css"/>

<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_CSS; ?>/myCart.css"/>

<script type="text/javascript" src="<?php echo G_GLOBAL_STYLE; ?>/global/js/jquery-1.8.3.min.js"></script>

<script type="text/javascript" src="<?php echo G_TEMPLATES_JS; ?>/jquery.cookie.js"></script>

<script type="text/javascript" src="<?php echo G_TEMPLATES_JS; ?>/cloud-zoom.min.js"></script>

<script type="text/javascript" src="<?php echo G_TEMPLATES_JS; ?>/jquery.webox.js"></script>

<script type="text/javascript" src="<?php echo G_TEMPLATES_JS; ?>/jquery.cartlist.js"></script>

<script type="text/javascript" src="<?php echo G_TEMPLATES_JS; ?>/koala.min.1.5.js"></script>

</head>

<body>

<div id="loadingtime"></div>

<div class="header">

	<div class="site_top">

		<div class="head_top w1200">

		<ul class="collect fr">  

		<li class="fr"><a class="service_img" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo _cfg("qq") ?>&site=qq&menu=yes" target="_blank"></a></li>   

		<li class="fr"><a href="<?php echo WEB_PATH; ?>/help/1">帮助</a><span>|</span></li>           

		<li class="fr"><a href="<?php echo WEB_PATH; ?>/member/home/userrecharge">快速充值</a><span>|</span></li>

		<li class="fr yu_ff">

			<a  href="<?php echo WEB_PATH; ?>/home/member">我的云购</a><span>|</span>

			<div class="h_1yyg_eject">

				<dl>							

				<dd><a  href="<?php echo WEB_PATH; ?>/member/home">我的云购</a></dd>

				<dd><a  href="<?php echo WEB_PATH; ?>/member/home/userbuylist">云购记录</a></dd>

				<dd><a  href="<?php echo WEB_PATH; ?>/member/home">获得的商品</a></dd>

				<dd><a  href="<?php echo WEB_PATH; ?>/member/home/userrecharge">帐户充值</a></dd>

				<dd><a  href="<?php echo WEB_PATH; ?>/member/home/modify">个人设置</a></dd>

				</dl>

			</div>					

		</li>

		<?php if(uidcookie('uid')){ ?>

				<li class="fr">欢迎您:<a  href="<?php echo WEB_PATH; ?>/member/home" >

				<?php 

					if(uidcookie('username')!=null){

						echo _strcut(uidcookie('username'),7);

					}elseif(uidcookie('mobile')!=null){

						echo _strcut(uidcookie('mobile'),7);

					}else{

						echo _strcut(uidcookie('email'),7);

					}

				?>

				</a>

				<span>|</span>

				<a href="<?php echo WEB_PATH; ?>/member/user/cook_end">[退出]</a>

				<span>|</span>

			</li>

		<?php }else{ ?>

			<li class="fr"><a href="<?php echo WEB_PATH; ?>/register">注册</a><span>|</span></li>

			<li class="fr"><a href="<?php echo WEB_PATH; ?>/login">登录</a><span>|</span></li>

		<?php } ?>

	</ul>

	<ul class="collect fl">

	<li class="fl"><a href="javascript:;" onclick="AddFavorite(window.location,document.title)">收藏</a><span>|</span></li>

	<li class="fl mobile" style="position:relative; z-index:99999"><a href="">手机云购</a><s></s><span></span>

	<div class="h_mobile">

		<dl><li class="fl"><a href="">手机云购</a><s></s><span></span></li></dl>                        

	              <img src="<?php echo G_TEMPLATES_STYLE; ?>/images/code.jpg" height="75" width="75">

		 <span>下载客户端</span></div></li>

	</ul>
		<div class="m-joinNum r">

		<?php $result = go_count_renci();  ?>

				<a href="<?php echo WEB_PATH; ?>/buyrecord" target="_blank">

					<span class="qian text">已有</span>

					<?php foreach ($result as $v) { ?>

						<span class="tnum" id="spBuyCount"><?php echo $v ?></span> 

					<?php } ?>

                    					<span class="hou text">人次参与></span>

				</a>



			</div>
	</div>

</div>



</div>

<!--导航 header_nav 开始-->

<div class="head_nav">

	<div class="nav_center w1200">

		<div class="m_menu">

			<div class="m_menu_all">





		<h1 class="logo_yungou fl">

			<a class="logo_1yyg_img" href="<?php echo G_WEB_PATH; ?>/" title="<?php echo _cfg('web_name') ?>">

				<img src="<?php echo G_UPLOAD_PATH.'/'.Getlogo() ?>">

			</a>
</h1>
             </div>
		</div>

		<ul class="nav_list">

		 	<li class="sort-all-shouye"><a href="<?php echo G_WEB_PATH; ?>">首页</a></li>

			<?php echo Getheader('index') ?>

		</ul>	
		<li class="head_search b_red fl">

			<input style="background: rgb(255, 255, 255) none repeat scroll 0% 0%;" id="txtSearch" class="init" placeholder="输入'小米手机'试一试" type="text">

			<a class="search_submit" id="butSearch" href="javascript:;">

				<i class="ico_search"></i>

			</a>

		</li>
		<div class="mini_mycart" id="sCart">

			<a href="<?php echo WEB_PATH; ?>/member/cart/cartlist" class="cart c_red" target="_blank" id="sCartNavi">

				<s></s>购物车(<span id="sCartTotal" class="c_red">0</span>)

			</a>

		</div>

	</div>

</div>

<div class="clear"></div>

<style>

.fixedNav{

	position:fixed;

	top:0px;

	left:0px;

	width:100%;

	z-index:100000;

	_position:absolute;

	_top:expression(eval(document.documentElement.scrollTop));

}

</style>

<!--导航 header_nav 结束-->

<script>

$(document).ready(function(){

		$.get("<?php echo WEB_PATH; ?>/member/cart/getnumber/"+new Date().getTime(),function(data){

			$("#sCartTotal").text(data);

		});

	});



document.onkeydown=function(event)

{ 

	e = event ? event :(window.event ? window.event : null);

	ss= document.getElementById('txtSearch').value;

	if(e.keyCode==13 && ss!=""){

	 window.location.href="<?php echo WEB_PATH; ?>/s_tag/"+$("#txtSearch").val();

	}

}



$(function(){

	$("#txtSearch").focus(function(){

		$("#txtSearch").css({background:"#fff"});

		$(this).attr("placeholder","");

	});

	$("#txtSearch").blur(function(){

		$("#txtSearch").css({background:"#FFF"});

		$(this).attr("placeholder","输入'小米手机'试一试");	

	});

	$("#butSearch").click(function(){

		var val1="小米手机"

	    if($("#txtSearch").val()==""){

			window.location.href="<?php echo WEB_PATH; ?>/s_tag/"+val1;

		}else

		if($("#txtSearch").val()==$("#txtSearch").val()){

			window.location.href="<?php echo WEB_PATH; ?>/s_tag/"+$("#txtSearch").val();

		}

	});

});



	$(".yu_ff").mouseover(function(){

	  $(".h_1yyg_eject").show();

	})

	$(".yu_ff").mouseout(function(){

	  $(".h_1yyg_eject").hide();

	})	

	//收藏

	function AddFavorite(sURL, sTitle){

		try

		{

			window.external.addFavorite(sURL, sTitle);

		}

		catch (e)

		{

			try

			{

				window.sidebar.addPanel(sTitle, sURL, "");

			}

			catch (e)

			{

				alert("您可以通过快捷键Ctrl+D进行添加");

			}

		}

	}

	

	$(".mobile").mouseover(function(){

		$(".h_mobile").show();

		$(".h_mobile  s").css("background","../images/headbg11.png").css("background-position","5px -64px");

	})

	$(".h_mobile").mouseout(function(){

		$(".h_mobile").hide();

	})





	$("#m_all_sort").hide();

		     $(".m_menu_all").mouseenter(function(){

				    $(".m_all_sort").show();

		     })

			 $(".m_menu_all").mouseleave(function(){

				    $(".m_all_sort").hide();

		     })

			 $(".m_all_sort").mouseenter(function(){

				    $(this).show();

		     })

			 $(".m_all_sort").mouseleave(function(){

				    $(this).hide();

		     })

$(function(){

		       $(window).scroll(function() {	

		      		

		     		if($(window).scrollTop()>=130&&$(window).scrollTop()<=560){

		     			$(".head_nav").addClass("fixedNav");	

		     			$("#m_all_sort").fadeOut();

		     		}else if($(window).scrollTop()>560){

		     			$(".head_nav").addClass("fixedNav");

		     			$("#m_all_sort").fadeOut();

		     	} else if($(window).scrollTop()<130){

		     			$(".head_nav").removeClass("fixedNav");

		     	}

		           });

  });





	

</script>