$(function(){

	$("table.features td").each(function(){
	
		var yes = $(this).html();
		
		if(yes == 'Y' || yes == 'y') {
			$(this).empty().append("<img src='/img/tick.png' />");
		}
	
	});

	$("#templates div").hide();

	$("#templates div.estate").show();
	
	$("form select#type option[value='estate']").attr('selected','selected');
	
	$("form select#type").change(function(){
		
		var slctr = $(this).attr('value');
		
		$("#templates div").hide();
		
		$("#templates div."+slctr).show();
		
		return false;
	});
	
	a = true;
	
	$("#notes p").each(function(){
	
		var cls = a ? 'a' : 'b';
		a = !a;
		
		$(this).addClass(cls);
	
	});
});
