<script language="JavaScript" type="text/javascript">
function user_stats(pid, uid) {
$user_stats = $('#user_stats_'+pid);
if (!$user_stats.data('loaded')) ajax.user_stats(pid, uid);
setTimeout(function() {
$user_stats.prev('div').toggleClass('unfolded2');
$user_stats.slideToggle('fast');
}, 200)
}
ajax.user_stats = function(pid, uid) {
ajax.exec({
action : 'user_stats',
user_id : uid,
post_id : pid
});
};
ajax.callback.user_stats = function(data){
$user_stats = $('#user_stats_'+data.post_id);
$user_stats.html(data.html);
$user_stats.data('loaded',1);
};</script>