$(document).ready(function(){
	if ($('#nav').length>0){
	    thisURL = window.location.pathname.substring(window.location.pathname.lastIndexOf("/")+1);
	    $('#nav li a[href=\"'+thisURL+'\"]').parent().addClass('current');
    }
});
