//<![CDATA[
function onResponse(rsData)
{
	if(rsData){
		if(!rsData.err){
			var lvStr = "Level 0";//level default
			var lvImg = "lv1";
			if(rsData.ulv){			
				lvStr = "Level "+rsData.ulv;
				var maxNum = 3 - rsData.ulv.length;
				var addStr = "";
				for(var i=0;i<maxNum;i++){addStr += "0";}
				lvImg = "lv"+rsData.ulv;
			}
			
			var rsObj = document.getElementById('loginArea');
			var disPlayA = ''
				+ '<img src="http://file.kaybo.com/crazycombi/_common/add_kc_hint.gif" id="hintMsg" name="hintMsg" alt="Agregar K Coin" title="Agregar K Coin" class="addKcoinHint" style="display:none;" \/>'
			    + '<a href="http://paygate.kaybo.com/payment/payment.html" target="_self"><img src="http://file.kaybo.com/crazycombi/_common/btn_addkcoin1.gif" alt="Agregar K Coin" title="Agregar K Coin" class="addKcoin" onmouseover="showhideObj(\'hintMsg\');" onmouseout="showhideObj(\'hintMsg\', 1);" \/><\/a>'
				
				+ '<ul class="logDataBoxUlA">'
				+ '<li class="udata_a"><span>'+rsData.uid+'<\/span><\/li>'
				+ '<li class="udata_b"><span title="'+lvStr+'" class="'+lvImg+'">&nbsp;<\/span><\/li>'
				+ '<li class="udata_c">Lv '+rsData.ulv+'<\/li>'
				+ '<li class="udatalist">'
				/*+ '<div class="udata_lic" title="LICENCIA">'+rsData.ulic+'<\/div>'*/
				+ '<div class="udata_exp" title="VALOR DE EXPERIENCIA">'+rsData.uexp+'<\/div>'
				+ '<div class="udata_win" title="ganados">'+rsData.uwin+'<\/div>'
				+ '<div class="udata_los" title="perdidos">'+rsData.ulos+'<\/div>'
				+ '<div class="udata_gld" title="GOLD">'+rsData.ugld+'<\/div>'
				+ '<div class="udata_csh" title="CASH">'+rsData.ucash+'<\/div>'
				+ '<div class="udata_kcn" title="K Coin"><span>'+rsData.ukcoin+'<\/span><\/div>'

				+ '<div class="csMyInfo"><a href="#" target="_self" style="cursor:none;"><img src="http://file.kaybo.com/crazycombi/_common/btn_myinfo.gif" alt="Mis datos" title="Mis datos" \/><\/a><\/div>'
				+ '<div class="csLogout"><a href="http://auth.kaybo.com/member/front_logout.html?backurl=http://crazycombi.kaybo.com" target="_self"><img src="http://file.kaybo.com/crazycombi/_common/btn_logout.gif" alt="Salir" title="Salir" \/><\/a><\/div>'
				+ '<\/li><\/ul>'
				+ '<div class="csBtnDown2"><a href="http://crazycombi.kaybo.com/helpdesk/downloads.html"><img src="http://file.kaybo.com/crazycombi/_common/space.gif" class="btnDown" alt="CrazyCombi Descargar" title="CrazyCombi Descargar" \/><\/a><\/div>';
			//alert(disPlayA);
			/*setStyle*/
			rsObj.className = "loginmn";
			rsObj.innerHTML = "";
			rsObj.innerHTML = disPlayA;
		}else{
			alert('\n▒ ' + rsData.err + '     ');
		}		
	}
	else
	{
		alert('\n▒ Hora introduzca su usuario o contrasena.    ');
		document.loginFrm.id.focus();
	}
	try{
		//alert("hide blocking");
		hideBox();
	}catch(e){alert(e);}
}


function bnrUrl(a){
	var path = [
		"http://auth.kaybo.com/member/join_step1.html",
		"http://crazycombi.kaybo.com/helpdesk/downloads.html",
		"http://crazycombi.kaybo.com/helpdesk/videoclips.html?no=6"
	];
	try {
	if(a != undefined) window.location.href = path[a];
	}catch(e){}
}


//-- tab url setting
function tabUrl(a)
{
	var path = tabPath[a][tabIdx[a]];
	if(path != undefined){
		if(path == "") alert("sorry, under construction.      ");
		else location.href = path;
	}
	else{
		alert("It is the wrong path		");
	}
}
var tabIdx = [0,0,0];
var tabPath = [
	{"t0Bt1":"ranking/ranking_exp.html","t0Bt2":"ranking/ranking_win.html","t0Bt3":"ranking/ranking_time.html"},
	{"t1Bt1":"news/event.html","t1Bt2":"community/screenshot.html","t1Bt3":"helpdesk/videoclips.html"},
	{"t2Bt1":"news/notice.html","t2Bt2":"news/update.html"}
];

function pageInit()
{
	setTab('tab0','tab0s','http://file.kaybo.com/crazycombi/','t0cont',3,0,'tab0cvr');
	setTab('tab1','tab1s','http://file.kaybo.com/crazycombi/','t1cont',3,1,'tab1cvr', m_tab1);
	setTab('tab2','tab2s','http://file.kaybo.com/crazycombi/','t2cont',2,2,'tab2cvr', 0);

	try	{
		setRolling();
	} catch ( e ) {}

	//
	//if ( getCookie( "notice" ) != "1" ) {
	//	OpenWin( "/popup/popup_20100311.html", 500, 722 );
	//}
}
//]]>