//*********************************************************************************************
//*	ファイル名：YSHeaderFooter.js
//*		ヘッダーやフッターのHTMLを出力する
//*		Copyright(C) 2009 株式会社ユーキソフト
//*********************************************************************************************


////////// コンスタント値 //////////

//*********************************************************************************************
//	YSHeaderFooter_Output_Header()
//	機能：ヘッダー出力
//	引数：なし
//	戻値：なし
//*********************************************************************************************
function YSHeaderFooter_Output_Header()
{


	document.write('<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
    document.write('<td height="32" align="center" valign="middle">');
	document.write('<table width="750" height="43" border="0" cellpadding="0" cellspacing="0">');
    document.write('<tr>');
    document.write('<td width="82" height="43" align="center" valign="middle">');
	document.write('<img src="/images/logo_yukisoft2010.png" alt="(株)ユーキソフト" width="66" height="40">');
	document.write('</td>');
	document.write('<td width="209" align="left" valign="bottom" style="font-size:120%; font-weight: bold;">');
	document.write('株式会社ユーキソフト</td>');
	document.write('<td width="459" align="left" valign="bottom" style="font-size:80%; ">');
	document.write('ガソリンスタンド・タクシー業向け業種別ソフトウェア開発・販売<br>');
	document.write('高知県中西部地域ポータルサイト【満天土佐】企画・運営／ホームページ制作</td>');
	document.write('</tr>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('<tr>');

	document.write('<td height="29" align="center" valign="middle">');

	document.write('<a href="/index.shtml" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'home\',\'\',\'/images/menu/on_index_home.png\',1)">');
	document.write('<img src="/images/menu/index_home.png" alt="ホーム " name="home" border="0">');
	document.write('</a>');

	document.write('<a href="/goods/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'seihin\',\'\',\'/images/menu/on_index_seihin.png\',1)">');
	document.write('<img src="/images/menu/index_seihin.png" alt="製品紹介" name="seihin" border="0">');
	document.write('</a>');

	document.write('<a href="/support/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'suport\',\'\',\'/images/menu/on_index_saport.png\',1)">');
	document.write('<img src="/images/menu/index_saport.png" alt="サポート" name="suport" border="0">');
	document.write('</a>');

	document.write('<a href="/faq/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'FAQ\',\'\',\'/images/menu/on_index_faq.png\',1)">');
	document.write('<img src="/images/menu/index_faq.png" alt="FAQ" name="FAQ" border="0">');
	document.write('</a>');

	document.write('<a href="/supply/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'saprai\',\'\',\'/images/menu/on_index_saprai.png\',1)">');
	document.write('<img src="/images/menu/index_saprai.png" alt="サプライ商品" name="saprai" border="0">');
	document.write('</a>');

	document.write('<a href="/partner/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'hanbai\',\'\',\'/images/menu/on_index_hanbai.png\',1)">');
	document.write('<img src="/images/menu/index_hanbai.png" alt="販売パートナー" name="hanbai" border="0">');
	document.write('</a>');

	document.write('<a href="/profile/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'kaisha\',\'\',\'/images/menu/on_index_kaisha.png\',1)">');
	document.write('<img src="/images/menu/index_kaisha.png" alt="会社案内" name="kaisha" border="0">');
	document.write('</a>');

	document.write('<a href="/YSquestion.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'toi\',\'\',\'/images/menu/on_index_toi.png\',1)">');
	document.write('<img src="/images/menu/index_toi.png" alt="お問い合わせ" name="toi" border="0">');
	document.write('</a>');

	document.write('<a href="/links/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'link\',\'\',\'/images/menu/on_index_link.png\',1)">');
	document.write('<img src="/images/menu/index_link.png" alt="リンク" name="link" border="0">');
	document.write('</a>');

	document.write('<a href="/sitemap/index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'sitemap\',\'\',\'/images/menu/on_index_sitemap.png\',1)">');
	document.write('<img src="/images/menu/index_sitemap.png" alt="サイトマップ" name="sitemap" border="0">');
	document.write('</a>');
	document.write('</td></tr></table><br>');

}

//*********************************************************************************************
//	YSHeaderFooter_Output_Footer()
//	機能：フッター出力
//	引数：なし
//	戻値：なし
//*********************************************************************************************
function YSHeaderFooter_Output_Footer()
{
	document.write('<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td height="60" align="center" valign="middle" background="/images/line.png">');
	document.write('<table width="750" height="62" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td height="32" align="center" valign="middle"><font size="2">');
	document.write('Copyright &copy; 2000-2010　株式会社ユーキソフト〒789-1301 高知県高岡郡中土佐町久礼2550-11');
	document.write('</font><font size="3"><br>');
	document.write('<font size="2">ご質問等ございましたらお気軽にお問合せ下さい。');
	document.write('TEL：0889-52-2717 FAX：0889-52-3551 E-mail：<a href="mailto:support@yukisoft.co.jp">');
	document.write('support@yukisoft.co.jp</a></font></font></td>');
	document.write('</tr><tr>');
	document.write('<td align="center" valign="middle">');
	document.write('<table width="750" height="30" border="0" cellpadding="0" cellspacing="0">');
    document.write('<tr>');
	document.write('<td width="97" height="30" align="center" valign="middle">');
	document.write('<a href="http://www.mantentosa.com/" target="_blank">');
	document.write('<img src="/images/logo_mantentosa.png" alt="満天土佐" width="79" height="26" border="0"></a></td>');
	document.write('<td width="653" align="left" valign="middle"><font size="2">土佐の高知、');
	document.write('<a href="http://www.mantentosa.com/" target="_blank">高知県中西部密着地域ポータルサイト【満天土佐】</a>');
	document.write('（中土佐町・須崎市・津野町・梼原町などの観光宿泊・イベント・釣り・キャンプ場・専門店・');
	document.write('特産品・四万十川・大正町市場・天狗高原・黒潮本陣・鰹タタキなど情報満載</font></td></tr></table></td>');
	document.write('</tr></table></td></tr></table>');

}

function MM_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 MM_findObj(n, d) { //v4.01
	
	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 = MM_findObj(n, d.layers[i].document);
	}

	if (!x && d.getElementById) {
		x = d.getElementById(n);
	}

	return x;
}

function MM_swapImage() { //v3.0
	
	var i, j = 0, x, a = MM_swapImage.arguments;

	document.MM_sr = new Array;

	for (i = 0; i < (a.length - 2); i += 3) {
		if ((x = MM_findObj(a[i])) != null) {
			document.MM_sr[j++] = x;
			if (!x.oSrc) {
				x.oSrc = x.src;
				x.src = a[i+2];
			}
		}
	}
}
