$(document).ready(function(){



	// remember to set last index key 0
	var path = location.pathname.substring(1).split("/")[0];
	if (path)
		$('#nav a[href="' + path + '"]').attr('class', 'selected');
	if (path == "")
		$('#nav a[href="/"]').attr('class', 'selected');
		
	

	
});

