function	AvatarPath(id)
{
	DIR		=	'/img/upload/';
	if (id.length > 2)
		DIR	+=	id.substring(0, 1) + '/' + id.substring(1, 2) + '/' + id.substring(2, 3) + '/';
	else if (id.length > 1)
		DIR	+=	id.substring(0, 1) + '/' + id.substring(1, 2) + '/';
	else if (id.length == 1)
		DIR	+=	id + '/';

	if (getCookieValue("avatar")) {
//		document.getElementById('href_logo').href	=	"/my/";
		return	DIR + getCookieValue("avatar");
	} else {

	}
//		document.getElementById('href_logo').href	=	"/my/edit.php";
		return	"/img/userpic.gif";
}

if (isLogged) //define in main.js
{
	gE('username').innerText				=	usernameC;
	gE('username').textContent				=	usernameC;
	gE('hrefprofile').href					=	"/users/"+usernameC+"/";
	gE('AUTH').className					=	"db";
	
	
} else if(isNotActivated) {

	gE('username_na').innerText				=	usernameC;
	gE('username_na').textContent				=	usernameC;
	gE('hrefprofile_na').href				=	"/users/"+usernameC+"/";
	gE('NOTACTIVATE').className				=	"db";
	
	
	
} else {
	gE('NOTAUTH').style.display				=	"block";
}
