progress = {
	text : '<div class="progress">Идет загрузка&hellip;</div>',
	element : null,
	select: null,
	
	show: function(select) {
		width = select.width()-6;
		height = select.height()+4;
		if ($.browser.msie) {
			width--;
			height-=2;
			if ($.browser.version=="6.0") height-=2;
		}
		select.before(this.text);
		element = select.parent().find("div.progress");
		element.css({width: width+"px", height: height+"px"});
		this.select = select.clone();
		select.remove();
	},

	hide: function() {
		element.after(this.select);
		element.remove();
		return this.select;
	}
}
