// JavaScript Document
var mstfb={};
mstfb.isInArray=function(str,ar){if(ar.length<1)return;for(var i=0;i<ar.length;i++){if(ar[i]==str){return true;break;}}return false;}
mstfb.showbadge=function(){if(!window.XMLHttpRequest){return;}
if(document.getElementById('twitterFollowBadge')){document.body.removeChild(document.getElementById('twitterFollowBadge'));}
mstfb.tabStyleCode='position:fixed;'+'top:'+'136px;'+'width:'+mstfb.width+'px;'+'height:'+mstfb.height+'px;'+'z-index:8765;'+'cursor:pointer;'+'background:url(http://www.marshmallowstudio.jp/apps/twitter/buttons/'+mstfb.n+');'+'background-repeat:no-repeat;';
mstfb.tabStyleCode+='right:0; background-position:left top;';mstfb.aboutStyleCode+='right:0;';
mstfbMainDiv=document.createElement('div');
mstfbMainDiv.setAttribute('id','twitterFollowBadge');
document.getElementById('targetContainer').innerHTML='<div id="mstfbTab" style="'+mstfb.tabStyleCode+'"></div>'+'<style>#twitterFollowBadge:hover {visibility:visible;}</style>';
document.getElementById('mstfbTab').onclick=function(){window.open('http://twitter.com/'+mstfb.account);}
}