$(document).ready(function() {
	// do stuff when DOM is ready
	if ($("#country").length > 0) {
 		$("#country").change(function () {
        	var country = $("#country option:selected").attr("value");
        	$("fieldset#addresses div").each(function () {
        		$(this).hide();
//        		alert($(this).attr("id"));
        		if ($(this).attr("id") == country) {
        			$(this).show();
        		}
	      	});
        	if (country == "other") {
        		$("fieldset#addresses #marketing").show();
        	}
        })
        .change();
	}
});
