<%if not in_eycms then response.write("template load fail"):response.end() end if%>
<!--页头开始-->
<header class="header">
    <div class="wrap">
        <h1 class="fl">
          <a href="{webroot}" class="fl logo"><img src="{eycms[my_logo]}" alt="{eycms[webname]}" height="76" /></a>
        </h1>
        <div class="fr">
            <div class="top">
                <span class="call"></span>
                <span class="call_tel">{eycms[my_tel]}</span>
                <a><span class="email"></span>{eycms[my_email]}</a>
                <a class="ewm"><span class="weixin"></span>手机官网<img src="{eycms[my_ewm]}" width="258" height="258" alt="手机官网" /></a>
                <a href="http://www.eycms.cn" target=_blank><span class="email"></span>更多模板</a>
            </div>
            <!--导航开始-->
            <nav class="nav">
                <ul class="fix">
                <li{if isindex="yes"} class="on"{/if}><a href="{webroot}" title="网站首页">网站首页</a></li>
				{eycms:rs top="7" table="ey_category" where="followid=0 and ismenu=1" order="ordnum,cateid"}
			    <li {eycms.is_current(parentid,$rs[cateid],"class='on'")} title="{$rs[catename]}"><a href="{$rs[link]}">{eycms.cutstr($rs[catename],10,0)}</a></li>
			    {/eycms:rs}
                </ul>
                <span class="nav_icon"></span>
            </nav>
            <!--导航结束--></div>
    </div>
</header>
<!--页头结束-->

{if isindex="yes"}
    <!--首页大图开始-->
    <div class="banner">
        <ul class="pic" id="pic">
        {eycms:rs top="5" table="ey_expand_ad" where="classid=1 and islock=1" order="ordnum desc,id desc"}
        {rs:eof}<li data-background="{skins}/images/banner.jpg"></li>{/rs:eof}
            <li style="background-image:url({$rs[fileurl]})"><a href="{$rs[url]}" title="{$rs[title]}" style="display:block;height:460px;width:100%;"></a></li>
        {/eycms:rs}
        </ul>
        <ul class="list" id="list_pic">
            {dim j}
            {for j=1 to i-1}
            <li{if j=1} class="on"{/if}></li>
            {/for}
        </ul>
    </div>
    <!--首页大图结束-->
{/if}