function idOnOff(id, type){
	var layer = document.getElementById(id);
	layer.style.display = type;
}
var httpRequest = null;

//For arario Header PVUV check not depended on Specific Framework (jQuery, prototypejs)
function getXHR(){
	if(window.ActiveXObject){
		try{
			return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e){
			try{
				return new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e1){
				return null;
			}
		}
	}else if(window.XMLHttpRequest){
		return new XMLHttpRequest();
	}else{
		return null;
	}
}
var site = new Site();

function pvuvOnHeader(sub_no, code){
	document.location.replace(site.atong+"pvUvCheck.htmls?gbn=AT004003&sub_no=" +sub_no);
}

function Site(){
	this.atong = "http://www.arario.jp/";
	this.dc = "http://driftcity.arario.jp/";
	this.cf = "http://crossfire.arario.jp/";
	this.ao = "http://aceonline.arario.jp/";
	this.pt = "http://pristontale.arario.jp/";
	this.st = "http://stonline.arario.jp/";
}

function popMyPage(myPageURL){
	window.open(myPageURL,'myPage','width=655,height=600,statusbar=no,scrollbars=yes,toolbar=no,resizable=no');
}

function araTopGoLogin(){
	alert('ログインしてからご利用ください。');
	window.location.href = 'http://www.arario.jp/araLogin.htmls?gn=extra&rURL=' + document.location.href;
}

//Do not Use 
function remoteUVPV(gbn,sub_no){
	$.post(site.atong+"pvUvCheck.htmls?gbn="+gbn+"&sub_no="+ sub_no);
}

