function doFilter()
	{
		var path = location.pathname.split("/");
		var notjobs = true;
		for(var i=0;i<path.length;i++){
			// check if the uri contains an indicator of this being the jobs page.
			if(path[i]=='jobs'||path[i]=='jobs-vucx'){
				notjobs=false;
			}
		}
		if(notjobs){
			// only trigger these events outside of the job page.
			
			$("#iContainer .element").mouseenter(
			  function () {
				var divBG = $("div.elContentBG", $(this));
				var div = $("a.elContent", $(this));
				
				divBG.stop();
				div.stop();

				divBG.fadeTo(200,0.7);
				div.fadeTo(400,1);
			  }
			);
			$("#iContainer .element").mouseleave(
			  function () {
				var divBG = $("div.elContentBG", $(this));
				var div = $("a.elContent", $(this));
				
				divBG.stop();
				div.stop();
				
				divBG.fadeOut();
				div.fadeOut(200);
			  }
			);
		}else{
			// inside of the job page, overlays are toggled off.
			$("div.elContentBG").fadeTo(200,0.3);
			$("a.elContent").fadeTo(400,1);
		}
		
		var links = $("div.controls a");
		
		links.bind("click",function(){
			var links = $("div.controls a");
			links.removeClass();
			
			var link = $(this);
			link.addClass("selected");
			
			var filter = link.attr("tag");
			$("#iContainer").isotope({ 
				filter: filter,
				animationEngine : 'jquery'
			});
			
			var links = $("#iContainer a.elContent");
			var subcat = filter.replace(".cat", "");
			links.each(function()
			{
				var a =  $(this);
				var url = a.attr("url");
				//url+="&subCat="+subcat;
				a.attr("href",url);
			});
			return false;
		});
	}

