

//------------------------------------------------------------
//        SNS Buttons
//------------------------------------------------------------
function Show_SNSBtn(){	/* Facebook, Twitter etc　*/
	document.write("<div class='SNSlayout'>");

	
	/******* facebook ********/
	document.write("<div class='Facebooklayout'>");
		var url = "http://www.facebook.com/plugins/like.php?app_id=108420372592270&href=" + encodeURIComponent(location.href) + "&send=false"+"&layout=standard&show_faces=false&width=90&action=like&colorscheme=light&height=20&locale=en_US";
		document.write('<iframe src="' + url + '" allowtransparency="true" style="border: medium none ; overflow: hidden; width: 400px; height: 30px;" frameborder="0" scrolling="no"></iframe>');
	document.write("</div>");


	/******* HATENA ********/
	var url_HATENA = encodeURIComponent(location.href);
	document.write('<a href="http://b.hatena.ne.jp/entry/' + url_HATENA + '" class="hatena-bookmark-button" data-hatena-bookmark-title="ThaiSmile.jp" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>');
	document.write(' ');

	/******* twitter ********/
	document.write("<a class='twitter-share-button' data-count='horizontal' href='http://twitter.com/share'>Tweet</a>");
	document.write("<script type='text/javascript' src='http://platform.twitter.com/widgets.js'></script>");


	/******* GREE ********/
	var url_gree = encodeURIComponent(location.href);
//	document.write('<iframe src="http://share.gree.jp/share?url=url_gree&type=0&height=20" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="border:none; overflow:hidden; width:80px; height:20px;" allowTransparency="true"></iframe>');
	document.write('<iframe src="http://share.gree.jp/share?url=url_gree&type=0&height=20" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" style="border:none; overflow:hidden; width:77px; height:20px;" allowTransparency="true"></iframe>');

	/******* mixi ********/
	var url_mixi = encodeURIComponent(location.href);
//	document.write('<iframe scrolling="no" frameborder="0" allowTransparency="true" style="overflow:hidden; border:0; width:100px; height:20px" src="http://plugins.mixi.jp/favorite.pl?href=http%3A%2F%2Fwww.thaismile.jp%2F&service_key=e8f3a5cf8c169445ae11c44c850d6ebddb84a21f&show_faces=false&width=100"></iframe>');
	document.write('<iframe scrolling="no" frameborder="0" allowTransparency="true" style="overflow:hidden; border:0; width:90px; height:20px" src="http://plugins.mixi.jp/favorite.pl?href='+ url_mixi +'&service_key=e8f3a5cf8c169445ae11c44c850d6ebddb84a21f&show_faces=false&width=80"></iframe>');

	/******* Google +1 ********/
	document.write("<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"> {lang: 'ja'} </script>");
	document.write("<g:plusone size=\"medium\"></g:plusone>"); /* ←標準のコードだが IEでは表示されない */
//document.write("<div style=\"display:inline !important;\" width:30px;\" class=\"g-plusone\" data-size=\"medium\" data-count=\"true\"></div>");

	/******* Evernot ********/
	document.write('<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>');
	document.write('<a href="#" onclick="Evernote.doClip({}); return false;" ><img src="http://static.evernote.com/article-clipper.png" alt="Clip to Evernote" border="0" /></a>');


	document.write("</div>");
}

//------------------------------------------------------------
//        ■Googld AD
//------------------------------------------------------------
function Show_GAdUp(){	/* Googld AD （上部用 : 基本情報、歴史、タイ語ページ等)　*/
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_format = "468x60_as";
	google_ad_type = "text";
	//2007-03-17: J-UP
	google_ad_channel = "9472797590";
	google_color_border = "fffaec"; // old feeecf
	google_color_bg = "fffaec"; // old feeecf
	google_color_link = "C40000";
	google_color_text = "663300";
	google_color_url = "C40000";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");

}

//--------------- 個別指定しない場合 -----------------
function Show_GAdUp_normal(){	/* Googld AD （上部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-normalUp */
	google_ad_slot = "7857171094";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdDown_normal(){	/* Googld AD （下部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-normalDown */
	google_ad_slot = "9934935775";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdSide_normal(){	/* Googld AD （左サイド用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-normalSide */
	google_ad_slot = "2682896101";
	google_ad_width = 160;
	google_ad_height = 600;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

//--------------- Weather -----------------
function Show_GAdUp_weather(){	/* Googld AD （上部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-WeatherUp */
	google_ad_slot = "5268891493";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdDown_weather(){	/* Googld AD （下部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-WeatherDown */
	google_ad_slot = "1697444614";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdSide_weather(){	/* Googld AD （左サイド用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-WeatherSide */
	google_ad_slot = "8911276313";
	google_ad_width = 160;
	google_ad_height = 600;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

//--------------- タイ語 -----------------
function Show_GAdUp_ThaiLanguage(){	/* Googld AD （上部用 : タイ語ページ)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* ThaiLanguageUp */
	google_ad_slot = "2022517782";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function Show_GAdDown_ThaiLanguage(){	/* Googld AD （下部用 : タイ語ページ)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* ThaiLanguageDown */
	google_ad_slot = "5590838505";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
	Show_SNSBtn();
}

//--------------- フォトギャラリー -----------------
function Show_GAdUp_photo(){	/* Googld AD （上部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-PhotoUp */
	google_ad_slot = "3083667909";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdDown_photo(){	/* Googld AD （下部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-PhotoDown */
	google_ad_slot = "8608775778";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
function Show_GAdSide_photo(){	/* Googld AD （左サイド用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* TS-PhotoSide */
	google_ad_slot = "8305575259";
	google_ad_width = 160;
	google_ad_height = 600;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

//---------------  -----------------
function Show_GAdDown(){	/* Googld AD (下部用 : 基本情報、歴史、タイ語ページ等） */
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 468;
	google_ad_height = 60;
	google_ad_format = "468x60_as";
	google_ad_type = "text";
	//2007-03-17: J-Down
	google_ad_channel = "6892213676";
	google_color_border = "fffaec"; // old feeecf
	google_color_bg = "fffaec"; // old feeecf
	google_color_link = "C40000";
	google_color_text = "663300";
	google_color_url = "C40000";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");

	Show_SNSBtn();
	
}

function Show_GAdLinkDown(){	/* Googld AD (下部用 : 基本情報、歴史、タイ語ページ等） */

	google_ad_client = "pub-7471896074105470";
	// 468x15 10/02/27
	google_ad_slot = "9869447447";
	google_ad_width = 468;
	google_ad_height = 15;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
	Show_SNSBtn();

}

function show_Gad160600Top(){	/* Googld AD TOPページ右メニュー用 */
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 160;
	google_ad_height = 600;
	google_ad_format = "160x600_as";
	google_ad_type = "text";
	//2007-04-29: J-TOP
	google_ad_channel = "5696710413";
	google_color_border = "FFFFFF";
	google_color_bg = "FFFFFF";
	google_color_link = "CC0000";
	google_color_text = "660000";
	google_color_url = "660033";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function show_Gad160600(){	/* Googld AD (左メインメニュー：背景 DarkBrown)用 */
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 160;
	google_ad_height = 600;
	google_ad_format = "160x600_as";
	google_ad_type = "text";
	//2007-04-06: J-Left
	google_ad_channel = "4959242348";
	google_color_border = "503020";
	google_color_bg = "503020";
	google_color_link = "efd089";
	google_color_text = "FFCC66";
	google_color_url = "F2984C";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function show_GadTopRight(){	/* Googld AD TOPページ右メニュー用 */
google_ad_client = "pub-7471896074105470";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text";
//2007-04-29: J-TOP
google_ad_channel = "5696710413";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CC0000";
google_color_text = "660000";
google_color_url = "660033";
	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}


//------------------------------------------------------------
//        ■Brainer
//------------------------------------------------------------
function show_Bad160600($num){	/* Micro AD お試し版(左メインメニュー：背景 DarkBrown)用 */
in_uid = '136879';

switch($num){
	case 1:
		in_templateid = '11021';
		break;
	case 2:
		in_templateid = '11022';
		break;
	case 3:
		in_templateid = '11023';
		break;
	case 4:
		in_templateid = '11024';
		break;
	case 5:
		in_templateid = '11025';
		break;
	default:
		in_templateid = '11023';
}
in_charset = 'SHIFT_JIS';
in_group = 'DefaultGroup';
in_matchurl = '';
in_HBgColor = '503020';/* 442211 */
in_HBorderColor = '351F09';/* 503020 */
in_HTitleColor = 'DCAB78';/* DBA46D */
in_HTextColor = 'E1A161';
in_HUrlColor = 'F2BD88';
frame_width = '160';

switch($num){
	case 1:
		frame_height = '130';
		break;
	case 2:
		frame_height = '240';
		break;
	case 3:
		frame_height = '350';
		break;
	case 4:
		frame_height = '460';
		break;
	case 5:
		frame_height = '600';
		break;
	default:
		frame_height = '350';
}
	document.write("<script src='http://cache.microad.jp/send0100.js'></script>");
}

function show_Bad160600_temp(){	/* 退避Brainer AD お試し版(左メインメニュー：背景 DarkBrown)用 */
	brainer_partner_id = "2602";
	brainer_adv_num = "3";
	brainer_click_event = "parent";
	brainer_title_color = "efd089";
	brainer_text_color = "FFCC66";
	brainer_adv_width = "160";
	brainer_adv_height = "400";
	brainer_adv_sh = "vertical";
	brainer_title_alignment = "left";
	brainer_text_alignment = "left";
	brainer_notext = "0";
	brainer_mouseover_border = "503020";
	brainer_mouseover_bgcolor = "503020";
	brainer_border = "503020";
	brainer_bgcolor = "503020";
	brainer_alt_url = "";
	brainer_bg_url = "";
	brainer_channel = "1";

	document.write("<script type='text/javascript' src='http://ad.brainer.jp/ad.js'></script>");
}
//------------------------------------------------------------
//        ■カウンター
//------------------------------------------------------------
function cntt() {	// today: Topページ用
	document.write("<img src='http://accnt.dp08026519.lolipop.jp/cnt/accnt.php?cnt_id=1078102&ac_id=LA09136817&mode=today'>");
}

function cnty() {	// yesterday: Topページ用
	document.write("<img src='http://accnt.dp08026519.lolipop.jp/cnt/accnt.php?cnt_id=1078102&ac_id=LA09136817&mode=yesterday'>");
}

function cntttl() {// total: Topページ用
	document.write("<img src='http://accnt.dp08026519.lolipop.jp/cnt/accnt.php?cnt_id=1078102&ac_id=LA09136817&mode=total'>");
}

function cntttl2() { //--- 非表示カウント
	document.write("<img src='http://accnt.dp08026519.lolipop.jp/cnt/accnt.php?cnt_id=1078102&ac_id=LA09136817&mode=total' width='0' height='0'>");
}

//------------------------------------------------------------
//        ■Weather(wonderground.com)（leftMenu）
//------------------------------------------------------------
function Show_weather(){
	document.write("<a href='http://www.wunderground.com/global/stations/48456.html?bannertypeclick=gizmotimetemp24' target='_blank'>");
	document.write("<img src='http://banners.wunderground.com/weathersticker/gizmotimetemp_metric24/language/www/global/stations/48456.gif' border=0 ");
	document.write("alt='Click for Bangkok, Thailand Forecast' height=41 width=127></a>");
}

//------------------------------------------------------------
//        ■著作権 年度表示
//------------------------------------------------------------
function cry() { // copy right year
	document.write("Copyright 2004-2012 <A href='http://www.thaismile.jp/' target='_top'>ThaiSmile.jp</A> All rights reserved.<BR>");
	document.write("No reproduction or republication without written permission.");
}
function cry2() { // copy right year
	document.write("2004-2012");
}

//------------------------------------------------------------
//        ■フッターリンク表示
//------------------------------------------------------------

//------------------------------------------------------------
//        ■アクセス集計用
//------------------------------------------------------------
function page(pagename) {
	var pg = pagename;
	var a = "&&";
	var pf = navigator.platform + a; 
	var lng = navigator.language + a;
	var swh = screen.width + "x" + screen.height + a;
	var cd = screen.colorDepth + a; 
	var pd = screen.pixelDepth + a;
	var rf = parent.document.referrer;
	var now = new Date();

	document.write("<img src='http://www.thaismile.jp/cgi/access/dsw.cgi?xx=",now.getSeconds(),"&&p=n&&md=j&&");
	document.write("pg="+pg+a+"pf="+pf+"lng="+lng+"swh="+swh+"cd="+cd+"pd="+pd+"rf="+rf);
	document.write("' alt='CGI' border=0>");
}
//------------------------------------------------------------
//        ■フォト表示用
//------------------------------------------------------------
//----------- ■フォトギャラリー（その他花達）用（タイトル表示あり、ワクなし）-------------------
function _HpbJumpURL2(url, str) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	document.write('<SCRIPT language="JavaScript" src="ThaiSmileScripts.js"></SCRIPT>');
	document.write('</HEAD>');
	document.write('<BODY bgcolor="#000000" style="font-size : 12px;">');
	document.write('<CENTER>');

	document.write('<TABLE width="700" height="500"');
	document.write('<TR><TD><CENTER>');
	document.write('<IMG src="'+ url + '"' + ' onClick=history.back()' + ' style="cursor : pointer;">');
	document.write('</CENTER></TD></TR>');
	document.write('</TABLE>');

      if(str != null){
		document.write('<BR><BR><FONT color = "#cccccc" style="font-size : 14px;">' + '< '+str + ' >' + '</FONT><BR>');
	}

	document.write('<HR>');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('<BR><BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');
	document.write('</BODY>');
	document.write('</html>');

//	page(url);
}
//----------- ■壁紙用（背景黒で、タイトル表示あり）-------------------
function _HpbJumpURL3(url, filename, page) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	
	if(page=='each'){
		document.write('<SCRIPT language="JavaScript" src="../../ThaiSmileScripts.js"></SCRIPT>');
	}
	else{
		document.write('<SCRIPT language="JavaScript" src="ThaiSmileScripts.js"></SCRIPT>');
	}
	document.write('</HEAD>');
	
	document.write('<BODY bgcolor="#000000">');
	document.write('<CENTER>');

	document.write('<TABLE width="1024" height="480">');
	document.write('<TR><TD>');
	document.write('<IMG src="'+ url + '"' + ' onClick=history.back()' + ' style="cursor : pointer;">');
	document.write('</TR>');

	document.write('<TR><TD align="center">');
      if(filename != null){
		document.write('<FONT color = "#cccccc" style="font-size : 12px;">' + filename + '</FONT><BR>');
	}
	document.write('</TD></TR>');

	document.write('<TR><TD>');
	document.write('<HR>');
	document.write('</TD></TR>');

	document.write('<TR><TD align="center">');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('</TD></TR>');

	document.write('</TABLE>');
	document.write('<BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');
	document.write('<BR>');

	document.write('</BODY>');
	document.write('</html>');
}

//----------- ■フォトギャラリー用（タイ王国編）（ワクあり、タイトル表示あり）640x480用-------------------
function _HpbJumpURL(url, str, page) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	if(page == '1st'){
		document.write('<SCRIPT language="JavaScript" src="ThaiSmileScripts.js"></SCRIPT>');
	}
	else if(page == '2nd'){
		document.write('<SCRIPT language="JavaScript" src="../ThaiSmileScripts.js"></SCRIPT>');
	}
	else{
		document.write('<SCRIPT language="JavaScript" src="../../ThaiSmileScripts.js"></SCRIPT>');
	}
	document.write('</HEAD>');
	
	document.write('<BODY bgcolor="#000000" text="#cccccc">');
	document.write('<CENTER>');

	document.write('<TABLE width="700" height="500" border="1" bgcolor="#ffffff">');
	document.write('<TR><TD><CENTER>');
	document.write('<IMG src="'+ url + '"'+' border="1"'+ ' onClick=history.back()'+' style="cursor : pointer;">');
	document.write('</CENTER></TD></TR>');
	document.write('</TABLE>');

      if(str != null){
		document.write('<TABLE border="0" cellspacing="10"><TBODY><TR><TD style="font-size : 14px;">' + str + '</TD></TR></TBODY></TABLE>');
	}
	document.write('<HR>');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('<BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');

	document.write('</BODY>');
	document.write('</html>');

//--	page(url);

}

//----------- ■フォトギャラリー用（タイ王国編）2（ワクあり、タイトル表示あり）700x525用-------------------
function _HpbJumpURL700(url, str) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	document.write('<SCRIPT language="JavaScript" src="../../ThaiSmileScripts.js"></SCRIPT>');
	document.write('</HEAD>');

	document.write('<BODY bgcolor="#000000" text="#cccccc">');
	document.write('<CENTER>');
	document.write('<TABLE width="760" height="545" border="1" bgcolor="#ffffff">');
	document.write('<TR><TD><CENTER>');
	document.write('<IMG src="'+ url + '"'+' border="1"'+ ' onClick=history.back()'+' style="cursor : pointer;">');
	document.write('</CENTER></TD></TR>');
	document.write('</TABLE>');

	if(str != null){
		document.write('<TABLE border="0" cellspacing="10"><TBODY><TR><TD style="font-size : 14px;">' + str + '</TD></TR></TBODY></TABLE>');
	}
	document.write('<HR>');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('<BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');

	document.write('</BODY>');
	document.write('</html>');
}

//----------- ■フォトギャラリー用（タイ王国編）2（ワクあり、タイトル表示あり）720x480用-------------------
function _HpbJumpURL720(url, str) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	document.write('<SCRIPT language="JavaScript" src="../../ThaiSmileScripts.js"></SCRIPT>');
	document.write('</HEAD>');

	document.write('<BODY bgcolor="#000000" text="#cccccc">');
	document.write('<CENTER>');
	document.write('<TABLE width="780" height="500" border="1" bgcolor="#ffffff">');
	document.write('<TR><TD><CENTER>');
	document.write('<IMG src="'+ url + '"'+' border="1"'+ ' onClick=history.back()'+' style="cursor : pointer;">');
	document.write('</CENTER></TD></TR>');
	document.write('</TABLE>');

	if(str != null){
		document.write('<TABLE border="0" cellspacing="10"><TBODY><TR><TD style="font-size : 14px;">' + str + '</TD></TR></TBODY></TABLE>');
	}
	document.write('<HR>');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('<BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');

	document.write('</BODY>');
	document.write('</html>');
}

//----------- ■フリー、ブラック（フォトギャラリーのスペシャル）用（背景黒で、タイトル表示あり）-------------------
function _HpbJumpURL4(url, filename) 
{
	document.write('<HTML>');
	document.write('<HEAD>');
	document.write('<SCRIPT language="JavaScript" src="../../ThaiSmileScripts.js"></SCRIPT>');
	document.write('</HEAD>');

	document.write('<BODY bgcolor="#000000">');
	document.write('<CENTER>');

//	document.write('<TABLE width="1024" height="480">');
	document.write('<TABLE height="480">');
	document.write('<TR><TD align="center">');

	document.write('<IMG src="'+ url + '"' + ' onClick=history.back()' + ' style="cursor : pointer;">');
	document.write('</TR>');

	document.write('<TR><TD align="center">');
      if(filename != null){
		document.write('<br><FONT color = "#cccccc" style="font-size : 14px;">' + filename + '</FONT><BR>');
	}
	document.write('</TD></TR>');

	document.write('<TR><TD>');
	document.write('<HR>');
	document.write('</TD></TR>');

	document.write('<TR><TD align="center">');
	document.write('<INPUT type="button" value="&nbsp;back&nbsp;" onClick=history.back() style="cursor : pointer;">');
	document.write('<FONT color = "#cccccc" style="font-size : 12px;">&nbsp; &nbsp; Copyright(C) 2004-2012 ThaiSmile.jp   All rights reserved.</FONT>');
	document.write('</TD></TR>');

	document.write('</TABLE>');
	document.write('<BR><BR>');
	document.write('<SCRIPT LANGUAGE="JavaScript">Show_GAd3()</SCRIPT>');
	document.write('</CENTER>');
	document.write('<BR>');

	document.write('</BODY>');
	document.write('</html>');
}

//----------- ■画像のrandom読み込み-------------------
  function getImageNum(num) {
	var range = num 
	var number = Math.floor(Math.random()*range) + 1
	return(number)
	}

 function showImage() {
	var num = getImageNum(322) 
	var img_src = "http://www.thaismile.jp/wallpapers/" + "wp"+ num + ".JPG"
	document.write("<IMG border='0' SRC=" + img_src + " width='240' height='180'>")
 } 

function Show_GAd3(){	// 壁紙、個別の写真などの表示時用（背景黒用）
google_ad_client = "pub-7471896074105470";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
//2007-04-28: J-Photo
google_ad_channel = "0403061165";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "B3B3B3";
google_color_text = "999999";
google_color_url = "999999";
document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
