$(document).ready(function(){
	$("input[type='checkbox'].notify_t").change(function(){
		var checked = $(this).checked; 
		var rel = $(this).attr('rel');
		if (rel && rel.indexOf('All')==0) {
			if (checked) {
				$("input[rel!='All'].notify_t").each(function(){
					this.checked = false;
					this.disabled = true;
				});
			}else{
				$("input[rel!='All'].notify_t").each(function(){
					this.checked = false;
					this.disabled = false;
				});
			}
		}
		else {
			$("input[rel='All'].notify_t").get(0).checked = false; //uncheck 'All'
		}
	});
});
