<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    //以下获取logo
    string templogo = "";
    if (ViewData["Logo"] != null)
        templogo = ViewData["Logo"].ToString();
    else
        templogo = Data.Defautlogo;
    templogo = Fun.Webdirectory + templogo;
    if (ViewData["Logotype"].ToString() == "1")
        ViewData["Site_logo"] = "<script type=\"text/javascript\">mEmbed('src=" + templogo + "','width=270','height=60');</script>";
    else
        ViewData["Site_logo"] = "<img src=\"" + templogo + "\" alt=\"" + ViewData["Sitename"] + "\" />";
        
    string tempad = "";
  if (ViewData["adsrc"] != null)
  {
      switch (ViewData["adtype"].ToString())
      {
          case "0":
              tempad = "<img src=\"" + ViewData["adsrc"] + "\" alt=\"\" height=\"60\" />  ";
              break;
          case "1":
              if (ViewData["swfwidth"] != null)
                  tempad = "<script type=\"text/javascript\">mEmbed('src=" + ViewData["adsrc"] + "','width=" + ViewData["swfwidth"] + "','height=60');</script>";
              else
                  tempad = "<script type=\"text/javascript\">mEmbed('src=" + ViewData["adsrc"] + "','width=332','height=60');</script>";

              break;
          case "2":
              break;
          default:
              tempad = "<img src=\"" + ViewData["adsrc"] + "\" alt=\"\" height=\"60\" />  ";
              break;
      }
  }      
 %>
<%--顶部--%>
<div class="head">

   <div class="head_top">
        <div style="float: left;padding-left:10px;padding-right:5px;" class="head_link">
           <%--=ViewData["topmenu"]--%>
        </div>        
        <div class="head_date" id="Time" style="padding-left:0px;">今日&nbsp; <%=ViewData["today"]%></div>
        <div class="head_link">
             您好，欢迎阅读数字报刊！ <!--您尚未 [ <a href="<%=ViewData["Webd"]%>login">登录</a> ] [ <a href="<%=ViewData["Webd"]%>reg">注册</a> ]-->
       </div>
    </div>

    <div class="topbaner">
        <div id="companyname"> 
                <ul>
                    <li>
                        <span id="chinaname" class="chinaname vas_childvisible"><%=Data.Bkname %></span>
                        <span id="enname" class="enname vas_childvisible"><%--报刊英文--%></span>
                        <%--<a href="<%=ViewData["Weburl"]%>"><%=ViewData["Site_logo"]%></a>--%> <%--=tempad --%>
                    </li>
                </ul>
        </div>
    </div>
</div>

