/**
 * @id $Id: jquery.ppUnifiedId.js 68 2010-08-19 13:55:09Z stefan.schult $
 */

(function($) {
	$.ppUnifiedId = {};
	$.ppUnifiedId.counter = 0;
	$.fn.ppUnifiedId = function(prefix) {
		var idPrefix = (prefix != undefined && prefix != '') ? prefix : 'ppUnified-';
		return this.each(function() {
			if($(this).attr('id') == ''){
				$.ppUnifiedId.counter++;
				$(this).attr('id', idPrefix + $.ppUnifiedId.counter);
			}
		});
	};
})(jQuery);

