<!--
//**********************************************************************
// KIKKOMAN [ Header Navigation (2) ]   /homecook, /kcc
//**********************************************************************
// 変数 : ghcHd*****
// 関数 : hcHeader*****
//**********************************************************************

var ghcHdDocPath = '/';
var ghcHdImgDir  = '/js/home_img/';


//--------------------------------------------------
// HTML DATA
//--------------------------------------------------
var gHcHdDataTop  = '<a href="' + ghcHdDocPath + 'homecook/index.html" target="_top"><img src="' + ghcHdImgDir + 'hd_top.gif" width="154" height="48" border="0" alt="ホームクッキングTOP"></a>';
var gHcHdDataLogo = '<a href="' + ghcHdDocPath + 'index.html" target="_top"><img src="' + ghcHdImgDir + 'hd_logo.gif" width="88" height="30" border="0" alt="キッコーマン　ホーム"></a>';
var gHcHdDataMail = '<a href="' + ghcHdDocPath + 'homecook/mail/index.html" target="_top"><img src="' + ghcHdImgDir + 'hd_mail.gif" width="101" height="16" border="0" alt="メールマガジン"></a>';

ghcHdDataMenu = new Array();
ghcHdDataMenu[0] = '';  // empty
ghcHdDataMenu[1] = '<a href="' + ghcHdDocPath + 'homecook/sectop/recipe_index.html" target="_top"><img name="hd_mn_reci" src="' + ghcHdImgDir + 'hd_mn_reci_on.gif" width="59" height="19" border="0" alt="見つける！"></a>';
ghcHdDataMenu[2] = '<a onMouseOver="hcHeaderOver(\'hd_mn_oshi\');" onMouseOut="hcHeaderOut(\'hd_mn_oshi\');" href="' + ghcHdDocPath + 'homecook/sectop/teach_index.html" target="_top"><img name="hd_mn_oshi" src="' + ghcHdImgDir + 'hd_mn_oshi.gif" width="48" height="19" border="0" alt="教えて！"></a>';
ghcHdDataMenu[3] = '<a onMouseOver="hcHeaderOver(\'hd_mn_soya\');" onMouseOut="hcHeaderOut(\'hd_mn_soya\');" href="' + ghcHdDocPath + 'homecook/sectop/soysauce_index.html" target="_top"><img name="hd_mn_soya" src="' + ghcHdImgDir + 'hd_mn_soya.gif" width="93" height="19" border="0" alt="しょうゆのチカラ"></a>';
ghcHdDataMenu[4] = '<a onMouseOver="hcHeaderOver(\'hd_mn_food\');" onMouseOut="hcHeaderOut(\'hd_mn_food\');" href="' + ghcHdDocPath + 'homecook/sectop/health_index.html" target="_top"><img name="hd_mn_food" src="' + ghcHdImgDir + 'hd_mn_food.gif" width="98" height="19" border="0" alt="ヘルシー&ライフ"></a>';
ghcHdDataMenu[5] = '<a onMouseOver="hcHeaderOver(\'hd_mn_prod\');" onMouseOut="hcHeaderOut(\'hd_mn_prod\');" href="' + ghcHdDocPath + 'products/" target="_top"><img name="hd_mn_prod" src="' + ghcHdImgDir + 'hd_mn_prod.gif" width="65" height="19" border="0" alt="商品を探す"></a>';
ghcHdDataMenu[6] = '<a onMouseOver="hcHeaderOver(\'hd_mn_onli\');" onMouseOut="hcHeaderOut(\'hd_mn_onli\');" href="http://www.kikkoman-shop.com/" target="_top"><img name="hd_mn_onli" src="' + ghcHdImgDir + 'hd_mn_onli.gif" width="51" height="19" border="0" alt="ショップ"></a>';
ghcHdDataMenu[7] = '<a onMouseOver="hcHeaderOver(\'hd_mn_camp\');" onMouseOut="hcHeaderOut(\'hd_mn_camp\');" href="' + ghcHdDocPath + 'campaign/index.html" target="_top"><img name="hd_mn_camp" src="' + ghcHdImgDir + 'hd_mn_camp.gif" width="75" height="19" border="0" alt="キャンペーン"></a>';


//--------------------------------------------------
// IMAGE LOAD
//--------------------------------------------------
ghcHdImgArys = new Array(
'hd_mn_camp.gif',
'hd_mn_camp_on.gif',
'hd_mn_food.gif',
'hd_mn_food_on.gif',
'hd_mn_onli.gif',
'hd_mn_onli_on.gif',
'hd_mn_oshi.gif',
'hd_mn_oshi_on.gif',
'hd_mn_prod.gif',
'hd_mn_prod_on.gif',
'hd_mn_reci.gif',
'hd_mn_reci_on.gif',
'hd_mn_soya.gif',
'hd_mn_soya_on.gif'
);

ghcHdImgLoad = new Array();
for( var i = 0; i < ghcHdImgArys.length; i++ ){
	ghcHdImgLoad[i] = new Image();   ghcHdImgLoad[i].src = ghcHdImgDir + ghcHdImgArys[i];
	//document.write("<img src='" + ghcHdImgLoad[i].src + "'><br>");
}

//--------------------------------------------------
// DOCUMENT WRITE
//--------------------------------------------------
with( document ){

	write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	write('<tr>');
	write('<td background="' + ghcHdImgDir + 'hd_bg.gif" align="center">');
	write('<table border="0" cellpadding="0" cellspacing="0" width="755">');
	write('<tr>');
	write('<td background="' + ghcHdImgDir + 'sp.gif">');

		// MENU
		write('<table border="0" cellpadding="0" cellspacing="0">');
		write('<tr>');
		write('<td>' + gHcHdDataTop + '</td>');
		for( var i = 1; i < ghcHdDataMenu.length; i ++ ){
			write('<td valign="bottom">' + ghcHdDataMenu[i] + '</td>');
		}
		write('</tr>');
		write('</table>');

	write('</td>');
	write('<td background="' + ghcHdImgDir + 'sp.gif" align="right">');

		// MAIL etc...
		write('<table border="0" cellpadding="0" cellspacing="0">');
		write('<tr>');
		write('<td><div>' + gHcHdDataLogo + '</div><div>' + gHcHdDataMail + '</div></td>');
		write('</tr>');
		write('</table>');

	write('</td>');
	write('</tr>');
	write('</table>');
	write('</td>');
	write('</tr>');
	write('</table>');
}

//==================================================
// hcHeaderOver()
//==================================================
function hcHeaderOver(wk){
	if( document.images[wk] ){
		document.images[wk].src = ghcHdImgDir + wk + '_on.gif'
	}
}

//==================================================
// hcHeaderOut()
//==================================================
function hcHeaderOut(wk){
	if( document.images[wk] ){
		document.images[wk].src = ghcHdImgDir + wk + '.gif'
	}
}

//**********************************************************************
//-->

