
jQuery.fn.extend({
  enter: function() {
    return this.each(function() {
							  var pth = $(this).find("img")[0];
							  //var linka=$(this).find("a")[0];
							  if($(this).children().attr("href")==document.location.href){
								  //alert($(pth).attr("src"));
								 $(pth).attr("src",pth.src.replace(/.gif/g, '_over.gif'));
								 //$(pth).clone()appendTo(this);
								 //alert($(this).find("a")[0]);
								//$(linka).removeAttr("href");
								
							  }
							  else{
	
			$(this).hover(function(){
			$(pth).attr("src",pth.src.replace(/.gif/g, '_over.gif'));
			},function(){
			 $(pth).attr("src",pth.src.replace(/_over.gif/g, '.gif'));			
  });
							  }
});
}
});

$(function() {
	//$("#MenuBar1").children().enter();
	$(".hov").enter();
	//setpath();
});

