document.write('<script type="text/javascript" src="/js/jquery.js"><\/script>');
document.write("<script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'><\/script>");
function setupSNS(target, url)
{
	$.ajaxSetup({scriptCharset:'utf-8'});
	target.append('<script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>');
	target.append('<a href="http://b.hatena.ne.jp/entry/' + url + '" class="hatena-bookmark-button" data-hatena-bookmark-title="" data-hatena-bookmark-layout="simple" title="はてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/button-only.gif" alt="はてなブックマークに追加" width="20" height="20" style="border: none;" /></a>');
	target.append('<a href="http://mixi.jp/share.pl" class="mixi-check-button" data-key="a81167cfb5de1ed22fed90c68f6a6fdb85c4e207" data-url="' + url + '" data-button="button-2">Check</a>');
	target.append('<script type="text/javascript" src="http://static.mixi.jp/js/share.js"><\/script>');
	target.append('<div style="width:125px;display:inline-block;"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="phileweb" data-lang="ja" data-url="' + url + '">Tweet<\/a><\/div>');
	target.append('<iframe src="http://www.facebook.com/plugins/like.php?locale=ja_JP&amp;app_id=128970860518236&amp;href=' + encodeURIComponent(url) + '&amp;send=false&amp;layout=button_count&amp;width=110&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px;" allowTransparency="true"></iframe>');
	target.append('<g:plusone size="medium" href="' + url + '"></g:plusone>');
	target.append('<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: \'ja\'}<\/script>');
	$.getScript('http://platform.twitter.com/widgets.js');
}
function tosp() {
	document.cookie = "spoff=off;path=/";
	newurl = window.location.href;
	newurl = newurl.replace(window.location.host + '/sp/', window.location.host + '/');
	window.location.href = newurl;
}


