/*
 * KEYUCA
 * フッター記述用JavaScript
 */

/* 階層を整形 */
function makeStep(step) {
	stepPath = "";
	
	for(i = 0; i < (step - 1); i ++)
		stepPath += "../";
	
	return stepPath;
}

/* フッターを記述
 * step: 階層 （/index.htm が 1） */
function insFooter(step) {
	path = makeStep(step);
	
	document.write("<div id=\"navigation\">");
	document.write("<ul>");
/*	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "whatsnew/\">新着</a></li>"); */
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"http://www.keyuca.com/sitemap/\" target=\"sitemap\" onClick=\"sub01('http://www.keyuca.com/sitemap/')\">サイトマップ</a></li>");
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"http://www.kawajun.co.jp/\" target=\"_blank\">会社概要</a></li>");
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "contact/\">お問い合わせ</a></li>");
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "policy/\">個人情報</a></li>");
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "wp/\">壁紙プレゼント</a></li>");
	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "whatsnew/\"><font class=\"s02\">新着情報</font></a></li>");
//	document.write("<li class=\"s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "rss/ticker.rdf/\">RSS</a></li>");
	document.write("</ul>");
	document.write("</div>");
	document.write("<div id=\"copyright\" class=\"s01\"><font size=\"1\" style=\"font-size:10px;\" color=\"#999999\">Copyright (C) <a href=\"http://www.kawajun.co.jp/\" target=\"_blank\">KAWAJUN Co., Ltd.</a> All Rights Reserved.</font></div>");
	//document.write("<div class=\"navigation02 s01\"><img src=\"" + path + "img/link.gif\" width=\"7\" height=\"7\"><a href=\"" + path + "whatsnew/index.htm#316\">12月末まで、各店にて「ダイニングフェア」開催中です！</a></div>");
//	document.write("<p><a href=\"http://www.keyuca.com/special/mother/\" onClick=\"sub28('http://www.keyuca.com/special/mother/')\" target=\"special23\"><img src=\"" + path + "img/mother.gif\" width=\"760\" height=\"40\" border=\"0\" alt=\"母の日特集はこちらから\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/father.html\"><img src=\"" + path + "img/father2010.jpg\" width=\"760\" height=\"110\" border=\"0\" alt=\"ケユカ Yahoo!店の父の日ギフト\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"20\"><br><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"10\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/index.html\"><img src=\"" + path + "img/autumnsale10.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"Yahoo！店限定 オータムセール開催\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/index.html\"><img src=\"" + path + "img/newyear2011.jpg\" width=\"760\" height=\"120\" border=\"0\" alt=\"Yahoo！店 年末年始セール開催\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"5\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/\"><img src=\"" + path + "img/spring2011.jpg\" width=\"760\" height=\"120\" border=\"0\" alt=\"Yahoo！店新生活セール\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/82640-x.html\"><img src=\"" + path + "img/rare-cheese-x.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"ケユカYahoo！店でしか買えないクリスマスケーキ\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/82640.html\"><img src=\"" + path + "img/rare-cheese.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"Yahoo！店限定 ふわふわレアチーズ ブルーベリー\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/b6dbb5dea5.html\"><img src=\"" + path + "img/summer2011_02.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"ケユカYaoo！店のサマーセール開催中！\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/\"><img src=\"" + path + "img/autumn2011.jpg\" width=\"760\" height=\"105\" border=\"0\" alt=\"ケユカ Yahoo！店のオータムセール\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/a5bba1bca5.html\"><img src=\"" + path + "img/48only201112.gif\" width=\"760\" height=\"120\" border=\"0\" alt=\"Yahoo！店限定 48時間セール\"></a></p>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/a5e9a5c3a5.html\"><img src=\"" + path + "img/xmas2011.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"Yahoo！店限定 CHRISTMAS カード＆タグサービス\"></a></p>");

//	document.write("<a href=\"http://store.shopping.yahoo.co.jp/keyuca/\"><img src=\"" + path + "img/5000yen2011.gif\" width=\"760\" height=\"110\" border=\"0\" alt=\"1回のお買い物金額合計が税込5,000円以上で何回でも送料無料！\"></a>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/fuku2012.html\"><img src=\"" + path + "img/fuku2012.jpg\" width=\"760\" height=\"100\" border=\"0\" alt=\"2012年 KEYUCA福袋\"></a><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br></p>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/\"><img src=\"" + path + "img/wintersale2011.gif\" width=\"760\" height=\"120\" border=\"0\" alt=\"Yahoo！店オリジナル☆ウインターセール\"></a><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br></p>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/year-end2011.html\"><img src=\"" + path + "img/year-end2011.jpg\" width=\"760\" height=\"120\" border=\"0\" alt=\"ケユカ Yahoo！店のみ 歳末大感謝祭セール\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

//	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/\"><img src=\"" + path + "img/special-month2011.gif\" width=\"760\" height=\"120\" border=\"0\" alt=\"Yahoo！店 Special Monthly\"></a></p><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br>");

	document.write("<p><a href=\"http://store.shopping.yahoo.co.jp/keyuca/a5d0a5eca5.html\"><img src=\"" + path + "img/valentaine2012.gif\" width=\"760\" height=\"100\" border=\"0\" alt=\"KEYUCAオリジナル バレンタインギフト特集\"></a><img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"15\"><br></p>");

//	document.write("<img src=\"" + path + "img/space10.gif\" width=\"10\" height=\"25\"><br>");

}


/* 検索窓を記述
 * step: 階層 （/index.htm が 1） */
function insSearchBox(step) {
	path = makeStep(step);
	
	jQuery_write();
	nw_suggest_write();
	search_box_write();

	function jQuery_write(){
		document.write('<scr'+'ipt type="text/javascr' + 'ipt" src="http://img.newswatch.jp/snp/js/lib/jquery-1.4.3.js"></scr' +'ipt>');
	}
	function nw_suggest_write(){
		document.write('<scr'+'ipt type="text/javascr' + 'ipt" src="http://img.newswatch.jp/snp/js/nw_suggest_keyuca_sg.js" ></scr' + 'ipt>');
	}
	function search_box_write(){
		document.write("<form name=\"search\" id=\"search\" action=\"http://search-sitenaviplus2.fresheye.com/\">");
		document.write("<p id=\"formSearch\">");
		document.write("<input name=\"kw\" id=\"kw\" type=\"text\" value=\"\">");
		document.write("<input id=\"button\" type=\"image\" src=\"" + path + "img/search.gif\" alt=\"検索\">");
		document.write("<input type=\"hidden\" name=\"cs\" value=\"sjis\">");
		document.write("<input type=\"hidden\" name=\"ord\" value=\"s\">");
		document.write("<input type=\"hidden\" name=\"id\" value=\"25622\">");
		document.write("</p>");
		document.write("</form>");
	}
}

