$(document).ready(function() {

$('a:not(:has(img))').hover(function() {
	$(this).addClass('dotted');
	}, function() {
	$(this).removeClass('dotted');
});

  

});

