var checkCurrent = function() {
	var that = $(this);
	
	if(typeof topmenupoint == "undefined") {
		topmenupoint = "none-";
	}
	
	that.find("a").each(function() {
		if("/" + $(this).attr("href") == window.location.pathname.toString() || $(this).attr("href").indexOf(topmenupoint) != -1) {
			$(this).addClass("current");
		}
	});
};

$(document).ready(function() {				   
	$(".rounded").corners();
	
	$("#menylist li").each(checkCurrent);
});