var firstload = true;
$(function() {
	$("#texam input").bind("click",function(e) {
		if (firstload) $("div.exes").addClass("hexam");
		if (this.checked) { $("div[group="+this.value+"]").removeClass("hexam"); $("div[group2="+this.value+"]").removeClass("hexam"); }
		if (!this.checked) { $("div[group="+this.value+"]").addClass("hexam"); $("div[group2="+this.value+"]").addClass("hexam"); }
		firstload = false;
		if ($('#texam input:checkbox:checked').size()==0) { $("div.exes").removeClass("hexam"); firstload = true; }
		$("#texam input:checked").each(function(){ $("div[group="+this.value+"]").removeClass("hexam"); $("div[group2="+this.value+"]").removeClass("hexam"); });
	});

});


$(function() {
	$('a.desccc').tooltip({showURL:false,delay:0,track:true,top:10,left:10});
	});

