$(document).ready(function(){
	
	$(".feature-employment").click(
		function()
		{
			//get the href
			href = $(this).find("a").attr("href");
			wl = window.location;
			var substr = href.substring(0, 4);
			if(substr == "http")
			{
				window.location = href;
			}
			else
			{
				window.location = window.location + href;
			}
		}
	)
	
	$(".feature-whatson").click(
		function()
		{
			//get the href
			href = $(this).find("a").attr("href");
			wl = window.location;
			var substr = href.substring(0, 4);
			if(substr == "http")
			{
				window.location = href;
			}
			else
			{
				window.location = window.location + href;
			}
		}
	)
	
	$(".feature-links").click(
		function()
		{
			//get the href
			href = $(this).find("a").attr("href");
			wl = window.location;
			var substr = href.substring(0, 4);
			if(substr == "http")
			{
				window.location = href;
			}
			else
			{
				window.location = window.location + href;
			}
		}
	)
	

});
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};


function urlCleanFormat(s) {
	s = s.replace(/\s/g, "").toLowerCase();
	s = s.replace(/\//g, ""); 
	s = s.replace(/'/g, ""); 
	s = s.replace(/&amp;/g, ""); 
	s = s.replace(/&/g, ""); 
	return s;
};