﻿function enterCommunity(b,c){var d=$("#talksBlockContent div:first em:first");var e=$("#comm"+c+" .talksInfo a.users");var f=parseInt(e.text())+1;$.post("http://talks.med-post.ru/ajax/user_community.php",{community:c,action:1},function(a){if(a)$.jGrowl(a);else{d.html(parseInt(d.html())+1);e.html("<i></i>"+f+" участник"+getWordEnd(f));$(b).remove()}});return false}function leaveCommunity(b){var c=$("#talksBlockContent div:first em:first");$.post("http://talks.med-post.ru/ajax/user_community.php",{community:b,action:2},function(a){if(!a){c.html(""+(c.html()-1));$("#comm"+b).remove()}});return false}
