var ne=new Array('abbr', 'nav', 'article', 'section', 'header', 'footer', 'aside', 'figure', 'figcaption', 'mark', 'hgroup');
var i=ne.length; while (--i>=0) document.createElement(ne[i]);

if (document.getElementById &&
	 navigator.userAgent.indexOf('Opera/6.')<0 &&
	 navigator.userAgent.indexOf('Opera 6.')<0 &&
	 navigator.userAgent.indexOf('Opera/5.')<0 &&
	 navigator.userAgent.indexOf('Opera 5.')<0) {
	mmmmm=window.onload;
	window.onload=function() {



		var url=location.protocol+'//'+location.hostname;
		var f=0, lang='ja';

		var j=(document.getElementsByTagName('html'))[0];
		var tx1=' alt="リンクURLの表\示" title="本記事をお手持ちのウェブサイトやウェブログからリンクされる方は、このボタンを押すとPC/モバイル両対応のURLをご案内致します。"', tab1='URL表\示';
		var tx2=' alt="本記事をツィート" title="本記事をツィッターで言及される場合に押してください。※ツィート先URLはPC向けとモバイル向けを自動的に振り分けるようになっております。"';

		var tx3=' alt="本記事をフェイスブックで共有" title="本記事をフェイスブックで共有される場合に押してください。※共有URLはPC向けとモバイル向けを自動的に振り分けるようになっております。"', tab3='共有';

		if (j.getAttribute('lang').toLowerCase().indexOf('en')>-1) {
			tx1=' alt="Show URL of this article." title="Click this button for the URL when you wish to link from your website or your blog."', tab1='Show URL';
			tx2=' alt="Tweet!" title="Click this button when you wish to tweet this article on Twitter."';
			tx3=' alt="Share this article on Facebook!" title="Click this button when you wish to share this article on Facebook."';
			tab3='Share';
			url=location.protocol+'//'+location.hostname;
			lang='en-us';
			}
		else if (location.pathname.indexOf('/WWW/')>-1 || location.pathname.indexOf('/Labo/')>-1 || location.pathname.indexOf('/Games/')>-1) {
			tx2=' alt="本記事をツィート" title="本記事をツィッターで言及される場合に押してください。"';

			tx3=' alt="本記事をフェイスブックで共有" title="本記事をフェイスブックで共有される場合に押してください。"';
			url=location.protocol+'//'+location.hostname;
			}

		var tfl=0;
		var j=(document.getElementsByTagName('head'))[0];
		var t=j.getAttribute('data-tweetable');
		if (t) {
			a='';
			var title='';
			var is=location.pathname.split('/');
			var j=-1; while (++j<is.length) {
				if (!f && j<2 && is[j]=='Nihongo') continue;
				if (is[j]=='') continue;
				url+='/'+encodeURI(decodeURI(is[j]));
				}

			i=(document.getElementsByTagName('title'))[0];
			title=i.innerHTML;


			a+='<span style="display: inline-block; width: 48px; line-height: 1em; font-size: 16px; color: #000; text-align: center; "><a href="https://twitter.com/share?url='+url+'&amp;title='+title+'"><img style="border: none; padding: 0; margin: 0  ; "'+tx2+' width="36" height="36" src="http://www.marguerite.jp/Twitter.GIF" /></a> Tweet</span><span style="display: inline-block; width: 48px; line-height: 1em; font-size: 16px; color: #000; text-align: center; "><a href="http://www.facebook.com/share.php?u='+url+'&amp;t='+title+'"><img style="border: none; padding: 0; margin: 0; "'+tx3+' width="36" height="36" src="http://www.marguerite.jp/FaceBook.GIF" /></a> '+tab3+'</span>';

			i=(document.getElementsByTagName('body'))[0];
			i.innerHTML=i.innerHTML+'<div style="position: absolute; left: 0.5em; top: 2.5em; ">'+a+'</div>';

			}

























		if (document.getElementById) {
			eles=document.getElementsByTagName('a');
			k=-1;
			while (++k<eles.length) {
				i=eles[k].getAttribute('class',0) || eles[k].getAttribute('className',0);
				if (i=='SpecialLink') {
					eles[k].href='';
					eles[k].setAttribute('href','');
					eles[k].removeAttribute('href');
					eles[k].onclick='return(false);';
					}
				}
			eles=document.getElementsByTagName('*');
			k=-1;
			while (++k<eles.length) {
				i=eles[k].getAttribute('class',0) || eles[k].getAttribute('className',0);
				if (i=='forAural') {
					eles[k].innerHTML='';
					}
				}
			}
		if (mmmmm) mmmmm();
		}
}




