<!--
//	author: by Hiroshi Enomoto

function	createSiteMapwithSeminar()
{
	createSiteMap();

	var		version = navigator.appVersion.charAt(0);
	if( version < 4 )
	{
		alert( "Browser Version 4 以上を使用してください。" );
		return;
	}
}

function	createSiteMap()
{
menu	= new Array();
var		mm = 0;
//	name, URL
menu[mm]	= new Array( "お灸屋さん（三景）ホームページ", "index.html" );
menu[++mm]	= new Array( "店舗", "shop/shop.html" );
menu[++mm]	= new Array( "購入について", "shop/order.html" );
menu[++mm]	= new Array( "-----------------------------------------", "" );
menu[++mm]	= new Array( "針", "clinic/needle/index.html" );
menu[++mm]	= new Array( "灸", "clinic/moxbustion/index.html" );
menu[++mm]	= new Array( "艾", "clinic/moxa/index.html" );
menu[++mm]	= new Array( "道具", "clinic/tool/index.html" );
menu[++mm]	= new Array( "経穴模型、掛図", "clinic/model/index.html" );
menu[++mm]	= new Array( "治療器: 低周波、光線、吸引", "clinic/stimulator/index.html" );
menu[++mm]	= new Array( "深谷灸の本", "clinic/bookfukaya/index.html" );
menu[++mm]	= new Array( "お勧め東洋医学書", "clinic/bookrecommend/index.html" );
menu[++mm]	= new Array( "テーピング", "clinic/taping/index.html" );
menu[++mm]	= new Array( "デジタルブック", "clinic/bookdigital/index.html" );
menu[++mm]	= new Array( "治療院用設備: ベッド", "clinic/bed/index.html" );
menu[++mm]	= new Array( "-----------------------------------------", "" );
menu[++mm]	= new Array( "灸法臨床研究会", "qho/index.html" );
menu[++mm]	= new Array( "あなたの街の治療院", "networkDr/index.html" );
menu[++mm]	= new Array( "-----------------------------------------", "" );
menu[++mm]	= new Array( "浄水器", "health/water/index.html" );
menu[++mm]	= new Array( "健康食品", "health/food/index.html" );
menu[++mm]	= new Array( "自然化粧品、石鹸", "health/cosmetic/index.html" );
menu[++mm]	= new Array( "健康グッズ", "health/goods/index.html" );
menu[++mm]	= new Array( "健康衣料", "health/silk/index.html" );
menu[++mm]	= new Array( "ダイエット、美容", "health/diet/index.html" );
menu[++mm]	= new Array( "End", "" );

	for( var j = 0 ; menu[j][0] != "End" ; ++j );
	document.navigation.pagename.length	= j;
	for( var j = 0 ; menu[j][0] != "End" ; ++j )
	{	//	set URL with name
		document.navigation.pagename.options[j].text	= menu[j][0];
//		document.navigation.pagename.options[j].value	= "file:///D|/sankei/homepage/" + menu[j][1];
		document.navigation.pagename.options[j].value	= "http://oq83.jp/" + menu[j][1];
	}
	for( var j = 0 ; j < document.links.length ; ++j )
	{	//	put email address
		if( document.links[j].href.substring( 0, "mailto:".length ) == "mailto:" )
		{
			document.links[j].href = document.links[j].href.concat( "@oq83.jp" );
		}
	}
}

function	jumptopage()
{
	jumpURL = document.navigation.pagename[document.navigation.pagename.selectedIndex].value;
	if( jumpURL == "dummy" )	return;
	else
	if( jumpURL == "" )	return;
	top.location.href = jumpURL;
}

function	strPrice( code )
{
	var		priceProduct;
	
	if( ( priceProduct = getPrice( code ) ) == -1 )
	{
		return( "price error" );
	}
	return( priceWithComma( priceProduct ) );
}

function	priceWithComma( price )
{
	var cDigit = 0;
	priceComma		= "";
	for( var i = 0 ; price > 0 ; ++i )
	{
		if( cDigit >= 3 )
		{
			priceComma	= "," + priceComma;
			cDigit = 0;
		}
		priceComma	= ( price % 10 ) + priceComma;
		++cDigit;
		price	= ( price - ( price % 10 ) ) / 10;
	}
	return( priceComma );
}

function	getPrice( code )
{
	for( var i = 1 ; ip[i][0] != "End" ; ++i )
	{
		if( ip[i][0] == code )
		{
			return( ip[i][2] );
		}
	}
	return( -1 );
}

function	getPostJP( code )
{
	for( var i = 1 ; ip[i][0] != "End" ; ++i )
	{
		if( ip[i][0] == code )
		{
			return( ip[i][4] );
		}
	}
	return( -1 );
}

function	strPostJP( code )
{
	if( ( priceProduct = getPostJP( code ) ) == -1 )
	{
		return( "post error" );
	}
	return( priceWithComma( priceProduct ) );
}
//!-->
