/* 文字コードはUTF-8 */

(function(){
var ssl_flag = (window.location.href.indexOf('https') !== -1);
var url = 'http://' + window.location.hostname + window.location.pathname.replace(/\/sp\//, '/');
var links = new Array();
if(!ssl_flag){
	links.push(['mixi','<a href="http://mixi.jp/share.pl" class="mixi-check-button" data-key="1dcdbb78b706da87dd1c530599b0d3f6bed2ff78" data-url="' + url + '">Check</a><script type="text/javascript" src="http://static.mixi.jp/js/share.js"></script>']);
}
if(!navigator.userAgent.match(/Android/)){
	links.push(['twitter','<a href="http://twitter.com/share" class="twitter-share-button" data-count="' + (ssl_flag ? 'none' : 'horizontal') + '" data-via="N_Academy" data-lang="ja" data-url="' + url + '">Tweet</a><script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script>']);
}
links.push(['facebook','<script src="https://connect.facebook.net/ja_JP/all.js#xfbml=1"></script><fb:like href="' + url + '" layout="button_count" show_faces="true"></fb:like>']);
document.write('<table class="sbm_link" cellpadding="0" cellspacing="0"><tr>');
for(var i=0;i<links.length;i++){
	document.write('<td class="' + links[i][0] + '">' + links[i][1] + '</td>');
}
document.write('</tr></table>');
})();
