<!--
	
	var toggleNWSSubselect = function() {
		if($("input[name=_nws]").attr('checked')) {
			$("#_nws_subselect").show();
		}
		else {
			$("#_nws_subselect").hide();
		}
	}
	
	$(document).ready(function() {
		// National Weather Service select
		if(typeof $("input[name=_nws]").attr('value') != 'undefined' && typeof $("#_nws_td").attr('id') != 'undefined') { 
			$("#_nws_td").click(toggleNWSSubselect);
			// initialize subselect
			toggleNWSSubselect();
		}
		
		// School Closings school categories
		$("input[name^=_sc_m]").each(function() {
			$(this).click(function() {
				var subsel = '#' + $(this).attr('name') + '_subselect';
				if($(this).attr('checked')) {
					$(subsel).show();
				}
				else {
					$(subsel).hide();
				}
			});
		});
		
	});

//-->