<?php get_header();?>

<body class="detail" onselectstart="return false">


<div class="header">

<div class="topbar">

 <div class="wrapbox">
     <div class="loginbar" id="_userlogin">欢迎来到<?php bloginfo('name'); ?></div>

    <div class="tlink"> +<a href="<?php echo get_option('home'); ?>" onClick="window.external.addFavorite(this.href,this.title);return false;" title="<?php bloginfo('description'); ?>

" rel="sidebar">添加到收藏夹</a> </div>

  </div>

  </div>

  <div class="top wrapbox">

   <div class="logo">

      <h1><a title="<?php bloginfo('description'); ?>" href="<?php echo get_option('home'); ?>"><?php bloginfo('description'); ?></a> </h1>

    </div>

    <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="<?php bloginfo('template_directory'); ?>/images/type-button-1.jpg" /> </div>

    <div class="dingyue">订阅到：<a href="http://mail.qq.com/cgi-bin/feed?u=/rss.php" target="blank" rel="nofollow">QQ邮箱</a> </div>

  </div>
  <div id="navMenu">

    <div class="wrapbox">

      <?php wp_nav_menu( array('sort_column' => 'menu_order', 'container_id'=>'menu','menu_class'=>'nav') ); ?>

              <div class="searchbar">

           <form  name="formsearch" action="<?php echo $_SERVER['PHP_SELF']; ?>">

            <div class="form">


              <input name="s" type="text" class="search-keyword" id="s" value="Hi,你在找什么呢？" onfocus="if(this.value=='Hi,你在找什么呢？'){this.value='';}"  onblur="if(this.value==''){this.value='Hi,你在找什么呢？';}" />

              <input  id="searchsubmit" type="submit" class="search-submit" value=" "></input>

            </div>

          </form>


        </div>

    </div>

  </div>

</div>

<div class="wrapbox">

  <div class="place">您现在的位置：<?php wheatv_breadcrumbs(); ?></div>

  <div class="mainbox">

    <div class="article mt1">

      <h2><?php the_title_attribute(); ?></h2>

      <!-- /title -->

      <div class="info">发布日期：<small><?php the_date_xml()?></small>分类 : <small><?php the_category(', ') ?></small> 阅读次数：<small>

       <?php get_post_views($post -> ID); ?> 次</small> 作者 : <small><?php the_author(); ?></small></div>

      <div class="articlebox"> 
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>

        <p>

<?php the_content("Read More..."); ?>
      </p>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>

 </div>

      <!-- /content -->

      <div class="list_pages">

        <ul class="pagelist">

          

        </ul>

      </div>

      <!-- /pages -->

      <div class="articleurl link2">

      ☆ <a href="javascript:memeurl(document.title+window.location.href)">喜欢这篇文章吗？分享给你的好友吧！点击这里复制网址</a> ☆

<script type="text/javascript">

	function memeurl(content) {

		content = content.replace(/- 网站（你来选）/, '');

		if(navigator.userAgent.toLowerCase().indexOf('ie') > -1) {

			clipboardData.setData('Text',content);

			alert ("网址复制成功，请粘贴到QQ/MSN上分享给你的好友！");

		} else {

			prompt ("你使用的不是IE核心浏览器，请按 Ctrl + C 复制网址。",content);

		}

	}

</script>

      </div>

      <div class="declare">欢迎转载分享但请注明出处及链接，商业媒体使用请获得相关授权。</div>

      <div class="context">

        <ul>

          <li class="fl">上一篇：<?php previous_post_link('%link'); ?> </li>

          <li class="fr">下一篇：<?php next_post_link('%link'); ?> </li>

        </ul>

      </div>

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

    </div>

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

      </div>

  <div id="sbar2" class="fr">

  <div class="sbarbox2">

  <div class="goback"><a href="javascript:history.back(-1)">返回上一页</a></div>

  <div class="tips">

  <div class="con">

  <li><em>宝贝价格：</em><span class="price">

  ￥<?php if(get_post_meta(get_the_ID(), "price", true)) : ?><?php echo get_post_meta(get_the_ID(), "price", true); ?><?php endif; ?>

  </span></li>

  <li><em>购买地址：</em><span>

 <a class='buy' rel='nofollow' href='<?php if(get_post_meta(get_the_ID(), "go", true)) : ?><?php echo get_post_meta(get_the_ID(), "go", true); ?><?php endif; ?>' target='_blank'>购买</a>

  </span></li>

  <li><em>小编点评：</em><span class="xbjy">

  来自你来选官网推荐</span></li>  <li class="share"><!-- Baidu Button BEGIN -->

<!-- Baidu Button BEGIN -->

    <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="<?php bloginfo('template_directory'); ?>/images/type-button-1.jpg" />

	</div>

<!-- Baidu Button END -->

<div class="fl">

<!--<iframe scrolling="no" frameborder="0" allowtransparency="true" style="width: 80px; height: 16px;" src="http://tk.mop.com/api/shareButton.htm?m=2"></iframe>--></div>

</li>

  </div>

  </div>

  <div class="stags"> <?php the_tags('', ' ', ''); ?></div>

        <div class="srelated">

        <div class="tit"><h4>相关文章</h4></div>

        <div class="con">

        <ul class="c1">
        <?php
$cats = wp_get_post_categories($post->ID);
if ($cats) {

$cat = get_category( $cats[0] );
$first_cat = $cat->cat_ID;
$args = array(
        'category__in' => array($first_cat),
        'post__not_in' => array($post->ID),
        'showposts' => 5,
        'caller_get_posts' => 1
    );
query_posts($args);

if (have_posts()) :
    while (have_posts()) : the_post(); update_post_caches($posts); ?>
<li> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; else : ?>
<li>暂无相关文章</li>
<?php endif; wp_reset_query(); } ?>

         </ul> 

        </div>

      </div>

  </div>

  </div>

  <!-- /sidebox -->

</div>

<script language="javascript" type="text/javascript">

$(".cateli").hover(function(){       

    $(this).toggleClass("cateli2");

});

/* Fixed Nav ------------- */

	var offset_top = 50;

	var headline_pos = $('#sbar2').offset();

	$(window).scroll(function()

	{

		var scroll_top = $(window).scrollTop();

		

		if (scroll_top > (headline_pos.top-offset_top))

		{

			$('.sbarbox2').addClass('fixed');

		}

		else

		{

			$('.sbarbox2').removeClass('fixed');

		}

	});

</script>

<div id="shangxia"><div id="shang" title="返回顶部"></div><div id="xia" title="页面底部"></div></div>
<?php get_footer();?>