$(document).ready(function() {
	if(document.getElementById('consumer').checked) {
		showConsumerSection();
	} else {
		showRetailerSection();
	}
	if(document.getElementById('consumerStore').checked) {
		toggleConsumerStoreSection();
	}
	$("#consumer").click(showConsumerSection);
	$("#retailer").click(showRetailerSection);
	$("#consumerStore").click(toggleConsumerStoreSection);
});

function showConsumerSection() {
	$("#retailerSection").hide();
	$("#consumerSection").show();
}

function showRetailerSection() {
	$("#consumerSection").hide();
	$("#retailerSection").show();
}

function toggleConsumerStoreSection() {
	$("#consumerStoreSection").toggle();
}