                                                                                                                                           // JavaScript Document        







$(document).ready(function() {


// THIS REMOVE TRAILING COMMAS

$('.comma').each(function(){
    var x = $(this).html(); 
    lastComma = x.lastIndexOf(",");
    x = x.substring(0, lastComma);
    $(this).html(x);
});


try{
$('.formContainer iframe').hide();
		
	$('#landing .email a').unbind().click(function() {

$('.formContainer iframe').toggle('slow');

	});
}catch(err){}

try{
$(".noSearchResults").each(function(){
$(this).parent("div").hide();
});


}catch(err){}

try{
$(".mlsContainer #location").focus(function(){
$(this).val("");
});

}catch(err){}


        //shorten neighborhood description
	$('.neighborContainer .desc').each(function() {
		var newChar = $(this).text().substring(0,50);
		$(this).text(newChar);
	});

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






// Dialog Link


	$('#dialog_link').unbind().click(function(){
$(".fader").show();
$("#dialog").show();

		return false;
	});	

$('#dialog-close').unbind().click(function(){
$(".fader").hide();
$("#dialog").hide();

});












});

    

    

    

    

    

    

    

    

    

    

    