// "@(#) $Id: as_grandnavi.js,v 1.22 2005/09/08 05:18:11 tstxas Exp $ (akasugu)"
/*----------------------------------------------------------------------------/
/ as_grandnavi.js
/ 赤すぐグランドナビ
/ CREATED  2004/06/16 TIS Y.Aiko
/ MODIFIED 2004/12/16 TIS A.Tsuruda[W031-NM]
/ MODIFIED 2005/01/11 TIS K.Hori   [W031-NM]
/ MODIFIED 2005/01/27 TIS A.Tsuruda[W089-AM]
/ MODIFIED 2005/07/29 TIS T.Ichikawa
/ MODIFIED 2005/08/29 TIS M.Konya  [A058-AD]
/
/ History:
/ ・2004/12/16 TIS A.Tsuruda [W031-NM]グランドフッターtop_log.cgi廃止
/ ・2004/12/16 TIS A.Tsuruda [W032-ND]ビジョナリスト導入
/ ・2004/12/16 TIS A.Tsuruda [W037-ND]グランドフッターtarget指定
/ ・2005/01/11 TIS K.Hori    [W031-NM]グランドフッターデザイン変更
/ ・2005/01/27 TIS A.Tsuruda [W089-AM]赤すぐ分類マスタロード
/ function:
/   [public]
/   asnavi_PrintGrandHeader
/   asnavi_PrintGrandHeader_SearchPrice
/   asnavi_PrintGrandHeader_SearchNone
/   asnavi_PrintGrandLeft
/   asnavi_PrintGrandFooter
/   asnavi_getCookie
/   asnavi_setCookie
/   [private]
/   asnavi_PrintGrandHeader_Header
/   asnavi_PrintSearchNormal
/   asnavi_PrintSearchPrice
/   asnavi_preloadImages
/   asnavi_printImage
/   asnavi_findObj
/   asnavi_swapImgRestore
/   asnavi_swapImage
/   asnavi_printSpacer
/   asnavi_init
/   asnavi_setServerName
/   asnavi_setSubcatLink
/----------------------------------------------------------------------------*/

/* 画像ディレクトリ */
var asnavi_ImageDir     = '/commonas/img';
/* スペーサ画像      */
var asnavi_SpacerGIF    = asnavi_ImageDir + '/spacer.gif';
/* フッタロゴ画像  */
var asnavi_RecruitGIF   = '/common/parts/common_footer_logo.gif';
/* 赤すぐnet情報 */
var asnavi_Conf_As      = new Array();
/* TOP情報 */
var asnavi_Conf_Top     = new Array();
/* カテゴリ情報 */
var asnavi_Conf_Cat     = new Array();
/* 特集情報 */
var asnavi_Conf_Toku    = new Array();
/* フッタ情報 */
var asnavi_Conf_Footer  = new Array();
/* 初期化フラグ */
var asnavi_Initialized  = false;
/* 画像先読みフラグ */
var asnavi_ImgLoaded    = false;
/* リンクシステム */
var asnavi_LocationCGI  = '/cgi-bin/location.cgi';
/* 赤すぐネット通販 メインCGI */
var asnavi_GoodsCGI     = '/cgi-bin/baby/goods/goods.cgi';
/* サーバ名 */
var asnavi_ServerName   = '';

/* 赤すぐグランドヘッダ */
/* asnavi_PrintGrandHeader(コーナーCD,大分類CD,中分類CD,表示写真FLG) */
function asnavi_PrintGrandHeader ( corner_cd, category_cd, middle_category_cd, dsp_flg ) {
	asnavi_PrintGrandHeader_Header ( corner_cd );
	asnavi_PrintSearchNormal( category_cd, middle_category_cd, dsp_flg );
}

/* asnavi_PrintGrandHeader_SearchPrice(コーナーCD,大分類CD,中分類CD,表示写真FLG) */
function asnavi_PrintGrandHeader_SearchPrice ( corner_cd, category_cd, middle_category_cd, dsp_flg ) {
	asnavi_PrintGrandHeader_Header ( corner_cd );
	asnavi_PrintSearchPrice( category_cd, middle_category_cd, dsp_flg );
}

/* asnavi_PrintGrandHeader_SearchNone(コーナーCD) */
function asnavi_PrintGrandHeader_SearchNone (corner_cd) {
	asnavi_PrintGrandHeader_Header (corner_cd);
}

/*--------------------------------------------------------------
 ヘッダ表示
--------------------------------------------------------------*/
function asnavi_PrintGrandHeader_Header (corner_cd) {
    asnavi_init();          /* 変数初期化 */
    asnavi_preloadImages(); /* 画像先読み */

    /* Cookie処理 */
    if (corner_cd) {
        asnavi_setCookie('corner_kbn', corner_cd);
    }
    else {
        corner_cd = asnavi_getCookie('corner_kbn');
    }
    if (!corner_cd || !asnavi_Conf_Top[corner_cd]) { corner_cd = 'all'; }
    if ( corner_cd == 'net' ) { corner_cd = 'all'; }

	/* ヘッダ部出力 */
	document.write('<div id="globalNavi">');
	document.write('<div id="globalNaviHead">');
	document.write('<table width="770" cellspacing="0" cellpadding="0" border="0">');
		document.write('<tr align="left" valign="middle">');
			document.write('<td width="33"><img src="/commonas/img/spacer.gif" width="33" height="25" alt=""></td>');

			document.write('<td width="48"><h1><a href="' + asnavi_Conf_As["link"] +'">');
				asnavi_printImage( asnavi_Conf_As['gif'], asnavi_Conf_As['width'],
				asnavi_Conf_As['height'], asnavi_Conf_As['alt'] );
			document.write('</a></h1></td>');

			document.write('<td width="70" nowrap><img src="/commonas/img/spacer.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_Conf_As["link"] + '" class="global">総合TOPへ</a></td>');

			document.write('<td width="20"><img src="/commonas/img/spacer.gif" width="20" height="1" alt=""></td>');

			document.write('<td width="113"><img src="/commonas/img/basic_13.gif" width="113" height="5" alt="PRODUCE BY RECRUIT"></td>');

			document.write('<td width="184"><img src="/commonas/img/spacer.gif" width="160" height="1" alt=""></td>');

			document.write('<td width="70" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_ServerName + '/goods/guide01.html" target="_blank" class="global">ご利用案内</a></td>');

			document.write('<td width="3"><img src="/commonas/img/spacer.gif" width="12" height="1" alt=""></td>');

			document.write('<td width="80" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_ServerName + '/goods/guide01.html#haisou" target="_blank" class="global">配送料・送料</a></td>');

			document.write('<td width="17"><img src="/commonas/img/spacer.gif" width="17" height="1" alt=""></td>');

			document.write('<td width="107">');
				document.write( '<a href="' + asnavi_GoodsCGI + '?ENTRY=shopping_cart"'
					+ ' onMouseOut="asnavi_swapImgRestore();"'
					+ ' onMouseOver="'
					+ " asnavi_swapImage( 'shoppingcart', '', '/commonas/img/basic_04_o.gif', 1);"
					+ '">' );
				document.write( '<img src="/commonas/img/basic_04.gif" width="107" height="23" alt="買い物かご" name="shoppingcart" border="0">' );
			document.write( '</a></td>' );

			document.write('<td width="16"><img src="/commonas/img/spacer.gif" width="16" height="1" alt=""></td>');
		document.write('</tr>');
	document.write('</table>');
	document.write('</div>');

	document.write('<table width="770" cellspacing="0" cellpadding="0" border="0">');
		document.write('<tr>');

			var num;
			var corner;
			var img_top;
			var img_name;
			var img_gif;
			for( var num = 0; num < asnavi_Conf_Top['_SORT'].length; num++ ){
				corner      = asnavi_Conf_Top["_SORT"][num];
				img_top     = asnavi_Conf_Top[corner];
				img_name    = img_top['name'];
				img_gif     = '';

				img_gif = corner == corner_cd ? img_top['over'] : img_top['gif'][corner_cd];
				img_gif = asnavi_ImageDir + '/' + img_gif;

				document.write('<td width="' + img_top["width"] + '">');
				document.write('<a href="' + img_top["link"] + '" '
					+ 'onmouseout="asnavi_swapImgRestore();" '
					+ 'onmouseover="'
					+ 'asnavi_swapImage('
						+ "'" + img_name + "','',"
						+ "'" + asnavi_ImageDir + '/' + img_top['over'] + "',"
						+ '1);'
					+ '">');
				asnavi_printImage(img_gif, img_top["width"], img_top["height"], img_top["alt"],
					{ name : img_name, border : 0 });
				document.write('</a>');
				document.write('</td>');
			}

		document.write('</tr>');
	document.write('</table>');
	document.write('</div>');
}

/*--------------------------------------------------------------
 検索窓表示（キーワード、商品番号）
--------------------------------------------------------------*/
function asnavi_PrintSearchNormal ( category_cd, middle_category_cd, dsp_flg ) {
	/* 検索結果一覧画面 */
	var asnavi_GoodsSearch  = asnavi_GoodsCGI + '?ENTRY=goods_list_search&GOODS_SEARCH=';
	if( !category_cd ){
		category_cd = '';
	}
	if( !middle_category_cd ){
		middle_category_cd = '';
	}
	if( !dsp_flg ){
		dsp_flg = '';
	}

	document.write('<img src="/commonas/img/akasugu_hede_01.gif" alt="" name="Image1" width="770" height="3" id="Image1"><br>');
	document.write('<table width="770" cellspacing="0" cellpadding="5" border="0" background="/commonas/img/heder_bg.gif" bgcolor="#ffffff">');
	document.write('	<tr align="left" valign="middle">');
	document.write('		<td width="1"><img src="/commonas/img/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('		<td>');
	document.write('			<table border="0" cellpadding="1" cellspacing="0">');
	document.write('				<form name="fSrchKey" method="POST" action="' + asnavi_GoodsSearch + 'keyword" ');
	document.write('onSubmit="if( this.KEYWORD.value==\'商品キーワードを入力\' ){ this.KEYWORD.value=\'\'; };">' );
	document.write('				<input type="hidden" name="CATEGORY_CD" value="' + category_cd + '">');
	document.write('				<input type="hidden" name="MIDDLE_CATEGORY_CD" value="' + middle_category_cd + '">');
	document.write('				<input type="hidden" name="dsp_flg" value="' + dsp_flg + '">');
	document.write('					<tr align="left" valign="middle">');
	document.write('						<td><input name="KEYWORD" type="text" value="商品キーワードを入力" size="25" maxlength="35" ');
	document.write('onBlur="if( this.value==\'\' ){ this.value=\'商品キーワードを入力\'; };" ');
	document.write('onFocus="if( this.value==\'商品キーワードを入力\' ){ this.value=\'\'; };"></td>');
	document.write('						<td width="40"><input name="kensaku1" type="image" id="kensaku1" onMouseOver="MM_swapImage(\'kensaku1\',\'\',\'/commonas/img/heder_btn_o.gif\',1)" onMouseOut="MM_swapImgRestore()" src="/commonas/img/heder_btn.gif" alt="検索" align="middle"></td>');
	document.write('					</tr>');
	document.write('				</form>');
	document.write('			</table>');
	document.write('		</td>');
	document.write('		<td width="9"><img src="/commonas/img/spacer.gif" width="9" height="1" alt=""></td>');
	document.write('		<td>');
	document.write('			<table border="0" cellpadding="1" cellspacing="0">');
	document.write('				<form name="fSrchItem" method="POST" action="' + asnavi_GoodsSearch + 'number">');
	document.write('				<input type="hidden" name="CATEGORY_CD" value="' + category_cd + '">');
	document.write('				<input type="hidden" name="MIDDLE_CATEGORY_CD" value="' + middle_category_cd + '">');
	document.write('				<input type="hidden" name="dsp_flg" value="' + dsp_flg + '">');
	document.write('					<tr align="left" valign="middle">');
	document.write('						<td width="130" align="right" norwap><p class="kensaku">7桁の商品番号から<br>(例:00-00000)</p></td>');
	document.write('						<td><input name="ITEM_CD1" type="text" size="3" maxlength="2"></td>');
	document.write('						<td width="7"><img src="/commonas/img/heder11.gif" width="7" height="19" alt="-"></td>');
	document.write('						<td><input name="ITEM_CD2" type="text" size="7" maxlength="5"></td>');
	document.write('						<td width="51"><input name="kensaku2" type="image" id="kensaku2" onMouseOver="MM_swapImage(\'kensaku2\',\'\',\'/commonas/img/heder_btn_o.gif\',1)" onMouseOut="MM_swapImgRestore()" src="/commonas/img/heder_btn.gif" alt="検索" align="middle"></td>');
	document.write('					</tr>');
	document.write('				</form>');
	document.write('			</table>');
	document.write('		</td>');
	document.write('		<td width="145" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_GoodsCGI + '?ENTRY=bulk_input" class="btnKensaku"><strong>複数の商品番号から検索</strong></a></td>');
	document.write('		<td width="90" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_ServerName + '/guide/howtosearch.html" class="btnKensaku"><strong>検索の使い方</strong></a></td>');
	document.write('	</tr>');
	document.write('</table>');

	document.write('<table width="770" cellspacing="0" cellpadding="0" border="0" bgcolor="#CCCCCC">');
	document.write('	<tr>');
	document.write('		<td><img src="/commonas/img/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('	</tr>');
	document.write('</table>');
}

/*--------------------------------------------------------------
 検索窓表示（キーワード、価格）
--------------------------------------------------------------*/
function asnavi_PrintSearchPrice ( category_cd, middle_category_cd, dsp_flg ) {
	/* 検索結果一覧画面 */
	var asnavi_GoodsSearch  = asnavi_GoodsCGI + '?ENTRY=goods_list_search&GOODS_SEARCH=';
	if( !category_cd ){
		category_cd = '';
	}
	if( !middle_category_cd ){
		middle_category_cd = '';
	}
	if( !dsp_flg ){
		dsp_flg = '';
	}

	document.write('<img src="/commonas/img/akasugu_hede_01.gif" alt="" name="Image1" width="770" height="3" id="Image1"><br>');
	document.write('<table width="770" cellspacing="0" cellpadding="5" border="0" background="/commonas/img/heder_bg.gif" bgcolor="#ffffff">');
	document.write('	<form name="fSrchKey" method="POST" action="' + asnavi_GoodsSearch + 'keyword" ');
	document.write('onSubmit="if( this.KEYWORD.value==\'キーワードを入力\' ){ this.KEYWORD.value=\'\'; };">' );
	document.write('	<input type="hidden" name="CATEGORY_CD" value="' + category_cd + '">');
	document.write('	<input type="hidden" name="MIDDLE_CATEGORY_CD" value="' + middle_category_cd + '">');
	document.write('	<input type="hidden" name="dsp_flg" value="' + dsp_flg + '">');
	document.write('		<tr>');
	document.write('			<td width="1" valign="middle" align="left"><img src="/commonas/img/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('			<td valign="middle" align="left">');
	document.write('				<table border="0" cellpadding="1" cellspacing="0">');
	document.write('					<tr>');
	document.write('						<td valign="middle" align="left"><input name="KEYWORD" type="text" value="キーワードを入力" size="20" maxlength="35" ');
	document.write('onBlur="if( this.value==\'\' ){ this.value=\'キーワードを入力\'; };" ');
	document.write('onFocus="if( this.value==\'キーワードを入力\' ){ this.value=\'\'; };"></td>');
	document.write('						<td valign="middle" align="left" nowrap><img src="/commonas/img/heder_botoom07.gif" width="7" height="19" alt="" class="kNHeadArrow"></td>');
	document.write('						<td align="left" valign="middle" nowrap><p class="kensaku">さらに価格帯で</p></td>');
	document.write('						<td valign="middle" align="left"><input name="i_min_price" type="text" size="10" maxlength="13"></td>');
	document.write('						<td width="30" align="left" valign="middle"><p class="kensaku">円〜</p></td>');
	document.write('						<td valign="middle" align="left"><input name="i_max_price" type="text" size="10" maxlength="13"></td>');
	document.write('						<td align="left" valign="middle" nowrap><p class="kensaku">円</p></td>');
	document.write('						<td align="left" valign="middle"><img src="/commonas/img/heder_botoom07.gif" width="7" height="19" alt="" class="kNHeadArrow"></td>');
	document.write('						<td width="40" valign="middle" align="left"><input name="kensaku1" type="image" id="kensaku1" onMouseOver="MM_swapImage(\'kensaku1\',\'\',\'/commonas/img/heder_btn_o.gif\',1)" onMouseOut="MM_swapImgRestore()" src="/commonas/img/heder_btn.gif" alt="検索" align="middle"></td>');
	document.write('					</tr>');
	document.write('				</table>');
	document.write('			</td>');
	document.write('			<td width="145" valign="middle" align="left" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_GoodsCGI + '?ENTRY=bulk_input" class="btnKensaku"><strong>複数の商品番号から検索</strong></a></td>');
	document.write('			<td width="90" align="left" valign="middle" nowrap><img src="/commonas/img/basic_10.gif" width="5" height="8" alt="" class="gNHeadArrow"><a href="' + asnavi_ServerName + '/guide/howtosearch.html" class="btnKensaku"><strong>検索の使い方</strong></a></td>');
	document.write('		</tr>');
	document.write('	</form>');
	document.write('</table>');

	document.write('<table width="770" cellspacing="0" cellpadding="0" border="0" bgcolor="#CCCCCC">');
	document.write('	<tr>');
	document.write('		<td><img src="img/spacer.gif" width="1" height="1" alt=""></td>');
	document.write('	</tr>');
	document.write('</table>');

}


/* グランド左メニュー */
/* asnavi_PrintGrandLeft(カテゴリCD) */
function asnavi_PrintGrandLeft (category_cd) {
    asnavi_init();          /* 変数初期化 */
    asnavi_preloadImages(); /* 画像先読み */

    if (!category_cd) { category_cd = '00' }

    var lm_tokul = asnavi_ImageDir + '/lm_tokul.gif';

    var i = 0;
    var img;
    /* 特集メニュー */
    var toku_cd;
    var img_gif;
    for (i = 0; i < asnavi_Conf_Toku['_SORT'].length; i++ ) {
        toku_cd = asnavi_Conf_Toku['_SORT'][i];
        img = asnavi_Conf_Toku[toku_cd];

        img_gif = toku_cd == category_cd ? img['act'] : img['gif'];

        asnavi_printImage('lm_tokul.gif', 170, 1);
        document.write('<br>');

        document.write('<a href="' + img['link'] + '" '
            + 'onmouseout="asnavi_swapImgRestore();" '
            + 'onmouseover="asnavi_swapImage('
                + "'" + img['name'] + "','',"
                + "'" + asnavi_ImageDir + '/' + img['over'] + "',"
                + '1);"'
                + 'onClick="asnavi_setCookie( \'corner_kbn\', \'all\' );"'
                + '>');
        if(toku_cd == '5'){
             asnavi_printImage(img_gif, 170, 28, img['alt'], { border : 0, name : img['name'] });
        }else{
             asnavi_printImage(img_gif, 170, 25, img['alt'], { border : 0, name : img['name'] });
        }
        document.write('</a><br>');

    }

    document.write('<img src="/commonas/img/spacer.gif" width="1" height="13"><br>');
    document.write('<img src="/img/category_all.gif" width="170" height="24" alt="すべてのアイテムから探す">');
    document.write('<ul class="Menu">');

    for (i = 0; i < asnavi_Conf_Cat['_SORT'].length; i++) {
        cat_cd = asnavi_Conf_Cat['_SORT'][i];

        cat_info = asnavi_Conf_Cat[ cat_cd ];
        img_name = 'lm_' + i;
        var img_gif  = cat_cd == category_cd ? cat_info['act'] : cat_info['gif'];
        var img_h = cat_info['height'] || asnavi_Conf_Cat['_DEFAULT']['height'];

        if(cat_cd == '02' || cat_cd == '07' || cat_cd == '19'){
        document.write('<li class="Line02">');
        document.write('<a href="' + cat_info['link'] + '" '
                + 'onmouseout="asnavi_swapImgRestore();" '
                + 'onmouseover="asnavi_swapImage('
                    + "'" + img_name + "','',"
                    + "'" + asnavi_ImageDir + '/' + cat_info['over'] + "',"
                    + '1);" '
	            + 'onClick="asnavi_setCookie( \'corner_kbn\', \'all\' );"'
                + '>');
        asnavi_printImage(img_gif, 170, img_h, cat_info['alt'], { name : img_name, border : 0 });
        document.write('</a><br>');
        document.write('</li>');
        }else{
        document.write('<li class="Line01">');
        document.write('<a href="' + cat_info['link'] + '" '
                + 'onmouseout="asnavi_swapImgRestore();" '
                + 'onmouseover="asnavi_swapImage('
                    + "'" + img_name + "','',"
                    + "'" + asnavi_ImageDir + '/' + cat_info['over'] + "',"
                    + '1);" '
	            + 'onClick="asnavi_setCookie( \'corner_kbn\', \'all\' );"'
                + '>');
        asnavi_printImage(img_gif, 170, img_h, cat_info['alt'], { name : img_name, border : 0 });
        document.write('</a><br>');
        document.write('</li>');
        }
/*----------------------------------------------------------------------------/
/        if (cat_cd == category_cd) {
/            if (cat_info['subcat'].length > 0) {
/                asnavi_setSubcatLink(cat_cd);
/                document.write('<table width="170" border="0" cellspacing="0" cellpadding="0">');
/                var img_lm_u = '';
/                for (var j = 0; j < cat_info['subcat'].length; j++) {
/                    document.write('<tr>');
/                    if (j == cat_info['subcat'].length -1) {
/                        img_lm_u = 'lm_u02.gif'; 
/                        document.write('<td background="" '
/                            + 'width="20" valign="top">');
/                    }
/                    else {
/                        img_lm_u = 'lm_u01.gif';
/                        document.write('<td background="' + asnavi_ImageDir + '/lm_ubg.gif" '
/                            + 'width="20" valign="top">');
/                    }
/                
/                    document.write('<font size="2" class="baseZn">');
/                    asnavi_printImage(img_lm_u, 20, 18); 
/                    document.write('</font>');
/                    document.write('</td>');
/
/                    document.write('<td width="150">');
/                    document.write('<font size="2" class="baseZn">');
/                    document.write('<a href="' + cat_info['subcat'][j]['link'] + '">');
/                    document.write(cat_info['subcat'][j]['text']);
/                    document.write('</a>');
/                    document.write('</font>');
/                    document.write('</td>');
/
/                    document.write('</tr>');
/                    if (j < cat_info['subcat'].length -1) {
/                        document.write('<tr>');
/                        document.write('<td colspan="2">');
/                        asnavi_printImage('lm_ul.gif', 170, 1);
/                        document.write('</td>');
/                        document.write('</tr>');
/                    }
/
/                }
/                document.write('</table>');
/            }
/        }
/----------------------------------------------------------------------------*/
    }

        document.write('</ul>');

    /* ノウハウ */
    var img_gif = category_cd == 'know' ? asnavi_Conf_Toku['know']['act']
                                        : asnavi_Conf_Toku['know']['gif'];

    asnavi_printSpacer(185,1);

    document.write('<table width="170" border="0" cellspacing="0" cellpadding="10" '
        + 'bgcolor="#F7F7F7"' + asnavi_ImageDir + '/spacer.gif">');

    document.write('<tr>');
    document.write('<td align="center" valign="middle">');
    document.write('<a href="' + asnavi_Conf_Toku['know']['link'] + '" '
        + 'onmouseout="asnavi_swapImgRestore();" '
        + 'onmouseover="asnavi_swapImage('
            + "'" + asnavi_Conf_Toku['know']['name'] + "','',"
            + "'" + asnavi_ImageDir + '/' + asnavi_Conf_Toku['know']['over'] + "',"
            + '1);"'
            + 'onClick="asnavi_setCookie( \'corner_kbn\', \'all\' );"'
        + '>');
    asnavi_printImage(img_gif, 155, 37, asnavi_Conf_Toku['know']['alt'],
        { name : asnavi_Conf_Toku['know']['name'], border : 0 });
    document.write('</a>');
    document.write('</td>');
    document.write('</tr>');
    document.write('</table>');
}

/* 赤すぐグランドフッタ */
/* asnavi_PrintGrandFooter(ロゴURL,ページID); */
function asnavi_PrintGrandFooter (logo_url,p_id) {
    asnavi_init();          /* 変数初期化 */
    asnavi_preloadImages(); /* 画像先読み */

    /* フッタロゴ */
    var logo_img;
    if (logo_url) {
        logo_img = logo_url;
    }
    else {
        logo_img = asnavi_RecruitGIF;
    }

    /* -- フッタ出力 ------------------------------------------------------- */
    asnavi_printSpacer(1,10);
    document.write('<br>');
    document.write('<table border="0" cellspacing="0" cellpadding="0" width="770">');
    document.write('<tr>');
    document.write('<td colspan="5" bgcolor="#cccccc">');
    asnavi_printSpacer(1,1);
    document.write('</td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td width="10">');
    asnavi_printSpacer(1,3);
    document.write('</td>');
    document.write('<td width="770" colspan="3"></td>');
    document.write('<td width="10"></td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td width="10">');
    asnavi_printSpacer(10,1);
    document.write('</td>');
    document.write('<td colspan="4"><span class="baseZn"><font color="#cccccc">');

    /* 赤すぐ内リンク */
    for (var i = 0; i < asnavi_Conf_Footer['akasugu'].length; i++) {
        document.write('<a href="' + asnavi_Conf_Footer['akasugu'][i]["link"] + '" target="_guide">');
        document.write('<font color="#696969">');
        document.write(asnavi_Conf_Footer['akasugu'][i]["title"]);
        document.write('</font>');
        document.write('</a>');

        if (i < asnavi_Conf_Footer['akasugu'].length -1) {
            document.write('&nbsp;|&nbsp;');
        }
    }

    document.write('</font></span></td>');
    document.write('</tr>');

    /* 他シーンリンク */
    document.write('<tr>');
    document.write('<td width="10">');
    asnavi_printSpacer(10,1);
    document.write('</td>');
    document.write('<td width="450"><span class="baseZn"><font color="#000000">');

    for (var i = 0; i < asnavi_Conf_Footer['scene'].length; i++) {
        document.write('<a href="' + asnavi_Conf_Footer['scene'][i]["link"] + '" target="_blank">');
        document.write('<font color="#330099">');
        document.write(asnavi_Conf_Footer['scene'][i]["title"]);
        document.write('</font>');
        document.write('</a>');

        if (i < asnavi_Conf_Footer['scene'].length -1) {
            document.write(asnavi_Conf_Footer['scene'][i]["pause"]);
        }
    }

    document.write('</font></span></td>');

    /* ISIZE トップ */
    document.write('<td width="80" align="left">');
    document.write('<a href="' + asnavi_Conf_Footer['isize'][0]['link'] + '" target="_blank">');
    asnavi_printImage(asnavi_Conf_Footer['isize'][0]['img'], 70, 12, asnavi_Conf_Footer['isize'][0]['title'], { border : 0 });
    document.write('</a>');
    document.write('</td>');

    /* RECRUIT ロゴ */
    document.write('<td width="200" align="right">');
    asnavi_printImage(logo_img, 163, 25, 'RECRUIT');
    document.write('</td>');

    document.write('</tr>');
    document.write('</table>');

    /* ライン */
    document.write('<table width="770" border="0" cellspacing="0" cellpadding="0">');
    document.write('<tr>');
    document.write('<td bgcolor="#B3D7DE" height="5">');
    asnavi_printSpacer(1,5);
    document.write('</td>');
    document.write('</tr>');
    document.write('<tr>');
    document.write('<td bgcolor="#555555" height="2">');
    asnavi_printSpacer(1,2);
    document.write('</td>');
    document.write('</tr>');
    document.write('</table>');

    /* ビジョナリストログ出力 */
    if (p_id) {
        document.writeln('<SCRIPT language="javascript">var trace_p="' + p_id + '";</SCRIPT>');
    }
    else {
        document.writeln('<SCRIPT language="javascript">var trace_p="";</SCRIPT>');
    }
    document.writeln('<SCRIPT src="/vos/vos.js"></SCRIPT>');
}

/* 画像先読み */
function asnavi_preloadImages() { //v3.0
    if (asnavi_ImgLoaded) { return; }
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=asnavi_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    asnavi_ImgLoaded = true;
}

/* IMGタグ出力 */
function asnavi_printImage (gif, width, height, alt, opt) {
    var image_src = '';
    if (gif.charAt(0) == '/' || gif.substring(0, 7) == 'http://') {
        image_src = gif;
    }
    else {
        image_src = asnavi_ImageDir + '/' + gif;
    }
    document.write('<img');
    document.write(' src="'    + image_src + '"');
    document.write(' width="'  + width  + '"');
    document.write(' height="' + height + '"');
    document.write(' border="0"');
    if (alt) { document.write(' alt="' + alt + '"'); }
    if (opt) {
        for (var i in opt) {
            document.write(' ' + i + '="' + opt[i] + '"');
        }
    }
    document.write('>');
}

/* Cookie取得 */
function asnavi_getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {
    tmp1 = " " + document.cookie + ";";
    xx1 = xx2 = 0;
    len = tmp1.length;
    while (xx1 < len) {
        xx2 = tmp1.indexOf(";", xx1);
        tmp2 = tmp1.substring(xx1 + 1, xx2);
        xx3 = tmp2.indexOf("=");
        if (tmp2.substring(0, xx3) == key) {
            return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
        }
        xx1 = xx2 + 1;
    }
    return("");
}

/* Cookieセット */
function asnavi_setCookie (key, val, tmp) {
    tmp  = key + "=" + escape(val) + "; ";
    tmp += "path=/;";
    document.cookie = tmp;
}

function asnavi_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=asnavi_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function asnavi_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function asnavi_swapImage() { //v3.0
  var i,j=0,x,a=asnavi_swapImage.arguments;
  document.MM_sr = new Array;
  for (i=0;i<(a.length-2);i+=3) if ((x=asnavi_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* スペーサ表示 */
function asnavi_printSpacer (width, height, align) {
    document.write('<img src="' + asnavi_SpacerGIF + '" ');
    document.write('width="' + width + '" ');
    document.write('height="' + height + '" ');
    document.write('border="0" ');
    document.write('alt=""');
    if (align) {
        document.write(' align="' + align + '"');
    }
    document.write('>');
}

/* -- 変数初期化 ----------------------------------------------------------- */
function asnavi_init () {
    if (asnavi_Initialized) { return; }

    asnavi_setServerName();

    /*** 赤すぐnet トップ設定 ***/
    asnavi_Conf_As = {
        gif     : 'basic_07.gif',
        alt     : '赤すぐnet',
        color   : '',
        link    : asnavi_ServerName + '/',
        width   : 48,
        height  : 17,
        border  : 0
    };

    /*** コーナー設定 ***/
    asnavi_Conf_Top = {
        /* 赤すぐnet */
/*        top : {
            gif     : 'h_logo.gif',
            alt     : '赤すぐnet　http://www.akasugu.net',
            color   : '',
            link    : '/index.html',
            width   : 222,
            height  : 34
        },*/
        /* 妊すぐ */
        pre : {
            name    : 'ghnin',
            gif     : {
				all : 'btn_nin_no.gif',
				pre : 'btn_nin_o.gif',
				care : 'btn_nin_a.gif',
				kids : 'btn_nin_k.gif'
			},
            alt     : '妊すぐ',
            over    : 'btn_nin_o.gif',
            color   : '',
            link    : asnavi_ServerName + '/ninsugu/',
            width   : 257,
            height  : 46
        },
        /* 赤すぐ */
        care : {
            name    : 'ghaka',
            gif     : {
				all : 'btn_aka_no.gif',
				pre : 'btn_aka_n.gif',
				care : 'btn_aka_o.gif',
				kids : 'btn_aka_k.gif'
			},
            alt     : '赤すぐ',
            over    : 'btn_aka_o.gif',
            color   : '',
            link    : asnavi_ServerName + '/akasugu/',
            width   : 256,
            height  : 46
        },
        /* 赤すぐキッズ */
        kids : {
            name    : 'ghkid',
            gif     : {
				all : 'btn_kid_no.gif',
				pre : 'btn_kid_n.gif',
				care : 'btn_kid_a.gif',
				kids : 'btn_kid_o.gif'
			},
            alt     : '赤すぐキッズ',
            over    : 'btn_kid_o.gif',
            color   : '',
            link    : asnavi_ServerName + '/kids/',
            width   : 257,
            height  : 46
        },
        /** 表示順の設定 **/
        _SORT : [
            'pre',
            'care',
            'kids'
        ]
    };

    asnavi_Conf_Toku = {
        /* SASSY特集 */
        '1' : {
            name : 'lm_toku01',
            gif  : 'lm_toku01.gif',
            over : 'lm_toku01_on.gif',
            act  : 'lm_toku01_act.gif',
            alt  : '',
            link : asnavi_LocationCGI + '?LINK_CD=AKA01&X_CD=GRANDLEFT'
        },
        /* おもちゃ特集 */
        '2' : {
            name : 'lm_toku02',
            gif  : 'lm_toku02.gif',
            over : 'lm_toku02_on.gif',
            act  : 'lm_toku02_act.gif',
            alt  : '',
            link : asnavi_LocationCGI + '?LINK_CD=AKA02&X_CD=GRANDLEFT'
        },
        /* アパレル特集 */
        '3' : {
            name : 'lm_toku03',
            gif  : 'lm_toku03.gif',
            over : 'lm_toku03_on.gif',
            act  : 'lm_toku03_act.gif',
            alt  : '',
            link : asnavi_LocationCGI + '?LINK_CD=AKA03&X_CD=GRANDLEFT'
        },
        /* 売れ筋ベスト30 */
        '4' : {
            name : 'lm_ure',
            gif  : 'lm_ure.gif',
            over : 'lm_ure_on.gif',
            act  : 'lm_ure_act.gif',
            alt  : '',
            link : asnavi_LocationCGI + '?LINK_CD=AKA04&X_CD=GRANDLEFT'
        },
        /* 限定発売セレクション */
        '5' : {
            name : 'lm_net',
            gif  : 'lm_net.gif',
            over : 'lm_net.gif',
            act  : 'lm_net_act.gif',
            alt  : '',
            link : asnavi_LocationCGI + '?LINK_CD=SE001&X_CD=GRANDLEFT'
        },
        /* おたすけノウハウ */
        know : {
            name : 'lm_know',
            gif  : 'lm_know.gif',
            over : 'lm_know_on.gif',
            act  : 'lm_know_act.gif',
            alt  : '出産〜育児 おたすけノウハウ',
            link : asnavi_LocationCGI + '?LINK_CD=AKA11&X_CD=GRANDLEFT'
        },
        _SORT : [
            '1', '2', '3', '4', '5'
        ]
    };

    /*** カテゴリ別設定 ***/
    asnavi_Conf_Cat = {
        /* マタニティウェア */
        '01' : {
            alt  : 'マタニティウェア',
            link : asnavi_LocationCGI + '?LINK_CD=C1001&X_CD=GRANDLEFT',
            gif  : 'class_01.gif',
            over : 'class_01_on.gif',
            act  : 'class_01_act.gif'
        },
        /* マタニティ下着 */
        '02' : {
            alt  : 'マタニティ下着',
            link : asnavi_LocationCGI + '?LINK_CD=C1002&X_CD=GRANDLEFT',
            gif  : 'class_02.gif',
            over : 'class_02_on.gif',
            act  : 'class_02_act.gif'
        },
        /* ベビー＆キッズ肌着 */
        '03' : {
            alt  : 'ベビー＆キッズ 肌着',
            link : asnavi_LocationCGI + '?LINK_CD=C1003&X_CD=GRANDLEFT',
            gif  : 'class_03.gif',
            over : 'class_03_on.gif',
            act  : 'class_03_act.gif'
        },
        /* ベビー＆キッズお洋服 */
        '04' : {
            alt  : 'ベビー＆キッズ お洋服',
            link : asnavi_LocationCGI + '?LINK_CD=C1004&X_CD=GRANDLEFT',
            gif  : 'class_04.gif',
            over : 'class_04_on.gif',
            act  : 'class_04_act.gif'
        },
        /* ベビー＆キッズ 靴・ソックス・帽子 */
        '05' : {
            alt : 'ベビー＆キッズ 靴・ソックス・帽子',
            link : asnavi_LocationCGI + '?LINK_CD=C1005&X_CD=GRANDLEFT',
            gif  : 'class_05.gif',
            over : 'class_05_on.gif',
            act  : 'class_05_act.gif'
        },
        /* ベビー＆キッズ 甚平・浴衣・水着 */
        '06' : {
            alt  : 'ベビー＆キッズ 甚平・浴衣・水着',
            link : asnavi_LocationCGI + '?LINK_CD=C1006&X_CD=GRANDLEFT',
            gif  : 'class_06.gif',
            over : 'class_06_on.gif',
            act  : 'class_06_act.gif'
        },
        /* ベビー＆キッズ パジャマ */
        '07' : {
            alt  : 'ベビー＆キッズ パジャマ',
            link : asnavi_LocationCGI + '?LINK_CD=C1007&X_CD=GRANDLEFT',
            gif  : 'class_07.gif',
            over : 'class_07_on.gif',
            act  : 'class_07_act.gif'
        },
        /* ママ・パパのお洋服・下着 */
        '08' : {
            alt  : 'ママ・パパのお洋服・下着',
            link : asnavi_LocationCGI + '?LINK_CD=C1008&X_CD=GRANDLEFT',
            gif  : 'class_08.gif',
            over : 'class_08_on.gif',
            act  : 'class_08_act.gif'
        },
        /* ママ・パパとお揃い */
        '09' : {
            alt  : 'ママ・パパとお揃い',
            link : asnavi_LocationCGI + '?LINK_CD=C1009&X_CD=GRANDLEFT',
            gif  : 'class_09.gif',
            over : 'class_09_on.gif',
            act  : 'class_09_act.gif'
        },
        /* おもちゃ・知育グッズ */
        '10' : {
            alt  : 'おもちゃ・知育グッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1010&X_CD=GRANDLEFT',
            gif  : 'class_10.gif',
            over : 'class_10_on.gif',
            act  : 'class_10_act.gif'
        },
        /* セーフティ・ケアグッズ */
        '11': {
            alt  : 'セーフティ・ケアグッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1011&X_CD=GRANDLEFT',
            gif  : 'class_11.gif',
            over : 'class_11_on.gif',
            act  : 'class_11_act.gif'
        },
        /* 授乳・お食事グッズ */
        '12' : {
            alt  : '授乳・お食事グッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1012&X_CD=GRANDLEFT',
            gif  : 'class_12.gif',
            over : 'class_12_on.gif',
            act  : 'class_12_act.gif'
        },
        /* バス・おむつ・トイレグッズ */
        '13': {
            alt  : 'バス・おむつ・トイレグッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1013&X_CD=GRANDLEFT',
            gif  : 'class_13.gif',
            over : 'class_13_on.gif',
            act  : 'class_13_act.gif'
        },
        /* 寝具・家具・小物 */
        '14' : {
            alt  : '寝具・家具・小物',
            link : asnavi_LocationCGI + '?LINK_CD=C1014&X_CD=GRANDLEFT',
            gif  : 'class_14.gif',
            over : 'class_14_on.gif',
            act  : 'class_14_act.gif'
        },
        /* ベビーカー・抱っこひも */
        '15' : {
            alt  : 'ベビーカー・抱っこひも',
            link : asnavi_LocationCGI + '?LINK_CD=C1015&X_CD=GRANDLEFT',
            gif  : 'class_15.gif',
            over : 'class_15_on.gif',
            act  : 'class_15_act.gif'
        },
        /* アウトドア・レイングッズ */
        '16' : {
            alt  : 'アウトドア・レイングッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1016&X_CD=GRANDLEFT',
            gif  : 'class_16.gif',
            over : 'class_16_on.gif',
            act  : 'class_16_act.gif'
        },
        /* 通園・入園・入学グッズ */
        '17' : {
            alt  : '通園・入園・入学グッズ',
            link : asnavi_LocationCGI + '?LINK_CD=C1017&X_CD=GRANDLEFT',
            gif  : 'class_17.gif',
            over : 'class_17_on.gif',
            act  : 'class_17_act.gif'
        },
        /* メモリアルグッズ・記念品 */
        '18' : {
            alt  : 'メモリアルグッズ・記念品',
            link : asnavi_LocationCGI + '?LINK_CD=C1018&X_CD=GRANDLEFT',
            gif  : 'class_18.gif',
            over : 'class_18_on.gif',
            act  : 'class_18_act.gif'
        },
        /* マザーズバッグ・母子手帳ケース */
        '19' : {
            alt  : 'マザーズバッグ・母子手帳ケース',
            link : asnavi_LocationCGI + '?LINK_CD=C1019&X_CD=GRANDLEFT',
            gif  : 'class_19.gif',
            over : 'class_19_on.gif',
            act  : 'class_19_act.gif'
        },
        /* 美容・健康 */
        '20' : {
            alt  : '美容・健康',
            link : asnavi_LocationCGI + '?LINK_CD=C1020&X_CD=GRANDLEFT',
            gif  : 'class_20.gif',
            over : 'class_20_on.gif',
            act  : 'class_20_act.gif'
        },
        /* 収納・インテリア・雑貨・家電 */
        '21' : {
            alt  : '収納・インテリア・雑貨・家電',
            link : asnavi_LocationCGI + '?LINK_CD=C1021&X_CD=GRANDLEFT',
            gif  : 'class_21.gif',
            over : 'class_21_on.gif',
            act  : 'class_21_act.gif'
        },
        /* 家事グッズ・その他 */
        '22' : {
            alt  : '家事グッズ・その他',
            link : asnavi_LocationCGI + '?LINK_CD=C1022&X_CD=GRANDLEFT',
            gif  : 'class_22.gif',
            over : 'class_22_on.gif',
            act  : 'class_22_act.gif'
        },

        /* 表示順の設定 */
        _SORT : [
            '01','02','03','04','05','06','07','08','09','10',
            '11','12','13','14','15','16','17','18','19','20','21','22'
        ],
        _DEFAULT : {
            width : 170,
            height : 25
        }
    };

    asnavi_Conf_Footer = {
        akasugu : [
            {
                title : 'サイトに関するお問い合わせ',
                link : asnavi_ServerName + '/enquiry.html'
            },
            {
                title : '通販・配達について',
                link  : asnavi_ServerName + '/goods/guide01.html'
            },
            {
                title : 'プライバシーポリシー',
                link  : asnavi_ServerName + '/guide/privacy.html'
            },
            {
                title : 'ご利用規約',
                link  : asnavi_ServerName + '/guide/agreement.html'
            }
        ],
        scene : [
            {
                /* 住宅売買(ナビ) */
                title : '住まいを買う',
                link  : 'http://www.jj-navi.com',
                pause : '・'
            },
            {
                /* 住宅賃貸(フォレント) */
                title : '借りる',
                link  : 'http://www.forrent.jp/',
                pause : ' | '
            },
            {
                /* 国内旅行 */
                title : '国内旅行',
                link  : 'http://www.jalan.net/',
                pause : ' | '
            },
            {
                /* 海外旅行 */
                title : '海外旅行',
                link  : 'http://www.ab-road.net/',
                pause : ' | '
            },
            {
                /* 結婚 */
                title : '結婚',
                link  : 'http://zexy.net/',
                pause : ' | '
            },
            {
                /* 資格・おケイコ */
                title : '資格・おケイコ',
                link  : 'http://www.keikotomanabu.net/',
                pause : ' | '
            },
            {
                /* クルマ */
                title : 'クルマ',
                link  : 'http://www.carsensor.net/',
                pause : ' | '
            },
            {
                /* 仕事 */
                title : '仕事',
                link  : 'http://www.isize.com/work/',
                pause : ' | '
            },
            {
                /* 進学 */
                title : '進学',
                link  : 'http://shingakunet.com/',
                pause : ''
            }
        ],
        isize : [
            {
                /* ISIZE トップ */
                title : 'ISIZE トップ',
                link  : 'http://www.isize.com',
                img   : '/common/parts/isize_top.gif'
            }
        ]
    };

    asnavi_Initialized = true;
}

function asnavi_setServerName () {
    if (document.domain.match(/^(www\.)?akasugu\.net$/)) {
        asnavi_ServerName  = 'http://akasugu.net';
        asnavi_LocationCGI = asnavi_ServerName + asnavi_LocationCGI
        asnavi_GoodsCGI    = asnavi_ServerName + asnavi_GoodsCGI
    }
}
/*-----------------------------------------------------------------------/
/function asnavi_setSubcatLink (category_cd) {
/     linkのセット 
/    var subcategory = asnavi_Conf_Cat[category_cd]['subcat'];
/    for (var i=0;i<subcategory.length;i++) {
/        asnavi_Conf_Cat[category_cd]['subcat'][i]['link']
/            = asnavi_GoodsCGI + '?ENTRY=goods_list_category&CATEGORY_CD=' + category_cd
/            + '&MIDDLE_CATEGORY_CD=' + subcategory[i]["middle_category_cd"];
/    }
/}
/-------------------------------------------------------------------------*/

