// mouse over out
function changeImg(THIS,FLAG){
	SRC = THIS.src;
	if(FLAG == 1){
		THIS.src = THIS.src.replace('_off.','_on.');
	}else{
		THIS.src = THIS.src.replace('_on.','_off.');
	}
}

function imageOn(imgName) {
	document[imgName].src = eval(imgName + "2.src");
}


function imageOff(imgName) {
	document[imgName].src = eval(imgName + "1.src");
}


function jre_header(path,size,xhtml) {
	var push=size;	
	b_close1 = new Image(); b_close1.src = path+'img/b_close_01.gif';
	b_close2 = new Image(); b_close2.src = path+'img/b_close_02.gif';

	if(xhtml){
		linePadding = size - 8;// 8 is line_header_ber_c.gif width.
		document.write('\
			<table cellpadding="0" cellspacing="0" style="border:0;width:'+push+';" id="header">\
			<tr>\
			<td>\
			<a href="'+path+'index.html"><img src="'+path+'img/jr_logo_en.gif" style="width:286px;height:48px;border:0;display:block;" alt="EAST JAPAN RAILWAY COMPANY" /></a>\
			</td>\
			<td style="text-align:right;">\
			<a href="javascript:window.close();" onmouseover="imageOn(\'b_close\');" onmouseout="imageOff(\'b_close\');"><img src="'+path+'img/b_close_01.gif" style="width:58px;height:17px;border:0;" alt="close" name="b_close" /></a>\
			<img src="'+path+'../img/f_language/_.gif" style="width:10px;height:1px;" alt="" />\
			</td>\
			</tr>\
			<tr>\
			<td colspan="2" style="background:url('+path+'img/line_header_ber.gif) bottom repeat-x;padding-left:'+linePadding+'px;">\
			<img src="'+path+'img/line_header_ber_c.gif" style="width:8px;height:6px;display:block;" alt="" />\
			</td>\
			</tr>\
			</table>\
		');
	}else{

		document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+push+'" id="header">');
		document.write('<tr>');
		document.write('<td><a href="'+path+'index.html"><img src="'+path+'img/jr_logo_en.gif" width="286" height="48" border="0" alt="EAST JAPAN RAILWAY COMPANY"></a></td>');
		document.write('<td align="right"><a href="javascript:window.close();" onmouseover="imageOn(\'b_close\');" onmouseout="imageOff(\'b_close\');"><img src="'+path+'img/b_close_01.gif" width="58" height="17" border="0" alt="close" name="b_close"></a><img src="'+path+'../img/f_language/_.gif" width="10" height="1" alt=""></td>');
		document.write('</tr>');
		document.write('<tr><td colspan="2" background="'+path+'img/line_header_ber.gif" align="right"><img src="'+path+'img/line_header_ber_c.gif" width="8" height="6" alt=""></td></tr>');
		document.write('</table>');
	}
}
