<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" [not-logged]style="background-color:#fff;"[/not-logged]>
<head>
{header}
</head>
<body>
[logged]
<div class="top_head">
  <a href="/" class="top_head_logo" onmouseover="LeftHeadMenu.Show();"></a>
  <input class="top_search_input" type="text" onKeyPress="if(event.keyCode == 13) gSearch.go();" id="query" maxlength="65" placeholder="{translate=lang_36}" />
  <button class="top_head_search_button" onClick="gSearch.go(); return false"><img src="{theme}/images/spacer.gif" /></button>
  <div class="top_head_user">
    <ul>
      <a onclick="UserMenu.Show();">
      <li>{top-name}</li>
      <li id="top_ava_50"><img src="{top-ava}" class="top_head_user_ava" width="35px;" /></li>
      </a>
      <div class="usermenu" style="display:none;">
        <div class="usermenu_arrow"></div>
        <div class="usermenu_ava">
          <a onClick="Avatar.Change(); return false;" class="usermenu_ava_funct">{translate=lang_37}</a>
          <span id="top_ava_100"><img src="{top-ava_100}" /></span>
          <div class="clear"></div>
        </div>
        <div class="usermenu_info">
          <div class="usermenu_info_name">{top-name}</div>
          <div class="usermenu_info_email">{top-email}</div>
          <div class="usermenu_list">
            <a href="/editprofile">{translate=lang_38}</a>
            –
            <a href="/settings">{translate=lang_39}</a>
          </div>
          <a href="/">
          <button>{translate=lang_40}</button>
          </a>
        </div>
        <div class="usermenu_bottom">
          <button class="blue_button" onclick="Page.Go('/?go=search'); return false;">{translate=lang_41}</button>
          <a href="/?act=logout">
          <button class="gray_button float_r">{translate=lang_42}</button>
          </a>
        </div>
      </div>
    </ul>
  </div>
</div>
<div class="clear" style="height:60px;"></div>
<div class="left_head_menu">
  <ul>
    <a href="{my-page-link}" onclick="Page.Go(this.href); return false">
    <li id="left_head_profile">{translate=lang_43}</li>
    </a>
    <a href="/friends{requests-link}" onclick="Page.Go(this.href); return false" id="requests_link">
    <li id="left_head_friends">{translate=lang_44} <span id="new_demands">{new_demands}</span></li>
    </a>
    <a href="/messages" onclick="Page.Go(this.href); return false">
    <li id="left_head_messages">{translate=lang_45} <span id="new_messages">{new_messages}</span></li>
    </a>
    <a href="/albums/{my-id}" onclick="Page.Go(this.href); return false">
    <li id="left_head_photos">{translate=lang_46}</li>
    </a>
    <a href="/videos" onclick="Page.Go(this.href); return false">
    <li id="left_head_videos">{translate=lang_47}</li>
    </a>
    <a href="/news" onclick="Page.Go(this.href); return false">
    <li id="left_head_news">{translate=lang_48}</li>
    </a>
    <a href="/bookmarks" onclick="Page.Go(this.href); return false">
    <li id="left_head_bookmarks">{translate=lang_49}</li>
    </a>
    <a href="/settings" onclick="Page.Go(this.href); return false">
    <li id="left_head_settings">{translate=lang_50}</li>
    </a>
    <!--a href="/apps" onclick="Page.Go(this.href); return false">
    <li id="left_head_apps">Приложения</li>
    </a-->
  </ul>
</div>
[/logged]
<div class="content" [not-logged]style="width:960px;"[/not-logged]>
  <div id="page" [not-logged]style="width:960px;"[/not-logged]>{info}{content}</div>
  <div class="clear"></div>
</div>
<div class="clear" style="height:120px;"></div>
<div class="footer">
  <a onClick="Language.Change()" style="float:right;">Language: {lang}</a>
  [logged]
  <a href="/?go=search&type=1" onClick="Page.Go(this.href); return false">{translate=lang_51}</a>
  <a href="/?go=search&type=2" onClick="Page.Go(this.href); return false">{translate=lang_52}</a>
  <a href="/settings" >{translate=lang_53}</a>
  [/logged] </div>
<div class="clear"></div>
</body>
</html>