        // JavaScript Document

/* Following functions are found in this javascript file using JQuery version jquery-1.3.2:

		** gets rid of last comma in tags
		** shorten neighborhood description
		
Last Updated: 01/19/10
Author: RR

*/

$(function(){

// gets rid of last comma in tags
/*
	$('.tag').each(function(){
		var x = $(this).html();
		lastComma = x.lastIndexOf(",");
		x = x.substring(0, lastComma);
		$(this).html(x);
	}); 

*/
// shorten neighborhood description
	
	$('.story').each(function() {
                var newChar = $(this).text().substring(0, 350);
                var newChar = $(this).text(newChar);
                var newChar = $(this).text().lastIndexOf(' ');
                var newChar = $(this).text().substring(0, newChar);
		$(this).text(newChar);
	}); 
	
	
});	

    