window.fbAsyncInit=function(){FB.init({appId:'your app id',status:true,cookie:true,xfbml:true});};(function(){var e=document.createElement('script');e.async=true;e.src=document.location.protocol+'//connect.facebook.net/en_US/all.js';document.getElementById('fb-root').appendChild(e);}());marg=Math.floor(Math.random()*6);rota=Math.floor(Math.random()*6);rotb=Math.floor(Math.random()*6);rotc=Math.floor(Math.random()*6);rotd=Math.floor(Math.random()*6);rot=rota-rotb;rott=rotc-rotd;rottt=rotb-rotd;if(rot==0){rot=rot-rotb;}
tweettopmarg=35;if(rot<-1){tweettopmarg=37;}else{tweettopmarg=35;}
if(rot<-3){tweettopmarg=35;}
if(rot>3){tweettopmarg=53;}

/*tweet*/
tweettopmarg=-3;document.write('<div class="socialbuttons"><div class="twutton" style="margin-top:-'+tweettopmarg+'px !important; -webkit-transform: rotate('+-rott+'deg); -moz-transform: rotate('+rott+'deg); -o-transform: rotate('+rott+'deg); -ms-transform: rotate('+rott+'deg); transform: rotate('+rott+'deg);"><a href="http://twitter.com/share" class="twitter-share-button" data-url="'+likepath+'" data-text="'+twext+'" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>');

/*Google +1 */
document.write('<div class="twutton plusone" style="z-index:10; margin-left:'+marg+'px !important; margin-top:'+rota*3+'px !important; -webkit-transform: rotate('+rottt+'deg); -moz-transform: rotate('+rottt+'deg); -o-transform: rotate('+rottt+'deg); -ms-transform: rotate('+rottt+'deg); transform: rotate('+rottt+'deg);"><g:plusone size="medium" href="'+likepath+'"></g:plusone></div>');

/*fb*/
document.write('<div class="likepost" style="z-index:10; margin-left:'+marg+'px !important; margin-top:'+rota*3+'px !important; margin-bottom:20px !important; -webkit-transform: rotate('+rot+'deg); -moz-transform: rotate('+rot+'deg); -o-transform: rotate('+rott+'deg); -ms-transform: rotate('+rott+'deg); transform: rotate('+rott+'deg);"><fb:like href='+likepath+' layout="button_count" show_faces="false" action="like" colorscheme="light"></fb:like></div></div>');
