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 + '" - ' + 'the meaning and origin of this phrase. - ' + twtUrl);
document.write('<a href="'+twtLink+'" target="_blank"'+'><img src="http://www.phrases.org.uk/images/tweet.gif"  border="0" alt="Tweet This!" /'+'><'+'/a>');


