jQuery(function(){
    //var path = location.pathname.substring(1);
    //var path = location.pathname.substring(29);
    //$('#menu a[@href$="' + path + '"]').addClass('current');
    // Figure out the location based on the browser URL
	var path = location.pathname.substring(3);
    // Set your homepage here, eg. /index.php or /
	var home = "index.php";
	// Check the home link against the path and set the navigation accordingly. 
	if (path == home || path == "/") {
		// Note that the jQuery selector matches *only* the home link
		var $nav = $('#menu a[@href="' + home + '"]');
	} else {
		var $nav = $('#menu a[@href$="' + path.substring(1) + '"]');
	}

	// Add the active class to the current path and activate it's subnavigation
//	$nav.addClass('current');
})