//*************************************************
//*sonton食品ホームページ
//*共通モジュール
//*
//*
//*************************************************



//*************************************************
//*関数：サイドメニュー関数
//*	
//*引数　：コンテンツフォルダ名称
//*	
//*作成　：2003/1/10
//*作成者：y.iijima
//*修正　：2003/01/20
//*修正者：S.Tonouchi 	CGIからのパス対応
//*修正　：2003/01/27
//*修正者：S.Tonouchi 	トレンドニュースのリンク先修正
//*修正　：2003/01/29
//*修正者：S.Tonouchi 	11_healthyのリンク先修正
//*修正　：2003/01/29
//*修正者：S.Tonouchi 	家庭用製品のＦカップ製品とＰカップ製品の順番入れ替え
//*修正　：2003/02/05
//*修正者：t.ninagawa 	家庭用製品新製品情報の表記修正
//*修正　：2003/02/20
//*修正者：S.Tonouchi		家庭用製品のリンクを修正 「href="./"」 → 「href="./index.html"」
//*修正　：2003/02/20
//*修正者：t.ninagawa	新着情報　画像表示幅を修正
//*修正　：2003/02/27
//*修正者：t.ninagawa	通信販売・リクルートへのリンクをコメントアウト
//*修正　：2003/04/28
//*修正者：Y.Iijima	通信販売リンクコメントをコメントアウト
//*修正　：2003/05/26
//*修正者：t.ninagawa	リクルートへのリンクを復活
//*修正　：2004/04/09
//*修正者：Y.Iijima	リクルートへ関連ページ復活
//*修正　：2007/08/14
//*修正者：S.npguchi	決算公告削除
//*
//*************************************************
function sidemenu_cmn(p_val) {

lname = location.pathname;
path_cgi = "";
path_html = "";

if (p_val=='00_top'){
	if (lname.match(/cgi-bin/i)){	//今CGIだったら
		path_cgi = "";
		path_html = "";
	}else{												//今HTMLだったら
		path_cgi = "./cgi-bin/";
		path_html = "./";
	}
} else {
	if (lname.match(/cgi-bin/i)){	//今CGIだったら
		path_cgi = "";
		path_html = "../";
	}else{												//今HTMLだったら
		path_cgi = "../cgi-bin/";
		path_html = "../";
	}
}

//ここからサイドメニューテーブル構造
document.write ('<table border="0" cellspacing="0" cellpadding="0" width="120">');

//00_top設定
document.write ('<tr>');
document.write ('<td width="100%" align="right">');

//HTML記載のパスは相対で記入。各呼出元コンテンツからの相対パス。
if(p_val=='00_top') {
	document.write ('<a target="_top" href="./">');
	document.write ('<img border="0" src="./images_com/sidemenu/00_top2.gif" width="63" height="12">');
} else {
	document.write ('<a target="_top" href="../">');
	document.write ('<img border="0" src="../images_com/sidemenu/00_top.gif" width="63" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

document.write ('<tr>');
document.write ('<td width="100%" height="15" align="right">');
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_spacer/15_15.gif" width="15" height="15">');
} else {
	document.write ('<img border="0" src="../images_spacer/15_15.gif" width="15" height="15">');
}
document.write ('</td>');
document.write ('</tr>');

//01_new設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_cgi + '01_whatsnewlist.cgi">');
	document.write ('<img border="0" src="./images_com/sidemenu/01_new.gif" width="51" height="12">');
} else if (p_val=='01_new') {
	document.write ('<a target="_top" href="' + path_cgi + '01_whatsnewlist.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/01_new2.gif" width="51" height="12">');
} else {
	document.write ('<a target="_top" href="' + path_cgi + '01_whatsnewlist.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/01_new.gif" width="51" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

document.write ('<tr>');
document.write ('<td width="100%" height="15" align="right">');
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_spacer/15_15.gif" width="15" height="15">');
} else {
	document.write ('<img border="0" src="../images_spacer/15_15.gif" width="15" height="15">');
}
document.write ('</td>');
document.write ('</tr>');


//product_home見出し設定
document.write ('<tr>');
document.write ('<td width="100%" align="right">');
//HTML記載のパスは相対で記入。各呼出元コンテンツからの相対パス。
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_com/sidemenu/subtitle_product_home.gif" width="120" height="12">');
} else {
	document.write ('<img border="0" src="../images_com/sidemenu/subtitle_product_home.gif" width="120" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

//10_product_home設定
if(p_val=='00_top') {
	document.write ('<tr>');
	document.write ('<td width="100%" align="right" height="18">');
	document.write ('<a target="_top" href="' + path_html + '10_product_home/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/10_product_home.gif" width="62" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
	
} else if (p_val=='10_product_home') {
	document.write ('<tr>');
	document.write ('<td width="100%" align="right" height="18">');
	if (lname.match(/cgi-bin/i)){	//今CGIだったら
		document.write ('<a target="_top" href="' + path_html + '10_product_home/index.html">');
	} else {
		document.write ('<a target="_top" href="./index.html">');
	}
	document.write ('<img border="0" src="../images_com/sidemenu/10_product_home2.gif" width="62" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
	
	document.write ('<tr>');
		document.write ('<td width="100%" align="right" class="font11">');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index_new.cgi">新製品情報</a><br>');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index.cgi?20">Ｆカップ製品</a><br>');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index.cgi?21">Ｐカップ製品</a><br>');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index.cgi?30">瓶詰製品</a><br>');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index.cgi?40">やくらいの里</a><br>');
			document.write ('<a target="_top" href="' + path_cgi + '10_product_index.cgi?19">その他製品</a><br>');
		document.write ('</td>');
	document.write ('</tr>');
} else {
	document.write ('<tr>');
	document.write ('<td width="100%" align="right" height="18">');
	document.write ('<a target="_top" href="' + path_html + '10_product_home/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/10_product_home.gif" width="62" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
}

//11_healthy設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '11_healthy/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/11_healthy.gif" width="70" height="12">');
} else if(p_val=='11_healthy') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/11_healthy2.gif" width="70" height="12">');
} else {
	document.write ('<a target="_top" href="' + path_html + '11_healthy/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/11_healthy.gif" width="70" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

//12_mailorder設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="https://secure11.hs.kddi.ne.jp/sonton.co.jp/cgi-bin/12_index.cgi">');
	document.write ('<img border="0" src="./images_com/sidemenu/12_mailorder.gif" width="49" height="11">');
} else if (p_val=='12_mailorder') {
	document.write ('<a target="_top" href="https://secure11.hs.kddi.ne.jp/sonton.co.jp/cgi-bin/12_index.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/12_mailorder2.gif" width="49" height="11">');
} else {
	document.write ('<a target="_top" href="https://secure11.hs.kddi.ne.jp/sonton.co.jp/cgi-bin/12_index.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/12_mailorder.gif" width="49" height="11">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

//13_qa設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '13_qa/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/13_qa.gif" width="28" height="10">');
} else if (p_val=='13_qa') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/13_qa2.gif" width="28" height="10">');
} else {
	document.write ('<a target="_top" href="' + path_html + '13_qa/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/13_qa.gif" width="28" height="10">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

document.write ('<tr>');
document.write ('<td width="100%" height="15" align="right">');
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_spacer/15_15.gif" width="15" height="15">');
} else {
	document.write ('<img border="0" src="../images_spacer/15_15.gif" width="15" height="15">');
}
document.write ('</td>');
document.write ('</tr>');

//product_business見出し設定
document.write ('<tr>');
document.write ('<td width="100%" align="right">');
//HTML記載のパスは相対で記入。各呼出元コンテンツからの相対パス。
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_com/sidemenu/subtitle_product_business.gif" width="120" height="12">');
} else {
	document.write ('<img border="0" src="../images_com/sidemenu/subtitle_product_business.gif" width="120" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

//20_product_business設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '20_product_business/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/20_product_business.gif" width="62" height="11">');
	document.write ('</a>');
} else if (p_val=='20_product_business') {


	if (lname.match(/cgi-bin/i)){	//今CGIだったら
		document.write ('<a target="_top" href="' + path_html + '20_product_business/index.html">');
	} else {
		document.write ('<a target="_top" href="./index.html">');
	}
	document.write ('<img border="0" src="../images_com/sidemenu/20_product_business2.gif" width="62" height="11">');
	document.write ('</a>');
	document.write ('<tr>');
	document.write ('<td width="100%" align="right" class="font11">');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?99">新製品情報</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?00">フラワーペースト</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?07">シート</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?02">油脂加工品</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?04">フルーツフィリング</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?01">アンフィリング</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?05">デリカフィリング</a><br>');
	document.write ('<a target="_top" href="' + path_cgi + '20_product_index.cgi?06">トッピング</a><br>');
	document.write ('</td>');
	document.write ('</tr>');
} else {
	document.write ('<a target="_top" href="' + path_html + '20_product_business/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/20_product_business.gif" width="62" height="11">');
	document.write ('</a>');
}
document.write ('</td>');
document.write ('</tr>');

//21_trend設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_cgi + '21_trend.cgi">');
	document.write ('<img border="0" src="./images_com/sidemenu/21_trend.gif" width="99" height="22">');
} else if (p_val=='21_trend') {
	document.write ('<a target="_top" href="' + path_cgi + '21_trend.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/21_trend2.gif" width="99" height="22">');
} else {
	document.write ('<a target="_top" href="' + path_cgi + '21_trend.cgi">');
	document.write ('<img border="0" src="../images_com/sidemenu/21_trend.gif" width="99" height="22">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');

document.write ('<tr>');
document.write ('<td width="100%" height="15" align="right">');
if(p_val=='00_top') {
	document.write ('<img border="0" src="./images_spacer/15_15.gif" width="15" height="15">');
} else {
	document.write ('<img border="0" src="../images_spacer/15_15.gif" width="15" height="15">');
}
document.write ('</td>');
document.write ('</tr>');

//30_company_info設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '30_company_info/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/30_company_info.gif" width="50" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
} else if (p_val=='30_company_info') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/30_company_info2.gif" width="50" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');

	document.write ('<tr>');
		document.write ('<td width="100%" align="right" class="font11">');
			document.write ('<a target="_top" href="./greeting.html">企業理念</a><br>');
			document.write ('<a target="_top" href="./jigyo.html">事業内容</a><br>');
			document.write ('<a target="_top" href="./history.html">沿　　革</a><br>');
			document.write ('<a target="_top" href="./office_list.html">事業所一覧</a><br>');
			//document.write ('<a target="_top" href="./settlement.html">決算情報</a><br>');
		document.write ('</td>');
	document.write ('</tr>');
} else {
	document.write ('<a target="_top" href="' + path_html + '30_company_info/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/30_company_info.gif" width="50" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
}

//35_investor_relations設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '35_investor_relations/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/35_investor_relations.gif" width="34" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
} else if (p_val=='35_investor_relations') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/35_investor_relations2.gif" width="34" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');

	document.write ('<tr>');
		document.write ('<td width="100%" align="right" class="font11">');
			document.write ('<a target="_top" href="./news.html">IRニュース</a><br>');
			document.write ('<a target="_top" href="./settlement.html">決算情報</a><br>');
			document.write ('<a target="_top" href="./kabuka.html">株価情報</a><br>');
			document.write ('<a target="_top" href="./yuutai.html">株主優待</a><br>');
		document.write ('</td>');
	document.write ('</tr>');
} else {
	document.write ('<a target="_top" href="' + path_html + '35_investor_relations/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/35_investor_relations.gif" width="34" height="12">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
}

//31_employment設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '31_employment/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/31_employment.gif" width="51" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
} else if (p_val=='31_employment') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/31_employment2.gif" width="51" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
	document.write ('<tr>');
		document.write ('<td width="100%" align="right" class="font11">');
//2004/07/16　年内リクルート停止
//			document.write ('<a target="_top" href="./motomeru.html">求める人材</a><br>');
//			document.write ('<a target="_top" href="./bosyu.html">募集要項</a><br>');
//			document.write ('<a target="_top" href="./schedule.html">採用スケジュール</a><br>');
//			document.write ('<a target="_top" href="./setumeikai.html">会社説明会【東京】</a><br>');
//			document.write ('<a target="_top" href="./setumeikai_osk.html">会社説明会【大阪】</a><br>');
		document.write ('</td>');
	document.write ('</tr>');
} else {
	document.write ('<a target="_top" href="' + path_html + '31_employment/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/31_employment.gif" width="51" height="11">');
	document.write ('</a>');
	document.write ('</td>');
	document.write ('</tr>');
}

//32_character設定
document.write ('<tr>');
document.write ('<td width="100%" align="right" height="18">');
if(p_val=='00_top') {
	document.write ('<a target="_top" href="' + path_html + '32_character/index.html">');
	document.write ('<img border="0" src="./images_com/sidemenu/32_character.gif" width="88" height="12">');
} else if (p_val=='32_character') {
	document.write ('<a target="_top" href="./index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/32_character2.gif" width="88" height="12">');
} else {
	document.write ('<a target="_top" href="' + path_html + '32_character/index.html">');
	document.write ('<img border="0" src="../images_com/sidemenu/32_character.gif" width="88" height="12">');
}
document.write ('</a>');
document.write ('</td>');
document.write ('</tr>');
document.write ('</table>');

return '';
}


//*************************************************
//*関数：ヘッダー関数
//*	
//*引数　：コンテンツフォルダ名称
//*	
//*作成　：2003/1/23
//*作成者：y.iijima
//*修正　：2003/02/05
//*修正者：t.ninagawa 	ISO/環境情報の画像サイズ修正
//*修正　：2003/02/06
//*修正者：t.ninagawa 	セキュリティポリシー情報の画像サイズ修正
//*修正　：2003/02/07
//*修正者：t.ninagawa 	安全・安心への取組みメニュー追加
//*修正　：2003/02/10
//*修正者：S.Tonouchi 	お気に入り追加・スタートページ設定のステータスバー表示
//*修正　：2003/02/20
//*修正者：S.Tonouchi 	Macの場合、お気に入り追加・スタートページ設定ボタンを非表示に
//*
//*************************************************
function header_cmn(p_val){

var hc_lname = location.pathname;
var hc_path_cgi = "";
var hc_path_html = "";

if (p_val=='00_top'){
	if (hc_lname.match(/cgi-bin/i)){	//今CGIだったら
		hc_path_cgi = "";
		hc_path_html = "";
	}else{												//今HTMLだったら
		hc_path_cgi = "./cgi-bin/";
		hc_path_html = "./";
	}
} else {
	if (hc_lname.match(/cgi-bin/i)){	//今CGIだったら
		hc_path_cgi = "";
		hc_path_html = "../";
	}else{												//今HTMLだったら
		hc_path_cgi = "../cgi-bin/";
		hc_path_html = "../";
	}
}

document.write ('<table border="0" cellpadding="0" cellspacing="0" width="760">');
document.write ('<tr>');
document.write ('<td width="100%" height="5"></td>');
document.write ('</tr>');
document.write ('</table>');

document.write ('<table border="0" cellpadding="0" cellspacing="0" width="760">');
document.write ('<tr>');
document.write ('<td width="246" align="center">');
document.write ('<a target="_top" href="' + hc_path_html + '">');
document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/logo_sonton.gif" width="202" height="63"></a></td>');
document.write ('<td align="right">');
document.write ('<table border="0" cellspacing="0" cellpadding="0">');
document.write ('<tr>');

//34_safety設定
document.write ('<td>');
document.write ('<a target="_top" href="' + hc_path_html + '34_safety/index.html">');
if (p_val=='34_safety'){
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/34_safety2.gif" width="94" height="9">');
} else {
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/34_safety.gif" width="94" height="9">');
}
document.write ('</a></td>');

document.write ('<td>');
document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/line.gif" width="15" height="9"></td>');

//22_baker_info設定
document.write ('<td>');
document.write ('<a target="_top" href="' + hc_path_cgi + '22_index.cgi">');
if (p_val=='22_baker_info'){
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/22_baker_info2.gif" width="129" height="9">');
} else {
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/22_baker_info.gif" width="129" height="9">');
}
document.write ('</a></td>');

document.write ('<td>');
document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/line.gif" width="15" height="9"></td>');

//33_iso設定
document.write ('<td>');
document.write ('<a target="_top" href="' + hc_path_html + '33_iso/index.html">');
if (p_val=='33_iso'){
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/33_iso2.gif" width="60" height="9">');
} else {
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/33_iso.gif" width="60" height="9">');
}
document.write ('</a></td>');

document.write ('<td>');
document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/line.gif" width="15" height="9"></td>');

//02_security設定
document.write ('<td>');
document.write ('<a target="_top" href="' + hc_path_html + '02_security/index.html">');
if (p_val=='02_security'){
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/02_security2.gif" width="108" height="9">');
} else {
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/02_security.gif" width="108" height="9">');
}
document.write ('</a></td>');

document.write ('<td>');
document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/line.gif" width="15" height="9"></td>');

//03_sitemap設定
document.write ('<td>');
document.write ('<a target="_top" href="' + hc_path_html + '03_sitemap/index.html">');
if (p_val=='03_sitemap'){
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/03_sitemap2.gif" width="52" height="9">');
} else {
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/03_sitemap.gif" width="52" height="9">');
}
document.write ('</a></td>');
document.write ('</tr>');
document.write ('</table>');

document.write ('<div align="right">');
document.write ('<table border="0" cellspacing="0" cellpadding="0">');
document.write ('<tr>');
document.write ('<td height="10"></td>');
document.write ('<td height="10"></td>');
document.write ('<td align="right" height="10"></td>');
document.write ('</tr>');

var uAgent	= navigator.userAgent.toUpperCase();

document.write ('<tr>');
if (navigator.appName.indexOf("Netscape")!=-1 || uAgent.indexOf("MAC") >= 0){
	//Mac or ネスケなのでなにもしない
	document.write ('<td align="right"></td>');
} else {
	document.write ('<td align="right">');
	//document.write ('<a href="javascript:window.external.addFavorite(\'http://www.sonton.co.jp/\',\'ソントン食品工業株式会社\');"><img border="0" src="' + hc_path_html + 'images_com/header/btn_bookmark.gif\" hspace="6" width="134" height="20"></a></td>');
	document.write ('<a href="javascript:window.external.addFavorite(\'http://www.sonton.co.jp/\',\'ソントン食品工業株式会社\');" onMouseOver="window.status=\'「お気に入り」に追加します\'; return true;" onMouseOut="window.status=\'\'; return true;">');
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/btn_bookmark.gif\" hspace="6" width="134" height="20"></a></td>');
}
if (navigator.appName.indexOf("Netscape")!=-1 || uAgent.indexOf("MAC") >= 0){
	//Mac or ネスケなのでなにもしない
	document.write ('<td align="right"></td>');
} else {
	document.write ('<td align="right">');
	//document.write ('<a href="javaScript:setStartPG(sthome)" id="sthome" style="behavior:url(#default#homepage);"><img border="0" src="' + hc_path_html + 'images_com/header/btn_startpage.gif" hspace="0" width="134" height="20"></a></td>');
	document.write ('<a href="javaScript:setStartPG(sthome)" id="sthome" style="behavior:url(#default#homepage);" onMouseOver="window.status=\'スタートページに設定します\'; return true;" onMouseOut="window.status=\'\'; return true;">');
	document.write ('<img border="0" src="' + hc_path_html + 'images_com/header/btn_startpage.gif" hspace="0" width="134" height="20"></a></td>');
}
document.write ('</tr>');
document.write ('</table>');
document.write ('</div>');

document.write ('</td>');
document.write ('</td>');
document.write ('</tr>');
document.write ('</table>');

return '';
}

function setStartPG(ID){
URL = "http://www.sonton.co.jp";
ID.setHomePage(URL);
}
