$(function() {
  	var currentPage = window.location.pathname;
  	if(currentPage == "/"){currentPage = '/index.php'}
  	currentPage = currentPage.replace(/\//,'');
  	$('#navbar a').each(function(){
  		if(currentPage == $(this).attr('href')){
  			var imgTxt = $(this).html();
  			imgTxt = imgTxt.replace(/.\gif/,'_h.gif')
  			$(this).replaceWith(imgTxt);
  		}
  	}); // end each
  }); //end ready