$(function(){
			
	/* borough map list tooltips */
	$("ul#flags li a").tooltip({
	    track: true, 
	    delay: 0, 
	    showURL: false, 
	    showBody: " - ", 
	    fade: 250 
		});
		
	$('#petty').hide();
	
	$('#petty').before('<p><a href="#" id="showit">[read the full statement]</a></p>');
		
	$('a#showit').click(function() {
    	$('#petty').toggle();
    	$(this).text($(this).text() == '[read the full statement]' ? '[hide the full statement]' : '[read the full statement]');
    return false;
  });
		
	$('#pettyes').hide();
	
	$('#pettyes').before('<p><a href="#" id="showites">[leer el texto completo]</a></p>');
		
	$('a#showites').click(function() {
    	$('#pettyes').toggle();
    	$(this).text($(this).text() == '[leer el texto completo]' ? '[ocultar el texto]' : '[leer el texto completo]');
    return false;
  });
		
	$('#pettypt').hide();
	
	$('#pettypt').before('<p><a href="#" id="showitpt">[leia a declara\347\343o completa]</a></p>');
		
	$('a#showitpt').click(function() {
    	$('#pettypt').toggle();
    	$(this).text($(this).text() == '[leia a declara\347\343o completa]' ? '[oculte a declara\347\343o completa]' : '[leia a declara\347\343o completa]');
    return false;
  });
		
});
