$(document).ready(function() {$(".jsenabled").css("display", "block");$("#facets a.all").addClass('current');	// filter programs by selected link class 	$('#facets li a').click(function() {		var $currentclass = $(this).attr("class");		// for testing - show facet class clicked		// $('p#insertclass').text($currentclass);				// remove any highlights and add one to the facet just clicked		$('#facets a').removeClass('current');		$(this).addClass('current');		return false;			});			// show all programs		$('#facets a.all').click(function() {		$('#facets a').removeClass('current');		$(this).addClass('current');		$('#programs li').show();	});		// for each item in programs lists - match to class on facet link	// this is brute force - need to make a dynamic version// level	$('#facets a.ug').click(function() {		$('#programs li:not(.ug)').hide();		$('#programs li.ug').show();	});		$('#facets a.grad').click(function() {		$('#programs li:not(.grad)').hide();		$('#programs li.grad').show();	});		$('#facets a.doc').click(function() {		$('#programs li:not(.doc)').hide();		$('#programs li.doc').show();	});			$('#facets a.nondegree').click(function() {		$('#programs li:not(.nondegree)').hide();		$('#programs li.nondegree').show();	});			$('#facets a.dual').click(function() {		$('#programs li:not(.dual)').hide();		$('#programs li.dual').show();	});			$('#facets a.ce').click(function() {		$('#programs li:not(.ce)').hide();		$('#programs li.ce').show();	});			$('#facets a.execed').click(function() {		$('#programs li:not(.execed)').hide();		$('#programs li.execed').show();	});				// length		$('#facets a.1year').click(function() {		$('#programs li:not(.1year)').hide();		$('#programs li.1year').show();	});		$('#facets a.2year').click(function() {		$('#programs li:not(.2year)').hide();		$('#programs li.2year').show();	});		$('#facets a.3year').click(function() {		$('#programs li:not(.3year)').hide();		$('#programs li.3year').show();	});			$('#facets a.4year').click(function() {		$('#programs li:not(.4year)').hide();		$('#programs li.4year').show();	});				$('#facets a.5year').click(function() {		$('#programs li:not(.5year)').hide();		$('#programs li.5year').show();	});		// hours	$('#facets a.fulltime').click(function() {		$('#programs li:not(.fulltime)').hide();		$('#programs li.fulltime').show();	});			$('#facets a.parttime').click(function() {		$('#programs li:not(.parttime)').hide();		$('#programs li.parttime').show();	});			$('#facets a.weekend').click(function() {		$('#programs li:not(.weekend)').hide();		$('#programs li.weekend').show();	});		// location	$('#facets a.boston').click(function() {		$('#programs li:not(.boston)').hide();		$('#programs li.boston').show();	});			$('#facets a.holyoke').click(function() {		$('#programs li:not(.holyoke)').hide();		$('#programs li.holyoke').show();	});			$('#facets a.south').click(function() {		$('#programs li:not(.south)').hide();		$('#programs li.south').show();	});			$('#facets a.north').click(function() {		$('#programs li:not(.north)').hide();		$('#programs li.north').show();	});			$('#facets a.west').click(function() {		$('#programs li:not(.west)').hide();		$('#programs li.west').show();	});			$('#facets a.remote').click(function() {		$('#programs li:not(.remote)').hide();		$('#programs li.remote').show();	});				// schools		$('#facets a.casug').click(function() {		$('#programs li:not(.casug)').hide();		$('#programs li.casug').show();	});			$('#facets a.casgs').click(function() {		$('#programs li:not(.casgs)').hide();		$('#programs li.casgs').show();	});			$('#facets a.gslis').click(function() {		$('#programs li:not(.gslis)').hide();		$('#programs li.gslis').show();	});			$('#facets a.shs').click(function() {		$('#programs li:not(.shs)').hide();		$('#programs li.shs').show();	});			$('#facets a.som').click(function() {		$('#programs li:not(.som)').hide();		$('#programs li.som').show();	});			$('#facets a.ssw').click(function() {		$('#programs li:not(.ssw)').hide();		$('#programs li.ssw').show();	});			// topics	$('#facets a.nursing').click(function() {		$('#programs li:not(.nursing)').hide();		$('#programs li.nursing').show();	});			$('#facets a.education').click(function() {		$('#programs li:not(.education)').hide();		$('#programs li.education').show();	});			$('#facets a.writing').click(function() {		$('#programs li:not(.writing)').hide();		$('#programs li.writing').show();	});			$('#facets a.lang').click(function() {		$('#programs li:not(.lang)').hide();		$('#programs li.lang').show();	});			$('#facets a.mgmt').click(function() {		$('#programs li:not(.mgmt)').hide();		$('#programs li.mgmt').show();	});			});