$(function() {
  	var currentPage = window.location.pathname;
  	// use html or php as appropiate
  	if(currentPage == "/"){currentPage = '/index.html'}
  	currentPage = currentPage.replace(/\//,'');
  	$('#leftmenu a').each(function(){
  		if(currentPage == $(this).attr('href')){
  			var imgTxt = $(this).html();
  			imgTxt = imgTxt.replace(/.\gif/,'_over.gif')
  			$(this).replaceWith(imgTxt)
  			.css('cursor','default')
  			.removeAttr('href');
  		} // end if
  	}); // end each
  }); //end ready
