//------------------------------------------------------------
//        ■SNS
//------------------------------------------------------------
function Show_SNSBtn(){
	document.write("<div class='SNSlayout'>");


	/******* 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: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では表示されない */

	/******* 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"  style="margin-right : 6px;" /></a>');

	
	/******* 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=button_count&show_faces=false&width=90&action=like&colorscheme=dark&height=20&locale=en_US";
		document.write('<iframe src="' + url + '" allowtransparency="true" style="border: medium none ; overflow: hidden; width: 150px; height: 20px;" frameborder="0" scrolling="no"></iframe>');
//	document.write("</div>");



	document.write("</div>");
}

//------------------------------------------------------------
//        ■アクセス集計用
//------------------------------------------------------------
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.e-thailanguage.com/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>");
}
//------------------------------------------------------------
//        ■Googld AD
//------------------------------------------------------------
function GAdUp(){		/* Googld AD （上部用)　*/
	google_ad_client = "ca-pub-7471896074105470";
	/* eThaiLanguage-up */
	google_ad_slot = "1187356113";
	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 GAdDown2(){	/* Googld AD (下部用） */
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 468;
	google_ad_height = 15;
	google_ad_format = "468x15_0ads_al";
	google_ad_type = "text";
	//2007-06-27: e-thailanguage
	google_ad_channel = "5354772381";
	google_color_border = "53280F";
	google_color_bg = "53280F";
	google_color_link = "E1B279";
	google_color_text = "D68F44";
	google_color_url = "0000FF";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function 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-06-27: e-thailanguage
	google_ad_channel = "8809534419";
	google_color_border = "52250D";
	google_color_bg = "52250D";
	google_color_link = "E1B279";
	google_color_text = "D68F44";
	google_color_url = "FFCC66";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function GAdSide(){	/* Googld AD (左サイドメニュー用) */
	google_ad_client = "pub-7471896074105470";
	google_ad_width = 160;
	google_ad_height = 600;
	google_ad_format = "160x600_as";
	google_ad_type = "text";
	//2007-06-28: e-thailanguage
	google_ad_channel = "7114003914";
	google_color_border = "52250D";
	google_color_bg = "52250D";
	google_color_link = "E1B279";/* FFCC66";*/
	google_color_text = "D68F44";/*F2984C*/
	google_color_url = "FFCC66";

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}

function GAdMiddle(){	/* Googld AD (コンテンツ中用) */

	google_ad_client = "pub-7471896074105470";
	/* 468x60, 作成済み 10/05/17 */
	google_ad_slot = "5570691637";
	google_ad_width = 468;
	google_ad_height = 60;

	document.write("<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>");
}
