var fullpath = location.pathname;

district = getFileName(fullpath);

if(district !==""){
	receiveJson(district);
}

/* JSON受信 */
function receiveJson(district){

	var date = new Date();
	var yyyy = date.getFullYear();
	var mm = "0" + "" + (date.getMonth() + 1);
	mm = mm.slice(-2,mm.length);
	var dd = "0" + "" + date.getDate();
	dd = dd.slice(-2,dd.length);
	var dt = yyyy+""+mm+""+dd;

	var url = "/common/json/web/"+district+"_"+dt+".json"+"?"+Math.random();

//	alert(url+" からJSON受信");
	new Ajax.Request(url, {method: 'get', onComplete: receiveJsonComplete});
}

/* JSON受信完了したとき */
function receiveJsonComplete(httpObj){
	//alert(httpObj.responseText);
	var data = eval("("+httpObj.responseText+")");
	var web = data.webdata;
	var html = "";

	var htmls = {};
	htmls.all = [];
	htmls.cat1 = [];
	htmls.cat2 = [];
	htmls.cat3 = [];

	if ( isExplorerJapan() ) {
	// ExploreJapan

		for (var i=0; i<web.length; i++) {
			if(web[i].lang != lang)
				continue;

			switch (web[i].category) {
			case "3":
			// hotel
				htmls.cat1.push( getMakeAdHtml(web[i]) );
				break;
			case "1":
			// food
				htmls.cat2.push( getMakeAdHtml(web[i]) );
				break;
			case "2":
			// shopping
			case "4":
			// activity
			case "5":
			// other
			default:
				htmls.cat3.push( getMakeAdHtml(web[i]) );
				break;
			}
		}

		if ( htmls.cat1.length > 0 ) 
			html += "	<div class=\"adCategoryTabBox\">\n" + htmls.cat1.join('') + "</div>\n";

		if ( htmls.cat2.length > 0 )
			html += "	<div class=\"adCategoryTabBox\">\n" + htmls.cat2.join('') + "</div>\n";

		if ( htmls.cat3.length > 0 )
			html += "	<div class=\"adCategoryTabBox\">\n" + htmls.cat3.join('') + "</div>\n";

	} else {
	// FOODなど（ExploreJapan以外）

		for (var i=0; i<web.length; i++) {
			if(web[i].lang != lang)
				continue;

			htmls.all.push( getMakeAdHtml(web[i]) );
		}
		html = htmls.all.join('');

	}

//	var head_s = getHeaderStartSection(lang);
	var head_s = getHeaderStartSection(lang, htmls);
	var head_e = getHeaderEndSection();

	// 広告表示
	document.getElementById("web").innerHTML =head_s+html+head_e;

	// 呼び出し
	var start = new TabMaker('adCategoryTab');  
	start.create();  

}
/**
 * JSONファイル名取得
 *
 * @param string fullpath 現ページURLのパス名
 * @return 表示対象のJSONファイル名
 */
function getFileName(fullpath){

	var path = fullpath.split("/");
	path.reverse();

	//日本料理
	if((path[1] === "hokkaido")	 && (path[2] === "japanesefood")) return "JapaneseFood_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "japanesefood")) return "JapaneseFood_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "japanesefood")) return "JapaneseFood_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "japanesefood")) return "JapaneseFood_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "japanesefood")) return "JapaneseFood_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "japanesefood")) return "JapaneseFood_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "japanesefood")) return "JapaneseFood_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "japanesefood")) return "JapaneseFood_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "japanesefood")) return "JapaneseFood_Okinawa";

	//寿司
	if((path[1] === "hokkaido")	 && (path[2] === "sushi")) return "Sushi_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "sushi")) return "Sushi_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "sushi")) return "Sushi_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "sushi")) return "Sushi_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "sushi")) return "Sushi_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "sushi")) return "Sushi_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "sushi")) return "Sushi_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "sushi")) return "Sushi_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "sushi")) return "Sushi_Okinawa";

	//天ぷら
	if((path[1] === "hokkaido")	 && (path[2] === "tempura")) return "Tempura_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "tempura")) return "Tempura_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "tempura")) return "Tempura_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "tempura")) return "Tempura_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "tempura")) return "Tempura_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "tempura")) return "Tempura_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "tempura")) return "Tempura_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "tempura")) return "Tempura_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "tempura")) return "Tempura_Okinawa";

	//そば・うどん
	if((path[1] === "hokkaido")	 && (path[2] === "sobaudon")) return "SobaUdon_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "sobaudon")) return "SobaUdon_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "sobaudon")) return "SobaUdon_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "sobaudon")) return "SobaUdon_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "sobaudon")) return "SobaUdon_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "sobaudon")) return "SobaUdon_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "sobaudon")) return "SobaUdon_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "sobaudon")) return "SobaUdon_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "sobaudon")) return "SobaUdon_Okinawa";

	//すきやき・しゃぶしゃぶ
	if((path[1] === "hokkaido")	 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "sukiyakishabushabu")) return "Sukiyaki_Okinawa";

	//お好み焼き・もんじゃ焼
	if((path[1] === "hokkaido")	 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "okonomiyakimonjayaki")) return "Okonomiyaki_Okinawa";

	//鍋
	if((path[1] === "hokkaido")	 && (path[2] === "nabe")) return "Nabe_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "nabe")) return "Nabe_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "nabe")) return "Nabe_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "nabe")) return "Nabe_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "nabe")) return "Nabe_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "nabe")) return "Nabe_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "nabe")) return "Nabe_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "nabe")) return "Nabe_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "nabe")) return "Nabe_Okinawa";

	//カフェ・スィーツ
	if((path[1] === "hokkaido")	 && (path[2] === "cafesweets")) return "Cafe_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "cafesweets")) return "Cafe_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "cafesweets")) return "Cafe_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "cafesweets")) return "Cafe_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "cafesweets")) return "Cafe_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "cafesweets")) return "Cafe_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "cafesweets")) return "Cafe_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "cafesweets")) return "Cafe_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "cafesweets")) return "Cafe_Okinawa";

	//ラーメン
	if((path[1] === "hokkaido")	 && (path[2] === "ramen")) return "Ramen_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "ramen")) return "Ramen_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "ramen")) return "Ramen_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "ramen")) return "Ramen_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "ramen")) return "Ramen_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "ramen")) return "Ramen_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "ramen")) return "Ramen_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "ramen")) return "Ramen_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "ramen")) return "Ramen_Okinawa";

	//ラーメン
	if((path[1] === "hokkaido")	 && (path[2] === "ramen")) return "Local_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "ramen")) return "Local_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "ramen")) return "Local_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "ramen")) return "Local_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "ramen")) return "Local_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "ramen")) return "Local_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "ramen")) return "Local_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "ramen")) return "Local_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "ramen")) return "Local_Okinawa";

	//ご当地
	if((path[1] === "hokkaido")	 && (path[2] === "localspecialties")) return "Local_Hokkaido";
	if((path[1] === "tohoku")		 && (path[2] === "localspecialties")) return "Local_Tohoku";
	if((path[1] === "kanto")		 && (path[2] === "localspecialties")) return "Local_Kanto";
	if((path[1] === "chubu")		 && (path[2] === "localspecialties")) return "Local_Chubu";
	if((path[1] === "kinki")		 && (path[2] === "localspecialties")) return "Local_Kinki";
	if((path[1] === "chugoku")	 && (path[2] === "localspecialties")) return "Local_ChuShikoku";
	if((path[1] === "shikoku")	 && (path[2] === "localspecialties")) return "Local_ChuShikoku";
	if((path[1] === "kyushu")		 && (path[2] === "localspecialties")) return "Local_Kyushu";
	if((path[1] === "okinawa")	 && (path[2] === "localspecialties")) return "Local_Okinawa";

	//for(var i=0;i<path.length;i++){
	//EJ(地域レベル)
	if(path[1] === "shinjuku")									 return "Shinjuku";
	if(path[1] === "shibuya")										 return "Shibuya";
	if(path[1] === "ebisu-daikanyama")					 return "Ebisu";
	if(path[1] === "harajuku-omotesando")				 return "Harajuku";
	if(path[1] === "odaiba")										 return "Odaiba";
	if(path[1] === "ginza")											 return "Ginza";
	if(path[1] === "marunouchi-yurakucho")			 return "Marunouchi";
	if(path[1] === "nihonbashi")								 return "Nihonbashi";
	if(path[1] === "roppongi-akasaka")					 return "Roppongi";
	if(path[1] === "shibakoen-takeshiba")				 return "ShibaKoen";
	if(path[1] === "ikebukuro")									 return "Ikebukuro";
	if(path[1] === "asakusa")										 return "Asakusa";
	if(path[1] === "ueno")											 return "Ueno";
	if(path[1] === "akihabara")									 return "Akihabara";
	if(path[1] === "shiodome")								 return "shiodome";
	if(path[1] === "kasumigaseki")							 return "Kasumigaseki";
	if(path[1] === "ryogoku")										 return "Ryogoku";
	if(path[1] === "jinbocho-otemachi")					 return "Jinbocho";
	if(path[1] === "yanaka-nezu-sendagi-hongo")	 return "Yanaka";
	if(path[1] === "okutama-takao")							 return "Okutama";
	if(path[1] === "izuislands")								 return "IzuIslands";
	
//10-19谷川修正
//	if(path[1] === "nagoya")										 return "Nagoya";
//	if(path[1] === "inuyama-seto")							 return "Inuyama";
	
//	if(path[1] === "kyoto")											 return "Kyoto";
//	if(path[1] === "kyotoarea")									 return "Kyotoarea";
//	if(path[1] === "kizuriver-kasagi")					 return "Kizugawa";
	
//	if(path[1] === "kita")											 return "Osaka_Kita";
//	if(path[1] === "minami")										 return "Osaka_Minami";
//	if(path[1] === "bayarea")										 return "Osaka_BayArea";
//	if(path[1] === "othersosaka")								 return "Osaka_BayArea";
//	if(path[1] === "bayarea")										 return "Osaka";
	
//	if(path[1] === "kobe")											 return "Kobe";
//	if(path[1] === "himeji-akashi")							 return "Himeji";
//10-19谷川修正〆
	//}

	for(var i=0;i<path.length;i++){
		//alert(path[i]);
		//EJ(県レベル)
		if(path[i] === "sapporo")										 return "Hokkaido_Sapporo";
		if(path[i] === "dohoku-asahikawa-furano")		 return "Hokkaido_Dohoku";
		if(path[i] === "donan-hakodate")						 return "Hokkaido_Donan";
		if(path[i] === "doto-tokachi-hidaka")				 return "Hokkaido_Doto";
		if(path[i] === "doo-otaru-niseko")					 return "Hokkaido_Doo";
		
		if(path[i] === "aomori")										 return "Aomori";
		if(path[i] === "iwate")											 return "Iwate";
		if(path[i] === "miyagi")										 return "Miyagi";
		if(path[i] === "akita")											 return "Akita";
		if(path[i] === "yamagata")									 return "Yamagata";
		if(path[i] === "fukushima")									 return "Fukushima";
		
		if(path[i] === "ibaraki")										 return "Ibaraki";
		if(path[i] === "tochigi")										 return "Tochigi";
		if(path[i] === "gunma")											 return "Gunma";
		if(path[i] === "saitama")										 return "Saitama";
		if(path[i] === "chiba")											 return "Chiba";
		if(path[i] === "tokyo")											 return "Tokyo";
		if(path[i] === "kanagawa")									 return "Kanagawa";
		
		if(path[i] === "niigata")										 return "Niigata";
		if(path[i] === "toyama")										 return "Toyama";
		if(path[i] === "ishikawa")									 return "Ishikawa";
		if(path[i] === "noto")											 return "Ishikawa";
		if(path[i] === "kanazawa")									 return "Ishikawa";
		if(path[i] === "fukui")											 return "Fukui";
		if(path[i] === "yamanashi")									 return "Yamanashi";
		if(path[i] === "nagano")										 return "Nagano";
		if(path[i] === "gifu")											 return "Gifu";
		if(path[i] === "shizuoka")									 return "Shizuoka";
		if(path[i] === "aichi")											 return "Aichi";

		if(path[i] === "mie")												 return "Mie";
		if(path[i] === "shiga")											 return "Shiga";
		if(path[i] === "kyoto")											 return "Kyoto";
		if(path[i] === "osaka")											 return "Osaka";
		if(path[i] === "hyogo")											 return "Hyogo";
		if(path[i] === "nara")											 return "Nara";
		if(path[i] === "wakayama")									 return "Wakayama";
		
		if(path[i] === "tottori")										 return "Tottori";
		if(path[i] === "shimane")										 return "Shimane";
		if(path[i] === "okayama")										 return "Okayama";
		if(path[i] === "hiroshima")									 return "Hiroshima";
		if(path[i] === "yamaguchi")									 return "Yamaguchi";
		
		if(path[i] === "tokushima")									 return "Tokushima";
		if(path[i] === "kagawa")										 return "Kagawa";
		if(path[i] === "ehime")											 return "Ehime";
		if(path[i] === "kochi")											 return "Kochi";
		
		if(path[i] === "fukuoka")										 return "Fukuoka";
		if(path[i] === "saga")											 return "Saga";
		if(path[i] === "nagasaki")									 return "Nagasaki";
		if(path[i] === "kumamoto")									 return "Kumamoto";
		if(path[i] === "oita")											 return "Oita";
		if(path[i] === "miyazaki")									 return "Miyazaki";
		if(path[i] === "kagoshima")									 return "Kagoshima";
		if(path[i] === "okinawa")										 return "Okinawa";
	}
	return "";

}

function getDistrict(city){
	
	/*
	"3";"11";"JapaneseFood_Hokkaido"
	"3";"12";"JapaneseFood_Tohoku"
	"3";"13";"JapaneseFood_Kanto"
	"3";"14";"JapaneseFood_Chubu"
	"3";"15";"JapaneseFood_Kinki"
	"3";"16";"JapaneseFood_ChuShikoku"
	"3";"17";"JapaneseFood_Kyushu"
	"3";"18";"JapaneseFood_Okinawa"
	"3";"21";"Sushi_Hokkaido"
	"3";"22";"Sushi_Tohoku"
	"3";"23";"Sushi_Kanto"
	"3";"24";"Sushi_Chubu"
	"3";"25";"Sushi_Kinki"
	"3";"26";"Sushi_ChuShikoku"
	"3";"27";"Sushi_Kyushu"
	"3";"28";"Sushi_Okinawa"
	"3";"31";"Tempura_Hokkaido"
	"3";"32";"Tempura_Tohoku"
	"3";"33";"Tempura_Kanto"
	"3";"34";"Tempura_Chubu"
	"3";"35";"Tempura_Kinki"
	"3";"36";"Tempura_ChuShikoku"
	"3";"37";"Tempura_Kyushu"
	"3";"38";"Tempura_Okinawa"
	"3";"41";"SobaUdon_Hokkaido"
	"3";"42";"SobaUdon_Tohoku"
	"3";"43";"SobaUdon_Kanto"
	"3";"44";"SobaUdon_Chubu"
	"3";"45";"SobaUdon_Kinki"
	"3";"46";"SobaUdon_Chushikoku"
	"3";"47";"SobaUdon_Kyushu"
	"3";"48";"SobaUdon_Okinawa"
	"3";"51";"Sukiyaki_Hokkaido"
	"3";"52";"Sukiyaki_Tohoku"
	"3";"53";"Sukiyaki_Kanto"
	"3";"54";"Sukiyaki_Chubu"
	"3";"55";"Sukiyaki_Kinki"
	"3";"56";"Sukiyaki_ChuShikoku"
	"3";"57";"Sukiyaki_Kyushu"
	"3";"58";"Sukiyaki_Okinawa"
	"3";"61";"Okonomiyaki_Hokkaido"
	"3";"62";"Okonomiyaki_Tohoku"
	"3";"63";"Okonomiyaki_Kanto"
	"3";"64";"Okonomiyaki_Chubu"
	"3";"65";"Okonomiyaki_Kinki"
	"3";"66";"Okonomiyaki_ChuShikoku"
	"3";"67";"Okonomiyaki_Kyushu"
	"3";"68";"Okonomiyaki_Okinawa"
	"3";"71";"Nabe_Hokkaido"
	"3";"72";"Nabe_Tohoku"
	"3";"73";"Nabe_Kanto"
	"3";"74";"Nabe_Chubu"
	"3";"75";"Nabe_Kinki"
	"3";"76";"Nabe_ChuShikoku"
	"3";"77";"Nabe_Kyushu"
	"3";"78";"Nabe_Okinawa"
	"3";"81";"Cafe_Hokkaido"
	"3";"82";"Cafe_Tohoku"
	"3";"83";"Cafe_Kanto"
	"3";"84";"Cafe_Chubu"
	"3";"85";"Cafe_Kinki"
	"3";"86";"Cafe_ChuShikoku"
	"3";"87";"Cafe_Kyushu"
	"3";"88";"Cafe_Okinawa"
	"3";"91";"Ramen_Hokkaido"
	"3";"92";"Ramen_Tohoku"
	"3";"93";"Ramen_Kanto"
	"3";"94";"Ramen_Chubu"
	"3";"95";"Ramen_Kinki"
	"3";"96";"Ramen_ChuShikoku"
	"3";"97";"Ramen_Kyushu"
	"3";"98";"Ramen_Okinawa"
	"3";"101";"Local_Hokkaido"
*/
	if(city === "food/localspecialties/hokkaido") return "Hokkaido_Sapporo";
/*
	"3";"102";"Local_Tohoku"
	"3";"103";"Local_Kanto"
	"3";"104";"Local_Chubu"
	"3";"105";"Local_Kinki"
	"3";"106";"Local_ChuShikoku"
	"3";"107";"Local_Kyushu"
	"3";"108";"Local_Okinawa"

	"2";"1";"Shinjuku"
	"2";"2";"Shibuya"
	"2";"3";"Ebisu"
	"2";"4";"Harajuku"
	"2";"5";"Odaiba"
	"2";"7";"Marunouchi"
	"2";"8";"Nihonbashi"
	"2";"9";"Roppongi"
	"2";"10";"ShibaKoen"
	"2";"11";"Ikebukuro"
	"2";"12";"Asakusa"
	"2";"13";"Ueno"
	"2";"14";"Akihabara"
	"2";"15";"Kasumigaseki"
	"2";"16";"Ryogoku"
	"2";"17";"Jinbocho"
	"2";"18";"Yanaka"
	"2";"19";"Okutama"
	"2";"20";"IzuIslands"
	"2";"6";"Ginza"
	"2";"21";"Nagoya"
	"2";"22";"Inuyama"
	"2";"23";"Kyoto"
	"2";"24";"Kizugawa"
	"2";"25";"Osaka_Kita"
	"2";"26";"Osaka_Minami"
	"2";"27";"Osaka_BayArea"
	"2";"28";"Kobe"
	"2";"29";"Himeji"

	"1";"1";"Hokkaido_Sapporo"
	"1";"2";"Hokkaido_Dohoku"
	"1";"3";"Hokkaido_Donan"
	"1";"4";"Hokkaido_Doto"
	"1";"5";"Hokkaido_Doo"
	"1";"6";"Aomori"
	"1";"7";"Iwate"
	"1";"8";"Miyagi"
	"1";"9";"Akita"
	"1";"10";"Yamagata"
	"1";"11";"Fukushima"
	"1";"12";"Ibaraki"
	"1";"13";"Tochigi"
	"1";"14";"Gunma"
	"1";"15";"Saitama"
	"1";"16";"Chiba"
	"1";"17";"Tokyo"
	"1";"18";"Kanagawa"
	"1";"19";"Niigata"
	"1";"20";"Toyama"
	"1";"21";"Fukui"
	"1";"22";"Yamanashi"
	"1";"23";"Nagano"
	"1";"24";"Gifu"
	"1";"25";"Shizuoka"
	"1";"26";"Aichi"
	"1";"27";"Mie"
	"1";"28";"Shiga"
	"1";"29";"Kyoto"
	"1";"30";"Osaka"
	"1";"31";"Hyogo"
	"1";"32";"Nara"
	"1";"33";"Wakayama"
	"1";"34";"Tottori"
	"1";"35";"Shimane"
	"1";"36";"Okayama"
	"1";"37";"Hiroshima"
	"1";"38";"Yamaguchi"
	"1";"39";"Tokushima"
	"1";"40";"Kagawa"
	"1";"41";"Ehime"
	"1";"42";"Kochi"
	"1";"43";"Fukuoka"
	"1";"44";"Saga"
	"1";"45";"Nagasaki"
	"1";"46";"Kumamoto"
	"1";"47";"Oita"
	"1";"48";"Miyazaki"
	"1";"49";"Kagoshima"
	"1";"50";"Okinawa"
	"1";"51";"Ishikawa"
	*/
	//1.北海道
	if(city === "sapporo") return "Hokkaido_Sapporo";
	if(city === "doo-otaru-niseko") return "Hokkaido_Doo";
	if(city === "doto-tokachi-hidaka") return "Hokkaido_Doto";
	if(city === "donan-hakodate") return "Hokkaido_Donan";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	if(city === "hokkaido") return "Hokkaido";
	//2.東北
	if(city === "tohoku") return "Tohoku";
	//3.関東
	if(city === "kanto") return "Kanto";
	//4.中部・東海
	if(city === "chubu") return "Chubu";
	//5.近畿
	if(city === "kinki") return "Kinki";
	//6.中国・四国
	if(city === "chugoku") return "ChuShikoku";
	
	if(city === "shikoku") return "ChuShikoku";
	//7.九州
	if(city === "kyushu") return "Kyushu";
	//8.沖縄
	if(city === "okinawa") return "Okinawa";
	
	if(city === "tokyo") return "Tokyo";

	return "";

}
/**
 *
 */
//function getHeaderStartSection(lang) {
function getHeaderStartSection(lang, htmls) {

	var html = "	<!--Reccomend Shop Section -->\n";
	html += "	<div id=\"information\" class=\"block\">\n";
	html += "		<div class=\"block-inner block-header\">\n";
	if(lang =="en"){
		html += "			<h2>Recommend Spot</h2>\n";
	} else if(lang =="chs"){
		html += "			<h2>推荐地点</h2>\n";
	} else if(lang =="cht"){
		html += "			<h2>推薦地點</h2>\n";
	} else if(lang =="kr"){
		html += "			<h2>추천장소</h2>\n";
	}
	html += "			<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\" width=\"100%\">\n";
	html += "				<tr>\n";
	if(lang =="en"){
		html += "					<td width=\"32\" valign=\"middle\" align=\"left\">Categories:</td>\n";
	} else if(lang =="chs"){
		html += "					<td width=\"32\" valign=\"middle\" align=\"left\">分类:</td>\n";
	} else if(lang =="cht"){
		html += "					<td width=\"32\" valign=\"middle\" align=\"left\">分類:</td>\n";
	} else if(lang =="kr"){
		html += "					<td width=\"32\" valign=\"middle\" align=\"left\">범주:</td>\n";
	}
	html += "					<td align=\"left\">\n";
	if(lang =="en"){
		html += "						<img src=\"/common/images/food.gif\" alt=\"Eat\" title=\"Eat\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/shopping.gif\" alt=\"Buy\" title=\"Buy\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/hotel_b.gif\" alt=\"Accommodation\" title=\"Accommodation\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/activity.gif\" alt=\"Play\" title=\"Play\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/other_d.gif\" alt=\"Other\" title=\"Other\" width=\"24\" height=\"24\">\n";
	} else if(lang =="chs"){
		html += "						<img src=\"/common/images/food.gif\" alt=\"吃\" title=\"吃\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/shopping.gif\" alt=\"购买\" title=\"购买\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/hotel_b.gif\" alt=\"住宿\" title=\"住宿\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/activity.gif\" alt=\"玩\" title=\"玩\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/other_d.gif\" alt=\"其他\" title=\"其他\" width=\"24\" height=\"24\">\n";
	} else if(lang =="cht"){
		html += "						<img src=\"/common/images/food.gif\" alt=\"吃\" title=\"吃\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/shopping.gif\" alt=\"購買\" title=\"購買\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/hotel_b.gif\" alt=\"住宿\" title=\"住宿\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/activity.gif\" alt=\"玩\" title=\"玩\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/other_d.gif\" alt=\"其他\" title=\"其他\" width=\"24\" height=\"24\">\n";
	} else if(lang =="kr"){
		html += "						<img src=\"/common/images/food.gif\" alt=\"먹다\" title=\"먹다\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/shopping.gif\" alt=\"구입하다\" title=\"구입하다\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/hotel_b.gif\" alt=\"숙박\" title=\"숙박\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/activity.gif\" alt=\"놀이\" title=\"놀이\" width=\"24\" height=\"24\">\n";
		html += "						<img src=\"/common/images/other_d.gif\" alt=\"기타\" title=\"기타\" width=\"24\" height=\"24\">\n";
	}
	html += "					</td>\n";
//	html += "					<td>&nbsp;</td>\n";


	if(lang =="en"){
		html += "					<td nowrap valign=\"middle\" align=\"right\">reservation:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/reserve_m.png\" alt=\"reservation\" title=\"reservation\" width=\"100\" height=\"16\"></td>\n";
	} else if(lang =="chs"){
		html += "					<td nowrap valign=\"middle\" align=\"right\">预约:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/reserve_m.png\" alt=\"预约\" title=\"预约\" width=\"100\" height=\"16\"></td>\n";
	} else if(lang =="cht"){
		html += "					<td nowrap valign=\"middle\" align=\"right\">預約:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/reserve_m.png\" alt=\"預約\" title=\"預約\" width=\"100\" height=\"16\"></td>\n";
	} else if(lang =="kr"){
		html += "					<td nowrap valign=\"middle\" align=\"right\">예약:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/reserve_m.png\" alt=\"예약\" title=\"예약\" width=\"100\" height=\"16\"></td>\n";
	}



	if(lang =="en"){
		html += "					<td nowrap valign=\"middle\" align=\"right\" width=\"40\" >Coupon:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/coupon_s.jpg\" alt=\"map, coupon\" title=\"map, coupon\" width=\"85\" height=\"16\"></td>\n";
	} else if(lang =="chs"){
		html += "					<td nowrap valign=\"middle\" align=\"right\" width=\"40\">优惠卷:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/coupon_s.jpg\" alt=\"地图,优惠卷\" title=\"地图,优惠卷\" width=\"85\" height=\"16\"></td>\n";
	} else if(lang =="cht"){
		html += "					<td nowrap valign=\"middle\" align=\"right\" width=\"40\">優惠卷:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/coupon_s.jpg\" alt=\"地圖,優惠卷\" title=\"地圖,優惠卷\" width=\"85\" height=\"16\"></td>\n";
	} else if(lang =="kr"){
		html += "					<td nowrap valign=\"middle\" align=\"right\" width=\"40\">쿠폰:</td>\n";
		html += "					<td width=\"85\" align=\"right\"><img src=\"/common/images/coupon_s.jpg\" alt=\"지도,쿠폰\" title=\"지도,쿠폰\" width=\"85\" height=\"16\"></td>\n";
	}
	html += "				</tr>\n";
	html += "			</table>\n";
	html += "			<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\" width=\"100%\">\n";
	html += "				<tr>\n";
	html += "					<td width=\"114\">\n";
	html += "						<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\">\n";
	html += "						<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\">\n";
	html += "						<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\">\n";
	html += "						<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\">\n";
	html += "					</td>\n";
	if(lang =="en"){
		html += "					<td valign=\"middle\" align=\"left\">Availability of menu and service in foreign languages.</td>\n";
	} else if(lang =="chs"){
		html += "					<td valign=\"middle\" align=\"left\">提供外文的菜单或服务</td>\n";
	} else if(lang =="cht"){
		html += "					<td valign=\"middle\" align=\"left\">提供外文的菜單或服務</td>\n";
	} else if(lang =="kr"){
		html += "					<td valign=\"middle\" align=\"left\">외국어 메뉴 있음, 외국어 서비스 대응 가능</td>\n";
	}
	html += "			</tr></tbody></table>\n";

	if ( htmls.all.length > 0 ) {
	} else {
		var adCategoryName = {};
		adCategoryName.cat1 = ['Hotel', '酒店', '酒店', '호텔'];
		adCategoryName.cat2 = ['Restaurants', '餐厅', '餐廳', '레스토랑'];
		adCategoryName.cat3 = ['Sights', '景点', '景點', '볼거리'];

		var idx = lang2idx(lang);
		var catSwitchHtml = '';
		if ( htmls.cat1.length > 0 ) 
			catSwitchHtml += "	<div class=\"adCategoryTab\">" + adCategoryName.cat1[idx] +"</div>\n";

		if ( htmls.cat2.length > 0 )
			catSwitchHtml += "	<div class=\"adCategoryTab\">" + adCategoryName.cat2[idx] +"</div>\n";

		if ( htmls.cat3.length > 0 )
			catSwitchHtml += "	<div class=\"adCategoryTab\">" + adCategoryName.cat3[idx] +"</div>\n";

		catSwitchHtml += "  <img src=\"http://210.224.146.58/adv_admin/advac.php?p='http://www.japan-i.jp"+location.pathname+"&t=0&c="+location.pathname+"&at=0&ac="+getFileName(fullpath)+"&ap=0\" width=\"1\" height=\"1\" border=\"0\">\n";
		if (catSwitchHtml != '') 
			html += "	<div id=\"adCategoryTabIndex\">\n"
					+ catSwitchHtml
					+"	</div><br clear=\"left\">\n";
	}

	return html;
}
function getHeaderEndSection() {

	var html = "			</div>\n";
	html += "	</div>\n";
	html += "	<!--Reccomend Shop Section -->\n";

	return html;
}
/**
 * ExplorerJapanディレクトリ判別
 * 
 * @return 
 */
function isExplorerJapan() {
	var locationPath = location.pathname;
	var splitPath = locationPath.split("/");
	for(var i=0; i<splitPath.length; i++) {
		if (splitPath[i] == 'explorejapan')
			return true;
	}
	return false;
}
/**
 * 言語index変換
 * 
 * @param string 言語文字列
 * @return 言語INDEX
 */
function lang2idx(str) {
	switch (str){
	case "chs":
		return 1;
		break;
	case "cht":
		return 2;
		break;
	case "kr":
		return 3;
		break;
	case "en":
	default:
		return 0;
		break;
	}
}
/**
 * 広告HTML作成
 * 
 * @param array webrow アイテム
 * @return 広告データ
 */
function getMakeAdHtml(webrow) {

	var html = "";

	//if(i != 0) {
		html += "			<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\" width=\"100%\">";
		html += "				<tr valign=\"middle\">\n";
		html += "					<td colspan=\"6\" style=\"border-bottom: 1px dashed #999;\"><img src=\"/common/images/spacer.gif\" height=\"1\"></td>\n";
		html += "				</tr>\n";
		html += "			</table>\n";
	//}
	if(lang != "en"){
		html += "			<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\" width=\"100%\">\n";
		html += "				<tr valign=\"middle\">\n";
		html += "					<td colspan=\"6\">&nbsp;</td>\n";
		html += "				</tr>\n";
		html += "			</table>\n";
	}
	html += "							<!--  /SHOP DATA -->\n";
	html += "										<table cellpadding=\"1\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";
	html += "											<tr>\n";
	html += "												<td style=\"padding-right: 1px; \"";
	if(lang =="en"){
		html += "padding-top:34px;";
	}
	html += "	\" width=\"160\">\n";
	html += "													<a href=\"http://210.224.146.58/adv_admin/advrd.php?p='http://www.japan-i.jp"+webrow.url+"'&t=1&c='"+location.pathname+"'&at=0&ai="+webrow.id+"\" target=\"_blank\"><img src=\""+webrow.img+"\" alt=\""+webrow.alt+"\" title=\""+webrow.alt+"\" width=\"160\" height=\"120\"></a>\n";
	html += "												</td>\n";
	html += "												<td align=\"left\" with=\"100%\">\n";
	html += "													<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\">\n";


	if(lang =="en" && webrow.adv_reserve_link_1 != ''){

		html += "<tr>";
		html += "<td width=\"100%\" align=\"right\">";
//				html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/en/" +webrow.adv_reserve_link_1 + "'))\">";
		html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/en/http://210.224.146.58/exreservation/en/?h_code=" +webrow.adv_reserve_link_1 + "'))\">";
		html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/reserve_m.png\" alt=\"reservation\" title=\"reservation\" width=\"108\" height=\"17\"></a>\n";
		html += "</td>";
		html += "</tr>";

	} else if(lang =="chs" && webrow.adv_reserve_link_2 != ''){

		html += "<tr>";
		html += "<td width=\"100%\" align=\"right\">";
//				html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/chs/" +webrow.adv_reserve_link_2 + "'))\">";
		html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/chs/http://210.224.146.58/exreservation/chs/?h_code=" +webrow.adv_reserve_link_2 + "'))\">";
		html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/reserve_m.png\" alt=\"\" title=\"\" width=\"108\" height=\"17\"></a>\n";
		html += "</td>";
		html += "</tr>";

	} else if(lang =="cht" && webrow.adv_reserve_link_3 != ''){
		html += "<tr>";
		html += "<td width=\"100%\" align=\"right\">";
//				html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/cht/" +webrow.adv_reserve_link_3 + "'))\">";
		html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/cht/http://210.224.146.58/exreservation/cht/?h_code=" +webrow.adv_reserve_link_3 + "'))\">";
		html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/reserve_m.png\" alt=\"預約\" title=\"預約\" width=\"108\" height=\"17\"></a>\n";
		html += "</td>";
		html += "</tr>";
	} else if(lang =="kr" && webrow.adv_reserve_link_4 != ''){
		html += "<tr>";
		html += "<td width=\"100%\" align=\"right\">";
//				html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/kr/" +webrow.adv_reserve_link_4 + "'))\">";
		html += "<a href=\"javascript:void(window.open('http://210.224.146.58/exlink/kr/http://210.224.146.58/exreservation/kr/?h_code=" +webrow.adv_reserve_link_4 + "'))\">";
		html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/reserve_m.png\" alt=\"\" title=\"\" width=\"108\" height=\"17\"></a>\n";
		html += "</td>";
		html += "</tr>";
	}


	html += "														<tr>\n";
	html += "															<td valign=\"top\" align=\"right\" width=\"100%\">\n";

	if(webrow.category =="1"){
		html += "																<img src=\"/common/images/food.gif\" alt=\"";
		if(lang =="en"){
			html += "Eat";
		} else if(lang =="chs"){
			html += "吃";
		} else if(lang =="cht"){
			html += "吃";
		} else if(lang =="kr"){
			html += "먹다";
		}
		html += "\" width=\"24\" height=\"24\">\n";
	} else if(webrow.category =="2"){
		html += "																<img src=\"/common/images/shopping.gif\" alt=\"";
		if(lang =="en"){
			html += "Buy";
		} else if(lang =="chs"){
			html += "购买";
		} else if(lang =="cht"){
			html += "購買";
		} else if(lang =="kr"){
			html += "구입하다";
		}
		html += "\" width=\"24\" height=\"24\">\n";
	} else if(webrow.category =="3"){
		html += "																<img src=\"/common/images/hotel_b.gif\" alt=\"";
		if(lang =="en"){
			html += "Accommodation";
		} else if(lang =="chs"){
			html += "住宿";
		} else if(lang =="cht"){
			html += "住宿";
		} else if(lang =="kr"){
			html += "숙박";
		}
		html += "\" width=\"24\" height=\"24\">\n";
	} else if(webrow.category =="4"){
		html += "																<img src=\"/common/images/activity.gif\" alt=\"";
		if(lang =="en"){
			html += "Play";
		} else if(lang =="chs"){
			html += "玩";
		} else if(lang =="cht"){
			html += "玩";
		} else if(lang =="kr"){
			html += "놀이";
		}
		html += "\" width=\"24\" height=\"24\">\n";
	} else if(webrow.category =="5"){
		html += "																<img src=\"/common/images/other_d.gif\" alt=\"";
		if(lang =="en"){
			html += "Other";
		} else if(lang =="chs"){
			html += "其他";
		} else if(lang =="cht"){
			html += "其他";
		} else if(lang =="kr"){
			html += "기타";
		}
		html += "\" width=\"24\" height=\"24\">\n";
	}
	if(webrow.lang_menu =="1"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="2"){
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="3"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="4"){
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="5"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="6"){
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="7"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="8"){
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="9"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="10"){
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="11"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="12"){
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="13"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="14"){
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else if(webrow.lang_menu =="15"){
		html += "																	<img src=\"/common/images/lang_eng.jpg\" alt=\"English\" title=\"English\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_chs.jpg\" alt=\"简体 中文\" title=\"简体 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_cht.jpg\" alt=\"繁體 中文\" title=\"繁體 中文\" width=\"32\" height=\"16\" style=\"margin-bottom: 4px\">\n";
		html += "																	<img src=\"/common/images/lang_kr.jpg\" alt=\"한국어\" title=\"한국어\" width=\"16\" height=\"16\" style=\"margin-bottom: 4px\">\n";
	} else {
		html += "																	&nbsp;";
	}
	if(webrow.coupon ==1){
		html += "																<a href=\"http://210.224.146.58/adv_admin/advrd.php?p='http://www.japan-i.jp"+webrow.coupon_url+"'&t=1&c='"+location.pathname+"'&at=0&ai="+webrow.id+"\" target=\"_blank\">\n";
		if(lang =="en"){
			html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/coupon_s.jpg\" alt=\"map, coupon\" title=\"map, coupon\" width=\"85\" height=\"16\"></a>\n";
		} else if(lang =="chs"){
			html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/coupon_s.jpg\" alt=\"地图,优惠卷\" title=\"地图,优惠卷\" width=\"85\" height=\"16\"></a>\n";
		} else if(lang =="cht"){
			html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/coupon_s.jpg\" alt=\"地圖,優惠卷\" title=\"地圖,優惠卷\" width=\"85\" height=\"16\"></a>\n";
		} else if(lang =="kr"){
			html += "																<img style=\"margin-bottom:4px;\" src=\"/common/images/coupon_s.jpg\" alt=\"지도,쿠폰\" title=\"지도,쿠폰\" width=\"85\" height=\"16\"></a>\n";
		}
	}
	html += "															</td>\n";
	html += "														</tr>\n";
	html += "														<tr>\n";
	html += "															<td valign=\"center\" with=\"100%\" style=\"padding-left:4px;\">\n";
	html += "																<span style=\"font-size:140%;line-height:1.5;";
	if(lang =="en"){
		html += "word-break:keep-all;";
	}
	html += "\"><a href=\"http://210.224.146.58/adv_admin/advrd.php?p='http://www.japan-i.jp"+webrow.url+"'&t=1&c='"+location.pathname+"'&at=0&ai="+webrow.id+"\" target=\"_blank\">"+webrow.name+"</a></span>\n";
	html += "															</td>\n";
	html += "														</tr>\n";
	html += "														<tr>\n";
	html += "															<td valign=\"top\" width=\"100%\" style=\"padding-left:4px;\">\n";
	html += "																<span style=\"font-size:94%;";
	if(lang =="en"){
		html += "word-break:keep-all;";
	}
	html += "\">"+webrow.address+"</span>\n";
	html += "															</td>\n";
	html += "														</tr>\n";
	html += "														<tr>\n";
	html += "															<td valign=\"top\" width=\"100%\" style=\"padding-left:4px;\">\n";
	html += "																<span style=\"font-size:";
	if(lang =="en"){
		html += "103%;word-break:keep-all;";
	} else {
		html += "113%;";
	}
	html += "\">"+webrow.title+"</span>\n";
	html += "															</td>\n";
	html += "														<tr>\n";
	html += "													</table>\n";
	html += "												</td>\n";
	html += "											</tr>\n";
	html += "										</table>\n";
	html += "										<!--  /SHOP DATA -->\n";
	html += "			<table cellpadding=\"2\" cellspacing=\"2\" border=\"0\" width=\"100%\">\n";
	html += "				<tr valign=\"middle\">\n";
	html += "					<td colspan=\"6\">&nbsp;</td>\n";
	html += "				</tr>\n";
	html += "			</table>\n";

	return html;

}