$.fn.extend({
	addLockIcon: function() {
		$(this).each(function() {
			if (!$(this).hasLockIcon())
			{
				$(this).after(' <a href="' + $(this).attr("href") + '" title="' + $(this).attr("title") + '"><span class="lock"><img src="/etc/designs/cen/images/lock.png" width="13" height="14" border="0" /></span></a>');
			}
		});
	}
});

$.fn.extend({
	hasLockIcon: function() {

		return /<span class="lock">(?:.*?)<\/span>/.test($(this).parent().html());
	}
});

$.fn.extend({
    clearIcons: function() {
        $(".lock").remove();
    }
})
