jQuery(function($) {
 "use strict";

	var Engine = {
		utils : {
			navSelectedState : function(nav){
				 // add selected class to nav
				 // pass in the container tag eg 'nav'
				 jQuery(nav + " li").each(function(){
					   if (jQuery(this).find("a").attr('href') === window.location.pathname)
					   {
							 jQuery(this).addClass('selected');
							 jQuery(this).parents("li").addClass('selected');
					   }   
				 });
			}

			
		},
		
		fixes : {
			removeFooterSeparator : function(selector) {
			
				jQuery(selector + ":last").html("");
			
			}
		
		}
	
	};

	Engine.utils.navSelectedState('ul.list');
	
	Engine.fixes.removeFooterSeparator(".menu span");
	
});
