$(document).ready(function() {
	//latest firms
	$('#lfPL').click(function() {
		$('#lfWRcontent').hide();
		$('#lfPLcontent').show();
	});
	$('#lfWR').click(function() {
		$('#lfPLcontent').hide();
		$('#lfWRcontent').show();
	});
});

var showed = -1;
function toggleProfileType(current, total) {
	if(current == showed) {
		showed = -1;
		$('#pt' + current).hide();
	} else {
		for(var i = 1; i <= total; i++) {
			if(i == current) {
				showed = i;
				$('#pt' + i).show();
			} else {
				$('#pt' + i).hide();
			}
		}
	}
	return false;
}
