<!--
var vtype = 1;
var vbutton = 0;

function AvatarInfo(item){
	var str = "<span style=\"font-size:12px; color:#7c748b; font-weight:normal;\">";

	if(item[0].icon != "0" && item[0].icon != "-1"){
		str += "<img src=\"http://imgdg.joycity.com/gx/real/images/rank/"+item[0].icon+".gif\" style=\"margin-bottom:-4px;padding-right:5px;\" />";
	}

	if(item[0].gidx == "-2"){
		str = "Ä³¸¯ÅÍ Á¤º¸°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.";
	}else{
		tempGname = decodeURI(item[0].gname);
		str += tempGname;

		if(vtype>1 && item[0].glv != "-1"){
			str += "</span>&nbsp;<span style=\"font-size:11px; color:#7c748b; font-weight:normal;\">Lv."+item[0].glv;
			
			if(vtype==3){
				if(item[0].guild == "null" || item[0].guild == "None"){
					str += "&nbsp;¼Ò¼Ó±æµå :--";
				}else{
					str += "&nbsp;¼Ò¼Ó±æµå :"+item[0].guild;
				} 
			}
		}
	}

	str += "</span>";
	
	if(vbutton == 1){
		if(item[0].icon > "0"){
			str += "<a href=\"#\" onclick=\"goAvatarChange(); return false;\"><img src=\"http://imgdg.joycity.com/gx/real/images/main/btn_charchange.gif\" alt=\"ÄÉ¸¯ÅÍ¼±ÅÃ\" title=\"ÄÉ¸¯ÅÍ¼±ÅÃ\" style=\"margin: 0 0 -4px 5px;\" border=\"0\" /></a>";
		}
	}

	/*str += "<input type=\"hidden\" name=\"AvatarKey\" value=\""+item[0].gidx+"\">";
	str += "<input type=\"hidden\" name=\"AvatarID\" value=\""+tempGname+"\">";
	str += "<input type=\"hidden\" name=\"AvatarLv\" value=\""+item[0].glv+"\">";
	str += "<input type=\"hidden\" name=\"rankicon\" value=\""+item[0].icon+"\">";*/

	str += "<input type=\"hidden\" name=\"g_GXinfoAvatarKey\" value=\""+item[0].gidx+"\">";
	str += "<input type=\"hidden\" name=\"g_GXinfoAvatarID\" value=\""+tempGname+"\">";
	str += "<input type=\"hidden\" name=\"g_GXlevel\" value=\""+item[0].glv+"\">";
	str += "<input type=\"hidden\" name=\"g_GXgrade\" value=\""+item[0].icon+"\">";

	if (document.getElementById("prtGameNames") == null){
		alert("Ä³¸¯¸íÀ» Ãâ·ÂÇÒ ElementID °¡ ¾ø½À´Ï´Ù.");
	}else{
		document.getElementById("prtGameNames").innerHTML = str;
		setCommentInsert(str, 1);
	}
}

// ´ñ±Û, ÃßÃµ¿¡¼­ »ç¿ë
function setCommentInsert(str, repeat)
{
	if(document.getElementById("prtGameNames"+repeat) != null)
	{
		document.getElementById("prtGameNames"+repeat).innerHTML = str;
		
		if(isLogin)
		{
			setCommentInsert(str, repeat + 1);
		}
	}
}

function getGameNames(intype, param1, param2){
	vtype = intype;
	vbutton = param2;
	jQuery.getJSON("http://gx.joycity.com/avatarinfo/avatar.jce?gidx="+param1+"&callback=?");
}

function goAvatarChange() {
	openCenter("http://gx-cont.joycity.com/weblevels/avatar.do", "_popweblevels", 518, 590, "toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,status=yes")
}

function openCenter(url, target, width, height, option) {

	LeftPosition = (screen.availWidth) ? (screen.availWidth-width)/2 : 0;
	TopPosition = (screen.availHeight) ? (screen.availHeight-height)/2 : 0;

	if (option != "") {
		option = option + "," + option
	}
	window.open(url, target,"width=" + width + ",height=" + height + ",top="+TopPosition+",left="+LeftPosition+option);
}

-->