<!--
//**********************************************************************
// SWCC : Header Navigation
// 2006.03.08
//**********************************************************************
// gHdxxx
// hd_xxx
//**********************************************************************

// [gSw_rootPath] : Document Root
// [gSw_imgPath]  : Image Directory

//---------------------------------------------
// Directory name + Image name
//---------------------------------------------
var gHdImgAct  = '';
var gHdImgName = {
	'index'    : 'hd_mn_en_corp',  // 'index' is not directory name.
	'company'  : 'hd_mn_en_corp',
	'products' : 'hd_mn_en_pro',
	'ir'       : 'hd_mn_en_ir',
	'inquiry'  : 'hd_mn_en_cont'
}

var gHdDefaultPath = gSw_rootPath + 'eng/';

var gHdUrl      = location.href;
var gHdFilePath = gHdUrl.substring(gHdUrl.indexOf(gHdDefaultPath) + gHdDefaultPath.length , gHdUrl.length);
var gHdDirName  = gHdFilePath.substring(0 , gHdFilePath.indexOf('/'));
if(( gHdUrl == gHdDefaultPath ) || ( gHdUrl.indexOf(gHdDefaultPath + 'index.htm') >= 0 )){ gHdDirName = 'index'; }

// Image name -> gHdImgName[gHdDirName]


//---------------------------------------------
// Data
//---------------------------------------------

gHdData = new Array();
gHdData[0] = '';
gHdData[1] = '<a href="'+ gSw_rootPath +'eng/index.htm" onMouseOver="hd_over(\'hd_mn_en_home\');" onMouseOut="hd_out(\'hd_mn_en_home\');"><img name="hd_mn_en_home" src="'+ gSw_imgPath +'hd_mn_en_home.gif" width="90" height="43" alt="Home"></a>';
gHdData[2] = '<a href="'+ gSw_rootPath +'eng/index.htm" onMouseOver="hd_over(\'hd_mn_en_corp\');" onMouseOut="hd_out(\'hd_mn_en_corp\');"><img name="hd_mn_en_corp" src="'+ gSw_imgPath +'hd_mn_en_corp.gif" width="100" height="43" alt="Company"></a>';
gHdData[3] = '<a href="'+ gSw_rootPath +'eng/products/index.htm" onMouseOver="hd_over(\'hd_mn_en_pro\');" onMouseOut="hd_out(\'hd_mn_en_pro\');"><img name="hd_mn_en_pro" src="'+ gSw_imgPath +'hd_mn_en_pro.gif" width="100" height="43" alt="Products"></a>';
gHdData[4] = '<a href="'+ gSw_rootPath +'eng/ir/index.htm" onMouseOver="hd_over(\'hd_mn_en_ir\');" onMouseOut="hd_out(\'hd_mn_en_ir\');"><img name="hd_mn_en_ir" src="'+ gSw_imgPath +'hd_mn_en_ir.gif" width="90" height="43" alt="IR"></a>';
gHdData[5] = '<a href="'+ gSw_rootPath +'eng/inquiry/kouho.htm" onMouseOver="hd_over(\'hd_mn_en_cont\');" onMouseOut="hd_out(\'hd_mn_en_cont\');"><img name="hd_mn_en_cont" src="'+ gSw_imgPath +'hd_mn_en_cont.gif" width="110" height="43" alt="Contact Us"></a>';


//---------------------------------------------
// Document Write
//---------------------------------------------

with( document ){
	write('<!-- ===== Head ===== -->');
	write('<table border="0" width="760" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td width="10"><img src="'+ gSw_imgPath +'sp.gif" width="1" height="1" alt=""></td>');
	write('<td width="740">');
	write('<div><img src="'+ gSw_imgPath +'sp.gif" width="1" height="10" alt=""></div>');
	write('<table border="0" width="740" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td rowspan="2">');
	write('<!-- logo -->');
	write('<table border="0" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td><a href="'+ gSw_rootPath +'eng/index.htm"><img src="'+ gSw_imgPath +'logo_swcc.gif" width="142" height="56" alt="SWCC GROUP Creating for the Future"></a></td>');
	write('<td><img src="'+ gSw_imgPath +'sp.gif" width="5" height="1" alt=""></td>');
	write('<td><img src="'+ gSw_imgPath +'logo_en_holdings.gif" width="318" height="19" alt="SWCC SHOWA HOLDINGS CO., LTD."></td>');
	write('</tr>');
	write('</table>');
	write('<!-- /logo -->');
	write('</td>');
	write('<td align="right" valign="top">');
	write('<!-- head_menu -->');
	write('<table border="0" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td><a href="'+ gSw_rootPath +'index.htm" onMouseOver="hd_over(\'hd_mn_en1\');" onMouseOut="hd_out(\'hd_mn_en1\');"><img name="hd_mn_en1" src="'+ gSw_imgPath +'hd_mn_en1.gif" width="59" height="9" alt="Japanese"></a></td>');
	write('</tr>');
	write('</table>');
	write('<!-- /head_menu -->');
	write('</td>');
	write('</tr>');
	write('<tr>');
	write('<td align="right" valign="bottom">');
	write('<!-- search -->');
	write('<img src="'+ gSw_imgPath +'sp.gif" width="1" height="1" alt="">');
	//write('<table border="0" cellpadding="0" cellspacing="0">');
	//write('<form action="#####" method="XXXXX">');
	//write('<tr>');
	//write('<td><input type="text" class="j12" name="xxxx" value=""></td>');
	//write('<td><img src="'+ gSw_imgPath +'sp.gif" width="10" height="1" alt=""></td>');
	//write('<td><input type="image" src="'+ gSw_imgPath +'hd_search_submit_en.gif" width="45" height="20" alt="Search"></td>');
	//write('</tr>');
	//write('</form>');
	//write('</table>');
	write('<!-- /search -->');
	write('</td>');
	write('</tr>');
	write('</table>');
	write('<div><img src="'+ gSw_imgPath +'sp.gif" width="1" height="9" alt=""></div>');
	write('</td>');
	write('<td width="10"><img src="'+ gSw_imgPath +'sp.gif" width="1" height="1" alt=""></td>');
	write('</tr>');
	write('</table>');
	write('<!-- ===== /Head ===== -->');
	write('<!-- ===== Global_Menu ===== -->');
	write('<table border="0" width="760" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td background="'+ gSw_imgPath +'hd_mn_bg.gif">');
	write('<table border="0" cellpadding="0" cellspacing="0">');
	write('<tr>');

	for( var i = 1; i<gHdData.length; i++ ){
	//alert(i);
	write('<td>' + gHdData[i] + '</td>');
	}

	write('</tr>');
	write('</table>');
	write('</td>');
	write('</tr>');
	write('</table>');
	write('<!-- ===== /Global_Menu ===== -->');
	write('<div><img src="'+ gSw_imgPath +'sp.gif" width="1" height="20" alt=""></div>');
}

//---------------------------------------------
// Image Active
//---------------------------------------------
hd_active(gHdImgName[gHdDirName]);


//---------------------------------------------
// Image Loading
//---------------------------------------------

gHdImgArys = new Array(
	'hd_mn_en1.gif','hd_mn_en1_on.gif',

	'hd_mn_en_home.gif','hd_mn_en_home_on.gif',
	'hd_mn_en_corp.gif','hd_mn_en_corp_on.gif',
	'hd_mn_en_pro.gif','hd_mn_en_pro_on.gif',
	'hd_mn_en_ir.gif','hd_mn_en_ir_on.gif',
	'hd_mn_en_cont.gif','hd_mn_en_cont_on.gif'
);

gHdImgLoad = new Array();
for( var i = 0; i < gHdImgArys.length; i++ ){
	gHdImgLoad[i] = new Image();
	gHdImgLoad[i].src = gSw_imgPath + gHdImgArys[i];
	//document.write("<img src='" + gHdImgLoad[i].src + "'><br>");
}


//=============================================
// hd_over()
//=============================================
function hd_over(wk){
	var mDoc;
	var mExt;
	var mEnd = "_on";    //onMouseOver image end
	
	if( document.images[wk] && gHdImgAct != wk){
		mDoc = document.images[wk];
		mExt = mDoc.src.substring(mDoc.src.lastIndexOf(".") , mDoc.src.length);
		
		mDoc.src = gSw_imgPath + wk + mEnd + mExt;
	}
}

//=============================================
// hd_out()
//=============================================
function hd_out(wk){
	var mDoc;
	var mExt;
	
	if( document.images[wk] && gHdImgAct != wk){
		mDoc = document.images[wk];
		mExt = mDoc.src.substring(mDoc.src.lastIndexOf(".") , mDoc.src.length);
		
		mDoc.src = gSw_imgPath + wk + mExt;
	}
}

//=============================================
// hd_active()
//=============================================
function hd_active(mName){
	var mDir = gSw_imgPath;
	if( document.images[mName] ){
		document.images[mName].src = mDir + mName + '_on.gif';
	}
	gHdImgAct = mName;
}


//**********************************************************************
-->


