aslider.create.prototype.getHTML = function() { 
		this.html = [];
		var index, i;
		
		if (this.id == 'inter') {
			for (var i = 0; i < this.showest.length; i++) {
				index = this.showest[i];				
				this.html[i] = '<div class="item"><img src="' + this.data[index][0] + '" title="' + this.data[index][2] +'"  alt="" /><a href="' + this.data[index][1] + '" class="announce_title">' + this.data[index][3] + '</a>&nbsp;&ndash;&nbsp;' + this.data[index][2] + ' <span class="more">&nbsp;&rarr;<a href="' + this.data[index][1] + '">Продолжение</a></span></div>';
			}
		} else
		{
			for (var i = 0; i < this.showest.length; i++) {
				index = this.showest[i];
				this.html[i] = '<div class="item"><a href="' + this.data[index][0] + '" title="' + this.data[index][2] + '" ><img src="' + this.data[index][1] + '"  alt="" /></a></div>';
			}
		}
	};

	aslider.create.prototype.init = function() {
		this.left  = this.$('aleft_'  + this.id);
		this.right = this.$('aright_' + this.id);
		this.table = this.$('acont_'  + this.id);
		this.ie6 = (navigator.userAgent.toLowerCase().indexOf('msie 6') != -1) ? true : false;
		this.ie8 = (navigator.userAgent.toLowerCase().indexOf('msie 8') != -1) ? true : false;
		this.row = this.table.rows[0];
		if (!(this.left && this.right && this.table))
			return false;
		if (!(typeof this.data != 'undefined' && this.data.length))
			return false;

		this.left.style.display = this.right.style.display = '';
		this.length = this.data.length;
		this.mix();
		var _this = this;
		// Add handlers
		this.left.onmousedown = function(evt) {
			evt = evt || window.event;
			if (evt.preventDefault) evt.preventDefault();
			_this.longer = true;
			_this.goLeft();
			return false;
		}
		this.left.ondragstart = function() {return false;};
		this.left.onclick = function(evt) {return false;}
		this.right.onmousedown = function(evt) {
			evt = evt || window.event;
			if (evt.preventDefault) evt.preventDefault();
			_this.longer = true;
			_this.goRight();
			return false;
		}
		this.right.ondragstart = function() {return false;};
		this.right.onclick = function(evt) {return false;}
		this.addHandler(document, 'mouseup', function() {_this.longer = false;});
		this.addHandler(window, 'mouseout', function() {_this.longer = false;});
		this.addHandler(window, 'load', function() {
			_this.resize();
			_this.preload();
		});
		this.addHandler(window, 'resize', function() {
			_this.resize();
		});
		this.resize();
	};
	
	aslider.create.prototype.resize = function() {
		if (this.moveState) {
			setTimeout('aslider.get("'+this.id+'").resize()', 100);
			return;
		}
		if (this.table.offsetWidth) {
			var _t = this;
			setTimeout(function() {
				if (typeof _t != 'undefined') {
					_t.items = Math.floor(_t.table.parentNode.offsetWidth / _t.itemWidth);
					_t.setShowest();
					_t.draw();
					if (_t.id != 'video') _t.freeze();
				}
			}, 1);
		}
	};
	
	aslider.create.prototype.resize = function() {
		if (this.moveState) {
			setTimeout('aslider.get("'+this.id+'").resize()', 100);
			return;
		}
		if (this.table.offsetWidth) {
			var _t = this;
			setTimeout(function() {
				if (typeof _t != 'undefined') { 
					_t.items = Math.floor(_t.table.parentNode.offsetWidth / _t.itemWidth);
					_t.setShowest();
					_t.draw();
					if (_t.id != 'video') _t.freeze();
				}
			}, 1);
		}
	};
	
	aslider.create.prototype.freeze = function(w) {
		if (w) w = w / this.items;
		else w = this.table.parentNode.parentNode.parentNode.offsetWidth / this.items;
		for (var i = 0; i < this.row.cells.length; i++) {
			if (w) this.row.cells[i].firstChild.style.width = Math.floor(w) + 'px';
			else this.row.cells[i].firstChild.style.width = 'auto';
		}
	}