<script type="text/javascript">
var startResizeCss = false;
$(document).ready(function(){
	$('#wall_text, .fast_form_width').autoResize();
	myhtml.checked(['{settings-comments}', '{settings-discussion}']);
	music.jPlayerInc();
	$(window).scroll(function(){
		if($('#type_page').val() == 'public'){
			if($(document).height() - $(window).height() <= $(window).scrollTop()+($(document).height()/2-250)){
				groups.wall_page();
			}
			if($(window).scrollTop() < $('#fortoAutoSizeStyle').offset().top){
				startResizeCss = false;
				$('#addStyleClass').remove();
			}
			if($(window).scrollTop() > $('#fortoAutoSizeStyle').offset().top && !startResizeCss){
				startResizeCss = true;
				$('body').append('<div id="addStyleClass"><style type="text/css" media="all">.public_wall{width:770px}.infowalltext_f{font-size:11px}.wall_inpst{width:688px}.public_likes_user_block{margin-left:585px}.wall_fast_opened_form{width:698px}.wall_fast_block{width:710px;margin-top:2px}.public_wall_all_comm{width:692px;margin-top:2px;margin-bottom:-2px}.player_mini_mbar_wall{width:710px;margin-bottom:0px}#audioForSize{min-width:700px}.wall_rec_autoresize{width:710px}.wall_fast_ava img{width:50px}.wall_fast_ava{width:60px}.wall_fast_comment_text{margin-left:57px}.wall_fast_date{margin-left:57px;font-size:11px}.size10{font-size:11px}</style>');
			}
		}	
	});
	langNumric('langForum', '{forum-num}', '{translate=lang_400}', '{translate=lang_401}', '{translate=lang_402}', '{translate=lang_400}', '{translate=lang_403}');
	langNumric('langNumricAll', '{audio-num}', '{translate=lang_404}', 'аудиозаписи', '{translate=lang_405}', '{translate=lang_404}ь', '{translate=lang_405}');
	langNumric('langNumricVide', '{videos-num}', '{translate=lang_222}', '{translate=lang_385}', '{translate=lang_579}', '{translate=lang_577}', 'translate=lang_579}');
});
$(document).click(function(event){
	wall.event(event);
});
</script>

<input type="hidden" id="type_page" value="public" />
<style>
.newcolor000{color:#000}
</style>
<div id="jquery_jplayer"></div>
<div id="addStyleClass"></div>
<input type="hidden" id="teck_id" value="" />
<input type="hidden" id="teck_prefix" value="" />
<input type="hidden" id="typePlay" value="standart" />
<input type="hidden" id="public_id" value="{id}" />
<div class="profile_bg">
  <div class="fl_r" style="margin-left:0px; width:180px; background:#009e36; margin:-10px; padding:10px;" onMouseOver="groups.wall_like_users_five_hide()">
    <div class="profile_avatar_block"  style="position:relative;"> [admin]
      <div class="profile_avatar_menu_owner" style="margin:0px;">
        <div onClick="groups.loadphoto('{id}'); return false;" id="ava_upl">{translate=lang_782}</div>
        <span id="del_pho_but" class="{display-ava}">
        <div onClick="groups.delphoto('{id}'); return false;" id="ava_del" >{translate=lang_784}</div>
        </span>
      </div>
      [/admin] <span id="ava"><img src="{photo}" style=" border:0px; max-width:180px;" class="avatar" id="ava" /></span>
    </div>
    [admin]
    <div class="menuleft" style="background:rgba(0, 0, 0,.5); margin-top:5px;">
      <a href="/" id="edit_photo" onClick="groups.editform(); return false" style="padding-left:22px;">
      <div>{translate=lang_406}</div>
      </a>
    </div>
    [/admin]
    <div class="publick_subscblock">
      <div id="yes" class="{yes}">
        <div class="button_div fl_l" style="margin-bottom:15px;line-height:15px">
          <button onClick="groups.login('{id}'); return false" style="width:154px">{translate=lang_407}</button>
        </div>
        <div id="num2">{num-2}</div>
      </div>
      <div id="no" class="{no}" style="text-align:left"> {translate=lang_408}<br />
        <div style="margin-top:5px"></div>
        <center>
          <a href="/public{id}"  onClick="groups.exit2('{id}', '{viewer-id}'); return false">{translate=lang_409}</a>
        </center>
      </div>
      <div class="clear"></div>
    </div>
    <div style="margin-top:7px">
      <div class="{no-users}" id="users_block">
        <div class="public_bg">
          <div class="public_vlock cursor_pointer" onClick="groups.all_people('{id}')">{translate=lang_410}<span class=" fl_l public_margbut">{num}</span></div>
          <div class="public_usersblockhidden">{users}</div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <!--[videos]
  <div class="clear" style="padding-top:10px;"></div>
  <div class="public_bg">
    <div class="public_vlock cursor_pointer" onClick="Page.Go('/public/videos{id}'); return false">Видеозаписи[yesvideo]<span>{videos-num} </span></div>
    [/yesvideo]
    
    
    
    {videos}
    [novideo]
    <div class="line_height color777" align="center">Ролики с Вашим участием и другие видеоматериалы<br />
      <a href="/public/videos{id}" onClick="Page.Go(this.href); return false">Добавить видеозапись</a>
    </div>
    [/novideo] </div>
  [/videos]--> 
    
    [feedback]
    <div class="clear" style="padding-top:10px;"></div>
    <div class="public_vlock cursor_pointer" onClick="groups.allfeedbacklist('{id}')">{translate=lang_68} [yes][admin]
      <a href="/public{id}" class="fl_r" onClick="groups.allfeedbacklist('{id}'); return false">ред.</a>
      [/admin][/yes]</div>
    <div class="public_bg" id="feddbackusers"> [yes]
      [/yes]
      {feedback-users}
      [no]
      <div class="line_height color777" align="center" style="padding:7px 0px">{translate=lang_411}, e-mail<br />
        <a href="/public{id}" onClick="groups.addcontact('{id}'); return false">{translate=lang_412}</a>
      </div>
      [/no] </div>
    [/feedback]
    [audios]
    <div class="clear" style="padding-top:10px;"></div>
    <div class="public_bg">
      <div class="public_vlock cursor_pointer" onClick="Page.Go('/public/audio{id}'); return false">{translate=lang_413}[yesaudio]<span >{audio-num}</span> [/yesaudio]</div>
      {audios}
      [noaudio]
      <div class="line_height color777" align="center" style="padding:7px 0px">{translate=lang_414}<br />
        <a href="/public/audio{id}" onClick="Page.Go(this.href); return false">{translate=lang_415}</a>
      </div>
      [/noaudio] </div>
    [/audios]
    <div id="fortoAutoSizeStyle"></div>
  </div>
  <div class="profiewr" style=" width:750px;">
    <div id="public_editbg_container">
      <div class="public_editbg_container fl_l">
        <div class="fl_l" style="width:760px">
          <div class="public_title" id="e_public_title">{title}</div>
          <div class="mgclr"></div>
          <div class="{descr-css}" id="descr_display">
            <div class="flpodtext">{translate=lang_50}:</div>
            <div class="flpodinfo" id="e_descr">{descr}</div>
          </div>
          <div class="flpodtext">{translate=lang_419}:</div>
          <div class="flpodinfo">{date}</div>
          [web]
          <div class="flpodtext">{translate=lang_207}:</div>
          <div class="flpodinfo">
            <a href="{web}" target="_blank">{web}</a>
          </div>
          [/web] </div>
        [admin]
        <div class="public_editbg fl_l no_display" id="edittab1">
          <div class="public_title">{translate=lang_420}</div>
          <div class="public_hr"></div>
          <div class="texta">{translate=lang_49}:</div>
          <input type="text" id="title" class="inpst" maxlength="100"  style="width:260px;" value="{title}" />
          <div class="mgclr"></div>
          <div class="texta">{translate=lang_50}:</div>
          <textarea id="descr" class="inpst" style="width:260px;height:80px">{edit-descr}</textarea>
          <div class="mgclr"></div>
          <div class="texta">{translate=lang_421}:</div>
          <input type="hidden" id="prev_adres_page" class="inpst" maxlength="100"  style="width:260px;" value="{adres}" />
          <input type="text" id="adres_page" class="inpst" maxlength="100"  style="width:260px;" value="{adres}" />
          <div class="mgclr"></div>
          <div class="texta">{translate=lang_207}:</div>
          <input type="text" id="web" class="inpst" maxlength="100"  style="width:260px;" value="{web}" />
          <div class="mgclr"></div>
          <div class="texta">&nbsp;</div>
          <div class="html_checkbox" id="comments" onClick="myhtml.checkbox(this.id)" style="margin-bottom:8px">{translate=lang_422}</div>
          <div class="mgclr clear"></div>
          <div class="texta">&nbsp;</div>
          <div class="html_checkbox" id="discussion" onClick="myhtml.checkbox(this.id)" style="margin-bottom:8px">{translate=lang_423}</div>
          <div class="mgclr clear"></div>
          <div class="texta">&nbsp;</div>
          <a href="/public{id}" onClick="groups.edittab_admin(); return false">{translate=lang_424} &raquo;</a>
          <div class="mgclr"></div>
          <div class="texta">&nbsp;</div>
          <div class="button_div fl_l">
            <button onClick="groups.saveinfo('{id}'); return false" id="pubInfoSave">{translate=lang_92}</button>
          </div>
          <div class="button_div_gray fl_l margin_left">
            <button onClick="groups.editformClose(); return false">{translate=lang_163}</button>
          </div>
          <div class="mgclr"></div>
        </div>
        <div class="public_editbg fl_l no_display" id="edittab2"  style="margin-left:160px; min-height:330px;">
          <div class="public_title">{translate=lang_425}</div>
          <div class="public_hr"></div>
          <input 
	type="text" 
	placeholder="{translate=lang_426}" 
	class="videos_input" 
	style="width:526px"
	onKeyPress="if(event.keyCode == 13)groups.addadmin('{id}')"
	id="new_admin_id"
   />
          <div class="clear"></div>
          <div id="admins_tab">{admins}</div>
          <div class="clear"></div>
          <div class="button_div fl_l">
            <button onClick="groups.editform(); return false">{translate=lang_427}</button>
          </div>
        </div>
        [/admin] </div>
    </div>
    [discussion]
    <a href="/forum{id}" onClick="Page.Go(this.href); return false" class="fl_l" style="text-decoration:none">
    <div class="albtitle" >{forum-num} <b id="langForum">{translate=lang_428}</b></div>
    </a>
    <a href="/forum{id}?act=new" onClick="Page.Go(this.href); return false" class="fl_r {no}" style="text-decoration:none">
    <div class="albtitle" >{translate=lang_429}</div>
    </a>
    <div class="clear" ></div>
    <div style="background:#fff;-moz-box-shadow: 0 1px 5px rgba(0,0,0,.25);-webkit-box-shadow: 0 1px 5px rgba(0,0,0,.25);box-shadow: 0 1px 5px rgba(0,0,0,.25);">{thems}</div>
    <div class="clear"></div>
    [/discussion]
    [admin]
    <div class="newmes" id="wall_tab" style="border-bottom:0px;margin-top:10px; width:735px;">
      <div >
        <textarea id="wall_text" class="wall_inpst wall_fast_opened_texta" style="width:718px" onKeyUp="wall.CheckLinkText(this.value)" onBlur="wall.CheckLinkText(this.value, 1)" onclick="$('#wall_text').height('35px')" placeholder="{translate=lang_210}"></textarea>
        <div id="attach_files" class="margin_top_10 no_display"></div>
        <div id="attach_block_lnk" class="no_display clear">
          <div class="attach_link_bg">
            <div align="center" id="loading_att_lnk"><img src="{theme}/images/loading_mini.gif" style="margin-bottom:-2px" /></div>
            <img src="" align="left" id="attatch_link_img" class="no_display cursor_pointer" onClick="wall.UrlNextImg()" />
            <div id="attatch_link_title"></div>
            <div id="attatch_link_descr"></div>
            <div class="clear"></div>
          </div>
          <div class="attach_toolip_but"></div>
          <div class="attach_link_block_ic fl_l"></div>
          <div class="attach_link_block_te">
            <div class="fl_l">{translate=lang_212}:
              <a href="/" id="attatch_link_url" target="_blank"></a>
            </div>
            <img class="fl_l cursor_pointer" style="margin-top:2px;margin-left:5px" src="{theme}/images/close_a.png" onMouseOver="myhtml.title('1', '{translate=lang_213}', 'attach_lnk_')" id="attach_lnk_1" onClick="wall.RemoveAttachLnk()" /></div>
          <input type="hidden" id="attach_lnk_stared" />
          <input type="hidden" id="teck_link_attach" />
          <span id="urlParseImgs" class="no_display"></span>
        </div>
        <div class="clear"></div>
        <div id="attach_block_vote" class="no_display">
          <div class="attach_link_bg">
            <div class="texta">{translate=lang_214}:</div>
            <input type="text" id="vote_title" class="inpst" maxlength="80" value="" style="width:355px;margin-left:5px" 
		onKeyUp="$('#attatch_vote_title').text(this.value)"
	/>
            <div class="mgclr"></div>
            <div class="texta">{translate=lang_215}:<br />
              <small><span id="addNewAnswer">
              <a class="cursor_pointer" onClick="Votes.AddInp()">{translate=lang_216}</a>
              </span> | <span id="addDelAnswer">{translate=lang_217}</span></small></div>
            <input type="text" id="vote_answer_1" class="inpst" maxlength="80" value="" style="width:355px;margin-left:5px" />
            <div class="mgclr"></div>
            <div class="texta">&nbsp;</div>
            <input type="text" id="vote_answer_2" class="inpst" maxlength="80" value="" style="width:355px;margin-left:5px" />
            <div class="mgclr"></div>
            <div id="addAnswerInp"></div>
            <div class="clear"></div>
          </div>
          <div class="attach_toolip_but"></div>
          <div class="attach_link_block_ic fl_l"></div>
          <div class="attach_link_block_te">
            <div class="fl_l">{translate=lang_218}:
              <a id="attatch_vote_title" style="text-decoration:none;cursor:default"></a>
            </div>
            <img class="fl_l cursor_pointer" style="margin-top:2px;margin-left:5px" src="{theme}/images/close_a.png" onMouseOver="myhtml.title('1', 'Не прикреплять', 'attach_vote_')" id="attach_vote_1" onClick="Votes.RemoveForAttach()" /></div>
          <input type="hidden" id="answerNum" value="2" />
        </div>
        <div class="clear"></div>
        <input id="vaLattach_files" type="hidden" />
        <div class="clear"></div>
        <div class="button_div fl_l margin_top_10" style=" margin-right:10px;">
          <button onClick="groups.wall_send('{id}'); return false" id="wall_send">{translate=lang_32}</button>
        </div>
        <div style="margin-top:12px; margin-left:10px;">
          <div class="wall_attach_icon_smile fl_l" onClick="wall.attach_addsmile()" onMouseOver="myhtml.title('smile', '{translate=lang_219} {translate=lang_220}', 'attach_wall_')" id="attach_wall_smile">
            <div id="wall_attach_link"></div>
          </div>
          <div class="wall_attach_icon_photo fl_l" onClick="groups.wall_attach_addphoto(0, 0, '{id}')" onMouseOver="myhtml.title('photo', '{translate=lang_219} {translate=lang_221}', 'attach_wall_')" id="attach_wall_photo">
            <div id="wall_attach_link"></div>
          </div>
          <!--div class="wall_attach_icon_video fl_l" onClick="wall.attach_addvideo_public(0, 0, '{id}')" onMouseOver="myhtml.title('video', '{translate=lang_219} {translate=lang_222}', 'attach_wall_')" id="attach_wall_video">
            <div id="wall_attach_link"></div>
          </div-->
          <div class="wall_attach_icon_audio fl_l" onClick="wall.attach_addaudio()" onMouseOver="myhtml.title('audio', '{translate=lang_219} {translate=lang_223}', 'attach_wall_')" id="attach_wall_audio">
            <div id="wall_attach_link"></div>
          </div>
          <div class="wall_attach_icon_doc fl_l" onClick="wall.attach_addDoc()" onMouseOver="myhtml.title('doc', '{translate=lang_219} {translate=lang_224}', 'attach_wall_')" id="attach_wall_doc">
            <div id="wall_attach_link"></div>
          </div>
          <div class="wall_attach_icon_vote fl_l" onClick="$('#attach_block_vote').slideDown('fast');wall.attach_menu('close', 'wall_attach', 'wall_attach_menu');$('#vote_title').focus();$('#vaLattach_files').val($('#vaLattach_files').val()+'vote|start||')" onMouseOver="myhtml.title('vote', '{translate=lang_219} {translate=lang_218}', 'attach_wall_')" id="attach_wall_vote">
            <div id="wall_attach_link"></div>
          </div>
        </div>
      </div>
      <div class="clear"></div>
    </div>
    [/admin]
    <div id="public_wall_records" class="fl_l" style="margin-top:5px; width:750px;">{records}</div>
    <div class="cursor_pointer fl_l {wall-page-display}" onClick="groups.wall_page('{id}'); return false" style="margin-left:53px; margin-top:10px; " id="wall_all_records">
      <div class="public_wall_all_comm" id="load_wall_all_records" style="margin-left:0px;width:680px;">{translate=lang_430}</div>
    </div>
    <input type="hidden" id="page_cnt" value="1" />
  </div>
  <div class="clear"></div>
</div>
