function JLJS_class_mainFooterControl() {
	this.name = {};
	this.name.isOther = ( window.name == "otherwindow" ) ? true : false;
	this.name.isJal = ( window.name == "jal" ) ? true : false;
	this.name.isNon = ( !this.name.isOther && !this.name.isJal ) ? true : false;
}

JLJS_class_mainFooterControl.prototype = {
	changeHTMLByWindowName: function() {
		if( this.name.isNon )
			window.onunload = function() { window.name = "" };
		else {
			this.hideElements();
			this.outputSimpleFooter();
		}
	},
	
	hideElements: function() {
		var classes = [ "#footerBlock", "#rnFoot" ];

		var rule = "display: none;";
		var selector = classes.join( ", " );
		document.writeln( '<style type="text/css"><!--' + selector + '{ ' + rule + ' }' + '--></style>' );

	},
	
	outputSimpleFooter: function() {
		document.write('<!-- [rnSimpleFoot] --><div id="rnSimpleFoot"><div id="rnSimpleFootBnr01">&nbsp;<!-- [rnSimpleFootBnr01] --></div><p id="rnSimpleFootCopy"><img src="/local/common_rn/img/txt_footer_copy_001.gif" width="219" height="11" alt="Copyright &copy; Japan Airlines. All rights reserved."></p></div><!-- /[rnSimpleFoot] -->');
	}
}

var JLJS_mainFooterControl = new JLJS_class_mainFooterControl();


JLJS_mainFooterControl.changeHTMLByWindowName();



