function UpdateAll()
{
	if ($('#count_messages').length)
	{
		ajax('/ajax/updateReadMessage.php','count_messages','message');
	}
	if ($('#count_friend').length)
	{
		ajax('/ajax/updateReadFriend.php','count_friend','friend');
	}
	if ($('#count_ganginvite').length)
	{
		ajax('/ajax/updateReadGangInvite.php','count_ganginvite','gang');
	}
	if ($('#controler').length)
	{
		ajax('/ajax/controler.php','controler','gang');
	} else {
		a=open('/','_top')
	}
	if ($('#wall').length)
	{
		wall();
	}
	setTimeout("UpdateAll();",15000); 
	
}

