function truncate(text,length, ellipsis) {    
    if (typeof length == 'undefined') var length = 55;
    if (typeof ellipsis == 'undefined') var ellipsis = '...';

    if (text.length < length) return text;

    for (var i = length-1; text.charAt(i) != ' '; i--) {
        length--;
    }
    return text.substr(0, length) + ellipsis;
}

var excerpt;

excerpt = 'Mobsters, We have more bug fixes to report! Before we get to the details, though, please continue to report any bugs you encounter in our \"Report A Bug\" forum, as it helps us prioritize their fixes for you. Also, detailed reproduction steps help us more quickly determine the reason behind an issue, so we always encourage you to include them. Thanks again to everyone who submitted the bug reports that helped us close these issues! - The Mafia Wars Team Money Disappearing From Bank Or Vault Issue: Some players reported that city money had disappeared from their banks/vault. Status: Resolved...';
excerpt = truncate(excerpt);

document.write('<h3><a href="http://blog.mafiawars.com/2012/02/recent-bug-fixes-2012-02-04.html">Recent Bug Fixes (2/4/2012)</a></h3>');
document.write('<h4>February 04, 2012</h4>');
document.write('<p>');
document.write(excerpt);
document.write('<a href="http://blog.mafiawars.com/2012/02/recent-bug-fixes-2012-02-04.html">Read More</a></p>');

excerpt = 'Mobsters, Because we know that the validity of shortened game links is important to you, we wanted to give you a heads-up that, starting at 12:01am (Pacific Time) on Saturday, February 4th, the links we post to our Facebook fan pages will begin with \"http://zynga.tm\". These links come directly from us, so you can trust them as legitimate. We realize that we recently changed our shortned links once already. Switching to \"http://zynga.tm\" should be the last change we make to them for a while. Thank you for your patience, The Mafia Wars Team';
excerpt = truncate(excerpt);

document.write('<h3><a href="http://blog.mafiawars.com/2012/02/one-more-change-to-the-form-of-our-shortened-links.html">One More Change To The Form Of Our Shortened Links</a></h3>');
document.write('<h4>February 03, 2012</h4>');
document.write('<p>');
document.write(excerpt);
document.write('<a href="http://blog.mafiawars.com/2012/02/one-more-change-to-the-form-of-our-shortened-links.html">Read More</a></p>');

excerpt = 'Mobsters, 1) In response to your feedback, we have increased the limit on the number of upgrade part request posts you can click to send members of your mafia upgrade parts for their Hangars. We doubled this limit from 5 to 10. 2) The issue that caused some players to see a property other than the Hangar upon clicking to build from or upgrade it was resolved around 5:30am (Pacific Time) today, 1/31/2012. Note: You may need to reload the game once to have the fix applied to your game. 3) Please let us know if you experience any bugs...';
excerpt = truncate(excerpt);

document.write('<h3><a href="http://blog.mafiawars.com/2012/01/the-hangar-an-update.html">The Hangar: An Update</a></h3>');
document.write('<h4>January 31, 2012</h4>');
document.write('<p>');
document.write(excerpt);
document.write('<a href="http://blog.mafiawars.com/2012/01/the-hangar-an-update.html">Read More</a></p>');

<!-- ph=1 -->

