// JavaScript Document

var twtTitle  = document.title;
var twtUrl    = location.href;
var maxLength = 140 - (twtUrl.length + 1);
if (twtTitle.length > maxLength) {
twtTitle = twtTitle.substr(0, (maxLength - 3))+'...';
}
var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl);
document.write('<a href="'+twtLink+'" target="_blank"'+' rel="nofollow"><img src="http://spencerhaley.com/twitter-spencer-haley.png"  border="0" data-out="http://spencerhaley.com/twitter-spencer-haley.png" data-over="http://spencerhaley.com/twitter-spencer-haley-green.png" alt="Tweet Spencer Haley on Twitter" /'+'><'+'/a>');
