function JLJScommon02() {
	this.site = {};
	this.site.region = {};
	this.site.lang = {};

	var h = location.host;

	// whether worldwide site or not
	this.site.region.isWW =
		h.match( /10\.32\.32\.109/ ) ? 1 : (
			h.match( /renewal\.[^\.]+\.jal\.com/ ) ? 2 : (
				h.match( /[^\.]+\.jal\.com/ ) ? 999 : false
			)
		);

	// whether Japan site or not
	this.site.region.isJP = !this.site.region.isWW ? true : false;

	// discrimination	of worldwide sites
	this.site.region.isNONE = ( this.site.region.isWW && ( h.match( /^www\.jal\.com$/ ) ||  h.match( /10\.32\.32\.109$/ ) ||  h.match( /:8000/ ))) ? true : false;

	this.site.region.isAOR = ( this.site.region.isWW && ( h.match( /\.aor\./ ) ||  h.match( /:8099/ ))) ? true : false;
	this.site.region.isAU = ( this.site.region.isWW && ( h.match( /\.au\./ ) ||  h.match( /:8001/ ))) ? true : false;
	this.site.region.isHK = ( this.site.region.isWW && ( h.match( /\.hk\./ ) ||  h.match( /:8002/ ))) ? true : false;
	this.site.region.isCN = ( this.site.region.isWW && ( h.match( /\.cn\./ ) ||  h.match( /:8003/ ))) ? true : false;
	this.site.region.isKR = ( this.site.region.isWW && ( h.match( /\.kr\./ ) ||  h.match( /:8004/ ))) ? true : false;
	this.site.region.isSG = ( this.site.region.isWW && ( h.match( /\.sg\./ ) ||  h.match( /:8005/ ))) ? true : false;
	this.site.region.isNZ = ( this.site.region.isWW && ( h.match( /\.nz\./ ) ||  h.match( /:8006/ ))) ? true : false;
	this.site.region.isID = ( this.site.region.isWW && ( h.match( /\.id\./ ) ||  h.match( /:8007/ ))) ? true : false;
	this.site.region.isPH = ( this.site.region.isWW && ( h.match( /\.ph\./ ) ||  h.match( /:8008/ ))) ? true : false;
	this.site.region.isIN = ( this.site.region.isWW && ( h.match( /\.in\./ ) ||  h.match( /:8009/ ))) ? true : false;
	this.site.region.isMY = ( this.site.region.isWW && ( h.match( /\.my\./ ) ||  h.match( /:8010/ ))) ? true : false;
	this.site.region.isVN = ( this.site.region.isWW && ( h.match( /\.vn\./ ) ||  h.match( /:8011/ ))) ? true : false;
	this.site.region.isTH = ( this.site.region.isWW && ( h.match( /\.th\./ ) ||  h.match( /:8012/ ))) ? true : false;
	this.site.region.isGU = ( this.site.region.isWW && ( h.match( /\.gu\./ ) ||  h.match( /:8013/ ))) ? true : false;
	this.site.region.isMP = ( this.site.region.isWW && ( h.match( /\.mp\./ ) ||  h.match( /:8014/ ))) ? true : false;

	this.site.region.isAORmember = (
		this.site.region.isAOR || this.site.region.isAU || this.site.region.isHK || this.site.region.isCN || this.site.region.isKR ||
		this.site.region.isSG || this.site.region.isNZ || this.site.region.isID || this.site.region.isPH || this.site.region.isIN ||
		this.site.region.isMY || this.site.region.isVN || this.site.region.isTH || this.site.region.isGU || this.site.region.isMP
	) ? true : false;

	this.site.region.isER = ( this.site.region.isWW && ( h.match( /\.er\./ ) ||  h.match( /:8199/ ))) ? true : false;
	this.site.region.isUK = ( this.site.region.isWW && ( h.match( /\.uk\./ ) ||  h.match( /:8015/ ))) ? true : false;
	this.site.region.isFR = ( this.site.region.isWW && ( h.match( /\.fr\./ ) ||  h.match( /:8016/ ))) ? true : false;
	this.site.region.isDE = ( this.site.region.isWW && ( h.match( /\.de\./ ) ||  h.match( /:8017/ ))) ? true : false;
	this.site.region.isNL = ( this.site.region.isWW && ( h.match( /\.nl\./ ) ||  h.match( /:8018/ ))) ? true : false;
	this.site.region.isES = ( this.site.region.isWW && ( h.match( /\.es\./ ) ||  h.match( /:8019/ ))) ? true : false;
	this.site.region.isIT = ( this.site.region.isWW && ( h.match( /\.it\./ ) ||  h.match( /:8020/ ))) ? true : false;
	this.site.region.isEG = ( this.site.region.isWW && ( h.match( /\.eg\./ ) ||  h.match( /:8021/ ))) ? true : false;
	this.site.region.isAT = ( this.site.region.isWW && ( h.match( /\.at\./ ) ||  h.match( /:8022/ ))) ? true : false;
	this.site.region.isCH = ( this.site.region.isWW && ( h.match( /\.ch\./ ) ||  h.match( /:8023/ ))) ? true : false;
	this.site.region.isRU = ( this.site.region.isWW && ( h.match( /\.ru\./ ) ||  h.match( /:8024/ ))) ? true : false;

	this.site.region.isERmember = (
		this.site.region.isER || this.site.region.isUK || this.site.region.isFR || this.site.region.isDE || this.site.region.isNL ||
		this.site.region.isES || this.site.region.isIT || this.site.region.isEG || this.site.region.isAT || this.site.region.isCH ||
		this.site.region.isRU
	) ? true : false;

	this.site.region.isAR = ( this.site.region.isWW && ( h.match( /\.ar\./ ) ||  h.match( /:8299/ ))) ? true : false;
	this.site.region.isUS = ( this.site.region.isWW && ( h.match( /\.us\./ ) ||  h.match( /:8025/ ))) ? true : false;
	this.site.region.isCA = ( this.site.region.isWW && ( h.match( /\.ca\./ ) ||  h.match( /:8026/ ))) ? true : false;
	this.site.region.isMX = ( this.site.region.isWW && ( h.match( /\.mx\./ ) ||  h.match( /:8027/ ))) ? true : false;
	this.site.region.isBR = ( this.site.region.isWW && ( h.match( /\.br\./ ) ||  h.match( /:8028/ ))) ? true : false;

	this.site.region.isARmember = (
		this.site.region.isAR || this.site.region.isUS || this.site.region.isCA || this.site.region.isMX || this.site.region.isBR
	) ? true : false;

	var p = location.pathname;
	this.site.lang.isEN = (	// whether displayed in English or not
		p.match( /^\/en\/.?/ ) ||
		p.match( /^\/world\/en\/.?/ ) ||
		p.match( /^\/sr\/en\/.?/ )
	) ? true : false;

	this.env = {};
	this.env.isIE50 = ( JLJS.env.isIE && navigator.appVersion.toLowerCase().match( /msie 5\.0/ )) ? true : false;
	this.env.isIE55 = ( JLJS.env.isIE && navigator.appVersion.toLowerCase().match( /msie 5\.5/ )) ? true : false;
}

JLJScommon02.prototype = {
	getValueFromCookie : function( cookieKey ) {
		var data = ( document.cookie ) ? document.cookie.split( ';' ) : [];
		var value;
		for( var i in data )
			if( data[i].split( '=' )[0].replace( /\s/g, '' ) == cookieKey )
				if( value = data[i].split( '=' )[1] )
					return unescape( value ).replace( /\s/g, '' );
	}
};

var JLJS02 = new JLJScommon02;


function JLJSClass_changeHTMLByDomain() {
}

JLJSClass_changeHTMLByDomain.prototype = {
	JP : function( id, html ) { var e; if( JLJS02.site.region.isJP && ( e = document.getElementById( id ))) e.innerHTML = html; },

	NONE : function( id, html ) { var e; if( JLJS02.site.region.isNONE && ( e = document.getElementById( id ))) e.innerHTML = html; },
	AOR : function( id, html ) { var e; if( JLJS02.site.region.isAOR && ( e = document.getElementById( id ))) e.innerHTML = html; },
	AU : function( id, html ) { var e; if( JLJS02.site.region.isAU && ( e = document.getElementById( id ))) e.innerHTML = html; },
	HK : function( id, html ) { var e; if( JLJS02.site.region.isHK && ( e = document.getElementById( id ))) e.innerHTML = html; },
	CN : function( id, html ) { var e; if( JLJS02.site.region.isCN && ( e = document.getElementById( id ))) e.innerHTML = html; },
	KR : function( id, html ) { var e; if( JLJS02.site.region.isKR && ( e = document.getElementById( id ))) e.innerHTML = html; },
	SG : function( id, html ) { var e; if( JLJS02.site.region.isSG && ( e = document.getElementById( id ))) e.innerHTML = html; },
	NZ : function( id, html ) { var e; if( JLJS02.site.region.isNZ && ( e = document.getElementById( id ))) e.innerHTML = html; },
	ID : function( id, html ) { var e; if( JLJS02.site.region.isID && ( e = document.getElementById( id ))) e.innerHTML = html; },
	PH : function( id, html ) { var e; if( JLJS02.site.region.isPH && ( e = document.getElementById( id ))) e.innerHTML = html; },
	IN : function( id, html ) { var e; if( JLJS02.site.region.isIN && ( e = document.getElementById( id ))) e.innerHTML = html; },
	MY : function( id, html ) { var e; if( JLJS02.site.region.isMY && ( e = document.getElementById( id ))) e.innerHTML = html; },
	VN : function( id, html ) { var e; if( JLJS02.site.region.isVN && ( e = document.getElementById( id ))) e.innerHTML = html; },
	TH : function( id, html ) { var e; if( JLJS02.site.region.isTH && ( e = document.getElementById( id ))) e.innerHTML = html; },
	GU : function( id, html ) { var e; if( JLJS02.site.region.isGU && ( e = document.getElementById( id ))) e.innerHTML = html; },
	MP : function( id, html ) { var e; if( JLJS02.site.region.isMP && ( e = document.getElementById( id ))) e.innerHTML = html; },
	AORmember : function( id, html ) { var e; if( JLJS02.site.region.isAORmember && ( e = document.getElementById( id ))) e.innerHTML = html; },

	ER : function( id, html ) { var e; if( JLJS02.site.region.isER && ( e = document.getElementById( id ))) e.innerHTML = html; },
	UK : function( id, html ) { var e; if( JLJS02.site.region.isUK && ( e = document.getElementById( id ))) e.innerHTML = html; },
	FR : function( id, html ) { var e; if( JLJS02.site.region.isFR && ( e = document.getElementById( id ))) e.innerHTML = html; },
	DE : function( id, html ) { var e; if( JLJS02.site.region.isDE && ( e = document.getElementById( id ))) e.innerHTML = html; },
	NL : function( id, html ) { var e; if( JLJS02.site.region.isNL && ( e = document.getElementById( id ))) e.innerHTML = html; },
	ES : function( id, html ) { var e; if( JLJS02.site.region.isES && ( e = document.getElementById( id ))) e.innerHTML = html; },
	IT : function( id, html ) { var e; if( JLJS02.site.region.isIT && ( e = document.getElementById( id ))) e.innerHTML = html; },
	EG : function( id, html ) { var e; if( JLJS02.site.region.isEG && ( e = document.getElementById( id ))) e.innerHTML = html; },
	AT : function( id, html ) { var e; if( JLJS02.site.region.isAT && ( e = document.getElementById( id ))) e.innerHTML = html; },
	CH : function( id, html ) { var e; if( JLJS02.site.region.isCH && ( e = document.getElementById( id ))) e.innerHTML = html; },
	RU : function( id, html ) { var e; if( JLJS02.site.region.isRU && ( e = document.getElementById( id ))) e.innerHTML = html; },
	ERmember : function( id, html ) { var e; if( JLJS02.site.region.isERmember && ( e = document.getElementById( id ))) e.innerHTML = html; },

	AR : function( id, html ) { var e; if( JLJS02.site.region.isAR && ( e = document.getElementById( id ))) e.innerHTML = html; },
	US : function( id, html ) { var e; if( JLJS02.site.region.isUS && ( e = document.getElementById( id ))) e.innerHTML = html; },
	CA : function( id, html ) { var e; if( JLJS02.site.region.isCA && ( e = document.getElementById( id ))) e.innerHTML = html; },
	MX : function( id, html ) { var e; if( JLJS02.site.region.isMX && ( e = document.getElementById( id ))) e.innerHTML = html; },
	BR : function( id, html ) { var e; if( JLJS02.site.region.isBR && ( e = document.getElementById( id ))) e.innerHTML = html; },
	ARmember : function( id, html ) { var e; if( JLJS02.site.region.isARmember && ( e = document.getElementById( id ))) e.innerHTML = html; }

};

var JLJS_changeHTMLByDomain = new JLJSClass_changeHTMLByDomain;

