<%@ 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;
      }
  }      
 %>
<%--顶部--%>
<%if (Fun.Isnews=="1")
  { %>
<div class="headerLinks clearfix"><%=ViewData["topmenu"]%></div>
<%} %>

<%--头部--%>
<div class="top_bar clearfix">
<div class="logo left"><a href="<%=ViewData["Weburl"]%>"><%=ViewData["Site_logo"]%></a></div>
<div class="topad right"><%=tempad %></div>
</div>

