jQuery.noConflict();

(function($){

  	$(document).ready(function(){
  		togit($('input[name*="commentType"]:checked').attr('value'));
  		$('input[name*="commentType"]').click(function(){
  			togit($(this).attr('value'));
  			})
  	});
  	
  	function togit(n){
  		switch (n){
  			case "general":
				$('#comment').show();
				$('#sysnum').hide();
				$('#bib').hide();
				$('#contact').show();
				$('#item').hide();
				$('#course').hide();
			break;

			case "catRept":
				$('#comment').show();
				$('#sysnum').show();
				$('#bib').show();
				$('#contact').show();
				$('#item').hide();
				$('#course').hide();
			break;

			case "missing":
				$('#comment').show();
				$('#sysnum').hide();
				$('#bib').show();
				$('#contact').show();
				$('#item').show();
				$('#course').hide();
			break;

			case "eReserves":
				$('#comment').show();
				$('#sysnum').hide();
				$('#bib').hide();
				$('#contact').show();
				$('#item').hide();
				$('#course').show();
			break;

			case "showAll":
				$('#comment').show();
				$('#sysnum').show();
				$('#bib').show();
				$('#contact').show();
				$('#item').show();
				$('#course').show();
			break;

			case "techSupport":
				$('#comment').show();
				$('#sysnum').hide();
				$('#bib').hide();
				$('#contact').show();
				$('#item').hide();
				$('#course').hide();
			break;
		}	
 	}
  	
})(jQuery);
	

