 <?php
/*
  欢迎使用DM企业建站系统，本系统由www.demososo.com开发。
*/
//dmregion目录仅限购买后用。所以把headermobile01.php放这里。
if(!defined('IN_DEMOSOSO')) {
  exit('this is wrong page,please back to homepage');
}
//$curjtpath = BLOCKPATH.'jteffect/'.get_dirname(pathinfo(__FILE__));
//echo $curjtpath;
$css = 'jthome_headerpc/hd_cus01/static/hd_cus01.css';
getcssjs($css);

global $mbbz1;
global $mbbz2;
 
?> 
 
    <header id="site-header"  class="dmheader">
      <div id="site-logo" class="clearfix">
        <div id="site-logo-inner" class="logo">
          <a href="<?php echo BASEURLPATH?>" rel="home" class="main-logo">
            <img src="<?php echo LOGOIMG?>" alt="<?php echo $websitename?>" />
          </a>
        </div>
      </div>
      <div class="header-box">

        <div id="top-bar">
          <div id="top-bar-inner">
            <div class="top-bar-content">
              <div class="top-bar-left">
                <span class="map section-14px-regular"> <?php echo $mbbz1?> **市天山路1008号</span>
                <span class="mail section-14px-regular"><a href="email-protection.html#30535f5e43515c44591e524543595e55434370575d51595c1e535f5d">consalti.business@qq.com</a></span>
              </div>
              <div class="top-bar-right">
                <span class="phone section-14px-regular">
                  <a href="tel:012345678">+12 3 456
                7890</a></span>
                <div class="socials-header">
                  <ul class="widget-socials link-style-3">
                    <li><a href="#" class="facebook"></a></li>
                    <li><a href="#" class="twitter"></a></li>
                    <li><a href="#" class="linked-in"></a></li>
                    <li><a href="#" class="instagram"></a></li>
                  </ul>
                </div>
              </div>
            </div>

          </div>
        </div>

        <div id="site-header-inner">
          <div class="wrap-inner c">

            <nav id="main-nav" class="main-nav">

              <?php
                require JTHOMEROOT.'jthome_headerpc/hd_cus01/menu_cus01.php';
              ?>


            
        </nav>
     



      </div>

      <div id="site-header-right">
        <div class="header-search flat-show-search">
          <a href="#" class="header-search-trigger show-search"></a>
          <div class="widget widget-search top-search jssearchinput">
            <form action="<?php echo BASEURL?>search.php" method="get" role="search" class="search-form">
             <input type="text"  class="search-field"  name="keywords" data-error="<?php echo $searcherror;?>" value="<?php echo $searchtext;?>" />
             <input type="hidden" name="lang" value="<?php echo LANGPATH?>" />
              <button class="search search-submit" type="submit" title="Search"></button>
            </form> 

          </div>
        </div>
        <div class="header-menu">

            <?php 
            block('prog_lang');
            ?>
        </div>
       

      </div>
    </div>

  </div>
</header> 

<script type="text/javascript">
  
  $(function(){
    
    $('.header-search-trigger').click(function(){ 
        $('.widget-search').toggleClass("show");

    })
    
  })


$(window).scroll(function() {
  stickyfunc_cus01('#site-header');

  //-------------

});


  function stickyfunc_cus01(v) {
  var strickyScrollPos = 25;
  var strickyScrollPos2 = 100;
  if ($('body').width() > 800) {
    var strickyScrollPos = 50;
    var strickyScrollPos2 = 300;
  }

  if ($(window).scrollTop() > strickyScrollPos2) { //avoid pingfan scroll
    //$(v).removeClass('fadeIn animated');
    $(v).addClass('is-fixed');
    //$(v).css{'position','absolute'}
  } else if ($(this).scrollTop() <= strickyScrollPos) {
    $(v).removeClass('is-fixed');
    //$(v).addClass('slideIn animated');
  }
}

</script>





 